3fb80abb23ef6c02f39c31414102be470924395c
[binutils-gdb.git] / gdb / ChangeLog
1 2020-07-10 Pedro Alves <pedro@palves.net>
2
3 PR gdb/26199
4 * infrun.c (handle_no_resumed): Handle multiple targets.
5
6 2020-07-10 Pedro Alves <pedro@palves.net>
7
8 PR gdb/26199
9 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
10 target_is_async_p.
11
12 2020-07-10 Pedro Alves <pedro@palves.net>
13
14 PR gdb/26199
15 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
16 threads, not all threads.
17
18 2020-07-10 Pedro Alves <pedro@palves.net>
19
20 PR gdb/26199
21 * remote.c (remote_target::open_1): Pass remote target pointer as
22 data to create_async_event_handler.
23 (remote_async_inferior_event_handler): Mark async event handler
24 before returning if the remote target still has either pending
25 events or unacknowledged notifications.
26
27 2020-07-10 John Baldwin <jhb@FreeBSD.org>
28
29 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
30 declaration.
31 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
32 function.
33
34 2020-07-09 John Baldwin <jhb@FreeBSD.org>
35
36 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
37 inferior_ptid.
38
39 2020-07-09 John Baldwin <jhb@FreeBSD.org>
40
41 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
42 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
43 AT_FREEBSD_PS_STRINGS.
44
45 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
46
47 * auto-load.c (auto_load_objfile_script_1): Convert drive part
48 of debugfile path on Windows.
49
50 2020-07-08 John Baldwin <jhb@FreeBSD.org>
51
52 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
53 argument to 'data'.
54
55 2020-07-08 Tom Tromey <tromey@adacore.com>
56
57 * ada-lang.c (ada_exception_message_1): Use read_memory.
58
59 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
60
61 PR python/22748
62 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
63 special handling for inline frames.
64 * findvar.c (value_of_register_lazy): Skip inline frames when
65 creating lazy register values.
66 * frame.c (frame_id_computed_p): Delete definition.
67 * frame.h (frame_id_computed_p): Delete declaration.
68
69 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * NEWS: Mention additions to Python API.
72 * python/py-arch.c (archpy_register_groups): New function.
73 (arch_object_methods): Add 'register_groups' method.
74 * python/py-registers.c (reggroup_iterator_object): New struct.
75 (reggroup_object): New struct.
76 (gdbpy_new_reggroup): New function.
77 (gdbpy_reggroup_to_string): New function.
78 (gdbpy_reggroup_name): New function.
79 (gdbpy_reggroup_iter): New function.
80 (gdbpy_reggroup_iter_next): New function.
81 (gdbpy_new_reggroup_iterator): New function
82 (gdbpy_initialize_registers): Register new types.
83 (reggroup_iterator_object_type): Define new Python type.
84 (gdbpy_reggroup_getset): New static global.
85 (reggroup_object_type): Define new Python type.
86 * python/python-internal.h
87
88 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
89
90 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
91 * python/py-arch.c (archpy_registers): New function.
92 (arch_object_methods): Add 'registers' method.
93 * python/py-registers.c: New file.
94 * python/python-internal.h
95 (gdbpy_new_register_descriptor_iterator): Declare.
96 (gdbpy_initialize_registers): Declare.
97 * python/python.c (do_start_initialization): Call
98 gdbpy_initialize_registers.
99 * NEWS: Mention additions to the Python API.
100
101 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * NEWS: Mention new Python API method.
104 * python/py-unwind.c (pending_framepy_architecture): New function.
105 (pending_frame_object_methods): Add architecture method.
106
107 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * gdbarch.c: Regenerate.
110 * gdbarch.h: Regenerate.
111 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
112 (gdbarch_data): Use internal_error for the case where
113 deprecated_set_gdbarch_data was originally needed.
114 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
115 and use passed in obstack.
116 (libunwind_frame_set_descr): Should no longer get back NULL from
117 gdbarch_data.
118 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
119 type.
120 * user-regs.c (user_regs_init): Update parameters, and use passed
121 in obstack.
122 (user_reg_add): Should no longer get back NULL from gdbarch_data.
123 (_initialize_user_regs): Register as a pre-init gdbarch data type.
124
125 2020-07-06 Tom de Vries <tdevries@suse.de>
126
127 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
128 End-Of-Sequence in lte_is_less_than.
129 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
130 "gdb: Don't reorder line table entries too much when sorting".
131
132 2020-07-06 Tom de Vries <tdevries@suse.de>
133
134 PR tui/26205
135 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
136
137 2020-07-05 Tom de Vries <tdevries@suse.de>
138
139 PR build/26187
140 * inferior.h (struct infcall_suspend_state_deleter): If available, use
141 std::uncaught_exceptions instead of deprecated
142 std::uncaught_exception.
143
144 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * macroexp.h (macro_stringify): Return
147 gdb::unique_xmalloc_ptr<char>.
148 * macroexp.c (macro_stringify): Likewise.
149 * macrotab.c (fixup_definition): Update.
150
151 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
154 (lex_one_token): Update.
155 * macroexp.c (struct macro_buffer) <release>: Return
156 gdb::unique_xmalloc_ptr<char>.
157 (macro_stringify): Update.
158 (macro_expand): Update.
159 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
160 * macroexp.h (macro_expand_next): Likewise.
161
162 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
163
164 * macroexp.h (macro_lookup_ftype): Remove.
165 (macro_expand, macro_expand_once, macro_expand_next): Remove
166 lookup function parameters, add scope parameter.
167 * macroexp.c (scan, substitute_args, expand, maybe_expand,
168 macro_expand, macro_expand_once, macro_expand_next): Likewise.
169 * macroscope.h (standard_macro_lookup): Change parameter type
170 to macro_scope.
171 * macroscope.c (standard_macro_lookup): Likewise.
172 * c-exp.y (lex_one_token): Update.
173 * macrocmd.c (macro_expand_command): Likewise.
174 (macro_expand_once_command): Likewise.
175
176 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * inf-loop.c (inferior_event_handler): Remove client_data param.
179 * inf-loop.h (inferior_event_handler): Likewise.
180 * infcmd.c (step_1): Adjust.
181 * infrun.c (proceed): Adjust.
182 (fetch_inferior_event): Remove client_data param.
183 (infrun_async_inferior_event_handler): Adjust.
184 * infrun.h (fetch_inferior_event): Remove `void *` param.
185 * linux-nat.c (handle_target_event): Adjust.
186 * record-btrace.c (record_btrace_handle_async_inferior_event):
187 Adjust.
188 * record-full.c (record_full_async_inferior_event_handler):
189 Adjust.
190 * remote.c (remote_async_inferior_event_handler): Adjust.
191
192 2020-07-01 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
195 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
196
197 2020-07-01 Tom Tromey <tom@tromey.com>
198
199 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
200 tui_gen_win_info.
201 (tui_win_info::make_window): Merge with
202 tui_gen_win_info::make_window.
203 (tui_win_info::make_visible): Move from tui_gen_win_info.
204 * tui/tui-win.c (tui_win_info::max_width): Move from
205 tui_gen_win_info.
206 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
207 type.
208 <window_factory>: Likewise.
209 * tui/tui-layout.c (tui_win_info::resize): Move from
210 tui_gen_win_info.
211 (make_standard_window): Change return type.
212 (get_locator_window, tui_get_window_by_name): Likewise.
213 (tui_layout_window::apply): Remove a cast.
214 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
215 (struct tui_win_info): Merge with tui_gen_win_info.
216 (struct tui_gen_win_info): Remove.
217
218 2020-07-01 Tom Tromey <tom@tromey.com>
219
220 * tui/tui-stack.h (struct tui_locator_window): Derive from
221 tui_win_info.
222 <do_scroll_horizontal, do_scroll_vertical>: New methods.
223 <can_box>: New method.
224
225 2020-07-01 Tom Tromey <tom@tromey.com>
226
227 * tui/tui-stack.h (struct tui_locator_window): Remove body.
228
229 2020-07-01 Tom Tromey <tom@tromey.com>
230
231 * tui/tui-regs.c (tui_data_window::display_registers_from)
232 (tui_data_window::display_registers_from)
233 (tui_data_window::first_data_item_displayed)
234 (tui_data_window::delete_data_content_windows): Update.
235 (tui_data_window::refresh_window, tui_data_window::no_refresh):
236 Remove.
237 (tui_data_window::check_register_values): Update.
238 (tui_data_item_window::rerender): Add parameters. Update.
239 (tui_data_item_window::refresh_window): Remove.
240 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
241 virtual.
242 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
243 tui_gen_win_info.
244 <refresh_window, max_height, min_height>: Remove.
245 <rerender>: Add parameters.
246 <x, y, visible>: New members.
247 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
248 <m_item_width>: New member.
249
250 2020-07-01 Tom Tromey <tom@tromey.com>
251
252 * tui/tui-regs.c (tui_data_window::show_register_group)
253 (tui_data_window::check_register_values): Update.
254 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
255 from item_no.
256
257 2020-07-01 Tom Tromey <tom@tromey.com>
258
259 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
260 useless "if".
261
262 2020-07-01 Tom Tromey <tom@tromey.com>
263
264 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
265 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
266
267 2020-07-01 Tom Tromey <tom@tromey.com>
268
269 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
270 * tui/tui-winsource.h (enum tui_line_or_address_kind)
271 (struct tui_line_or_address): Move from tui-data.h.
272 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
273 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
274 (tui_cmd_window, tui_source_window_base, tui_source_window)
275 (tui_disasm_window): Don't declare.
276 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
277 to tui-winsource.h.
278 (SINGLE_KEY): Move to tui-stack.c.
279
280 2020-07-01 Tom Tromey <tom@tromey.com>
281
282 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
283 std::string.
284 * tui/tui-regs.c (class tab_expansion_file): New.
285 (tab_expansion_file::write): New method.
286 (tui_register_format): Change return type. Use
287 tab_expansion_file.
288 (tui_get_register, tui_data_window::display_registers_from)
289 (tui_data_item_window::rerender): Update.
290 * tui/tui-io.h (tui_expand_tabs): Don't declare.
291 * tui/tui-io.c (tui_expand_tabs): Remove.
292
293 2020-07-01 Tom Tromey <tom@tromey.com>
294
295 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
296
297 2020-07-01 Fangrui Song <maskray@google.com>
298
299 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
300
301 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
302
303 * dwarf2/read.c (set_die_type): Removed conditions to restrict
304 forms for DW_AT_associated and DW_AT_allocated attributes,
305 which is already checked in function attr_to_dynamic_prop.
306
307 2020-06-30 Tom Tromey <tromey@adacore.com>
308
309 * dwarf2/read.c (quirk_rust_enum): Correctly call
310 alloc_rust_variant for default-less enum.
311
312 2020-06-30 Tom Tromey <tromey@adacore.com>
313
314 PR build/26183:
315 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
316 gdb::to_string.
317
318 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
319
320 * gdbarch.sh (displaced_step_copy_insn): Update doc.
321 * gdbarch.h: Re-generate.
322
323 2020-06-28 Tom Tromey <tom@tromey.com>
324
325 * command.h (cmd_types): Remove.
326 (cmd_type): Don't declare.
327 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
328 typedef.
329 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
330 * cli/cli-decode.c (cmd_type): Remove.
331
332 2020-06-27 Pedro Alves <palves@redhat.com>
333
334 * fork-child.c (prefork_hook): Adjust.
335 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
336 Delete.
337 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
338 * inferior.c (inferior::set_tty, inferior::tty): New methods.
339 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
340 Remove declarations.
341 (struct inferior) <set_tty, tty>: New methods.
342 (struct inferior) <terminal>: Rename to ...
343 (struct inferior) <m_terminal>: ... this and make private.
344 * main.c (captured_main_1): Adjust.
345 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
346 (mi_cmd_inferior_tty_show): Adjust.
347 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
348 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
349
350 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
351
352 * configure.ac: Add --enable-libctf: handle --disable-static
353 properly.
354 * acinclude.m4: sinclude ../config/enable.m4.
355 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
356 (LIBCTF): Substitute in.
357 (CTF_DEPS): New, likewise.
358 (CLIBS): libctf needs symbols from libbfd: move earlier.
359 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
360 flags.
361 * ctfread.c: Surround in ENABLE_LIBCTF.
362 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
363 * configure: Regenerate.
364 * config.in: Likewise.
365
366 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
367
368 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
369
370 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
371
372 * inferior.h (struct inferior) <terminal>: Change type to
373 gdb::unique_xmalloc_ptr<char>.
374 * inferior.c (inferior::~inferior): Don't free inf->terminal.
375 * infcmd.c (set_inferior_io_terminal): Don't free terminal
376 field, adjust to unique pointer.
377 (get_inferior_io_terminal): Adjust to unique pointer.
378
379 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * riscv-tdep.c (riscv_print_registers_info): Loop over all
382 registers, not just the known core set of registers.
383
384 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
385
386 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
387 fflags, frm, and fcsr registers.
388 (riscv_register_reggroup_p): Remove unknown CSRs from save and
389 restore groups.
390 (riscv_tdesc_unknown_reg): New function.
391 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
392 tdesc_use_registers.
393 * riscv-tdep.h (struct gdbarch_tdep): Add
394 unknown_csrs_first_regnum, unknown_csrs_count,
395 duplicate_fflags_regnum, duplicate_frm_regnum, and
396 duplicate_fcsr_regnum fields.
397
398 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * target-descriptions.c (tdesc_use_registers): Add new parameter a
401 callback, use the callback (when not null) to help number unknown
402 registers.
403 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
404 (tdesc_use_registers): Add extra parameter to declaration.
405
406 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
409 in the file.
410 (class riscv_pending_register_alias): Likewise.
411 (riscv_register_feature::register_info): Change 'required_p' field
412 to 'required', and change its type. Add 'check' member function.
413 (riscv_register_feature::register_info::check): Define new member
414 function.
415 (riscv_xreg_feature): Change initialisation of 'required' field.
416 (riscv_freg_feature): Likewise.
417 (riscv_virtual_feature): Likewise.
418 (riscv_csr_feature): Likewise.
419 (riscv_check_tdesc_feature): Take extra parameter, the csr
420 tdesc_feature, rewrite the function to use the new
421 riscv_register_feature::register_info::check function.
422 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
423
424 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * features/Makefile: Remove all references to the deleted files
427 below.
428 * features/riscv/32bit-csr.c: Deleted.
429 * features/riscv/32bit-csr.xml: Deleted.
430 * features/riscv/64bit-csr.c: Deleted.
431 * features/riscv/64bit-csr.xml: Deleted.
432 * features/riscv/rebuild-csr-xml.sh: Deleted.
433
434 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
435
436 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
437 whitespace error for declaration of names member variable.
438 (struct riscv_register_feature): Add new prefer_first_name member
439 variable, and fix whitespace error in declaration of registers.
440 (riscv_xreg_feature): Initialize prefer_first_name field.
441 (riscv_freg_feature): Likewise.
442 (riscv_virtual_feature): Likewise.
443 (riscv_csr_feature): Likewise.
444 (riscv_register_name): Expand on comments. Remove register name
445 modifications for CSR and virtual registers.
446
447 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
450 errors.
451
452 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
455 riscv-opc.h.
456 (class riscv_pending_register_alias): New class.
457 (riscv_check_tdesc_feature): Take vector of pending aliases and
458 populate it as appropriate.
459 (riscv_setup_register_aliases): Delete.
460 (riscv_gdbarch_init): Create vector of pending aliases and pass it
461 to riscv_check_tdesc_feature in all cases. Use the vector to
462 create the register aliases.
463
464 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
465
466 * sol2-tdep.c (sol2_static_transform_name): Remove.
467 (sol2_init_abi): Don't register it.
468 * gdbarch.sh (static_transform_name): Remove.
469 * gdbarch.c, gdbarch.h: Regenerate.
470
471 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
472 gdbarch_static_transform_name.
473 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
474 * stabsread.c (define_symbol) <'X'>: Remove.
475 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
476 handling.
477 <'V'>: Likewise.
478 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
479 <'S'>: Remove call to gdbarch_static_transform_name.
480
481 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482
483 * procfs.c (procfs_pre_trace): New function.
484 (procfs_target::create_inferior): Pass it to fork_inferior.
485
486 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
487
488 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
489 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
490 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
491 sol2-tdep.o, sparc-sol2-tdep.o.
492 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
493 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
494 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
495 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
496
497 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
498
499 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
500 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
501 Call sol2_init_abi.
502 Remove calls to set_gdbarch_skip_solib_resolver,
503 set_gdbarch_core_pid_to_str.
504 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
505 (i386_sol2_static_transform_name): Remove.
506 (i386_sol2_init_abi): Call sol2_init_abi.
507 Remove calls to set_gdbarch_sofun_address_maybe_missing,
508 set_gdbarch_static_transform_name,
509 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
510 Use sol2_sigtramp_p.
511 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
512 (sol2_sigtramp_p): New function.
513 (sol2_static_transform_name): New function.
514 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
515 (sol2_init_abi): New function.
516 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
517 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
518 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
519 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
520 (sparc_sol2_static_transform_name): Remove.
521 (sparc32_sol2_init_abi): Call sol2_init_abi.
522 Remove calls to set_gdbarch_sofun_address_maybe_missing,
523 set_gdbarch_static_transform_name,
524 set_gdbarch_skip_solib_resolver,
525 set_gdbarch_core_pid_to_str.
526 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
527 (sparc_sol2_static_transform_name): Remove
528 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
529 call sol2_sigtramp_p.
530 (sparc64_sol2_init_abi): Call sol2_init_abi.
531 Remove calls to set_gdbarch_sofun_address_maybe_missing,
532 set_gdbarch_static_transform_name,
533 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
534
535 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
536
537 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
538 * exec.c (validate_exec_file): If from_tty, set both
539 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
540 * symfile.c (symbol_file_add_with_addrs): if always_confirm
541 and from_tty, unconditionally ask a confirmation.
542
543 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * target-descriptions.c (tdesc_architecture_name): Protect against
546 NULL pointer dereference.
547 (maint_print_xml_tdesc_cmd): New function.
548 (_initialize_target_descriptions): Register new 'maint print
549 xml-tdesc' command and give it the filename completer.
550 * NEWS: Mention new 'maint print xml-tdesc' command.
551
552 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * target-descriptions.c (class tdesc_compatible_info): New class.
555 (struct target_desc): Change type of compatible vector.
556 (tdesc_compatible_p): Update for change in type of
557 target_desc::compatible.
558 (tdesc_compatible_info_list): New function.
559 (tdesc_compatible_info_arch_name): New function.
560 (tdesc_add_compatible): Update for change in type of
561 target_desc::compatible.
562 (print_c_tdesc::visit_pre): Likewise.
563
564 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
567 whitespace to underscore.
568 (maint_print_c_tdesc_cmd): Use fake filename for target
569 descriptions that came from the target.
570 (_initialize_target_descriptions): Add filename command completion
571 for 'maint print c-tdesc'.
572
573 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
574
575 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
576 lines.
577
578 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
579
580 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
581 lines.
582 (dwarf2_find_location_expression): Likewise.
583 (call_site_parameter_matches): Likewise.
584 (dwarf2_compile_expr_to_ax): Likewise.
585 (disassemble_dwarf_expression): Likewise.
586 (loclist_describe_location): Likewise.
587
588 2020-06-23 Pedro Alves <palves@redhat.com>
589
590 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
591 progspace-and-thread.h. Include scoped-mock-context.h instead.
592 (register_to_value_test): Use scoped_mock_context.
593 * regcache.c: Include "scoped-mock-context.h".
594 (cooked_read_test): Don't error out if a target is already pushed.
595 Use scoped_mock_context. Adjust.
596 * scoped-mock-context.h: New file.
597
598 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
601 initializer.
602 (ada_language::is_string_type_p): New member function.
603 * c-lang.c (c_language_data): Delete la_is_string_type_p
604 initializer.
605 (cplus_language_data): Likewise.
606 (asm_language_data): Likewise.
607 (minimal_language_data): Likewise.
608 * d-lang.c (d_language_data): Likewise.
609 * f-lang.c (f_is_string_type_p): Delete function, implementation
610 moved to f_language::is_string_type_p.
611 (f_language_data): Delete la_is_string_type_p initializer.
612 (f_language::is_string_type_p): New member function,
613 implementation from f_is_string_type_p.
614 * go-lang.c (go_is_string_type_p): Delete function, implementation
615 moved to go_language::is_string_type_p.
616 (go_language_data): Delete la_is_string_type_p initializer.
617 (go_language::is_string_type_p): New member function,
618 implementation from go_is_string_type_p.
619 * language.c (language_defn::is_string_type_p): Define new member
620 function.
621 (default_is_string_type_p): Make static, add comment copied from
622 header file.
623 (unknown_language_data): Delete la_is_string_type_p initializer.
624 (unknown_language::is_string_type_p): New member function.
625 (auto_language_data): Delete la_is_string_type_p initializer.
626 (auto_language::is_string_type_p): New member function.
627 * language.h (language_data): Delete la_is_string_type_p field.
628 (language_defn::is_string_type_p): Declare new function.
629 (default_is_string_type_p): Delete desclaration, move comment to
630 definition.
631 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
632 moved to m2_language::is_string_type_p.
633 (m2_language_data): Delete la_is_string_type_p initializer.
634 (m2_language::is_string_type_p): New member function,
635 implementation from m2_is_string_type_p.
636 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
637 initializer.
638 * opencl-lang.c (opencl_language_data): Likewise.
639 * p-lang.c (pascal_is_string_type_p): Delete function,
640 implementation moved to pascal_language::is_string_type_p.
641 (pascal_language_data): Delete la_is_string_type_p initializer.
642 (pascal_language::is_string_type_p): New member function,
643 implementation from pascal_is_string_type_p.
644 * rust-lang.c (rust_is_string_type_p): Delete function,
645 implementation moved to rust_language::is_string_type_p.
646 (rust_language_data): Delete la_is_string_type_p initializer.
647 (rust_language::is_string_type_p): New member function,
648 implementation from rust_is_string_type_p.
649 * valprint.c (val_print_scalar_or_string_type_p): Update call to
650 is_string_type_p.
651
652 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * ada-lang.c (ada_language_data): Delete la_print_typedef
655 initializer.
656 (ada_language::print_typedef): New member function.
657 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
658 (cplus_language_data): Likewise.
659 (asm_language_data): Likewise.
660 (minimal_language_data): Likewise.
661 * d-lang.c (d_language_data): Likewise.
662 * f-lang.c (f_language_data): Likewise.
663 (f_language::print_typedef): New member function.
664 * go-lang.c (go_language_data): Delete la_print_typedef
665 initializer.
666 * language.c (language_defn::print_typedef): Define member
667 function.
668 (unknown_language_data): Delete la_print_typedef initializer.
669 (unknown_language::print_typedef): New member function.
670 (auto_language_data): Delete la_print_typedef initializer.
671 (auto_language::print_typedef): New member function.
672 * language.h (language_data): Delete la_print_typedef field.
673 (language_defn::print_typedef): Declare new member function.
674 (LA_PRINT_TYPEDEF): Update call to print_typedef.
675 (default_print_typedef): Delete declaration.
676 * m2-lang.c (m2_language_data): Delete la_print_typedef
677 initializer.
678 (m2_language::print_typedef): New member function.
679 * objc-lang.c (objc_language_data): Delete la_print_typedef
680 initializer.
681 * opencl-lang.c (opencl_language_data): Likewise.
682 * p-lang.c (pascal_language_data): Likewise.
683 (pascal_language::print_typedef): New member function.
684 * rust-lang.c (rust_print_typedef): Delete function,
685 implementation moved to rust_language::print_typedef.
686 (rust_language): Delete la_print_typedef initializer.
687 (rust_language::print_typedef): New member function,
688 implementation from rust_print_typedef.
689 * typeprint.c (default_print_typedef): Delete.
690
691 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
694 (ada_language::printstr): New member function.
695 * c-lang.c (c_language_data): Delete la_printstr initializer.
696 (cplus_language_data): Likewise.
697 (asm_language_data): Likewise.
698 (minimal_language_data): Likewise.
699 * d-lang.c (d_language_data): Likewise.
700 * f-lang.c (f_printstr): Rename to f_language::printstr.
701 (f_language_data): Delete la_printstr initializer.
702 (f_language::printstr): New member function, implementation from
703 f_printstr.
704 * go-lang.c (go_language_data): Delete la_printstr initializer.
705 * language.c (language_defn::printstr): Define new member
706 function.
707 (unk_lang_printstr): Delete.
708 (unknown_language_data): Delete la_printstr initializer.
709 (unknown_language::printstr): New member function.
710 (auto_language_data): Delete la_printstr initializer.
711 (auto_language::printstr): New member function.
712 * language.h (language_data): Delete la_printstr field.
713 (language_defn::printstr): Declare new member function.
714 (LA_PRINT_STRING): Update call to printstr.
715 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
716 (m2_language_data): Delete la_printstr initializer.
717 (m2_language::printstr): New member function, implementation from
718 m2_printstr.
719 * objc-lang.c (objc_language_data): Delete la_printstr
720 initializer.
721 * opencl-lang.c (opencl_language_data): Likewise.
722 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
723 (pascal_language_data): Delete la_printstr initializer.
724 (pascal_language::printstr): New member function, implementation
725 from pascal_printstr.
726 * p-lang.h (pascal_printstr): Delete declaration.
727 * rust-lang.c (rust_printstr): Update header comment.
728 (rust_language_data): Delete la_printstr initializer.
729 (rust_language::printstr): New member function.
730
731 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
734 (ada_language::printchar): New member function.
735 * c-lang.c (c_language_data): Delete la_printchar initializer.
736 (cplus_language_data): Likewise.
737 (asm_language_data): Likewise.
738 (minimal_language_data): Likewise.
739 * d-lang.c (d_language_data): Likewise.
740 * f-lang.c (f_printchar): Rename to f_language::printchar.
741 (f_language_data): Delete la_printchar initializer.
742 (f_language::printchar): New member function, implementation from
743 f_printchar.
744 * go-lang.c (go_language_data): Delete la_printchar initializer.
745 * language.c (unk_lang_printchar): Delete.
746 (language_defn::printchar): Define new member function.
747 (unknown_language_data): Delete la_printchar initializer.
748 (unknown_language::printchar): New member function.
749 (auto_language_data): Delete la_printchar initializer.
750 (auto_language::printchar): New member function.
751 * language.h (language_data): Delete la_printchar field.
752 (language_defn::printchar): Declare new member function.
753 (LA_PRINT_CHAR): Update call to printchar.
754 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
755 (m2_language::printchar): New member function.
756 * objc-lang.c (objc_language_data): Delete la_printchar
757 initializer.
758 * opencl-lang.c (opencl_language_data): Likewise.
759 * p-lang.c (pascal_language_data): Delete la_printchar
760 initializer.
761 (pascal_language::printchar): New member function.
762 * rust-lang.c (rust_printchar): Rename to
763 rust_language::printchar.
764 (rust_language_data): Delete la_printchar initializer.
765 (rust_language::printchar): New member function, implementation
766 from rust_printchar.
767
768 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
771 (ada_language_data): Delete la_emitchar initializer.
772 (ada_language::emitchar): New member function, implementation from
773 emit_char.
774 * c-lang.c (c_language_data): Delete la_emitchar initializer.
775 (cplus_language_data): Likewise.
776 (asm_language_data): Likewise.
777 (minimal_language_data): Likewise.
778 * d-lang.c (d_language_data): Likewise.
779 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
780 (f_language_data): Delete la_emitchar initializer.
781 (f_language::emitchar): New member function, implementation from
782 f_emit_char.
783 * go-lang.c (go_language_data): Delete la_emitchar initializer.
784 * language.c (unk_lang_emit_char): Delete.
785 (language_defn::emitchar): New member function definition.
786 (unknown_language_data): Delete la_emitchar initializer.
787 (unknown_language::emitchar): New member function.
788 (auto_language_data): Delete la_emitchar initializer.
789 (auto_language::emitchar): New member function.
790 * language.h (language_data): Delete la_emitchar field.
791 (language_defn::emitchar): New member field declaration.
792 (LA_EMIT_CHAR): Update call to emitchar.
793 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
794 (m2_language_data): Delete la_emitchar initializer.
795 (m2_language::emitchar): New member function, implementation from
796 m2_emit_char.
797 * objc-lang.c (objc_language_data): Delete la_emitchar
798 initializer.
799 * opencl-lang.c (opencl_language_data): Likewise.
800 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
801 (pascal_language_data): Delete la_emitchar initializer.
802 (pascal_language::emitchar): New member function, implementation
803 from pascal_emit_char.
804 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
805 (rust_language_data): Delete la_emitchar initializer.
806 (rust_language::emitchar): New member function, implementation
807 from rust_emitchar.
808
809 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
810
811 * ada-lang.c (resolve): Rename to ada_language::post_parser.
812 (ada_language_data): Delete la_post_parser initializer.
813 (ada_language::post_parser): New member function.
814 * c-lang.c (c_language_data): Delete la_post_parser initializer.
815 (cplus_language_data): Likewise.
816 (asm_language_data): Likewise.
817 (minimal_language_data): Likewise.
818 * d-lang.c (d_language_data): Likewise.
819 * f-lang.c (f_language_data): Likewise.
820 * go-lang.c (go_language_data): Likewise.
821 * language.c (unknown_language_data): Likewise.
822 (auto_language_data): Likewise.
823 * language.h (language_data): Delete la_post_parser field.
824 (language_defn::post_parser): New member function.
825 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
826 * objc-lang.c (objc_language_data): Likewise.
827 * opencl-lang.c (opencl_language_data): Likewise.
828 * p-lang.c (pascal_language_data): Likewise.
829 * parse.c (parse_exp_in_context): Update call to post_parser.
830 (null_post_parser): Delete definition.
831 * parser-defs.h (null_post_parser): Delete declaration.
832 * rust-lang.c (rust_language_data): Delete la_post_parser
833 initializer.
834
835 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
836
837 * ada-lang.c (parse): Rename to ada_language::parser.
838 (ada_language_data): Delete la_parser initializer.
839 (ada_language::parser): New member function, implementation from
840 parse.
841 * c-lang.c (c_language_data): Delete la_parser initializer.
842 (cplus_language_data): Likewise.
843 (asm_language_data): Likewise.
844 (minimal_language_data): Likewise.
845 * d-lang.c (d_language_data): Likewise.
846 (d_language::parser): New member function.
847 * f-lang.c (f_language_data): Delete la_parser initializer.
848 (f_language::parser): New member function.
849 * go-lang.c (go_language_data): Delete la_parser initializer.
850 (go_language::parser): New member function.
851 * language.c (unk_lang_parser): Delete.
852 (language_defn::parser): Define new member function.
853 (unknown_language_data): Delete la_parser initializer.
854 (unknown_language::parser): New member function.
855 (auto_language_data): Delete la_parser initializer.
856 (auto_language::parser): New member function.
857 * language.h (language_data): Delete la_parser field.
858 (language_defn::parser): Declare new member function.
859 * m2-lang.c (m2_language_data): Delete la_parser initializer.
860 (m2_language::parser): New member function.
861 * objc-lang.c (objc_language_data): Delete la_parser initializer.
862 * opencl-lang.c (opencl_language_data): Likewise.
863 * p-lang.c (pascal_language_data): Likewise.
864 (pascal_language::parser): New member function.
865 * parse.c (parse_exp_in_context): Update call to parser.
866 * rust-lang.c (rust_language_data): Delete la_parser initializer.
867 (rust_language::parser): New member function.
868
869 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
870
871 * top.c (print_gdb_configuration): Print --with-python-libdir
872 configuration value.
873
874 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
875
876 * NEWS: Mention change to the alias command.
877
878 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
879
880 * cli/cli-cmds.c (lookup_cmd_for_default_args)
881 (alias_command_completer)
882 (make_alias_options_def_group): New functions.
883 (alias_opts, alias_option_defs): New struct and array.
884 (alias_usage_error): Update usage.
885 (alias_command): Handles optional DEFAULT-ARGS... arguments.
886 Use option framework.
887 (_initialize_cli_cmds): Update alias command help.
888 Update aliases command help.
889 (show_user):
890 Add NULL for new default_args lookup_cmd argument.
891 (valid_command_p): Rename to validate_aliased_command.
892 Add NULL for new default_args lookup_cmd argument. Verify that the
893 aliased_command has no default args.
894 * cli/cli-decode.c (help_cmd): Show aliases definitions.
895 (lookup_cmd_1, lookup_cmd): New argument default_args.
896 (add_alias_cmd):
897 Add NULL for new default_args lookup_cmd argument.
898 (print_help_for_command): Show default args under the layout
899 alias some_alias = some_aliased_cmd some_alias_default_arg.
900 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
901 xfree default_args in destructor.
902 * cli/cli-script.c (process_next_line, do_define_command):
903 Add NULL for new default_args lookup_cmd argument.
904 * command.h: Declare new default_args argument in lookup_cmd
905 and lookup_cmd_1.
906 * completer.c (complete_line_internal_1):
907 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
908 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
909 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
910 Likewise.
911 * infcmd.c (_initialize_infcmd): Likewise.
912 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
913 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
914 * python/py-param.c (add_setshow_generic): Likewise.
915 * remote.c (_initialize_remote): Likewise.
916 * top.c (execute_command): Prepend default_args if command has some.
917 (set_verbose):
918 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
919 * tracepoint.c (validate_actionline, encode_actions_1):
920 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
921
922 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923
924 * jit.c (jit_read_descriptor): Use bool as the return type.
925 (jit_breakpoint_re_set_internal): Use bool as the return type.
926 Invert the return value logic; return true if the jit breakpoint
927 has been successfully initialized.
928 (jit_inferior_init): Update the call to
929 jit_breakpoint_re_set_internal.
930
931 2020-06-22 Pedro Alves <palves@redhat.com>
932
933 PR gdb/25939
934 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
935 Use the current inferior instead. Don't return
936 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
937 wait again.
938 * sol-thread.c (sol_thread_target::wait): Don't reference
939 inferior_ptid.
940 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
941 (sol_update_thread_list_callback): Use the current inferior's pid
942 instead of inferior_ptid.
943
944 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
945
946 * procfs.c: Cleanup many comments.
947
948 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
949 (AFTER_WATCHFLAG): Replace by value.
950
951 (MAIN_PROC_NAME_FORMAT): Inline ...
952 (create_procinfo): ... here.
953
954 (procfs_debug_inferior): Remove SYS_exec handling.
955 (syscall_is_exec): Likewise.
956 (procfs_set_exec_trap): Likewise.
957
958 (syscall_is_lwp_exit): Inline in callers.
959 (syscall_is_exit): Likewise.
960 (syscall_is_exec): Likewise.
961 (syscall_is_lwp_create): Likewise.
962
963 (invalidate_cache): Remove #if 0 code.
964
965 (make_signal_thread_runnable): Remove.
966 (procfs_target::resume): Remove #if 0 code.
967
968 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
969
970 PR gdb/25939
971 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
972 call ...
973 (procfs_target::create_inferior): ... here.
974
975 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
976
977 * exec.c (validate_exec_file): Ensure the build-id is up to
978 date by calling reopen_exec_file (that checks file timestamp
979 to decide to re-read the file).
980
981 2020-06-18 Pedro Alves <palves@redhat.com>
982
983 PR gdb/25412
984 * gdbthread.h (delete_thread, delete_thread_silent)
985 (find_thread_ptid): Update comments.
986 * thread.c (current_thread_): New global.
987 (is_current_thread): Move higher, and reimplement.
988 (inferior_thread): Reimplement.
989 (set_thread_exited): Use bool. Add assertions.
990 (add_thread_silent): Simplify thread-reuse handling by always
991 calling delete_thread.
992 (delete_thread): Remove intro comment.
993 (find_thread_ptid): Skip exited threads.
994 (switch_to_thread_no_regs): Write to current_thread_.
995 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
996 INFERIOR_PTID. Clear current_thread_.
997
998 2020-06-18 Pedro Alves <palves@redhat.com>
999
1000 * aix-thread.c (pd_update): Use switch_to_thread.
1001
1002 2020-06-18 Pedro Alves <palves@redhat.com>
1003
1004 * ravenscar-thread.c (ravenscar_thread_target): Update.
1005 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1006 (ravenscar_thread_target::add_active_thread): ... this. Don't
1007 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1008 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1009
1010 2020-06-18 Pedro Alves <palves@redhat.com>
1011
1012 * nat/windows-nat.c (current_windows_thread): Remove.
1013 * nat/windows-nat.h (current_windows_thread): Remove.
1014 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1015 Adjust.
1016 (display_selectors): Adjust to fetch the current
1017 windows_thread_info based on inferior_ptid.
1018 (fake_create_process): No longer write to current_windows_thread.
1019 (windows_nat_target::get_windows_debug_event):
1020 Don't set inferior_ptid or current_windows_thread.
1021 (windows_nat_target::wait): Adjust to not rely on
1022 current_windows_thread.
1023 (do_initial_windows_stuff): Now a method of windows_nat_target.
1024 Switch to the last_ptid thread.
1025 (windows_nat_target::attach): Adjust.
1026 (windows_nat_target::detach): Use switch_to_no_thread instead of
1027 writing to inferior_ptid directly.
1028 (windows_nat_target::create_inferior): Adjust.
1029
1030 2020-06-18 Pedro Alves <palves@redhat.com>
1031
1032 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1033
1034 2020-06-18 Pedro Alves <palves@redhat.com>
1035
1036 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1037 after creating it, instead of writing to inferior_ptid. Don't
1038 write to inferior_ptid.
1039
1040 2020-06-18 Pedro Alves <palves@redhat.com>
1041
1042 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1043
1044 2020-06-18 Pedro Alves <palves@redhat.com>
1045
1046 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1047 it, instead of writing to inferior_ptid.
1048
1049 2020-06-18 Pedro Alves <palves@redhat.com>
1050
1051 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1052 to inferior_ptid.
1053
1054 2020-06-18 Pedro Alves <palves@redhat.com>
1055
1056 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1057 instead of writing to inferior_ptid directly.
1058
1059 2020-06-18 Pedro Alves <palves@redhat.com>
1060
1061 * corelow.c (core_target::close): Use switch_to_no_thread instead
1062 of writing to inferior_ptid directly.
1063 (add_to_thread_list, core_target_open): Use switch_to_thread
1064 instead of writing to inferior_ptid directly.
1065
1066 2020-06-18 Pedro Alves <palves@redhat.com>
1067
1068 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1069 inferior_ptid.
1070 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1071 inferior_ptid.
1072 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1073 inferior_ptid directly.
1074 (darwin_nat_target::init_thread_list): Switch to thread, instead
1075 of writing to inferior_ptid.
1076 (darwin_nat_target::attach): Don't write to inferior_ptid.
1077 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1078
1079 2020-06-18 Pedro Alves <palves@redhat.com>
1080
1081 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1082 thread.
1083 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1084 Instead use switch_to_thread.
1085 (gnu_nat_target::detach): Use switch_to_no_thread
1086 instead of writing to inferior_ptid directly. Used passed-in
1087 inferior instead of looking up the inferior by pid.
1088
1089 2020-06-18 Pedro Alves <palves@redhat.com>
1090
1091 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1092 inferior_ptid.
1093
1094 2020-06-18 Pedro Alves <palves@redhat.com>
1095
1096 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1097 inferior_ptid.
1098 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1099 thread.
1100 (nto_procfs_target::detach): Avoid referencing
1101 inferior_ptid. Use switch_to_no_thread instead of writing to
1102 inferior_ptid directly.
1103 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1104 instead of writing to inferior_ptid directly.
1105 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1106 to thread.
1107
1108 2020-06-18 Pedro Alves <palves@redhat.com>
1109
1110 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1111 after creating it, instead of writing to inferior_ptid.
1112 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1113 to inferior_ptid directly.
1114 (gdbsim_target::wait): Don't write to inferior_ptid.
1115
1116 2020-06-18 Pedro Alves <palves@redhat.com>
1117
1118 * remote.c (remote_target::remote_notice_new_inferior): Use
1119 switch_to_thread instead of writing to inferior_ptid directly.
1120 (remote_target::add_current_inferior_and_thread): Use
1121 switch_to_no_thread instead of writing to inferior_ptid directly.
1122 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1123 and switch_to_thread instead of using set_current_inferior or
1124 writing to inferior_ptid directly.
1125
1126 2020-06-18 Pedro Alves <palves@redhat.com>
1127
1128 * tracectf.c (ctf_target_open): Switch to added thread instead of
1129 writing to inferior_ptid directly.
1130 (ctf_target::close): Use switch_to_no_thread instead of writing to
1131 inferior_ptid directly.
1132
1133 2020-06-18 Pedro Alves <palves@redhat.com>
1134
1135 * tracefile-tfile.c (tfile_target_open): Don't write to
1136 inferior_ptid directly, instead switch to added thread.
1137 (tfile_target::close): Use switch_to_no_thread instead of writing
1138 to inferior_ptid directly.
1139
1140 2020-06-18 Pedro Alves <palves@redhat.com>
1141
1142 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1143 (procfs_target::detach): Use switch_to_no_thread
1144 instead of writing to inferior_ptid directly.
1145 (do_attach): Change return type to void. Switch to the added
1146 thread.
1147 (procfs_target::create_inferior): Switch to the added thread.
1148 (procfs_do_thread_registers): Don't write to inferior_ptid.
1149
1150 2020-06-18 Pedro Alves <palves@redhat.com>
1151
1152 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1153 of writing to inferior_ptid.
1154 (scoped_restore_exited_inferior): Delete.
1155 (handle_vfork_child_exec_or_exit): Simplify using
1156 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1157 instead of writing to inferior_ptid.
1158 (THREAD_STOPPED_BY): Delete.
1159 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1160 (thread_stopped_by_hw_breakpoint): Delete.
1161 (save_waitstatus): Use
1162 scoped_restore_current_thread+switch_to_thread, and call
1163 target_stopped_by_watchpoint instead of
1164 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1165 instead of thread_stopped_by_sw_breakpoint, and
1166 target_stopped_by_hw_breakpoint instead of
1167 thread_stopped_by_hw_breakpoint.
1168 (handle_inferior_event)
1169 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1170 inferior_ptid directly, nor
1171 set_current_inferior/set_current_program_space. Use
1172 switch_to_thread / switch_to_inferior_no_thread instead.
1173
1174 2020-06-18 Pedro Alves <palves@redhat.com>
1175
1176 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1177 instead of writing to inferior_ptid.
1178
1179 2020-06-18 Pedro Alves <palves@redhat.com>
1180
1181 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1182 added thread.
1183 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1184 to the added thread.
1185 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1186 instead of writing to inferior_ptid.
1187
1188 2020-06-18 Pedro Alves <palves@redhat.com>
1189
1190 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1191 (register_to_value_test): Mock a program_space too. Heap-allocate
1192 the address space. Don't write to inferior_ptid. Use
1193 switch_to_thread instead.
1194
1195 2020-06-18 Pedro Alves <palves@redhat.com>
1196
1197 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1198 Delete.
1199 (find_signalled_thread()): New, factored out from
1200 linux_make_corefile_notes and adjusted to handle exited threads.
1201 (linux_make_corefile_notes): Adjust to use the new
1202 find_signalled_thread.
1203
1204 2020-06-18 Pedro Alves <palves@redhat.com>
1205
1206 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1207 of saving/restoring inferior_ptid.
1208
1209 2020-06-17 Tom Tromey <tom@tromey.com>
1210
1211 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1212 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1213 declare.
1214 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1215
1216 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1217
1218 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1219 of partial symtabs.
1220
1221 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1222
1223 * regformats/reg-arm.dat: Remove.
1224 * regformats/reg-bfin.dat: Remove.
1225 * regformats/reg-cris.dat: Remove.
1226 * regformats/reg-crisv32.dat: Remove.
1227 * regformats/reg-m32r.dat: Remove.
1228 * regformats/reg-tilegx.dat: Remove.
1229 * regformats/reg-tilegx32.dat: Remove.
1230
1231 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1232
1233 * features/Makefile (WHICH): Remove arm files.
1234 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1235 * regformats/arm/arm-with-neon.dat: Remove.
1236 * regformats/arm/arm-with-vfpv2.dat: Remove.
1237 * regformats/arm/arm-with-vfpv3.dat: Remove.
1238
1239 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * features/Makefile (XMLTOC): Remove rx.xml.
1242
1243 2020-06-17 Pedro Alves <palves@redhat.com>
1244
1245 * gdbthread.h (thread_control_state) <trap_expected> Update
1246 comments.
1247
1248 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1251 ada_language::lookup_symbol_nonlocal.
1252 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1253 (ada_language::lookup_symbol_nonlocal): New member function,
1254 implementation from ada_lookup_symbol_nonlocal.
1255 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1256 initializer.
1257 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1258 initializer.
1259 (cplus_language::lookup_symbol_nonlocal): New member function.
1260 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1261 (minimal_language_data) Likewise.
1262 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1263 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1264 initializer.
1265 (d_language::lookup_symbol_nonlocal): New member function.
1266 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1267 initializer.
1268 (f_language::lookup_symbol_nonlocal): New member function.
1269 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1270 initializer.
1271 * language.c (unknown_language_data): Likewise.
1272 (auto_language_data): Likewise.
1273 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1274 field.
1275 (language_defn::lookup_symbol_nonlocal): New member function.
1276 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1277 initializer.
1278 * objc-lang.c (objc_language_data): Likewise.
1279 * opencl-lang.c (opencl_language_data): Likewise.
1280 * p-lang.c (pascal_language_data): Likewise.
1281 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1282 rust_language::lookup_symbol_nonlocal.
1283 (rust_language_data): Delete la_lookup_symbol_nonlocal
1284 initializer.
1285 (rust_language::lookup_symbol_nonlocal): New member function,
1286 implementation from rust_lookup_symbol_nonlocal.
1287 * symtab.c (lookup_symbol_aux): Update call to
1288 lookup_symbol_nonlocal.
1289 (basic_lookup_symbol_nonlocal): Rename to...
1290 (language_defn::lookup_symbol_nonlocal): ...this, and update
1291 header comment. Remove language_defn parameter, and replace with
1292 uses of `this'.
1293 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1294
1295 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1298 initializer.
1299 (ada_language::value_print_inner): New member function.
1300 * c-lang.c (c_language_data): Delete la_value_print_inner
1301 initializer.
1302 (cplus_language_data): Likewise.
1303 (asm_language_data): Likewise.
1304 (minimal_language_data): Likewise.
1305 * d-lang.c (d_language_data): Likewise.
1306 (d_language::value_print_inner): New member function.
1307 * f-lang.c (f_language_data): Delete la_value_print_inner
1308 initializer.
1309 (f_language::value_print_inner): New member function.
1310 * f-lang.h (f_value_print_innner): Rename to...
1311 (f_value_print_inner): ...this (note spelling of 'inner').
1312 * f-valprint.c (f_value_print_innner): Rename to...
1313 (f_value_print_inner): ...this (note spelling of 'inner').
1314 * go-lang.c (go_language_data): Delete la_value_print_inner
1315 initializer.
1316 (go_language::value_print_inner): New member function.
1317 * language.c (language_defn::value_print_inner): Define new member
1318 function.
1319 (unk_lang_value_print_inner): Delete.
1320 (unknown_language_data): Delete la_value_print_inner initializer.
1321 (unknown_language::value_print_inner): New member function.
1322 (auto_language_data): Delete la_value_print_inner initializer.
1323 (auto_language::value_print_inner): New member function.
1324 * language.h (language_data): Delete la_value_print_inner field.
1325 (language_defn::value_print_inner): Delcare new member function.
1326 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1327 initializer.
1328 (m2_language::value_print_inner): New member function.
1329 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1330 initializer.
1331 * opencl-lang.c (opencl_language_data): Likewise.
1332 * p-lang.c (pascal_language_data): Likewise.
1333 (pascal_language::value_print_inner): New member function.
1334 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1335 initializer.
1336 (rust_language::value_print_inner): New member function.
1337 * valprint.c (do_val_print): Update call to value_print_inner.
1338
1339 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * ada-lang.c (ada_language_data): Delete la_value_print
1342 initializer.
1343 (ada_language::value_print): New member function.
1344 * c-lang.c (c_language_data): Delete la_value_print initializer.
1345 (cplus_language_data): Likewise.
1346 (asm_language_data): Likewise.
1347 (minimal_language_data): Likewise.
1348 * d-lang.c (d_language_data): Likewise.
1349 * f-lang.c (f_language_data): Likewise.
1350 * go-lang.c (go_language_data): Likewise.
1351 * language.c (unk_lang_value_print): Delete.
1352 (language_defn::value_print): Define new member function.
1353 (unknown_language_data): Delete la_value_print initializer.
1354 (unknown_language::value_print): New member function.
1355 (auto_language_data): Delete la_value_print initializer.
1356 (auto_language::value_print): New member function.
1357 * language.h (language_data): Delete la_value_print field.
1358 (language_defn::value_print): Declare new member function.
1359 (LA_VALUE_PRINT): Update call to value_print.
1360 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1361 * objc-lang.c (objc_language_data): Likewise.
1362 * opencl-lang.c (opencl_language_data): Likewise.
1363 * p-lang.c (pascal_language_data): Likewise.
1364 (pascal_language::value_print): New member function.
1365 * rust-lang.c (rust_language_data): Delete la_value_print
1366 initializer.
1367
1368 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * ada-lang.c (ada_watch_location_expression): Rename to
1371 ada_language::watch_location_expression.
1372 (ada_language_data): Delete la_watch_location_expression
1373 initializer.
1374 (ada_language::watch_location_expression): New member function,
1375 implementation from ada_watch_location_expression.
1376 * breakpoint.c (watch_command_1): Update call to
1377 watch_location_expression.
1378 * c-lang.c (c_watch_location_expression): Rename to
1379 language_defn::watch_location_expression.
1380 (c_language_data): Delete la_watch_location_expression
1381 initializer.
1382 (cplus_language_data): Likewise.
1383 (asm_language_data): Likewise.
1384 (minimal_language_data): Likewise.
1385 * c-lang.h (c_watch_location_expression): Delete declaration.
1386 * d-lang.c (d_language_data): Delete la_watch_location_expression
1387 initializer.
1388 * f-lang.c (f_language_data): Likewise.
1389 * go-lang.c (go_language_data): Likewise.
1390 * language.c (language_defn::watch_location_expression): Member
1391 function implementation from c_watch_location_expression.
1392 (unknown_language_data): Delete la_watch_location_expression
1393 initializer.
1394 (auto_language_data): Likewise.
1395 * language.h (language_data): Delete la_watch_location_expression
1396 field.
1397 (language_defn::watch_location_expression): Declare new member
1398 function.
1399 * m2-lang.c (m2_language_data): Delete
1400 la_watch_location_expression initializer.
1401 * objc-lang.c (objc_language_data): Likewise.
1402 * opencl-lang.c (opencl_language_data): Likewise.
1403 * p-lang.c (pascal_language_data): Likewise.
1404 * rust-lang.c (rust_watch_location_expression): Rename to
1405 rust_language::watch_location_expression.
1406 (rust_language_data): Delete la_watch_location_expression
1407 initializer.
1408 (rust_language::watch_location_expression): New member function,
1409 implementation from rust_watch_location_expression.
1410
1411 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1414 ada_language::collect_symbol_completion_matches.
1415 (ada_language_data): Delete la_collect_symbol_completion_matches
1416 initializer.
1417 (ada_language::collect_symbol_completion_matches): New member
1418 function, implementation from
1419 ada_collect_symbol_completion_matches.
1420 * c-lang.c (c_language_data): Delete
1421 la_collect_symbol_completion_matches initializer.
1422 (cplus_language_data): Likewise.
1423 (asm_language_data): Likewise.
1424 (minimal_language_data): Likewise.
1425 * d-lang.c (d_language_data): Likewise.
1426 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1427 f_language::collect_symbol_completion_matches.
1428 (f_language_data): Delete la_collect_symbol_completion_matches
1429 initializer.
1430 (f_language::collect_symbol_completion_matches) New member
1431 function, implementation from f_collect_symbol_completion_matches.
1432 * go-lang.c (go_language_data): Delete
1433 la_collect_symbol_completion_matches initializer.
1434 * language.c (unknown_language_data): Likewise.
1435 (auto_language_data): Likewise.
1436 * language.h (language_data): Delete
1437 la_collect_symbol_completion_matches field.
1438 (language_defn::collect_symbol_completion_matches): New member
1439 function.
1440 * m2-lang.c (m2_language_data): Delete
1441 la_collect_symbol_completion_matches initializer.
1442 * objc-lang.c (objc_language_data): Likewise.
1443 * opencl-lang.c (opencl_language_data): Likewise.
1444 * p-lang.c (pascal_language_data): Likewise.
1445 * rust-lang.c (rust_language_data): Likewise.
1446 * symtab.c (default_collect_symbol_completion_matches): Delete.
1447 (collect_symbol_completion_matches): Update call to
1448 collect_symbol_completion_matches.
1449 (collect_symbol_completion_matches_type): Likewise.
1450 * symtab.h (default_collect_symbol_completion_matches): Delete
1451 declaration.
1452
1453 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1456 (ada_language_data): Delete la_word_break_characters initializer.
1457 (ada_language::word_break_characters): New member function.
1458 * c-lang.c (c_language_data): Delete la_word_break_characters
1459 initializer.
1460 (cplus_language_data): Likewise.
1461 (asm_language_data): Likewise.
1462 (minimal_language_data): Likewise.
1463 * completer.c: Update global comment.
1464 (advance_to_expression_complete_word_point): Update call to
1465 word_break_characters.
1466 (complete_files_symbols): Likewise.
1467 (complete_line_internal_1): Likewise.
1468 (default_completer_handle_brkchars): Likewise.
1469 (skip_quoted_chars): Likewise.
1470 * d-lang.c (d_language_data): Delete la_word_break_characters
1471 initializer.
1472 * f-lang.c (f_word_break_characters): Delete.
1473 (f_language_data): Delete la_word_break_characters initializer.
1474 (f_language::word_break_characters): New member function.
1475 * go-lang.c (go_language_data): Delete la_word_break_characters
1476 initializer.
1477 * language.c (unknown_language_data): Likewise.
1478 (auto_language_data): Likewise.
1479 * language.h (default_word_break_characters): Move declaration to
1480 earlier in the file.
1481 (language_data): Delete la_word_break_characters field.
1482 (language_defn::word_break_characters): New member function.
1483 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1484 initializer.
1485 * objc-lang.c (objc_language_data): Likewise.
1486 * opencl-lang.c (opencl_language_data): Likewise.
1487 * p-lang.c (pascal_language_data): Likewise.
1488 * rust-lang.c (rust_language_data): Likewise.
1489
1490 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1493 (ada_language_data): Delete la_get_symbol_name_matcher
1494 initializer.
1495 (language_defn::get_symbol_name_matcher_inner): New member
1496 function.
1497 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1498 initializer.
1499 (cplus_language_data): Likewise.
1500 (cplus_language::get_symbol_name_matcher_inner): New member
1501 function.
1502 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1503 (minimal_language_data): Likewise.
1504 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1505 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1506 initializer.
1507 * dictionary.c (iter_match_first_hashed): Update call to
1508 get_symbol_name_matcher.
1509 (iter_match_next_hashed): Likewise.
1510 (iter_match_next_linear): Likewise.
1511 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1512 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1513 initializer.
1514 (f_language::get_symbol_name_matcher_inner): New member function.
1515 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1516 initializer.
1517 * language.c (default_symbol_name_matcher): Update header comment,
1518 make static.
1519 (language_defn::get_symbol_name_matcher): New definition.
1520 (language_defn::get_symbol_name_matcher_inner): Likewise.
1521 (get_symbol_name_matcher): Delete.
1522 (unknown_language_data): Delete la_get_symbol_name_matcher
1523 initializer.
1524 (auto_language_data): Likewise.
1525 * language.h (language_data): Delete la_get_symbol_name_matcher
1526 field.
1527 (language_defn::get_symbol_name_matcher): New member function.
1528 (language_defn::get_symbol_name_matcher_inner): Likewise.
1529 (default_symbol_name_matcher): Delete declaration.
1530 * linespec.c (find_methods): Update call to
1531 get_symbol_name_matcher.
1532 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1533 initializer.
1534 * minsyms.c (lookup_minimal_symbol): Update call to
1535 get_symbol_name_matcher.
1536 (iterate_over_minimal_symbols): Likewise.
1537 * objc-lang.c (objc_language_data): Delete
1538 la_get_symbol_name_matcher initializer.
1539 * opencl-lang.c (opencl_language_data): Likewise.
1540 * p-lang.c (pascal_language_data): Likewise.
1541 * psymtab.c (psymbol_name_matches): Update call to
1542 get_symbol_name_matcher.
1543 * rust-lang.c (rust_language_data): Delete
1544 la_get_symbol_name_matcher initializer.
1545 * symtab.c (symbol_matches_search_name): Update call to
1546 get_symbol_name_matcher.
1547 (compare_symbol_name): Likewise.
1548
1549 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * ada-lang.c (ada_language_data): Delete la_compute_program
1552 initializer.
1553 * c-lang.c (c_language_data): Likewise.
1554 (c_language::compute_program): New member function.
1555 (cplus_language_data): Delete la_compute_program initializer.
1556 (cplus_language::compute_program): New member function.
1557 (asm_language_data): Delete la_compute_program initializer.
1558 (minimal_language_data): Likewise.
1559 * c-lang.h (c_compute_program): Update comment.
1560 (cplus_compute_program): Likewise.
1561 * compile/compile-c-support.c (c_compute_program): Likewise.
1562 (cplus_compute_program): Likewise.
1563 * compile/compile.c (compile_to_object): Update call to
1564 la_compute_program.
1565 * d-lang.c (d_language_data): Delete la_compute_program
1566 initializer.
1567 * f-lang.c (f_language_data): Likewise.
1568 * go-lang.c (go_language_data): Likewise.
1569 * language.c (unknown_language_data): Likewise.
1570 (auto_language_data): Likewise.
1571 * language.h (language_data): Delete la_compute_program field.
1572 (language_defn::compute_program): New member function.
1573 * m2-lang.c (m2_language_data): Delete la_compute_program
1574 initializer.
1575 * objc-lang.c (objc_language_data): Likewise.
1576 * opencl-lang.c (opencl_language_data): Likewise.
1577 * p-lang.c (pascal_language_data): Likewise.
1578 * rust-lang.c (rust_language_data): Likewise.
1579
1580 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * ada-lang.c (ada_language_data) Delete
1583 la_class_name_from_physname initializer.
1584 * c-lang.c (c_language_data): Likewise.
1585 (cplus_language_data): Likewise.
1586 (cplus_language::class_name_from_physname): New member function.
1587 (asm_language_data): Delete la_class_name_from_physname
1588 initializer.
1589 (minimal_language_data): Likewise.
1590 * d-lang.c (d_language_data): Likewise.
1591 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1592 method on language_defn class.
1593 (guess_full_die_structure_name): Likewise.
1594 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1595 initializer.
1596 * go-lang.c (go_language_data): Likewise.
1597 * language.c (language_class_name_from_physname): Delete.
1598 (unk_lang_class_name): Delete.
1599 (unknown_language_data): Delete la_class_name_from_physname
1600 initializer.
1601 (auto_language_data): Likewise.
1602 * language.h (language_data): Delete la_class_name_from_physname
1603 field.
1604 (language_defn::class_name_from_physname): New function.
1605 (language_class_name_from_physname): Delete declaration.
1606 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1607 initializer.
1608 * objc-lang.c (objc_language_data): Likewise.
1609 * opencl-lang.c (opencl_language_data): Likewise.
1610 * p-lang.c (pascal_language_data): Likewise.
1611 * rust-lang.c (rust_language_data): Likewise.
1612
1613 2020-06-16 Tom Tromey <tom@tromey.com>
1614
1615 * tui/tui-data.h (STATUS_NAME): New macro.
1616 * tui/tui-layout.c (tui_remove_some_windows)
1617 (initialize_known_windows, tui_register_window)
1618 (tui_layout_split::remove_windows, initialize_layouts)
1619 (tui_new_layout_command): Don't use hard-coded window names.
1620
1621 2020-06-16 Tom Tromey <tom@tromey.com>
1622
1623 PR tui/25348:
1624 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1625 tui_initialize_readline. Only run once. Call rl_initialize.
1626 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1627 tui_initialize_readline.
1628 * tui/tui-io.c (tui_setup_io): Call
1629 tui_ensure_readline_initialized.
1630 * tui/tui-interp.c (tui_interp::init): Update.
1631
1632 2020-06-16 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1635 Also preserve the status window.
1636
1637 2020-06-16 Tom Tromey <tom@tromey.com>
1638
1639 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1640 where m_window==nullptr.
1641
1642 2020-06-15 Tom Tromey <tromey@adacore.com>
1643
1644 * windows-nat.c (windows_nat::handle_output_debug_string):
1645 Update.
1646 (windows_nat::handle_ms_vc_exception): Update.
1647 * target.h (target_read_string): Change API.
1648 * target.c (target_read_string): Change API.
1649 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1650 Update.
1651 * solib-frv.c (frv_current_sos): Update.
1652 * solib-dsbt.c (dsbt_current_sos): Update.
1653 * solib-darwin.c (darwin_current_sos): Update.
1654 * linux-thread-db.c (inferior_has_bug): Update.
1655 * expprint.c (print_subexp_standard): Update.
1656 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1657 (ada_exception_message_1): Update.
1658
1659 2020-06-15 Tom Tromey <tromey@adacore.com>
1660
1661 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1662
1663 2020-06-15 Tom Tromey <tromey@adacore.com>
1664
1665 * valprint.c (read_string): Update comment.
1666 * target.c (MIN): Remove.
1667 (target_read_string): Rewrite.
1668
1669 2020-06-15 Tom Tromey <tromey@adacore.com>
1670
1671 * corefile.c (read_memory_string): Remove.
1672 * ada-valprint.c (ada_value_print_ptr): Update.
1673 * ada-lang.h (ada_tag_name): Change return type.
1674 * ada-lang.c (type_from_tag): Update.
1675 (ada_tag_name_from_tsd): Change return type. Use
1676 target_read_string.
1677 (ada_tag_name): Likewise.
1678 * gdbcore.h (read_memory_string): Don't declare.
1679
1680 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
1681
1682 * symtab.c (rbreak_command): Ignore Windows drive colon.
1683
1684 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
1685
1686 * NEWS: Mention removed GDBserver host support.
1687
1688 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
1689
1690 * features/riscv/rebuild-csr-xml.sh: Updated.
1691
1692 2020-06-11 Tom Tromey <tom@tromey.com>
1693
1694 PR gdb/18318:
1695 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1696
1697 2020-06-09 Jonny Grant <jg@jguk.org>
1698 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1699
1700 * main.c (captured_main_1): Don't print new line after help.
1701 (print_gdb_help): add mailing list and IRC channel information
1702 to --help. Add new lines between items in the footer. Remove
1703 quotes around bug url.
1704
1705 2020-06-11 Keith Seitz <keiths@redhat.com>
1706
1707 PR gdb/21356
1708 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1709 Resolve typedefs for type length calculations.
1710
1711 2020-06-10 Tom de Vries <tdevries@suse.de>
1712
1713 PR ada/24713
1714 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1715 (write_psymbols): Enable .gdb_index for ada.
1716 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1717 ada.
1718
1719 2020-06-10 Tom de Vries <tdevries@suse.de>
1720
1721 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1722 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1723 namei" instead of "const char *name" argument.
1724 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1725 dw2_symtab_iter_init.
1726
1727 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1728
1729 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1730 to use type::field and field::type instead.
1731
1732 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1733
1734 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1735 to use field::type instead.
1736
1737 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1738
1739 * gdbtypes.h (struct field) <type, set_type>: New methods.
1740 Rename `type` field to...
1741 <m_type>: ... this. Change references throughout to use type or
1742 set_type methods.
1743 (FIELD_TYPE): Use field::type. Change call sites that modify
1744 the field's type to use field::set_type instead.
1745
1746 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1747
1748 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1749 to use type::index_type instead.
1750
1751 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1752
1753 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1754 methods.
1755 (TYPE_INDEX_TYPE): Use type::index_type.
1756 * gdbtypes.c (create_array_type_with_stride): Likewise.
1757
1758 2020-06-07 Tom Tromey <tom@tromey.com>
1759
1760 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1761 parameter.
1762 (generic_value_print): Update.
1763
1764 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 Revert commit 982a38f60b0.
1767 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1768
1769 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1770
1771 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1772 avoid use after free.
1773
1774 2020-06-05 Tom de Vries <tdevries@suse.de>
1775
1776 * NEWS: Fix typos.
1777
1778 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1781 the per_bfd object.
1782 (dwarf2_read_debug_names): Likewise.
1783 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1784 object when re-using a per_bfd object with an index.
1785
1786 2020-06-03 Tom de Vries <tdevries@suse.de>
1787
1788 PR symtab/26046
1789 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1790 children for C++.
1791 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1792 DW_TAG_subprogram.
1793
1794 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * ada-lang.c (ada_language_data): Delete skip_trampoline
1797 initializer.
1798 * c-lang.c (c_language_data): Likewise.
1799 (cplus_language_data): Likewise.
1800 (cplus_language::skip_trampoline): New member function.
1801 (asm_language_data): Delete skip_trampoline initializer.
1802 (minimal_language_data): Likewise.
1803 * d-lang.c (d_language_data): Likewise.
1804 * f-lang.c (f_language_data): Likewise.
1805 * go-lang.c (go_language_data): Likewise.
1806 * language.c (unk_lang_trampoline): Delete function.
1807 (skip_language_trampoline): Update.
1808 (unknown_language_data): Delete skip_trampoline initializer.
1809 (auto_language_data): Likewise.
1810 * language.h (language_data): Delete skip_trampoline field.
1811 (language_defn::skip_trampoline): New function.
1812 * m2-lang.c (m2_language_data): Delete skip_trampoline
1813 initializer.
1814 * objc-lang.c (objc_skip_trampoline): Delete function, move
1815 implementation to objc_language::skip_trampoline.
1816 (objc_language_data): Delete skip_trampoline initializer.
1817 (objc_language::skip_trampoline): New member function with
1818 implementation from objc_skip_trampoline.
1819 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1820 initializer.
1821 * p-lang.c (pascal_language_data): Likewise.
1822 * rust-lang.c (rust_language_data): Likewise.
1823
1824 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1825
1826 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1827 (ada_language::demangle): New member function.
1828 * c-lang.c (c_language_data): Delete la_demangle initializer.
1829 (cplus_language_data): Delete la_demangle initializer.
1830 (cplus_language::demangle): New member function.
1831 (asm_language_data): Delete la_demangle initializer.
1832 (minimal_language_data): Delete la_demangle initializer.
1833 * d-lang.c (d_language_data): Delete la_demangle initializer.
1834 (d_language::demangle): New member function.
1835 * f-lang.c (f_language_data): Delete la_demangle initializer.
1836 (f_language::demangle): New member function.
1837 * go-lang.c (go_language_data): Delete la_demangle initializer.
1838 (go_language::demangle): New member function.
1839 * language.c (language_demangle): Update.
1840 (unk_lang_demangle): Delete.
1841 (unknown_language_data): Delete la_demangle initializer.
1842 (unknown_language::demangle): New member function.
1843 (auto_language_data): Delete la_demangle initializer.
1844 (auto_language::demangle): New member function.
1845 * language.h (language_data): Delete la_demangle field.
1846 (language_defn::demangle): New function.
1847 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1848 * objc-lang.c (objc_language_data): Delete la_demangle
1849 initializer.
1850 (objc_language::demangle): New member function.
1851 * opencl-lang.c (opencl_language_data): Delete la_demangle
1852 initializer.
1853 * p-lang.c (pascal_language_data): Likewise.
1854 * rust-lang.c (rust_language_data): Likewise.
1855 (rust_language::demangle): New member function.
1856
1857 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1858
1859 * ada-lang.c (ada_language_data): Delete la_print_type
1860 initializer.
1861 (ada_language::print_type): New member function.
1862 * c-lang.c (c_language_data): Delete la_print_type initializer.
1863 (c_language::print_type): New member function.
1864 (cplus_language_data): Delete la_print_type initializer.
1865 (cplus_language::print_type): New member function.
1866 (asm_language_data): Delete la_print_type initializer.
1867 (asm_language::print_type): New member function.
1868 (minimal_language_data): Delete la_print_type initializer.
1869 (minimal_language::print_type): New member function.
1870 * d-lang.c (d_language_data): Delete la_print_type initializer.
1871 (d_language::print_type): New member function.
1872 * f-lang.c (f_language_data): Delete la_print_type initializer.
1873 (f_language::print_type): New member function.
1874 * go-lang.c (go_language_data): Delete la_print_type initializer.
1875 (go_language::print_type): New member function.
1876 * language.c (unk_lang_print_type): Delete.
1877 (unknown_language_data): Delete la_print_type initializer.
1878 (unknown_language::print_type): New member function.
1879 (auto_language_data): Delete la_print_type initializer.
1880 (auto_language::print_type): New member function.
1881 * language.h (language_data): Delete la_print_type field.
1882 (language_defn::print_type): New function.
1883 (LA_PRINT_TYPE): Update.
1884 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1885 (m2_language::print_type): New member function.
1886 * objc-lang.c (objc_language_data): Delete la_print_type
1887 initializer.
1888 (objc_language::print_type): New member function.
1889 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1890 to opencl_language::print_type.
1891 (opencl_language_data): Delete la_print_type initializer.
1892 (opencl_language::print_type): New member function, implementation
1893 from opencl_print_type.
1894 * p-lang.c (pascal_language_data): Delete la_print_type
1895 initializer.
1896 (pascal_language::print_type): New member function.
1897 * rust-lang.c (rust_print_type): Delete, implementation moved to
1898 rust_language::print_type.
1899 (rust_language_data): Delete la_print_type initializer.
1900 (rust_language::print_type): New member function, implementation
1901 from rust_print_type.
1902
1903 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1904
1905 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1906 implementation moves to...
1907 (ada_language::sniff_from_mangled_name): ...here. Update return
1908 type.
1909 (ada_language_data): Delete la_sniff_from_mangled_name
1910 initializer.
1911 * c-lang.c (c_language_data): Likewise.
1912 (cplus_language_data): Likewise.
1913 (cplus_language::sniff_from_mangled_name): New member function,
1914 implementation taken from gdb_sniff_from_mangled_name.
1915 (asm_language_data): Delete la_sniff_from_mangled_name
1916 initializer.
1917 (minimal_language_data): Likewise.
1918 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1919 implementation moves to cplus_language::sniff_from_mangled_name.
1920 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1921 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1922 moves to...
1923 (d_language::sniff_from_mangled_name): ...here.
1924 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1925 * f-lang.c (f_language_data): Likewise.
1926 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1927 moves to...
1928 (go_language::sniff_from_mangled_name): ...here.
1929 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1930 * language.c (language_sniff_from_mangled_name): Delete.
1931 (unknown_language_data): Delete la_sniff_from_mangled_name
1932 initializer.
1933 (auto_language_data): Likewise.
1934 * language.h (language_data): Delete la_sniff_from_mangled_name
1935 field.
1936 (language_defn::sniff_from_mangled_name): New function.
1937 (language_sniff_from_mangled_name): Delete declaration.
1938 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1939 field.
1940 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1941 implementation moves to...
1942 (objc_language::sniff_from_mangled_name): ...here.
1943 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1944 * opencl-lang.c (opencl_language_data): Likewise.
1945 * p-lang.c (pascal_language_data): Likewise.
1946 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1947 implementation moves to...
1948 (rust_language::sniff_from_mangled_name): ...here.
1949 (rust_language_data): Delete la_sniff_from_mangled_name
1950 initializer.
1951 * symtab.c (symbol_find_demangled_name): Call
1952 sniff_from_mangled_name member function.
1953
1954 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1955
1956 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1957 initializer.
1958 * c-lang.c (c_language_data): Likewise.
1959 (cplus_language_data): Likewise.
1960 (cplus_language::search_name_hash): New member function.
1961 (asm_language_data): Delete la_search_name_hash initializer.
1962 (minimal_language_data): Likewise.
1963 * d-lang.c (d_language_data): Likewise.
1964 * dictionary.c (default_search_name_hash): Rename to...
1965 (language_defn::search_name_hash): ...this.
1966 * f-lang.c (f_language_data): Likewise.
1967 (f_language::search_name_hash): New member function.
1968 * go-lang.c (go_language_data): Delete la_search_name_hash
1969 initializer.
1970 * language.c (unknown_language_data): Likewise.
1971 (auto_language_data): Likewise.
1972 * language.h (struct language_data): Delete la_search_name_hash
1973 field.
1974 (language_defn::search_name_hash): Declare new member function.
1975 (default_search_name_hash): Delete declaration.
1976 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1977 initializer.
1978 * objc-lang.c (objc_language_data): Likewise.
1979 * opencl-lang.c (opencl_language_data): Likewise.
1980 * p-lang.c (pascal_language_data): Likewise.
1981 * rust-lang.c (rust_language_data): Likewise.
1982 * symtab.c (search_name_hash): Update call.
1983
1984 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1987 initializer.
1988 * c-lang.c (class compile_instance): Declare.
1989 (c_language_data): Delete la_get_compile_instance initializer.
1990 (c_language::get_compile_instance): New member function.
1991 (cplus_language_data): Delete la_get_compile_instance initializer.
1992 (cplus_language::get_compile_instance): New member function.
1993 (asm_language_data): Delete la_get_compile_instance initializer.
1994 (minimal_language_data): Likewise.
1995 * c-lang.h (c_get_compile_context): Update comment.
1996 (cplus_get_compile_context): Update comment.
1997 * compile/compile.c (compile_to_object): Update calls, don't rely
1998 on function pointer being NULL.
1999 * d-lang.c (d_language_data): Delete la_get_compile_instance
2000 initializer.
2001 * f-lang.c (f_language_data): Likewise.
2002 * go-lang.c (go_language_data): Likewise.
2003 * language.c (unknown_language_data): Likewise.
2004 (auto_language_data): Likewise.
2005 * language.h (language_data): Delete la_get_compile_instance field.
2006 (language_defn::get_compile_instance): New member function.
2007 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2008 initializer.
2009 * objc-lang.c (objc_language_data): Likewise.
2010 * opencl-lang.c (opencl_language_data): Likewise.
2011 * p-lang.c (pascal_language_data): Likewise.
2012 * rust-lang.c (rust_language_data): Likewise.
2013
2014 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * ada-lang.c (ada_add_all_symbols): Update comment.
2017 (ada_iterate_over_symbols): Delete, move implementation to...
2018 (ada_language::iterate_over_symbols): ...here, a new member
2019 function, rewrite to use range based for loop.
2020 (ada_language_data): Delete la_iterate_over_symbols initializer.
2021 * c-lang.c (c_language_data): Likewise.
2022 (cplus_language_data): Likewise.
2023 (asm_language_data): Likewise.
2024 (minimal_language_data): Likewise.
2025 * d-lang.c (d_language_data): Likewise.
2026 * f-lang.c (f_language_data): Likewise.
2027 * go-lang.c (go_language_data): Likewise.
2028 * language.c (unknown_language_data): Likewise.
2029 (auto_language_data): Likewise.
2030 * language.h (language_data): Delete la_iterate_over_symbols field.
2031 (language_defn::iterate_over_symbols): New member function.
2032 (LA_ITERATE_OVER_SYMBOLS): Update.
2033 * linespec.c (iterate_over_all_matching_symtabs): Update.
2034 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2035 initializer.
2036 * objc-lang.c (objc_language_data): Likewise.
2037 * opencl-lang.c (opencl_language_data): Likewise.
2038 * p-lang.c (pascal_language_data): Likewise.
2039 * rust-lang.c (rust_language_data): Likewise.
2040
2041 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * ada-lang.c (ada_language_data): Delete
2044 la_lookup_transparent_type initializer.
2045 * c-lang.c (c_language_data): Likewise.
2046 (cplus_language_data): Likewise.
2047 (cplus_language::lookup_transparent_type): New member function.
2048 (asm_language_data): Delete la_lookup_transparent_type
2049 initializer.
2050 (minimal_language_data): Likewise.
2051 * d-lang.c (d_language_data): Likewise.
2052 * f-lang.c (f_language_data): Likewise.
2053 * go-lang.c (go_language_data): Likewise.
2054 * language.c (unknown_language_data): Likewise.
2055 (auto_language_data): Likewise.
2056 * language.h (struct language_data): Delete
2057 la_lookup_transparent_type field.
2058 (language_defn::lookup_transparent_type): New member function.
2059 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2060 initializer.
2061 * objc-lang.c (objc_language_data): Likewise.
2062 * opencl-lang.c (opencl_language_data): Likewise.
2063 * p-lang.c (pascal_language_data): Likewise.
2064 * rust-lang.c (rust_language_data): Likewise.
2065 * symtab.c (symbol_matches_domain): Update call.
2066
2067 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * ada-lang.c (ada_language_arch_info): Delete function, move
2070 implementation to...
2071 (ada_language::language_arch_info): ...here, a new member
2072 function.
2073 (ada_language_data): Delete la_language_arch_info.
2074 * c-lang.c (c_language_data): Likewise.
2075 (c_language::language_arch_info): New member function.
2076 (cplus_language_arch_info): Delete function, move
2077 implementation to...
2078 (cplus_language::language_arch_info): ...here, a new member
2079 function.
2080 (cplus_language_data): Delete la_language_arch_info.
2081 (asm_language_data): Likewise.
2082 (asm_language::language_arch_info): New member function.
2083 (minimal_language_data): Delete la_language_arch_info.
2084 (minimal_language::language_arch_info): New member function.
2085 * d-lang.c (d_language_arch_info): Delete function, move
2086 implementation to...
2087 (d_language::language_arch_info): ...here, a new member
2088 function.
2089 (d_language_data): Delete la_language_arch_info.
2090 * f-lang.c (f_language_arch_info): Delete function, move
2091 implementation to...
2092 (f_language::language_arch_info): ...here, a new member
2093 function.
2094 (f_language_data): Delete la_language_arch_info.
2095 * go-lang.c (go_language_arch_info): Delete function, move
2096 implementation to...
2097 (go_language::language_arch_info): ...here, a new member
2098 function.
2099 (go_language_data): Delete la_language_arch_info.
2100 * language.c (unknown_language_data): Likewise.
2101 (unknown_language::language_arch_info): New member function.
2102 (auto_language_data): Delete la_language_arch_info.
2103 (auto_language::language_arch_info): New member function.
2104 (language_gdbarch_post_init): Update call to
2105 la_language_arch_info.
2106 * language.h (language_data): Delete la_language_arch_info
2107 function pointer.
2108 (language_defn::language_arch_info): New function.
2109 * m2-lang.c (m2_language_arch_info): Delete function, move
2110 implementation to...
2111 (m2_language::language_arch_info): ...here, a new member
2112 function.
2113 (m2_language_data): Delete la_language_arch_info.
2114 * objc-lang.c (objc_language_arch_info): Delete function, move
2115 implementation to...
2116 (objc_language::language_arch_info): ...here, a new member
2117 function.
2118 (objc_language_data): Delete la_language_arch_info.
2119 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2120 implementation to...
2121 (opencl_language::language_arch_info): ...here, a new member
2122 function.
2123 (opencl_language_data): Delete la_language_arch_info.
2124 * p-lang.c (pascal_language_arch_info): Delete function, move
2125 implementation to...
2126 (pascal_language::language_arch_info): ...here, a new member
2127 function.
2128 (pascal_language_data): Delete la_language_arch_info.
2129 * rust-lang.c (rust_language_arch_info): Delete function, move
2130 implementation to...
2131 (rust_language::language_arch_info): ...here, a new member
2132 function.
2133 (rust_language_data): Delete la_language_arch_info.
2134
2135 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2138 initializer.
2139 * c-lang.c (c_language_data): Likewise.
2140 (cplus_language_data): Likewise.
2141 (cplus_language::pass_by_reference_info): New method.
2142 (asm_language_data): Delete la_pass_by_reference initializer.
2143 (minimal_language_data): Likewise.
2144 * cp-abi.c (cp_pass_by_reference): Remove use of
2145 default_pass_by_reference.
2146 * d-lang.c (d_language_data): Likewise.
2147 * f-lang.c (f_language_data): Likewise.
2148 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2149 default_pass_by_reference.
2150 * go-lang.c (go_language_data): Likewise.
2151 * language.c (language_pass_by_reference): Update.
2152 (default_pass_by_reference): Delete.
2153 (unknown_language_data): Delete la_pass_by_reference
2154 initializer.
2155 (auto_language_data): Likewise.
2156 * language.h (struct language_data): Delete la_pass_by_reference
2157 field.
2158 (language_defn::pass_by_reference_info): New member function.
2159 (default_pass_by_reference): Delete declaration.
2160 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2161 initializer.
2162 * objc-lang.c (objc_language_data): Likewise.
2163 * opencl-lang.c (opencl_language_data): Likewise.
2164 * p-lang.c (pascal_language_data): Likewise.
2165 * rust-lang.c (rust_language_data): Likewise.
2166
2167 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * ada-lang.c (ada_read_var_value): Delete function, move
2170 implementation to...
2171 (ada_language::read_var_value): ...here.
2172 (ada_language_data): Delete la_read_var_value initializer.
2173 * c-lang.c (c_language_data): Likewise.
2174 (cplus_language_data): Likewise.
2175 (minimal_language_data): Likewise.
2176 * d-lang.c (d_language_data): Likewise.
2177 * f-lang.c (f_language_data): Likewise.
2178 * findvar.c (default_read_var_value): Rename to...
2179 (language_defn::read_var_value): ...this.
2180 * findvar.c (read_var_value): Update header comment, and change to
2181 call member function instead of function pointer.
2182 * go-lang.c (go_language_data): Likewise.
2183 * language.c (unknown_language_data): Delete la_read_var_value
2184 initializer.
2185 (auto_language_data): Likewise.
2186 * language.h (struct language_data): Delete la_read_var_value
2187 field.
2188 (language_defn::read_var_value): New member function.
2189 (default_read_var_value): Delete declaration.
2190 * m2-lang.c (m2_language_data): Delete la_read_var_value
2191 initializer.
2192 * objc-lang.c (objc_language_data): Likewise.
2193 * opencl-lang.c (opencl_language_data): Likewise.
2194 * p-lang.c (pascal_language_data): Likewise.
2195 * rust-lang.c (rust_language_data): Likewise.
2196 * value.h (default_read_var_value): Delete declaration.
2197
2198 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * ada-lang.c (ada_print_array_index): Delete function, move
2201 implementation to...
2202 (ada_language::print_array_index): ...here.
2203 (ada_language_data): Delete la_print_array_index initializer.
2204 * c-lang.c (c_language_data): Likewise.
2205 (cplus_language_data): Likewise.
2206 (minimal_language_data): Likewise.
2207 * d-lang.c (d_language_data): Likewise.
2208 * f-lang.c (f_language_data): Likewise.
2209 * go-lang.c (go_language_data): Likewise.
2210 * language.c (default_print_array_index): Delete function, move
2211 implementation to...
2212 (language_defn::print_array_index): ...here.
2213 (unknown_language_data): Delete la_print_array_index initializer.
2214 (auto_language_data): Likewise.
2215 * language.h (struct language_data): Delete la_print_array_index
2216 field.
2217 (language_defn::print_array_index): New member function.
2218 (LA_PRINT_ARRAY_INDEX): Update.
2219 (default_print_array_index): Delete declaration.
2220 * m2-lang.c (m2_language_data): Delete la_print_array_index
2221 initializer.
2222 * objc-lang.c (objc_language_data): Likewise.
2223 * opencl-lang.c (opencl_language_data): Likewise.
2224 * p-lang.c (pascal_language_data): Likewise.
2225 * rust-lang.c (rust_language_data): Likewise.
2226
2227 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * gdb/ada-lang.c (ada_language_defn): Convert to...
2230 (ada_language_data): ...this.
2231 (class ada_language): New class.
2232 (ada_language_defn): New static global.
2233 * gdb/c-lang.c (c_language_defn): Convert to...
2234 (c_language_data): ...this.
2235 (class c_language): New class.
2236 (c_language_defn): New static global.
2237 (cplus_language_defn): Convert to...
2238 (cplus_language_data): ...this.
2239 (class cplus_language): New class.
2240 (cplus_language_defn): New static global.
2241 (asm_language_defn): Convert to...
2242 (asm_language_data): ...this.
2243 (class asm_language): New class.
2244 (asm_language_defn): New static global.
2245 (minimal_language_defn): Convert to...
2246 (minimal_language_data): ...this.
2247 (class minimal_language): New class.
2248 (minimal_language_defn): New static global.
2249 * gdb/d-lang.c (d_language_defn): Convert to...
2250 (d_language_data): ...this.
2251 (class d_language): New class.
2252 (d_language_defn): New static global.
2253 * gdb/f-lang.c (f_language_defn): Convert to...
2254 (f_language_data): ...this.
2255 (class f_language): New class.
2256 (f_language_defn): New static global.
2257 * gdb/go-lang.c (go_language_defn): Convert to...
2258 (go_language_data): ...this.
2259 (class go_language): New class.
2260 (go_language_defn): New static global.
2261 * gdb/language.c (unknown_language_defn): Remove declaration.
2262 (current_language): Initialize to nullptr, real initialization is
2263 moved to _initialize_language.
2264 (languages): Delete global.
2265 (language_defn::languages): Define.
2266 (set_language_command): Use language_defn::languages.
2267 (set_language): Likewise.
2268 (range_error): Likewise.
2269 (language_enum): Likewise.
2270 (language_def): Likewise.
2271 (add_set_language_command): Use language_def::languages for the
2272 language list, and language_def to lookup language pointers.
2273 (skip_language_trampoline): Use language_defn::languages.
2274 (unknown_language_defn): Convert to...
2275 (unknown_language_data): ...this.
2276 (class unknown_language): New class.
2277 (unknown_language_defn): New static global.
2278 (auto_language_defn): Convert to...
2279 (auto_language_data): ...this.
2280 (class auto_language): New class.
2281 (auto_language_defn): New static global.
2282 (language_gdbarch_post_init): Use language_defn::languages.
2283 (_initialize_language): Initialize current_language.
2284 * gdb/language.h (struct language_defn): Rename to...
2285 (struct language_data): ...this.
2286 (struct language_defn): New.
2287 (auto_language_defn): Delete.
2288 (unknown_language_defn): Delete.
2289 (minimal_language_defn): Delete.
2290 (ada_language_defn): Delete.
2291 (asm_language_defn): Delete.
2292 (c_language_defn): Delete.
2293 (cplus_language_defn): Delete.
2294 (d_language_defn): Delete.
2295 (f_language_defn): Delete.
2296 (go_language_defn): Delete.
2297 (m2_language_defn): Delete.
2298 (objc_language_defn): Delete.
2299 (opencl_language_defn): Delete.
2300 (pascal_language_defn): Delete.
2301 (rust_language_defn): Delete.
2302 * gdb/m2-lang.c (m2_language_defn): Convert to...
2303 (m2_language_data): ...this.
2304 (class m2_language): New class.
2305 (m2_language_defn): New static global.
2306 * gdb/objc-lang.c (objc_language_defn): Convert to...
2307 (objc_language_data): ...this.
2308 (class objc_language): New class.
2309 (objc_language_defn): New static global.
2310 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2311 (opencl_language_data): ...this.
2312 (class opencl_language): New class.
2313 (opencl_language_defn): New static global.
2314 * gdb/p-lang.c (pascal_language_defn): Convert to...
2315 (pascal_language_data): ...this.
2316 (class pascal_language): New class.
2317 (pascal_language_defn): New static global.
2318 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2319 language pointer, update comment format.
2320 * gdb/rust-lang.c (rust_language_defn): Convert to...
2321 (rust_language_data): ...this.
2322 (class rust_language): New class.
2323 (rust_language_defn): New static global.
2324
2325 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2328 member variable.
2329 <m_stmt_at_address>: New member variable.
2330 (lnp_state_machine::record_line): Don't record some lines, update
2331 tracking of is_stmt at the same address.
2332 (lnp_state_machine::lnp_state_machine): Initialise new member
2333 variables.
2334
2335 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2336
2337 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2338 "-include gnu-nat-mig.h".
2339 * gnu-nat-mig.h: New file.
2340 * gnu-nat.c: Include "gnu-nat-mig.h".
2341 (exc_server, msg_reply_server, notify_server,
2342 process_reply_server): Remove declarations.
2343
2344 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2345
2346 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2347 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2348 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2349 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2350 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2351 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2352 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2353 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2354 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2355 to gnu_nat_target class.
2356 * gnu-nat.c: Likewise.
2357 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2358 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2359 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2360 object.
2361 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2362 instead of `gnu_target'.
2363
2364 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2365
2366 * i386-gnu-tdep.c: Include "gdbcore.h"
2367 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2368 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2369 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2370 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2371 i386_gnu_sigcontext_addr): New functions
2372 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2373 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2374 tdep.
2375
2376 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2377
2378 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2379 before fork_inferior call. Avoid calling it if target_is_pushed returns
2380 true.
2381
2382 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2383
2384 * gnu-nat.h (gnu_target): New variable declaration.
2385 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2386 gnu_target.
2387 * gnu-nat.c (gnu_target): New variable.
2388 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2389 add_thread_silent, and add_thread calls.
2390 (gnu_nat_target::create_inferior): Pass gnu_target to
2391 add_thread_silent, thread_change_ptid call.
2392 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2393 call.
2394
2395 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2396
2397 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2398 (gnu_nat_target::find_memory_regions): Remove unused
2399 `old_address' variable.
2400
2401 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2402
2403 * gnu-nat.c: Include "gdbarch.h".
2404
2405 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2406
2407 * reply_mig_hack.awk (Error return): Cast function through
2408 void *, to bypass compiler function call check.
2409
2410 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2411
2412 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2413 $(srcdir)/reply_mig_hack.awk.
2414
2415 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2416
2417 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2418
2419 2020-05-30 Jonny Grant <jg@jguk.org>
2420
2421 * configure.ac (ACX_BUGURL): change bug URL to https.
2422
2423 2020-05-30 Pedro Alves <palves@redhat.com>
2424
2425 * cp-support.c (replace_typedefs_template): New.
2426 (replace_typedefs_qualified_name): Handle
2427 DEMANGLE_COMPONENT_TEMPLATE.
2428
2429 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2430
2431 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2432 dwarf2/index-cache.h, dwarf2/index-write.c,
2433 dwarf2/index-write.h, dwarf2/line-header.c,
2434 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2435 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2436 variables and fields from `dwarf2_per_objfile` to just
2437 `per_objfile` throughout.
2438
2439 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2442 <push_dwarf_reg_entry_value>: Add comment.
2443
2444 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2445 Keith Seitz <keiths@redhat.com>
2446
2447 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2448 instead of PyEval_ReleaseLock.
2449 (class gdbpy_gil): Move to earlier in file.
2450 (finalize_python): Set gdb_python_initialized.
2451 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2452 when not initialized.
2453
2454 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2455
2456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2457 <push_dwarf_reg_entry_value>: Remove assert. Override
2458 per_objfile with caller_per_objfile.
2459
2460 2020-05-28 Tom de Vries <tdevries@suse.de>
2461
2462 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2463 PR gold/15646 workaround to symbol kind "type".
2464
2465 2020-05-27 Tom Tromey <tromey@adacore.com>
2466
2467 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2468
2469 2020-05-27 Tom Tromey <tromey@adacore.com>
2470
2471 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2472 Use htab_find_with_hash.
2473 <add_abbrev>: Remove "abbrev_number" parameter.
2474 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2475 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2476 (hash_abbrev): Add comment.
2477 (abbrev_table::lookup_abbrev): Move to header file.
2478 (abbrev_table::read): Update.
2479
2480 2020-05-27 Tom Tromey <tromey@adacore.com>
2481
2482 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2483 method.
2484 <canonical_name>: New member.
2485 <raw_name>: Rename from "name".
2486 (partial_die_info): Initialize canonical_name.
2487 (scan_partial_symbols): Check raw_name.
2488 (partial_die_parent_scope, partial_die_full_name)
2489 (add_partial_symbol, add_partial_subprogram)
2490 (add_partial_enumeration, load_partial_dies): Use "name" method.
2491 (partial_die_info::name): New method.
2492 (partial_die_info::read, guess_partial_die_structure_name)
2493 (partial_die_info::fixup): Update.
2494
2495 2020-05-27 Tom Tromey <tromey@adacore.com>
2496
2497 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2498 <get_ref_die_offset>: Inline.
2499 <get_ref_die_offset_complaint>: New method.
2500 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2501 (attribute::get_ref_die_offset_complaint): Rename from
2502 get_ref_die_offset. Just issue complaint.
2503
2504 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2505
2506 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2507
2508 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2509
2510 * exec.c (exec_file_attach): Use errno value of first openp failure.
2511
2512 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2513
2514 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2515 Don't close thread handle.
2516
2517 2020-05-27 Tom Tromey <tom@tromey.com>
2518 Simon Marchi <simon.marchi@efficios.com>
2519
2520 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2521 shared_ptr.
2522 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2523 member.
2524 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2525 dwarf2_per_bfd_objfile_data_key>: New globals.
2526 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2527 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2528 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2529 shared.
2530 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2531 short-circuit when sharing.
2532 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2533 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2534
2535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2538 to...
2539 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2540 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2541
2542 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2543
2544 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2545 build_name_components, find_name_components_bounds>:
2546 Add per_objfile parameter.
2547 (struct mapped_index) <symbol_name_at>: Likewise.
2548 (struct mapped_debug_names): Remove constructor.
2549 <dwarf2_per_objfile>: Remove field.
2550 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2551 (mapped_index_base::find_name_components_bounds,
2552 mapped_index_base::build_name_components,
2553 dw2_expand_symtabs_matching_symbol): Likewise.
2554 (class mock_mapped_index) <symbol_name_at>: Likewise.
2555 (check_match): Likewise.
2556 (check_find_bounds_finds): Likewise.
2557 (test_mapped_index_find_name_component_bounds): Update.
2558 (CHECK_MATCH): Update.
2559 (dw2_expand_symtabs_matching): Update.
2560 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2561 per_objfile parameter.
2562 <find_vec_in_debug_names>: Likewise.
2563 <m_per_objfile>: New field.
2564 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2565 parameter.
2566 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2567 (dw2_debug_names_iterator::next): Update.
2568 (dw2_debug_names_lookup_symbol): Update.
2569 (dw2_debug_names_expand_symtabs_for_function): Update.
2570 (dw2_debug_names_map_matching_symbols): Update.
2571 (dw2_debug_names_expand_symtabs_matching): Update.
2572 (dwarf2_read_debug_names): Update.
2573
2574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2577 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2578 move to dwarf2_per_objfile.
2579 <read_in_chain>: Remove.
2580 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2581 remove_all_cus, age_comp_units>: New methods.
2582 <m_dwarf2_cus>: New member.
2583 (struct dwarf2_per_cu_data) <cu>: Remove.
2584 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2585 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2586 moved to methods of dwarf2_per_objfile.
2587 (dwarf2_clear_marks): Remove.
2588 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2589 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2590 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2591 (dwarf2_per_objfile::remove_all_cus): New.
2592 (class free_cached_comp_units) <~free_cached_comp_units>:
2593 Update.
2594 (load_cu): Update.
2595 (dw2_do_instantiate_symtab): Adjust.
2596 (fill_in_sig_entry_from_dwo_entry): Adjust.
2597 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2598 (cutu_reader::cutu_reader): Likewise.
2599 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2600 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2601 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2602 and dwarf2_per_objfile::age_comp_units.
2603 (load_partial_comp_unit): Update.
2604 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2605 (process_queue): Likewise.
2606 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2607 backlink.
2608 (dwarf2_read_addr_index): Likewise.
2609 (follow_die_offset): Likewise.
2610 (dwarf2_fetch_die_loc_sect_off): Likewise.
2611 (dwarf2_fetch_constant_bytes): Likewise.
2612 (dwarf2_fetch_die_type_sect_off): Likewise.
2613 (follow_die_sig_1): Likewise.
2614 (load_full_type_unit): Likewise.
2615 (read_signatured_type): Likewise.
2616 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2617 (dwarf2_cu::~dwarf2_cu): Remove.
2618 (dwarf2_per_objfile::get_cu): New.
2619 (dwarf2_per_objfile::set_cu): New.
2620 (age_cached_comp_units): Rename to...
2621 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2622 to std::unordered_map.
2623 (free_one_cached_comp_unit): Rename to...
2624 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2625 to std::unordered_map.
2626 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2627 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2628 a dwarf2_per_objfile in data.
2629 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2630 (dwarf2_clear_marks): Remove.
2631
2632 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2633
2634 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2635 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2636 (init_tu_and_read_dwo_dies): Likewise.
2637 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2638 (cutu_reader::cutu_reader): Likewise.
2639 (load_partial_comp_unit): Likewise.
2640 (process_psymtab_comp_unit): Update.
2641 (build_type_psymtabs_1): Update.
2642 (process_skeletonless_type_unit): Update.
2643 (load_full_comp_unit): Update.
2644 (find_partial_die): Update.
2645 (dwarf2_read_addr_index): Update.
2646 (read_signatured_type): Update.
2647
2648 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2651 m_header_read_in>: New fields.
2652 <get_header>: New method.
2653 * dwarf2/read.c (per_cu_header_read_in): Remove.
2654 (dwarf2_per_cu_data::get_header): New.
2655 (dwarf2_per_cu_data::addr_size): Update.
2656 (dwarf2_per_cu_data::offset_size): Update.
2657 (dwarf2_per_cu_data::ref_addr_size): Update.
2658
2659 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2660
2661 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2662 (dw2_do_instantiate_symtab): Update.
2663 (queue_and_load_all_dwo_tus): Change parameter from
2664 dwarf2_per_cu_data to dwarf2_cu.
2665 (dwarf2_fetch_die_loc_sect_off): Update.
2666 (dwarf2_fetch_constant_bytes): Update.
2667 (dwarf2_fetch_die_type_sect_off): Update.
2668
2669 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * dwarf2/read.c (process_full_comp_unit,
2672 process_full_type_unit): Remove per_cu, per_objfile paramters.
2673 Add dwarf2_cu parameter.
2674 (process_queue): Update.
2675
2676 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2677
2678 * dwarf2/read.c (create_cu_from_index_list): Replace
2679 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2680 (create_cus_from_index_list): Likewise.
2681 (create_cus_from_index): Likewise.
2682 (create_signatured_type_table_from_index): Likewise.
2683 (create_cus_from_debug_names_list): Likewise.
2684 (create_cus_from_debug_names): Likewise.
2685 (dwarf2_read_gdb_index): Update.
2686 (dwarf2_read_debug_names): Update.
2687
2688 2020-05-27 Tom Tromey <tom@tromey.com>
2689 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * dwarf2/read.h (struct dwarf2_per_objfile)
2692 <get_type_for_signatured_type, set_type_for_signatured_type>:
2693 New methods.
2694 <m_type_map>: New member.
2695 (struct signatured_type) <type>: Remove.
2696 * dwarf2/read.c
2697 (dwarf2_per_objfile::get_type_for_signatured_type,
2698 dwarf2_per_objfile::set_type_for_signatured_type): New.
2699 (get_signatured_type): Use new methods.
2700
2701 2020-05-27 Tom Tromey <tom@tromey.com>
2702 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2705 (struct dwarf2_per_objfile) <type_units>: New member.
2706 <get_type_unit_group_unshareable>: New method.
2707 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2708 num_symtabs, symtabs>: Remove; move to
2709 type_unit_group_unshareable.
2710 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2711 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2712 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2713
2714 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * dwarf2/read.h (struct dwarf2_per_cu_data):
2717 <dwarf2_per_objfile>: Remove.
2718 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2719 dwarf2_per_objfile.
2720 (create_signatured_type_table_from_index): Likewise.
2721 (create_signatured_type_table_from_debug_names): Likewise.
2722 (create_debug_type_hash_table): Likewise.
2723 (fill_in_sig_entry_from_dwo_entry): Likewise.
2724 (create_type_unit_group): Likewise.
2725 (read_comp_units_from_section): Likewise.
2726 (create_cus_hash_table): Likewise.
2727
2728 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2729
2730 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2731 dwarf2_per_cu_data::dwarf2_per_objfile.
2732 (compute_compunit_symtab_includes): Likewise.
2733 (dwarf2_cu::start_symtab): Likewise.
2734
2735 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2738 parameter.
2739 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2740 (read_namespace_alias): Update.
2741 (lookup_die_type): Update.
2742 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2743 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2744 Update.
2745 (disassemble_dwarf_expression): Update.
2746
2747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * dwarf2/read.h (struct dwarf2_queue_item): Add
2750 dwarf2_per_objfile parameter, assign new parameter.
2751 <per_objfile>: New field.
2752 * dwarf2/read.c (free_one_cached_comp_unit): Add
2753 dwarf2_per_objfile parameter.
2754 (queue_comp_unit): Likewise.
2755 (dw2_do_instantiate_symtab): Update.
2756 (process_psymtab_comp_unit): Update.
2757 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2758 (process_imported_unit_die): Update.
2759 (queue_and_load_dwo_tu): Update.
2760 (follow_die_offset): Update.
2761 (follow_die_sig_1): Update.
2762
2763 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2766 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2767 (read_call_site_scope): Assign per_objfile.
2768 (dwarf2_per_cu_data::objfile): Remove.
2769 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2770 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2771 dwarf2_per_objfile parameter.
2772 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2773 dwarf2_per_objfile parameter.
2774 (dwarf_expr_reg_to_entry_parameter): Add output
2775 dwarf2_per_objfile parameter.
2776 (locexpr_get_frame_base): Update.
2777 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2778 <push_dwarf_reg_entry_value>: Update.
2779 <call_site_to_target_addr>: Update.
2780 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2781 parameter.
2782 (value_of_dwarf_reg_entry): Update.
2783 (rw_pieced_value): Update.
2784 (indirect_synthetic_pointer): Update.
2785 (dwarf2_evaluate_property): Update.
2786 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2787 parameter.
2788 (locexpr_read_variable): Update.
2789 (locexpr_get_symbol_read_needs): Update.
2790 (loclist_read_variable): Update.
2791
2792 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2793
2794 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2795 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2796 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2797 parameter.
2798 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2799 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2800 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2801 parameter.
2802 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2803 sect_variable_value): Add dwarf2_per_objfile parameter.
2804 (class dwarf_evaluate_loc_desc) <dwarf_call,
2805 dwarf_variable_value>: Update.
2806 (fetch_const_value_from_synthetic_pointer): Add
2807 dwarf2_per_objfile parameter.
2808 (fetch_const_value_from_synthetic_pointer): Update.
2809 (coerced_pieced_ref): Update.
2810 (class symbol_needs_eval_context) <dwarf_call,
2811 dwarf_variable_value>: Update.
2812 (dwarf2_compile_expr_to_ax): Update.
2813
2814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2815
2816 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2817 parameter.
2818 (dwarf2_evaluate_loc_desc_full): Update.
2819
2820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2821
2822 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2823 parameter.
2824 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2825 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2826 dwarf2_per_objfile parameter.
2827 (decode_debug_loc_dwo_addresses): Likewise.
2828 (dwarf2_find_location_expression): Update.
2829 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2830 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2831 parameter.
2832 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2833 parameter.
2834 (locexpr_describe_location_1): Likewise.
2835 (locexpr_describe_location): Update.
2836
2837 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2840 Remove.
2841 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2842 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2843 (dwarf2_compile_property_to_c): Update.
2844 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2845 use text offset from objfile.
2846 (locexpr_tracepoint_var_ref): Update.
2847 (locexpr_generate_c_location): Update.
2848 (loclist_describe_location): Update.
2849 (loclist_tracepoint_var_ref): Update.
2850 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2851 dwarf2_per_objfile parameter.
2852 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2853 use text offset from objfile.
2854 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2855
2856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * dwarf2/expr.h (struct dwarf_expr_context)
2859 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2860 <offset>: Remove.
2861 <per_objfile>: New member.
2862 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2863 dwarf2_per_objfile parameter. Don't set offset, set
2864 per_objfile.
2865 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2866 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2867 a dwarf2_per_objfile object instead of an offset.
2868 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2869 constructor.
2870 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2871 to dwarf2_expr_executor constructor. Don't set offset.
2872 (dwarf2_fetch_cfa_info): Update.
2873 (struct dwarf2_frame_cache) <text_offset>: Remove.
2874 <per_objfile>: New field.
2875 (dwarf2_frame_cache): Update.
2876 (dwarf2_frame_prev_register): Update.
2877 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2878 <dwarf_evaluate_loc_desc>: Add constructor.
2879 (dwarf2_evaluate_loc_desc_full): Update.
2880 (dwarf2_locexpr_baton_eval): Update.
2881 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2882 Add constructor.
2883 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2884
2885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2886
2887 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2888 addr_sized_int_type>: Move to dwarf2_cu.
2889 <int_type>: Move to dwarf2_per_objfile.
2890 (struct dwarf2_per_objfile) <int_type>: Move here.
2891 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2892 addr_sized_int_type>: Move here.
2893 (read_func_scope): Update.
2894 (read_array_type): Update.
2895 (read_tag_string_type): Update.
2896 (attr_to_dynamic_prop): Update.
2897 (dwarf2_per_cu_data::int_type): Rename to...
2898 (dwarf2_per_objfile::int_type): ... this.
2899 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2900 (dwarf2_cu::addr_sized_int_type): ... this.
2901 (read_subrange_type): Update.
2902 (dwarf2_per_cu_data::addr_type): Rename to...
2903 (dwarf2_cu::addr_type): ... this.
2904 (set_die_type): Update.
2905
2906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2909 data through per_cu->cu.
2910
2911 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2912
2913 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2914 dwarf2_per_cu_data parameter fo dwarf2_cu.
2915 (lookup_dwo_type_unit): Likewise.
2916 (read_cutu_die_from_dwo): Likewise.
2917 (lookup_dwo_unit): Likewise.
2918 (open_and_init_dwo_file): Likewise.
2919 (lookup_dwo_cutu): Likewise.
2920 (lookup_dwo_comp_unit): Likewise.
2921 (lookup_dwo_type_unit): Likewise.
2922 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2923 (cutu_reader::cutu_reader): Update.
2924
2925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2926
2927 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2928 parameter.
2929 (process_full_type_unit): Likewise.
2930 (process_queue): Update.
2931
2932 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2933
2934 * dwarf2/read.c (recursively_compute_inclusions): Add
2935 dwarf2_per_objfile parameter.
2936 (compute_compunit_symtab_includes): Likewise.
2937 (process_cu_includes): Update.
2938
2939 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2942 parameter.
2943 (create_type_unit_group): Update.
2944 (process_psymtab_comp_unit_reader): Update.
2945 (build_type_psymtabs_reader): Update.
2946
2947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2948
2949 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2950 object through m_this_cu->cu.
2951
2952 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2955 the info parameter.
2956 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2957
2958 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2959
2960 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2961 per_objfile parameter.
2962 (load_full_type_unit): Add per_objfile parameter.
2963 (read_signatured_type): Likewise.
2964 (load_full_comp_unit): Likewise.
2965 (load_cu): Likewise.
2966 (dw2_do_instantiate_symtab): Likewise.
2967 (dw2_get_file_names): Likewise.
2968 (dw2_map_symtabs_matching_filename): Update.
2969 (dw_expand_symtabs_matching_file_matcher): Update.
2970 (dw2_map_symbol_filenames): Update.
2971 (process_psymtab_comp_unit): Add per_objfile parameter.
2972 (build_type_psymtabs_1): Update.
2973 (process_skeletonless_type_unit): Update.
2974 (dwarf2_build_psymtabs_hard): Update.
2975 (load_partial_comp_unit): Add per_objfile parameter.
2976 (scan_partial_symbols): Update.
2977 (load_full_comp_unit): Add per_objfile parameter.
2978 (process_imported_unit_die): Update.
2979 (create_cus_hash_table): Update.
2980 (find_partial_die): Update.
2981 (dwarf2_read_addr_index): Update.
2982 (follow_die_offset): Update.
2983 (dwarf2_fetch_die_loc_sect_off): Update.
2984 (dwarf2_fetch_constant_bytes): Update.
2985 (dwarf2_fetch_die_type_sect_off): Update.
2986 (follow_die_sig_1): Update.
2987 (load_full_type_unit): Add per_objfile parameter.
2988 (read_signatured_type): Likewise.
2989
2990 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2993 of objfile_name.
2994
2995 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2998 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2999 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3000 field.
3001 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3002 (create_cus_from_index): Update.
3003 (dwarf2_read_gdb_index): Update.
3004 (create_cus_from_debug_names): Update.
3005 (dwarf2_read_debug_names): Update.
3006 (get_abbrev_section_for_cu): Update.
3007 (create_all_comp_units): Update.
3008 (read_attribute_value): Update.
3009 (get_debug_line_section): Update.
3010 * dwarf2/index-cache.c (index_cache::store): Update.
3011 * dwarf2/index-write.c (save_gdb_index_command): Update.
3012 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3013
3014 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3015
3016 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3017 member.
3018 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3019 dwarf2_per_cu_data::per_bfd.
3020 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3021 (create_type_unit_group): Likewise.
3022 (queue_comp_unit): Remove reference to
3023 per_cu->dwarf2_per_objfile.
3024 (maybe_queue_comp_unit): Likewise.
3025 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3026 (create_cus_hash_table): Assign new field.
3027
3028 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * dwarf2/read.c: Replace
3031 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3032 dwarf2_cu->per_objfile throughout.
3033
3034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3037 parameter, don't use per_cu->dwarf2_per_objfile.
3038 (dw2_instantiate_symtab): Likewise.
3039 (dw2_find_last_source_symtab): Update.
3040 (dw2_map_expand_apply): Update.
3041 (dw2_lookup_symbol): Update.
3042 (dw2_expand_symtabs_for_function): Update.
3043 (dw2_expand_all_symtabs): Update.
3044 (dw2_expand_symtabs_with_fullname): Update.
3045 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3046 don't use per_cu->dwarf2_per_objfile.
3047 (dw2_expand_marked_cus): Update.
3048 (dw2_find_pc_sect_compunit_symtab): Update.
3049 (dw2_debug_names_lookup_symbol): Update.
3050 (dw2_debug_names_expand_symtabs_for_function): Update.
3051 (dw2_debug_names_map_matching_symbols): Update.
3052 (dwarf2_psymtab::expand_psymtab): Update.
3053
3054 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3057 <per_objfile>: New member.
3058 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3059 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3060 call to dwarf2_cu.
3061 (cutu_reader::cutu_reader): Update.
3062 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3063
3064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3067 struct dwarf2_per_objfile.
3068 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3069 dwarf2_per_bfd.
3070 * dwarf2/read.c (set_die_type): Update.
3071 (get_die_type_at_offset): Update.
3072
3073 2020-05-27 Tom Tromey <tom@tromey.com>
3074 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3077 method.
3078 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3079 get_symtab, set_symtab>: New methods.
3080 <m_symtabs>: New field.
3081 (struct dwarf2_psymtab): Derive from partial_symtab.
3082 <readin_p, get_compunit_symtab>: Declare methods.
3083 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3084 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3085 New methods.
3086 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3087 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3088 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3089 (dw2_symtab_iter_next, dw2_print_stats)
3090 (dw2_expand_symtabs_with_fullname)
3091 (dw2_expand_symtabs_matching_one)
3092 (dw_expand_symtabs_matching_file_matcher)
3093 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3094 (dw2_debug_names_iterator::next)
3095 (dw2_debug_names_map_matching_symbols)
3096 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3097 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3098 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3099 New methods.
3100 (get_compunit_symtab, process_full_comp_unit)
3101 (process_full_type_unit): Update.
3102 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3103
3104 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3105
3106 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3107 then introduce a new dwarf2_per_objfile type.
3108 <read_line_string>: Move to the new dwarf2_per_objfile type.
3109 <objfile>: Likewise.
3110 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3111 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3112 dwarf2_per_objfile->per_bfd.
3113 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3114 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3115 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3116 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3117 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3118 (dwarf2_per_objfile::locate_sections): Rename to...
3119 (dwarf2_per_bfd::locate_sections): ... this.
3120 (dwarf2_per_objfile::get_cutu): Rename to...
3121 (dwarf2_per_bfd::get_cutu): ... this.
3122 (dwarf2_per_objfile::get_cu): Rename to...
3123 (dwarf2_per_bfd::get_cu): ... this.
3124 (dwarf2_per_objfile::get_tu): Rename to...
3125 (dwarf2_per_bfd::get_tu): ... this.
3126 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3127 (dwarf2_per_bfd::allocate_per_cu): ... this.
3128 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3129 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3130 (get_gdb_index_contents_ftype): Change parameter from
3131 dwarf2_per_objfile to dwarf2_per_bfd.
3132 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3133 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3134
3135 2020-05-27 Tom Tromey <tom@tromey.com>
3136 Simon Marchi <simon.marchi@efficios.com>
3137
3138 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3139 (allocate_piece_closure): Set "per_objfile" member.
3140 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3141 (locexpr_describe_location, loclist_describe_location): Use new
3142 member.
3143 * dwarf2/read.c (read_call_site_scope)
3144 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3145 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3146 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3147 handle_data_member_location): Set per_objfile member.
3148 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3149 member.
3150 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3151
3152 2020-05-27 Tom Tromey <tom@tromey.com>
3153
3154 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3155 allocate_signatured_type>: Declare new methods.
3156 <m_num_psymtabs>: New member.
3157 (struct dwarf2_per_cu_data) <index>: New member.
3158 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3159 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3160 (create_cu_from_index_list): Use allocate_per_cu.
3161 (create_signatured_type_table_from_index)
3162 (create_signatured_type_table_from_debug_names)
3163 (create_debug_type_hash_table, add_type_unit)
3164 (read_comp_units_from_section): Use allocate_signatured_type.
3165
3166 2020-05-27 Tom Tromey <tom@tromey.com>
3167
3168 * psymtab.c (partial_map_expand_apply)
3169 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3170 (psym_lookup_global_symbol_language)
3171 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3172 (psym_print_stats, psym_expand_symtabs_for_function)
3173 (psym_map_symbol_filenames, psym_map_matching_symbols)
3174 (psym_expand_symtabs_matching)
3175 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3176 (maintenance_check_psymtabs): Update.
3177 * psympriv.h (struct partial_symtab) <readin_p,
3178 get_compunit_symtab>: Add objfile parameter.
3179 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3180 Likewise.
3181 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3182 get_compunit_symtab>: Likewise.
3183 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3184
3185 2020-05-27 Tom Tromey <tom@tromey.com>
3186
3187 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3188 member.
3189 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3190 (create_cu_from_index_list)
3191 (create_signatured_type_table_from_index)
3192 (create_signatured_type_table_from_debug_names)
3193 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3194 (dwarf2_create_include_psymtab)
3195 (create_debug_type_hash_table, add_type_unit)
3196 (create_type_unit_group, read_comp_units_from_section)
3197 (dwarf2_compute_name, create_cus_hash_table)
3198 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3199 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3200 obstack.
3201 (dw2_get_real_path): Likewise. Change argument to
3202 dwarf2_per_objfile.
3203
3204 2020-05-27 Luis Machado <luis.machado@linaro.org>
3205
3206 PR tdep/26000
3207 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3208 for ldrd (immediate).
3209
3210 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3211
3212 * command.h: Add comment giving the name of class_tui.
3213 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3214 create the fake command for the help for class_tui.
3215
3216 2020-05-26 Tom Tromey <tromey@adacore.com>
3217
3218 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3219 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3220 (val_atr): New function.
3221 (value_val_atr): Use it.
3222 * ada-valprint.c (print_optional_low_bound): Change low bound
3223 handling for enums.
3224 (val_print_packed_array_elements): Don't call discrete_position.
3225 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3226 discrete_position for enum types.
3227 * language.c (default_print_array_index): Change type.
3228 * language.h (struct language_defn) <la_print_array_index>: Add
3229 index_type parameter, change type of index_value.
3230 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3231 (default_print_array_index): Update.
3232 * valprint.c (maybe_print_array_index): Don't call
3233 value_from_longest. Update.
3234 (value_print_array_elements): Don't call discrete_position.
3235
3236 2020-05-26 Tom Tromey <tromey@adacore.com>
3237
3238 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3239 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3240
3241 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3242
3243 PR gdb/13519
3244 * avr-tdep.c (avr_integer_to_address): Return data or code
3245 address accordingly to the second 'type' argument of the
3246 function.
3247
3248 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3249
3250 * infcmd.c, inferior.h: (construct_inferior_arguments):
3251 Moved function from here to gdbsupport/common-inferior.{h,cc}
3252
3253 2020-05-23 Tom Tromey <tom@tromey.com>
3254
3255 Revert commit eca1f90c:
3256 * NEWS: Remove entry for completion styling.
3257 * completer.c (_rl_completion_prefix_display_length): Move
3258 declaration later.
3259 (gdb_fnprint): Revert.
3260 (gdb_display_match_list_1): Likewise.
3261 * cli/cli-style.c (completion_prefix_style)
3262 (completion_difference_style, completion_suffix_style): Remove.
3263 (_initialize_cli_style): Revert.
3264 * cli/cli-style.h (completion_prefix_style)
3265 (completion_difference_style, completion_suffix_style): Don't
3266 declare.
3267
3268 2020-05-24 Pedro Alves <palves@redhat.com>
3269
3270 * symtab.c (completion_list_add_name): Return boolean indication
3271 of whether the symbol matched.
3272 (completion_list_add_symbol): Don't try to remove C++ aliases if
3273 the symbol didn't match in the first place.
3274 * symtab.h (completion_list_add_name): Return bool.
3275
3276 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3279 type::field.
3280
3281 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3282
3283 GDB 9.2 released.
3284
3285 2020-05-23 Tom Tromey <tom@tromey.com>
3286
3287 * NEWS: Add entry for completion styling.
3288 * completer.c (_rl_completion_prefix_display_length): Move
3289 declaration earlier.
3290 (gdb_fnprint): Use completion_style.
3291 (gdb_display_match_list_1): Likewise.
3292 * cli/cli-style.c (completion_prefix_style)
3293 (completion_difference_style, completion_suffix_style): New
3294 globals.
3295 (_initialize_cli_style): Register new globals.
3296 * cli/cli-style.h (completion_prefix_style)
3297 (completion_difference_style, completion_suffix_style): Declare.
3298
3299 2020-05-23 Pedro Alves <palves@redhat.com>
3300
3301 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3302 (parse_escape): Use ISDIGIT instead of isdigit.
3303 (puts_debug): Use gdb_isprint instead of isprint.
3304 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3305 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3306 ISSPACE instead of isspace.
3307 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3308 instead of isspace.
3309 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3310 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3311 instead of isxdigit and ISDIGIT instead of isdigit.
3312
3313 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3314
3315 * gdbtypes.h (struct type) <field>: New method.
3316 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3317 or type::field.
3318
3319 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3322 (TYPE_FIELDS): Use type::fields. Change all call sites that
3323 modify the propery to use type::set_fields instead.
3324
3325 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3326
3327 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3328 type::num_fields instead.
3329
3330 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3331
3332 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3333 methods.
3334 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3335 that modify the number of fields to use type::set_num_fields
3336 instead.
3337
3338 2020-05-22 Tom Tromey <tromey@adacore.com>
3339
3340 * compile/compile-object-load.h (munmap_list_free): Don't
3341 declare.
3342
3343 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * annotate.c (annotate_source_line): Update return type, add call
3346 to update current symtab and line.
3347 * annotate.h (annotate_source_line): Update return type, and
3348 extend header comment.
3349 * source.c (info_line_command): Check annotation_level before
3350 calling annotate_source_line.
3351 * stack.c (print_frame_info): If calling annotate_source_line
3352 returns true, then don't print any other source line information.
3353
3354 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3357
3358 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * coffread.c (patch_type): Remove NULL check before xfree.
3361 * corefile.c (set_gnutarget): Likewise.
3362 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3363 * exec.c (build_section_table): Likewise.
3364 * remote.c (remote_target::pass_signals): Likewise.
3365 * utils.c (n_spaces): Likewise.
3366 * cli/cli-script.c (document_command): Likewise.
3367 * i386-windows-tdep.c (core_process_module_section): Likewise.
3368 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3369
3370 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * symfile.c (reread_symbols): Clear objfile's section_offsets
3373 vector and section indices, re-compute them by calling
3374 sym_offsets.
3375
3376 2020-05-20 Tom Tromey <tromey@adacore.com>
3377
3378 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3379 (desc_one_bound, desc_index_type): Compute field name.
3380
3381 2020-05-20 Tom de Vries <tdevries@suse.de>
3382
3383 PR symtab/25833
3384 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3385
3386 2020-05-20 Alan Modra <amodra@gmail.com>
3387
3388 PR 25993
3389 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3390 bfd_set_filename.
3391 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3392 passed to bfd_set_filename.
3393 * symfile-mem.c (add_vsyscall_page): Likewise for string
3394 passed to symbol_file_add_from_memory.
3395 (symbol_file_add_from_memory): Make name param a const char* and
3396 don't strdup.
3397
3398 2020-05-20 Alan Modra <amodra@gmail.com>
3399
3400 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3401 rather than accessing bfd->filename directly.
3402 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3403 and use bfd_section_name.
3404 * dwarf2/frame.c (decode_frame_entry): Likewise.
3405 * exec.c (exec_set_section_address): Likewise.
3406 * solib-aix.c (solib_aix_bfd_open): Likewise.
3407 * stap-probe.c (get_stap_base_address): Likewise.
3408 * symfile.c (reread_symbols): Likewise.
3409
3410 2020-05-19 Tom Tromey <tromey@adacore.com>
3411
3412 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3413
3414 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3417
3418 2020-05-19 Pedro Alves <palves@redhat.com>
3419
3420 * NEWS (set exec-file-mismatch): Adjust entry.
3421 * exec.c: Include "build-id.h".
3422 (validate_exec_file): Try to match build IDs instead of filenames.
3423 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3424 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3425 and pass down 'warn_if_slow'.
3426 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3427 gdb_bfd_open_closure to pass it down.
3428 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3429
3430 2020-05-19 Pedro Alves <palves@redhat.com>
3431
3432 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3433 * target.c (target_fileio_open_1): Rename to target_fileio_open
3434 and make extern. Use bool.
3435 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3436 (target_fileio_read_alloc_1): Adjust.
3437 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3438 (target_fileio_open_warn_if_slow): Delete declaration.
3439
3440 2020-05-19 Pedro Alves <palves@redhat.com>
3441
3442 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3443 Adjust all callers.
3444
3445 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3446
3447 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3448 whether disp is negative.
3449
3450 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * symfile.h (struct symfile_segment_data)
3453 <~symfile_segment_data>: Remove.
3454 <segment_info>: Change to std::vector.
3455 * symfile.c (default_symfile_segments): Update.
3456 * elfread.c (elf_symfile_segments): Update.
3457
3458 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3461 <segments>: New.
3462 <segment_bases, segment_sizes>: Remove.
3463 * symfile.c (default_symfile_segments): Update.
3464 * elfread.c (elf_symfile_segments): Update.
3465 * remote.c (remote_target::get_offsets): Update.
3466 * solib-target.c (solib_target_relocate_section_addresses):
3467 Update.
3468
3469 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * symfile.h (struct symfile_segment_data): Initialize fields.
3472 <~symfile_segment_data>: Add.
3473 (symfile_segment_data_up): New.
3474 (struct sym_fns) <sym_segments>: Return a
3475 symfile_segment_data_up.
3476 (default_symfile_segments): Return a symfile_segment_data_up.
3477 (free_symfile_segment_data): Remove.
3478 (get_symfile_segment_data): Return a symfile_segment_data_up.
3479 * symfile.c (default_symfile_segments): Likewise.
3480 (get_symfile_segment_data): Likewise.
3481 (free_symfile_segment_data): Remove.
3482 (symfile_find_segment_sections): Update.
3483 * elfread.c (elf_symfile_segments): Return a
3484 symfile_segment_data_up.
3485 * remote.c (remote_target::get_offsets): Update.
3486 * solib-target.c (solib_target_relocate_section_addresses):
3487 Update.
3488 * symfile-debug.c (debug_sym_segments): Return a
3489 symfile_segment_data_up.
3490
3491 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3492
3493 PR build/25981
3494 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3495 Hardcode register numbers.
3496
3497 PR build/25981
3498 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3499 procfs_find_LDT_entry): Remove.
3500 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3501 procfs_find_LDT_entry): Remove.
3502 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3503 Remove.
3504
3505 2020-05-17 Pedro Alves <palves@redhat.com>
3506 Andrew Burgess <andrew.burgess@embecosm.com>
3507 Keno Fischer <keno@juliacomputing.com>
3508
3509 PR gdb/25741
3510 * breakpoint.c (build_target_condition_list): Update comments.
3511 (build_target_command_list): Update comments and skip matching
3512 locations.
3513 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3514 a separate function. Simplify "set breakpoint auto-hw off"
3515 handling.
3516 (insert_breakpoints): Update comment.
3517 (tracepoint_locations_match): New parameter. For breakpoints,
3518 compare location types too, if the caller wants to.
3519 (handle_automatic_hardware_breakpoints): New functions.
3520 (bp_location_is_less_than): Also sort by location type and
3521 hardware breakpoint length.
3522 (update_global_location_list): Handle "set breakpoint auto-hw on"
3523 here.
3524 (update_breakpoint_locations): Ask breakpoint_locations_match to
3525 ignore location types.
3526
3527 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3530 type::name instead.
3531
3532 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3533
3534 * gdbtypes.h (struct type) <name, set_name>: New methods.
3535 (TYPE_CODE): Use type::name. Change all call sites used to set
3536 the name to use type::set_name instead.
3537
3538 2020-05-16 Tom Tromey <tom@tromey.com>
3539
3540 * top.c (quit_force): Update.
3541 * infrun.c (handle_no_resumed): Update.
3542 * top.h (all_uis): New function.
3543 (ALL_UIS): Remove.
3544
3545 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3548
3549 2020-05-16 Pedro Alves <palves@redhat.com>
3550
3551 * ia64-linux-nat.c
3552 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3553 Declare method.
3554 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3555
3556 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3559 (sparc64_adi_info): Likewise.
3560
3561 2020-05-15 Tom Tromey <tom@tromey.com>
3562
3563 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3564 block_objfile.
3565 (lookup_objfile_from_block): Remove.
3566 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3567 (lookup_global_symbol): Use block_objfile.
3568 * symtab.h (lookup_objfile_from_block): Don't declare.
3569 * printcmd.c (clear_dangling_display_expressions): Use
3570 block_objfile.
3571 * parse.c (operator_check_standard): Use block_objfile.
3572
3573 2020-05-15 Tom Tromey <tom@tromey.com>
3574
3575 * language.c (language_alloc_type_symbol): Set
3576 SYMBOL_SECTION.
3577 * symtab.c (initialize_objfile_symbol): Remove.
3578 (allocate_symbol): Remove.
3579 (allocate_template_symbol): Remove.
3580 * dwarf2/read.c (fixup_go_packaging): Use "new".
3581 (new_symbol): Use "new".
3582 (read_variable): Don't call initialize_objfile_symbol. Use
3583 "new".
3584 (read_func_scope): Use "new".
3585 * xcoffread.c (process_xcoff_symbol): Don't call
3586 initialize_objfile_symbol.
3587 (SYMBOL_DUP): Remove.
3588 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3589 "new".
3590 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3591 (allocate_template_symbol): Don't declare.
3592 (struct symbol): Add copy constructor. Change defaults.
3593 * jit.c (finalize_symtab): Use "new".
3594 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3595 Use "new".
3596 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3597 (common_block_end): Use "new".
3598 * mdebugread.c (parse_symbol): Use "new".
3599 (new_symbol): Likewise.
3600
3601 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3602
3603 * NEWS: Mention changes to help and apropos.
3604
3605 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3606
3607 * command.h (enum command_class): Improve comments, document
3608 that class_alias is for user-defined aliases, give the class
3609 name for each class, remove unused class_xdb.
3610 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3611 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3612 by a precise class.
3613 * infcmd.c (_initialize_infcmd): Likewise.
3614 * reverse.c (_initialize_reverse): Likewise.
3615 * stack.c (_initialize_stack): Likewise.
3616 * symfile.c (_initialize_symfile): Likewise.
3617 * tracepoint.c (_initialize_tracepoint): Likewise.
3618
3619 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3620
3621 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3622 when their aliased command is traversed.
3623 (help_cmd): Add fput_command_names_styled call to
3624 output command name and aliases when command has an alias.
3625
3626 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3627
3628 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3629 * cli/cli-decode.c (help_cmd_list): Declare as static,
3630 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3631 a command together with the command.
3632 (fput_command_name_styled, fput_command_names_styled): New functions.
3633 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3634 fput_command_name_styled.
3635 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3636 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3637
3638 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3639
3640 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3641 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3642 * command.h (cmd_show_list): Likewise.
3643 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3644 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3645
3646 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3647
3648 * unittests/command-def-selftests.c (traverse_command_structure):
3649 Verify all commands of a list have the same prefix command and
3650 that only the top cmdlist commands have a null prefix.
3651
3652 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3653
3654 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3655 as prefix, not one of its aliases.
3656 (set_cmd_prefix): Remove.
3657 (do_add_cmd): Centralize the setting of the prefix of a command, when
3658 command is defined after its full chain of prefix commands.
3659 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3660 (add_setshow_cmd_full): Likewise.
3661 (update_prefix_field_of_prefixed_commands): New function.
3662 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3663 update_prefix_field_of_prefixed_commands.
3664 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3665 addresses of remote_set_cmdlist and remote_show_cmdlist given
3666 as argument, not the address of an argument.
3667 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3668 * gdb/remote.c (_initialize_remote): Likewise.
3669
3670 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3671
3672 * cli/cli-cmds.c (alias_command): Check for an existing alias
3673 using lookup_cmd_composition, as valid_command_p is too strict
3674 and forbids aliases that are the prefix of an existing alias
3675 or command.
3676 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3677 command is properly recognised as a valid command.
3678
3679 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3680
3681 * unittests/help-doc-selftests.c: Rename to
3682 unittests/command-def-selftests.c
3683 * unittests/command-def-selftests.c (help_doc_tests): Update some
3684 comments.
3685 (command_structure_tests, traverse_command_structure): New namespace
3686 and function.
3687 (command_structure_invariants_tests): New function.
3688 (_initialize_command_def_selftests) Renamed from
3689 _initialize_help_doc_selftests, register command_structure_invariants
3690 selftest.
3691
3692 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3693
3694 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3695 an alias of 'show'.
3696
3697 2020-05-15 Joel Brobecker <brobecker@adacore.com>
3698
3699 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3700 ada_is_fixed_point_type. Update all callers.
3701 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3702 all callers.
3703 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3704 Update all callers.
3705 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3706 print_fixed_point_type. Update all callers.
3707 * ada-valprint.c (ada_value_print_num): Replace call to
3708 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3709
3710 2020-05-14 Kevin Buettner <kevinb@redhat.com>
3711
3712 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3713 processors.
3714 (cpu_supports_bts): Add CV_AMD case.
3715
3716 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3717 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * infrun.c (stop_all_threads): Collect multiple wait events at
3720 each pass.
3721
3722 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3725 type::code instead.
3726
3727 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * gdbtypes.h (struct type) <code, set_code>: New methods.
3730 (TYPE_CODE): Use type::code. Change all call sites used to set
3731 the code to use type::set_code instead.
3732
3733 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3734 Tom de Vries <tdevries@suse.de>
3735 Pedro Alves <palves@redhat.com>
3736
3737 PR threads/25478
3738 * infrun.c (stop_all_threads): Do NOT ignore
3739 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3740 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3741 received.
3742 (handle_no_resumed): Remove code handling a live inferior with no
3743 threads.
3744 * remote.c (has_single_non_exited_thread): New.
3745 (remote_target::update_thread_list): Do not delete a thread if is
3746 the last thread of the process.
3747 * thread.c (thread_select): Call delete_exited_threads instead of
3748 prune_threads.
3749
3750 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3751
3752 * infrun.c (stop_all_threads): Enable/disable thread events of all
3753 targets. Move a debug message denoting the end of the function
3754 into the SCOPED_EXIT block.
3755
3756 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3757
3758 * process-stratum-target.h: Include <set>.
3759 (all_non_exited_process_targets, switch_to_target_no_thread): New
3760 function declarations.
3761 * process-stratum-target.c (all_non_exited_process_targets)
3762 (switch_to_target_no_thread): New function implementations.
3763
3764 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3765
3766 * infrun.c (handle_inferior_event): Extract out a piece of code
3767 into...
3768 (mark_non_executing_threads): ...this new function.
3769
3770 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771
3772 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3773 use.
3774
3775 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3776
3777 * regcache.c (regcache_read_pc_protected): New function
3778 implementation that returns 0 if the PC cannot read via
3779 'regcache_read_pc'.
3780 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3781 instead of 'regcache_read_pc'.
3782 (keep_going_pass_signal): Ditto.
3783
3784 2020-05-13 Tom Tromey <tromey@adacore.com>
3785
3786 * ada-lang.c (align_value): Remove.
3787 (ada_template_to_fixed_record_type_1): Use align_up.
3788
3789 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3790
3791 * async-event.c: Update the copyright year.
3792 * async-event.h: Update the copyright year.
3793
3794 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * objfiles.h (is_addr_in_objfile,
3797 shared_objfile_contains_address_p): Return bool.
3798 * objfile.c (is_addr_in_objfile,
3799 shared_objfile_contains_address_p): Return bool.
3800
3801 2020-05-11 Tom Tromey <tromey@adacore.com>
3802
3803 * cli/cli-cmds.c (info_command): Restore.
3804 (_initialize_cli_cmds): Use add_prefix_command for "info".
3805 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3806
3807 2020-05-11 Tom Tromey <tromey@adacore.com>
3808
3809 * ada-lang.c (ada_value_primitive_field): Now public.
3810 * ada-lang.h (ada_value_primitive_field): Declare.
3811 * ada-valprint.c (print_field_values): Use
3812 ada_value_primitive_field for wrapper fields.
3813
3814 2020-05-11 Tom de Vries <tdevries@suse.de>
3815
3816 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3817 MODULE_DOMAIN.
3818
3819 2020-05-11 Tom de Vries <tdevries@suse.de>
3820
3821 PR symtab/25941
3822 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3823 with length 0, if not gdb-produced.
3824 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3825
3826 2020-05-09 Tom de Vries <tdevries@suse.de>
3827
3828 PR gdb/25955
3829 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3830 calculation.
3831
3832 2020-05-09 Tom Tromey <tom@tromey.com>
3833
3834 * top.c (server_command): Now bool.
3835 * top.h (server_command): Now bool.
3836
3837 2020-05-08 Tom Tromey <tromey@adacore.com>
3838
3839 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3840 already being processed.
3841
3842 2020-05-08 Tom Tromey <tom@tromey.com>
3843
3844 * printcmd.c (struct display) <next>: Remove.
3845 <display>: New constructor.
3846 <exp_string>: Now a std::string.
3847 <enabled_p>: Now a bool.
3848 (display_number): Move definition earlier.
3849 (displays): Rename from display_chain. Now a std::vector.
3850 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3851 (display_command): Update.
3852 (do_one_display, disable_display)
3853 (enable_disable_display_command, do_enable_disable_display):
3854 Update.
3855 (free_display): Remove.
3856 (clear_displays): Rewrite.
3857 (delete_display): Update.
3858 (map_display_numbers): Use function_view. Remove "data"
3859 parameter. Update.
3860 (do_delete_display): Remove.
3861 (undisplay_command): Update.
3862 (do_one_display, do_displays, disable_display)
3863 (info_display_command): Update.
3864 (do_enable_disable_display): Remove.
3865 (enable_disable_display_command)
3866 (clear_dangling_display_expressions): Update.
3867
3868 2020-05-08 Tom Tromey <tom@tromey.com>
3869
3870 * symtab.c (set_symbol_cache_size)
3871 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3872 (maintenance_print_symbol_cache_statistics): Update.
3873 * symmisc.c (print_symbol_bcache_statistics)
3874 (print_objfile_statistics, maintenance_print_objfiles)
3875 (maintenance_info_symtabs, maintenance_check_symtabs)
3876 (maintenance_expand_symtabs, maintenance_info_line_tables):
3877 Update.
3878 * symfile-debug.c (set_debug_symfile): Update.
3879 * source.c (forget_cached_source_info): Update.
3880 * python/python.c (gdbpy_progspaces): Update.
3881 * psymtab.c (maintenance_info_psymtabs): Update.
3882 * probe.c (parse_probes): Update.
3883 * linespec.c (iterate_over_all_matching_symtabs)
3884 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3885 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3886 * exec.c (exec_target::close): Update.
3887 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3888 * breakpoint.c (print_one_breakpoint_location)
3889 (create_longjmp_master_breakpoint)
3890 (create_std_terminate_master_breakpoint): Update.
3891 * progspace.c (program_spaces): Now a std::vector.
3892 (maybe_new_address_space): Update.
3893 (add_program_space): Remove.
3894 (program_space::program_space): Update.
3895 (remove_program_space): Update.
3896 (number_of_program_spaces): Remove.
3897 (print_program_space, update_address_spaces): Update.
3898 * progspace.h (program_spaces): Change type.
3899 (ALL_PSPACES): Remove.
3900 (number_of_program_spaces): Don't declare.
3901 (struct program_space) <next>: Remove.
3902
3903 2020-05-08 Tom Tromey <tom@tromey.com>
3904
3905 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3906 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3907 (enable_break): Update.
3908 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3909 (frv_fdpic_find_canonical_descriptor): Update.
3910 (frv_fetch_objfile_link_map): Update.
3911 * progspace.c (program_space::free_all_objfiles): Update.
3912 (program_space::solibs): New method.
3913 * progspace.h (struct program_space) <solibs>: New method.
3914 * solist.h (master_so_list): Don't declare.
3915 (ALL_SO_LIBS): Remove.
3916 * solib.h (so_list_head): Remove.
3917 (update_solib_list): Update comment.
3918 * solib.c (master_so_list): Remove.
3919 (solib_used, update_solib_list, solib_add)
3920 (info_sharedlibrary_command, clear_solib)
3921 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3922
3923 2020-05-08 Tom Tromey <tom@tromey.com>
3924
3925 * extension.c (extension_languages): Now a std::array.
3926 (ALL_EXTENSION_LANGUAGES): Remove.
3927 (get_ext_lang_defn, get_ext_lang_of_file)
3928 (eval_ext_lang_from_control_command): Update.
3929 (finish_ext_lang_initialization)
3930 (auto_load_ext_lang_scripts_for_objfile)
3931 (ext_lang_type_printers::ext_lang_type_printers)
3932 (apply_ext_lang_type_printers)
3933 (ext_lang_type_printers::~ext_lang_type_printers)
3934 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3935 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3936 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3937 (get_matching_xmethod_workers, ext_lang_colorize)
3938 (ext_lang_before_prompt): Update.
3939 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3940
3941 2020-05-08 Tom Tromey <tom@tromey.com>
3942
3943 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3944 overload.
3945 <swap_string, m_string>: Remove.
3946 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3947 Update.
3948 * stabsread.c (define_symbol, read_type): Update.
3949 * linespec.c (find_linespec_symbols): Update.
3950 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3951 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3952 * dbxread.c (read_dbx_symtab): Update.
3953 * cp-support.h (cp_canonicalize_string_full)
3954 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3955 Return unique_xmalloc_ptr.
3956 * cp-support.c (inspect_type): Update.
3957 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3958 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3959 Likewise.
3960 * c-typeprint.c (print_name_maybe_canonical): Update.
3961 * break-catch-throw.c (check_status_exception_catchpoint):
3962 Update.
3963
3964 2020-05-08 Tom de Vries <tdevries@suse.de>
3965
3966 * infrun.c (follow_fork): Copy current_line and current_symtab to
3967 child thread.
3968
3969 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * async-event.c (struct async_signal_handler, struct
3972 async_event_handler): Reformat, remove typedef.
3973
3974 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3977 access thistype->main_type->dyn_prop_list directly.
3978
3979 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3982 (remove_dyn_prop): Remove. Update all users to use
3983 type::remove_dyn_prop.
3984 * gdbtypes.c (remove_dyn_prop): Rename to...
3985 (type::remove_dyn_prop): ... this.
3986
3987 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3988
3989 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3990 (add_dyn_prop): Remove. Update all users to use
3991 type::add_dyn_prop.
3992 * gdbtypes.c (add_dyn_prop): Rename to...
3993 (type::add_dyn_prop): ... this.
3994
3995 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3996
3997 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3998 (get_dyn_prop): Remove. Update all users to use
3999 type::dyn_prop.
4000 * gdbtypes.c (get_dyn_prop): Rename to...
4001 (type::dyn_prop): ... this.
4002
4003 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4006
4007 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4008
4009 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4010 instruction, skip it if it's there.
4011
4012 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4015
4016 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4019 * gdbtypes.c (recursive_dump_type): Remove use of
4020 TYPE_INCOMPLETE.
4021
4022 2020-05-03 Tom Tromey <tom@tromey.com>
4023
4024 * breakpoint.c (catch_command, tcatch_command): Remove.
4025 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4026 add_show_prefix_cmd.
4027 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4028 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4029 Remove.
4030 (add_internal_problem_command): Use add_basic_prefix_cmd,
4031 add_show_prefix_cmd.
4032 * mips-tdep.c (set_mipsfpu_command): Remove.
4033 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4034 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4035 (_initialize_index_cache): Use add_basic_prefix_cmd.
4036 * memattr.c (dummy_cmd): Remove.
4037 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4038 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4039 (_initialize_tui_win): Use add_basic_prefix_cmd,
4040 add_show_prefix_cmd.
4041 * cli/cli-logging.c (set_logging_command): Remove.
4042 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4043 add_show_prefix_cmd.
4044 (show_logging_command): Remove.
4045 * target.c (target_command): Remove.
4046 (add_target): Use add_basic_prefix_cmd.
4047
4048 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4049
4050 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4051
4052 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4053
4054 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4055 info_command.
4056
4057 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4058
4059 * nbsd-nat.c (nbsd_enable_proc_events)
4060 (nbsd_nat_target::post_startup_inferior): Add.
4061 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4062 (nbsd_nat_target::update_thread_list): Rewrite.
4063 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4064 "PTRACE_LWP_CREATE".
4065 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4066
4067 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4068
4069 * stack.c (_initialize_stack): Remove duplicated creation
4070 of "frame" command and "f" alias.
4071
4072 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4073
4074 PR gdb/18706
4075 * gdbtypes.c (check_typedef): Calculate size of array of
4076 stubbed type.
4077
4078 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4079
4080 PR gdb/15559
4081 * i386-tdep.c (i386_push_dummy_call): Call
4082 i386_thiscall_push_dummy_call.
4083 (i386_thiscall_push_dummy_call): New function.
4084 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4085 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4086 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4087
4088 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * gdbarch.sh (do_read): Add shellcheck disable directive for
4091 warning SC2162.
4092
4093 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4096 "referenced but not assigned" warning.
4097
4098 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * gdbarch.sh: Remove code that sets fallbackdefault.
4101
4102 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * gdbarch.sh: Use shell operators && and || instead of
4105 -a and -o.
4106
4107 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * gdbarch.sh: Use $(...) instead of `...`.
4110
4111 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * gdbarch.sh: Use double quotes around variables.
4114
4115 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * gdbarch.sh: Use %s with printf, instead of variables in the
4118 format string.
4119
4120 2020-04-29 Tom Tromey <tromey@adacore.com>
4121
4122 PR ada/25875:
4123 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4124 type fields here.
4125 (read_enumeration_type): Call
4126 update_enumeration_type_from_children later. Update comments.
4127 (process_enumeration_scope): Don't create type fields.
4128
4129 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4130
4131 * nbsd-tdep.c: Include "xml-syscall.h".
4132 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4133
4134 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4135
4136 * nbsd-nat.c: Include "sys/wait.h".
4137 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4138 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4139 (nbsd_nat_target::remove_exec_catchpoint)
4140 (nbsd_nat_target::set_syscall_catchpoint): Add.
4141 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4142 (nbsd_nat_target::insert_exec_catchpoint)
4143 (nbsd_nat_target::remove_exec_catchpoint)
4144 (nbsd_nat_target::set_syscall_catchpoint): Add.
4145 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4146 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4147 `nbsd_get_syscall_number'.
4148
4149 2020-04-29 Tom Tromey <tom@tromey.com>
4150
4151 * stack.c (print_block_frame_labels): Remove.
4152
4153 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4154
4155 PR gdb/17320
4156 * ada-valprint.c (val_print_packed_array_elements): Move array
4157 end bracket to new line.
4158 (ada_val_print_string): Remove extra spaces before first array
4159 element.
4160 * c-valprint.c (c_value_print_array): Likewise.
4161 * m2-valprint.c (m2_print_array_contents): Likewise.
4162 (m2_value_print_inner): Likewise.
4163 * p-valprint.c (pascal_value_print_inner): Likewise.
4164 * valprint.c (generic_val_print_array): Likewise.
4165 (value_print_array_elements): Move first array element and array
4166 end bracket to new line.
4167
4168 2020-04-29 Tom de Vries <tdevries@suse.de>
4169
4170 PR symtab/25889
4171 * linespec.c (find_method): Fix ix calculation.
4172
4173 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4174
4175 * syscalls/update-netbsd.sh: New file.
4176 * syscalls/netbsd.xml: Regenerate.
4177 * data-directory/Makefile.in: Register `netbsd.xml' in
4178 `SYSCALLS_FILES'.
4179
4180 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4181
4182 * syscalls/update-freebsd.sh: Add double quotes.
4183
4184 2020-04-28 Tom Tromey <tom@tromey.com>
4185
4186 * NEWS: Update.
4187 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4188 (cmdpy_init): Allow class_tui.
4189
4190 2020-04-28 Mark Williams <mark@myosotissp.com>
4191
4192 PR gdb/24480
4193 * dwarf2read.c: Add missing assingments to list_in_scope when
4194 start_symtab was already called.
4195
4196 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4197
4198 PR gdb/25881
4199 * dwarf2/read.c (offset_map_type): Use
4200 gdb:hash_enum<sect_offset> as hash function.
4201
4202 2020-04-28 Tom de Vries <tdevries@suse.de>
4203
4204 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4205 with DW_AT_signature.
4206
4207 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * configure.ac: Remove check for fs_base/gs_base in
4210 user_regs_struct.
4211 * configure: Re-generate.
4212 * config.in: Re-generate.
4213 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4214 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4215 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4216
4217 2020-04-27 Luis Machado <luis.machado@linaro.org>
4218
4219 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4220 problematic inline frame unwinding situation.
4221 * frame.c (frame_id_computed_p): New function.
4222 * frame.h (frame_id_computed_p): New prototype.
4223
4224 2020-04-26 Tom Tromey <tom@tromey.com>
4225
4226 * command.h (enum command_class) <class_pseudo>: Remove.
4227
4228 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4229
4230 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4231 and whitespace.
4232
4233 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4234
4235 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4236 `PT_GET_PROCESS_STATE' block.
4237
4238 2020-04-24 Tom Tromey <tom@tromey.com>
4239
4240 * symtab.h (symbol_get_demangled_name): Don't declare.
4241 * symtab.c (symbol_get_demangled_name): Remove.
4242 (general_symbol_info::natural_name)
4243 (general_symbol_info::demangled_name): Update.
4244
4245 2020-04-24 Tom Tromey <tom@tromey.com>
4246
4247 PR rust/25025:
4248 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4249
4250 2020-04-24 Tom Tromey <tom@tromey.com>
4251
4252 PR symtab/12707:
4253 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4254 exists.
4255 (new_symbol): Likewise.
4256 * compile/compile-object-load.c (get_out_value_type): Use
4257 symbol_matches_search_name.
4258
4259 2020-04-24 Tom Tromey <tom@tromey.com>
4260
4261 * dwarf2/read.c (add_partial_symbol): Do not call
4262 compute_and_set_names.
4263
4264 2020-04-24 Tom Tromey <tom@tromey.com>
4265
4266 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4267 overload.
4268
4269 2020-04-24 Tom Tromey <tom@tromey.com>
4270
4271 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4272 (add_psymbol_to_list): New overload. Make old overload call new
4273 one.
4274 * psympriv.h (add_psymbol_to_list): New overload.
4275
4276 2020-04-24 Tom Tromey <tom@tromey.com>
4277
4278 * dwarf2/read.c (partial_die_info::read) <case
4279 DW_AT_linkage_name>: Use value_as_string.
4280 (dwarf2_string_attr): Use value_as_string.
4281 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4282 method.
4283 * dwarf2/attribute.c (attribute::value_as_string): New method.
4284
4285 2020-04-24 Tom Tromey <tom@tromey.com>
4286
4287 * symtab.c (general_symbol_info::natural_name)
4288 (general_symbol_info::demangled_name): Check for language_rust.
4289
4290 2020-04-24 Tom Tromey <tom@tromey.com>
4291
4292 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4293 (dwarf2_physname): ... from here.
4294 (partial_die_info::read): Add Rust "{" hack.
4295
4296 2020-04-24 Tom Tromey <tom@tromey.com>
4297
4298 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4299 method.
4300 (symbol_set_demangled_name): Don't declare.
4301 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4302 symbol_set_demangled_name.
4303 (general_symbol_info::set_language)
4304 (general_symbol_info::compute_and_set_names): Update.
4305 * minsyms.c (minimal_symbol_reader::install): Update.
4306 * dwarf2/read.c (new_symbol): Update.
4307
4308 2020-04-24 Tom Tromey <tromey@adacore.com>
4309
4310 PR python/23662:
4311 * python/py-type.c (convert_field): Handle
4312 FIELD_LOC_KIND_DWARF_BLOCK.
4313 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4314 (typy_get_dynamic): Nw function.
4315 (type_object_getset): Add "dynamic".
4316 * NEWS: Add entry.
4317
4318 2020-04-24 Tom Tromey <tromey@adacore.com>
4319
4320 * ada-typeprint.c (print_choices, print_variant_part)
4321 (print_record_field_types_dynamic): New functions.
4322 (print_record_field_types): Use print_record_field_types_dynamic.
4323
4324 2020-04-24 Tom Tromey <tromey@adacore.com>
4325
4326 * dwarf2/read.c (handle_data_member_location): New overload.
4327 (dwarf2_add_field): Use it.
4328 (decode_locdesc): Add "computed" parameter. Update comment.
4329 * gdbtypes.c (is_dynamic_type_internal): Also look for
4330 FIELD_LOC_KIND_DWARF_BLOCK.
4331 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4332 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4333 virtual base classes.
4334 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4335 FIELD_LOC_KIND_DWARF_BLOCK.
4336
4337 2020-04-24 Tom Tromey <tromey@adacore.com>
4338
4339 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4340 * gdbtypes.c (is_dynamic_type_internal): Check
4341 TYPE_HAS_DYNAMIC_LENGTH.
4342 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4343 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4344 New macros.
4345 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4346 constant.
4347
4348 2020-04-24 Tom Tromey <tromey@adacore.com>
4349
4350 * dwarf2/read.c (struct variant_field): Rewrite.
4351 (struct variant_part_builder): New.
4352 (struct nextfield): Remove "variant" field. Add "offset".
4353 (struct field_info): Add "current_variant_part" and
4354 "variant_parts".
4355 (alloc_discriminant_info): Remove.
4356 (alloc_rust_variant): New function.
4357 (quirk_rust_enum): Update.
4358 (dwarf2_add_field): Set "offset" member. Don't handle
4359 DW_TAG_variant_part.
4360 (offset_map_type): New typedef.
4361 (convert_variant_range, create_one_variant)
4362 (create_one_variant_part, create_variant_parts)
4363 (add_variant_property): New functions.
4364 (dwarf2_attach_fields_to_type): Call add_variant_property.
4365 (read_structure_type): Don't handle DW_TAG_variant_part.
4366 (handle_variant_part, handle_variant): New functions.
4367 (handle_struct_member_die): Use them.
4368 (process_structure_scope): Don't handle variant parts.
4369 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4370 (struct discriminant_info): Remove.
4371 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4372 (struct main_type) <flag_discriminated_union>: Remove.
4373 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4374 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4375 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4376 Update.
4377 * valops.c (value_union_variant): Remove.
4378 * value.h (value_union_variant): Don't declare.
4379
4380 2020-04-24 Tom Tromey <tromey@adacore.com>
4381
4382 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4383 (ada_value_primitive_packed_val): Update.
4384 * ada-valprint.c (ada_value_print_1): Update.
4385 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4386 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4387 just an address. Use evaluate_for_locexpr_baton.
4388 (dwarf2_evaluate_property): Update.
4389 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4390 array_view.
4391 * findvar.c (default_read_var_value): Update.
4392 * gdbtypes.c (compute_variant_fields_inner)
4393 (resolve_dynamic_type_internal): Update.
4394 (resolve_dynamic_type): Change type of valaddr parameter.
4395 * gdbtypes.h (resolve_dynamic_type): Update.
4396 * valarith.c (value_subscripted_rvalue): Update.
4397 * value.c (value_from_contents_and_address): Update.
4398
4399 2020-04-24 Tom Tromey <tromey@adacore.com>
4400
4401 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4402 "push_initial_value" parameter.
4403 (dwarf2_evaluate_property): Likewise.
4404 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4405
4406 2020-04-24 Tom Tromey <tromey@adacore.com>
4407
4408 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4409 (variant::matches, compute_variant_fields_recurse)
4410 (compute_variant_fields_inner, compute_variant_fields): New
4411 functions.
4412 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4413 Use resolved_type after type is made.
4414 (operator==): Add new cases.
4415 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4416 (struct discriminant_range, struct variant, struct variant_part):
4417 New.
4418 (union dynamic_prop_data) <variant_parts, original_type>: New
4419 members.
4420 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4421 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4422 constants.
4423 * value.c (unpack_bits_as_long): Now public.
4424 * value.h (unpack_bits_as_long): Declare.
4425
4426 2020-04-24 Tom Tromey <tromey@adacore.com>
4427
4428 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4429 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4430
4431 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4432
4433 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4434
4435 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4436
4437 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4438 (remove_fork_catchpoint, post_startup_inferior)
4439 (post_attach): Move...
4440 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4441 (remove_fork_catchpoint, post_startup_inferior)
4442 (post_attach): ...here.
4443 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4444 (remove_fork_catchpoint, post_startup_inferior)
4445 (post_attach): Move...
4446 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4447 (remove_fork_catchpoint, post_startup_inferior)
4448 (post_attach): ...here.
4449
4450 2020-04-24 Tom Tromey <tromey@adacore.com>
4451
4452 * nat/windows-nat.h (struct windows_thread_info)
4453 <pc_adjusted>: New member.
4454 * windows-nat.c (windows_fetch_one_register): Check
4455 pc_adjusted.
4456 (windows_nat_target::get_windows_debug_event)
4457 (windows_nat_target::wait): Set pc_adjusted.
4458
4459 2020-04-24 Tom de Vries <tdevries@suse.de>
4460
4461 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4462 Run gdb-add-index inside temp dir.
4463
4464 2020-04-23 Tom Tromey <tromey@adacore.com>
4465
4466 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4467 in loop.
4468
4469 2020-04-23 Luis Machado <luis.machado@linaro.org>
4470
4471 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4472 get_frame_register instead of gdbarch_unwind_pc.
4473
4474 2020-04-23 Tom de Vries <tdevries@suse.de>
4475
4476 * symtab.c (lookup_global_symbol): Prefer def over decl.
4477
4478 2020-04-23 Tom de Vries <tdevries@suse.de>
4479
4480 PR symtab/25807
4481 * block.c (best_symbol, better_symbol): Promote to external.
4482 * block.h (best_symbol, better_symbol): Declare.
4483 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4484 decl.
4485
4486 2020-04-23 Tom Tromey <tromey@adacore.com>
4487
4488 PR ada/25837:
4489 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4490 "const char *", not a "const std::string &".
4491 <name_and_matcher::operator==>: Update.
4492 * unittests/lookup_name_info-selftests.c: Change type of
4493 "result".
4494
4495 2020-04-23 Tom Tromey <tom@tromey.com>
4496
4497 * inferior.h (iterate_over_inferiors): Don't declare.
4498 * inferior.c (iterate_over_inferiors): Remove.
4499 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4500 Remove.
4501 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4502 use iterate_over_inferiors.
4503 (darwin_resume_inferior_it)
4504 (struct resume_inferior_threads_param)
4505 (darwin_resume_inferior_threads_it): Remove.
4506 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4507
4508 2020-04-23 Tom de Vries <tdevries@suse.de>
4509
4510 * blockframe.c (find_pc_partial_function): Use
4511 find_pc_sect_compunit_symtab rather than
4512 objfile->sf->qf->find_pc_sect_compunit_symtab.
4513
4514 2020-04-22 Tom de Vries <tdevries@suse.de>
4515
4516 PR symtab/25764
4517 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4518 in psymtabs.
4519
4520 2020-04-22 Tom de Vries <tdevries@suse.de>
4521
4522 PR symtab/25801
4523 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4524 symtabs.
4525
4526 2020-04-22 Tom de Vries <tdevries@suse.de>
4527
4528 PR symtab/25700
4529 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4530 CU if already created.
4531
4532 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4533
4534 * infrun.c (displaced_step_fixup): Switch to the event_thread
4535 before calling displaced_step_restore, not after.
4536
4537 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4538
4539 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4540 its inferior is not recorded by us.
4541 (record_btrace_target_open): Replace call to
4542 all_non_exited_threads () with call to current_inferior
4543 ()->non_exited_threads ().
4544 (record_btrace_target::stop_recording): Likewise.
4545 (record_btrace_target::close): Likewise.
4546 (record_btrace_target::wait): Likewise.
4547 (record_btrace_target::record_stop_replaying): Likewise.
4548
4549 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4550
4551 * btrace.c (btrace_enable): Throw an error on double enables and
4552 when enabling recording fails.
4553 (btrace_disable): Throw an error if the thread is not recorded.
4554
4555 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4556
4557 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4558 request if we do not have a thread_info.
4559
4560 2020-04-21 Tom de Vries <tdevries@suse.de>
4561
4562 PR gdb/25471
4563 * thread.c
4564 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4565 exception in get_frame_id.
4566
4567 2020-04-20 Tom Tromey <tromey@adacore.com>
4568
4569 * python/python.c (struct gdbpy_event): Mark move constructor as
4570 noexcept.
4571 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4572 constructor as noexcept.
4573 * completer.h (struct completion_result): Mark move constructor as
4574 noexcept.
4575 * completer.c (completion_result::completion_result): Use
4576 initialization style. Don't call reset_match_list.
4577
4578 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4579
4580 * MAINTAINERS (Write After Approval): Add myself.
4581
4582 2020-04-18 Tom Tromey <tom@tromey.com>
4583
4584 * windows-tdep.c (init_w32_command_list)
4585 (w32_prefix_command_valid): Restore.
4586 (_initialize_windows_tdep): Call init_w32_command_list.
4587
4588 2020-04-18 Tom Tromey <tom@tromey.com>
4589
4590 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4591 * value.c (value_fn_field): Update.
4592 * valops.c (find_function_in_inferior)
4593 (value_allocate_space_in_inferior): Update.
4594 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4595 Update.
4596 * tui/tui-source.c (tui_source_window::set_contents): Update.
4597 * symtab.c (lookup_global_or_static_symbol)
4598 (find_function_start_sal_1, skip_prologue_sal)
4599 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4600 * symmisc.c (dump_msymbols, dump_symtab_1)
4601 (maintenance_print_one_line_table): Update.
4602 * symfile.c (init_entry_point_info, section_is_mapped)
4603 (list_overlays_command, simple_read_overlay_table)
4604 (simple_overlay_update_1): Update.
4605 * stap-probe.c (handle_stap_probe): Update.
4606 * stabsread.c (dbx_init_float_type, define_symbol)
4607 (read_one_struct_field, read_enum_type, read_range_type): Update.
4608 * source.c (info_line_command): Update.
4609 * python/python.c (gdbpy_source_objfile_script)
4610 (gdbpy_execute_objfile_script): Update.
4611 * python/py-type.c (save_objfile_types): Update.
4612 * python/py-objfile.c (py_free_objfile): Update.
4613 * python/py-inferior.c (python_new_objfile): Update.
4614 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4615 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4616 (maintenance_check_psymtabs): Update.
4617 * printcmd.c (info_address_command): Update.
4618 * objfiles.h (struct objfile) <arch>: New method, from
4619 get_objfile_arch.
4620 (get_objfile_arch): Don't declare.
4621 * objfiles.c (get_objfile_arch): Remove.
4622 (filter_overlapping_sections): Update.
4623 * minsyms.c (msymbol_is_function): Update.
4624 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4625 (output_nondebug_symbol): Update.
4626 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4627 (mdebug_expand_psymtab): Update.
4628 * machoread.c (macho_add_oso_symfile): Update.
4629 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4630 Update.
4631 * linux-fork.c (checkpoint_command): Update.
4632 * linespec.c (convert_linespec_to_sals): Update.
4633 * jit.c (finalize_symtab): Update.
4634 * infrun.c (insert_exception_resume_from_probe): Update.
4635 * ia64-tdep.c (ia64_find_unwind_table): Update.
4636 * hppa-tdep.c (internalize_unwinds): Update.
4637 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4638 Update.
4639 * gcore.c (call_target_sbrk): Update.
4640 * elfread.c (record_minimal_symbol, elf_symtab_read)
4641 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4642 (elf_gnu_ifunc_resolve_by_got): Update.
4643 * dwarf2/read.c (create_addrmap_from_index)
4644 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4645 (read_debug_names_from_section)
4646 (process_psymtab_comp_unit_reader, add_partial_symbol)
4647 (add_partial_subprogram, process_full_comp_unit)
4648 (read_file_scope, read_func_scope, read_lexical_block_scope)
4649 (read_call_site_scope, dwarf2_ranges_read)
4650 (dwarf2_record_block_ranges, dwarf2_add_field)
4651 (mark_common_block_symbol_computed, read_tag_pointer_type)
4652 (read_tag_string_type, dwarf2_init_float_type)
4653 (dwarf2_init_complex_target_type, read_base_type)
4654 (partial_die_info::read, partial_die_info::read)
4655 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4656 (dwarf2_fetch_die_loc_sect_off): Update.
4657 * dwarf2/loc.c (dwarf2_find_location_expression)
4658 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4659 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4660 (dwarf2_loc_desc_get_symbol_read_needs)
4661 (locexpr_describe_location_piece, locexpr_describe_location_1)
4662 (loclist_describe_location): Update.
4663 * dwarf2/index-write.c (write_debug_names): Update.
4664 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4665 * dtrace-probe.c (dtrace_process_dof): Update.
4666 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4667 (process_one_symbol): Update.
4668 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4669 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4670 (coff_read_enum_type): Update.
4671 * cli/cli-cmds.c (edit_command, list_command): Update.
4672 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4673 * breakpoint.c (create_overlay_event_breakpoint)
4674 (create_longjmp_master_breakpoint)
4675 (create_std_terminate_master_breakpoint)
4676 (create_exception_master_breakpoint, get_sal_arch): Update.
4677 * block.c (block_gdbarch): Update.
4678 * annotate.c (annotate_source_line): Update.
4679
4680 2020-04-17 Tom Tromey <tromey@adacore.com>
4681
4682 * auto-load.c (show_auto_load_cmd): Remove.
4683 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4684 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4685 (maintenance_print_arc_command): Remove.
4686 * tui/tui-win.c (tui_command): Remove.
4687 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4688 * tui/tui-layout.c (tui_layout_command): Remove.
4689 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4690 * python/python.c (user_set_python, user_show_python): Remove.
4691 (_initialize_python): Use add_basic_prefix_cmd,
4692 add_show_prefix_cmd.
4693 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4694 (install_gdb_commands): Use add_basic_prefix_cmd,
4695 add_show_prefix_cmd.
4696 (info_guile_command): Remove.
4697 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4698 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4699 add_show_prefix_cmd.
4700 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4701 Remove do_set and do_show parameters.
4702 * cli/cli-style.c (set_style, show_style): Remove.
4703 (_initialize_cli_style): Use add_basic_prefix_cmd,
4704 add_show_prefix_cmd.
4705 (cli_style_option::add_setshow_commands): Remove do_set and
4706 do_show parameters.
4707 (cli_style_option::add_setshow_commands): Use
4708 add_basic_prefix_cmd, add_show_prefix_cmd.
4709 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4710 (set_style_name): Remove.
4711 * cli/cli-dump.c (dump_command, append_command): Remove.
4712 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4713 (tekhex_dump_command, binary_dump_command)
4714 (binary_append_command): Remove.
4715 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4716 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4717 (init_w32_command_list): Remove; move into ...
4718 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4719 * valprint.c (set_print, show_print, set_print_raw)
4720 (show_print_raw): Remove.
4721 (_initialize_valprint): Use add_basic_prefix_cmd,
4722 add_show_prefix_cmd.
4723 * typeprint.c (set_print_type, show_print_type): Remove.
4724 (_initialize_typeprint): Use add_basic_prefix_cmd,
4725 add_show_prefix_cmd.
4726 * record.c (set_record_command, show_record_command): Remove.
4727 (_initialize_record): Use add_basic_prefix_cmd,
4728 add_show_prefix_cmd.
4729 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4730 add_show_prefix_cmd.
4731 (info_command, show_command, set_debug, show_debug): Remove.
4732 * top.h (set_history, show_history): Don't declare.
4733 * top.c (set_history, show_history): Remove.
4734 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4735 (unset_tdesc_cmd): Remove.
4736 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4737 add_show_prefix_cmd.
4738 * symtab.c (info_module_command): Remove.
4739 (_initialize_symtab): Use add_basic_prefix_cmd.
4740 * symfile.c (overlay_command): Remove.
4741 (_initialize_symfile): Use add_basic_prefix_cmd.
4742 * sparc64-tdep.c (info_adi_command): Remove.
4743 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4744 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4745 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4746 add_show_prefix_cmd.
4747 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4748 (_initialize_serial): Use add_basic_prefix_cmd,
4749 add_show_prefix_cmd.
4750 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4751 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4752 add_show_prefix_cmd.
4753 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4754 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4755 add_show_prefix_cmd.
4756 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4757 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4758 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4759 add_show_prefix_cmd.
4760 * remote.c (remote_command, set_remote_cmd): Remove.
4761 (_initialize_remote): Use add_basic_prefix_cmd.
4762 * record-full.c (set_record_full_command)
4763 (show_record_full_command): Remove.
4764 (_initialize_record_full): Use add_basic_prefix_cmd,
4765 add_show_prefix_cmd.
4766 * record-btrace.c (cmd_set_record_btrace)
4767 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4768 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4769 (cmd_show_record_btrace_pt): Remove.
4770 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4771 add_show_prefix_cmd.
4772 * ravenscar-thread.c (set_ravenscar_command)
4773 (show_ravenscar_command): Remove.
4774 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4775 add_show_prefix_cmd.
4776 * mips-tdep.c (show_mips_command, set_mips_command)
4777 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4778 add_show_prefix_cmd.
4779 * maint.c (maintenance_command, maintenance_info_command)
4780 (maintenance_check_command, maintenance_print_command)
4781 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4782 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4783 add_show_prefix_cmd.
4784 (show_per_command_cmd): Remove.
4785 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4786 Remove.
4787 (maintenance_show_test_settings_cmd): Remove.
4788 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4789 add_show_prefix_cmd.
4790 * maint-test-options.c (maintenance_test_options_command):
4791 Remove.
4792 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4793 * macrocmd.c (macro_command): Remove
4794 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4795 * language.c (set_check, show_check): Remove.
4796 (_initialize_language): Use add_basic_prefix_cmd,
4797 add_show_prefix_cmd.
4798 * infcmd.c (unset_command): Remove.
4799 (_initialize_infcmd): Use add_basic_prefix_cmd.
4800 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4801 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4802 add_show_prefix_cmd.
4803 * go32-nat.c (go32_info_dos_command): Remove.
4804 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4805 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4806 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4807 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4808 (_initialize_frame): Use add_basic_prefix_cmd,
4809 add_show_prefix_cmd.
4810 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4811 (_initialize_dcache): Use add_basic_prefix_cmd,
4812 add_show_prefix_cmd.
4813 * cp-support.c (maint_cplus_command): Remove.
4814 (_initialize_cp_support): Use add_basic_prefix_cmd.
4815 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4816 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4817 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4818 add_basic_prefix_cmd, add_show_prefix_cmd.
4819 * breakpoint.c (save_command): Remove.
4820 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4821 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4822 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4823 add_show_prefix_cmd.
4824 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4825 (set_ada_command, show_ada_command): Remove.
4826 (_initialize_ada_language): Use add_basic_prefix_cmd,
4827 add_show_prefix_cmd.
4828 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4829
4830 2020-04-16 Kamil Rytarowski <n54@gmx.com>
4831
4832 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4833 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4834
4835 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4836
4837 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4838 warning messages.
4839
4840 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4841
4842 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4843 import table is not at beginning of .idata section.
4844
4845 2020-04-16 Pedro Alves <palves@redhat.com>
4846
4847 * inferior.c (delete_inferior): Use delete operator directly
4848 instead of delete_program_space.
4849 * progspace.c (add_program_space): New, factored out from
4850 program_space::program_space.
4851 (remove_program_space): New, factored out from
4852 delete_program_space.
4853 (program_space::program_space): Remove intro comment. Rewrite.
4854 (program_space::~program_space): Remove intro comment. Call
4855 remove_program_space.
4856 (delete_program_space): Delete.
4857 * progspace.h (program_space::program_space): Make explicit. Move
4858 intro comment here, adjusted.
4859 (program_space::~program_space): Move intro comment here,
4860 adjusted.
4861 (delete_program_space): Remove.
4862
4863 2020-04-16 Tom Tromey <tromey@adacore.com>
4864
4865 * windows-nat.c (windows_nat::handle_access_violation): New
4866 function.
4867 * nat/windows-nat.h (handle_access_violation): Declare.
4868 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4869 windows-nat.c. Call handle_access_violation.
4870
4871 2020-04-16 Tom de Vries <tdevries@suse.de>
4872
4873 PR symtab/25791
4874 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4875 CUs without psymtab.
4876
4877 2020-04-16 Kevin Buettner <kevinb@redhat.com>
4878
4879 * python/python.c (do_start_initialization): Don't call
4880 PyEval_InitThreads for Python 3.9 and beyond.
4881
4882 2020-04-15 Kamil Rytarowski <n54@gmx.com>
4883
4884 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4885 thread functions.
4886 (obsd_nat_target::wait): Likewise.
4887
4888 2020-04-15 Tom Tromey <tromey@adacore.com>
4889
4890 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4891 (DEBUG_EXCEPT): Use debug_printf.
4892
4893 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4894
4895 * completer.c (class completion_tracker::completion_hash_entry)
4896 <hash_name>: New member function.
4897 (completion_tracker::discard_completions): New callback to hash a
4898 completion_hash_entry, pass this to htab_create_alloc.
4899
4900 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4901
4902 * windows-nat.c (windows_make_so): Warn rather than stopping with
4903 an error if realpath() fails.
4904
4905 2020-04-14 Kamil Rytarowski <n54@gmx.com>
4906
4907 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4908 (nbsd_nat_target::info_proc): Add do_status.
4909
4910 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4911 Tom de Vries <tdevries@suse.de>
4912
4913 PR symtab/25718
4914 * psympriv.h (struct partial_symtab::read_symtab)
4915 (struct partial_symtab::expand_psymtab)
4916 (struct partial_symtab::read_dependencies): Update comments.
4917 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4918 read_symtab for includer.
4919 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4920 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4921 (struct dwarf2_include_psymtab::m_readin): Remove.
4922 (struct dwarf2_include_psymtab::includer): New member function.
4923 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4924
4925 2020-04-14 Tom de Vries <tdevries@suse.de>
4926
4927 PR symtab/25720
4928 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4929 with NULL symbol_matcher and lookup_name.
4930 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4931 and lookup_name.
4932 * dwarf2/read.c (dw2_expand_symtabs_matching)
4933 (dw2_debug_names_expand_symtabs_matching): Same.
4934 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4935 Make lookup_name a pointer. Update comment.
4936 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4937 lookup_name being a pointer.
4938 * symfile.c (expand_symtabs_matching): Same.
4939 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4940 * linespec.c (iterate_over_all_matching_symtabs): Same.
4941
4942 2020-04-13 Tom Tromey <tom@tromey.com>
4943
4944 * run-on-main-thread.c: Update include.
4945 * unittests/main-thread-selftests.c: Update include.
4946 * tui/tui-win.c: Update include.
4947 * tui/tui-io.c: Update include.
4948 * tui/tui-interp.c: Update include.
4949 * tui/tui-hooks.c: Update include.
4950 * top.h: Update include.
4951 * top.c: Update include.
4952 * ser-base.c: Update include.
4953 * remote.c: Update include.
4954 * remote-notif.c: Update include.
4955 * remote-fileio.c: Update include.
4956 * record-full.c: Update include.
4957 * record-btrace.c: Update include.
4958 * python/python.c: Update include.
4959 * posix-hdep.c: Update include.
4960 * mingw-hdep.c: Update include.
4961 * mi/mi-main.c: Update include.
4962 * mi/mi-interp.c: Update include.
4963 * main.c: Update include.
4964 * linux-nat.c: Update include.
4965 * interps.c: Update include.
4966 * infrun.c: Update include.
4967 * inf-loop.c: Update include.
4968 * event-top.c: Update include.
4969 * event-loop.c: Move to ../gdbsupport/.
4970 * event-loop.h: Move to ../gdbsupport/.
4971 * async-event.h: Update include.
4972 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4973
4974 2020-04-13 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-win.c: Include async-event.h.
4977 * remote.c: Include async-event.h.
4978 * remote-notif.c: Include async-event.h.
4979 * record-full.c: Include async-event.h.
4980 * record-btrace.c: Include async-event.h.
4981 * infrun.c: Include async-event.h.
4982 * event-top.c: Include async-event.h.
4983 * event-loop.h: Move some declarations to async-event.h.
4984 * event-loop.c: Don't include ser-event.h or top.h. Move some
4985 code to async-event.c.
4986 * async-event.h: New file.
4987 * async-event.c: New file.
4988 * Makefile.in (COMMON_SFILES): Add async-event.c.
4989 (HFILES_NO_SRCDIR): Add async-event.h.
4990
4991 2020-04-13 Tom Tromey <tom@tromey.com>
4992
4993 * utils.c (flush_streams): New function.
4994 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4995
4996 2020-04-13 Tom Tromey <tom@tromey.com>
4997
4998 * event-loop.c (handle_file_event): Use warning, not
4999 printf_unfiltered.
5000
5001 2020-04-13 Tom Tromey <tom@tromey.com>
5002
5003 * event-loop.c: Include <chrono>.
5004
5005 2020-04-13 Tom Tromey <tom@tromey.com>
5006
5007 * gdb_select.h: Move to ../gdbsupport/.
5008 * event-loop.c: Update include path.
5009 * top.c: Update include path.
5010 * ser-base.c: Update include path.
5011 * ui-file.c: Update include path.
5012 * ser-tcp.c: Update include path.
5013 * guile/scm-ports.c: Update include path.
5014 * posix-hdep.c: Update include path.
5015 * ser-unix.c: Update include path.
5016 * gdb_usleep.c: Update include path.
5017 * mingw-hdep.c: Update include path.
5018 * inflow.c: Update include path.
5019 * infrun.c: Update include path.
5020 * event-top.c: Update include path.
5021
5022 2020-04-13 Tom Tromey <tom@tromey.com>
5023
5024 * configure: Rebuild.
5025 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5026
5027 2020-04-13 Tom Tromey <tom@tromey.com>
5028
5029 * event-loop.h (start_event_loop): Don't declare.
5030 * event-loop.c (start_event_loop): Move...
5031 * main.c (start_event_loop): ...here. Now static.
5032
5033 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5034
5035 * MAINTAINERS: Update my email address.
5036
5037 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5038
5039 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5040 IP_ALL.
5041
5042 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5043
5044 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5045 (nbsd_nat_target::info_proc): Add do_cmdline.
5046
5047 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5048
5049 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5050 (nbsd_nat_target::info_proc): Add do_cwd.
5051
5052 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5053
5054 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5055
5056 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5057
5058 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5059 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5060 (nbsd_nat_target::info_proc): New functions.
5061 * nbsd-nat.c (kinfo_get_vmmap): New function.
5062 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5063 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5064 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5065 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5066 functions.
5067 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5068 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5069 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5070 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5071 (KINFO_VME_FLAG_GROWS_DOWN): New.
5072
5073 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5074
5075 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5076 bit shift.
5077
5078 2020-04-10 Tom Tromey <tromey@adacore.com>
5079
5080 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5081
5082 2020-04-10 Tom Tromey <tromey@adacore.com>
5083
5084 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5085 separate debug files.
5086
5087 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5088
5089 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5090 Move to...
5091 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5092 ... here.
5093 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5094 Check for STATUS_WX86_BREAKPOINT.
5095 (windows_nat_target::wait): Same.
5096
5097 2020-04-10 Tom de Vries <tdevries@suse.de>
5098
5099 PR cli/25808
5100 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5101
5102 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5105 (Write After Approval): Remove Tom de Vries.
5106
5107 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5108
5109 revert partially:
5110 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5111
5112 * buildsym.c (record_line): Fix undefined behavior and preserve
5113 lines at eof.
5114
5115 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5116
5117 * auxv.h (svr4_auxv_parse): New.
5118 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5119 and generic_auxv_parse.
5120 (svr4_auxv_parse): Add.
5121 * obsd-tdep.c: Include "auxv.h".
5122 (obsd_auxv_parse): Remove.
5123 (obsd_init_abi): Remove comment.
5124 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5125 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5126 * nbsd-tdep.c: Include "auxv.h".
5127 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5128
5129 2020-04-08 Tom Tromey <tromey@adacore.com>
5130
5131 * nat/windows-nat.h (last_wait_event): Don't declare.
5132 (wait_for_debug_event): Update comment.
5133 * nat/windows-nat.c (last_wait_event): Now static.
5134
5135 2020-04-08 Tom Tromey <tromey@adacore.com>
5136
5137 * windows-nat.c (wait_for_debug_event): Move to
5138 nat/windows-nat.c.
5139 * nat/windows-nat.h (wait_for_debug_event): Declare.
5140 * nat/windows-nat.c (wait_for_debug_event): Move from
5141 windows-nat.c. No longer static.
5142
5143 2020-04-08 Tom Tromey <tromey@adacore.com>
5144
5145 * windows-nat.c (get_windows_debug_event): Use
5146 fetch_pending_stop.
5147 * nat/windows-nat.h (fetch_pending_stop): Declare.
5148 * nat/windows-nat.c (fetch_pending_stop): New function.
5149
5150 2020-04-08 Tom Tromey <tromey@adacore.com>
5151
5152 * windows-nat.c (windows_continue): Use matching_pending_stop and
5153 continue_last_debug_event.
5154 * nat/windows-nat.h (matching_pending_stop)
5155 (continue_last_debug_event): Declare.
5156 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5157 (matching_pending_stop, continue_last_debug_event): New
5158 functions.
5159
5160 2020-04-08 Tom Tromey <tromey@adacore.com>
5161
5162 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5163 (handle_exception_result): Move to nat/windows-nat.h.
5164 (DEBUG_EXCEPTION_SIMPLE): Remove.
5165 (windows_nat::handle_ms_vc_exception): New function.
5166 (handle_exception): Move to nat/windows-nat.c.
5167 (get_windows_debug_event): Update.
5168 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5169 nat/windows-nat.c.
5170 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5171 (handle_exception_result): Move from windows-nat.c.
5172 (handle_exception): Declare.
5173 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5174 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5175 windows-nat.c.
5176
5177 2020-04-08 Tom Tromey <tromey@adacore.com>
5178
5179 * windows-nat.c (exception_count, event_count): Remove.
5180 (handle_exception, get_windows_debug_event)
5181 (do_initial_windows_stuff): Update.
5182
5183 2020-04-08 Tom Tromey <tromey@adacore.com>
5184
5185 * windows-nat.c (windows_nat::handle_load_dll)
5186 (windows_nat::handle_unload_dll): Rename. No longer static.
5187 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5188 Declare.
5189
5190 2020-04-08 Tom Tromey <tromey@adacore.com>
5191
5192 * complaints.h (stop_whining): Declare at top-level.
5193 (complaint): Don't declare stop_whining.
5194
5195 2020-04-08 Tom Tromey <tromey@adacore.com>
5196
5197 * windows-nat.c (windows_nat::handle_output_debug_string):
5198 Rename. No longer static.
5199 * nat/windows-nat.h (handle_output_debug_string): Declare.
5200
5201 2020-04-08 Tom Tromey <tromey@adacore.com>
5202
5203 * windows-nat.c (current_process_handle, current_process_id)
5204 (main_thread_id, last_sig, current_event, last_wait_event)
5205 (current_windows_thread, desired_stop_thread_id, pending_stops)
5206 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5207 (display_selectors, fake_create_process)
5208 (get_windows_debug_event): Update.
5209 * nat/windows-nat.h (current_process_handle, current_process_id)
5210 (main_thread_id, last_sig, current_event, last_wait_event)
5211 (current_windows_thread, desired_stop_thread_id, pending_stops)
5212 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5213 * nat/windows-nat.c (current_process_handle, current_process_id)
5214 (main_thread_id, last_sig, current_event, last_wait_event)
5215 (current_windows_thread, desired_stop_thread_id, pending_stops)
5216 (siginfo_er): New globals. Move from windows-nat.c.
5217
5218 2020-04-08 Tom Tromey <tromey@adacore.com>
5219
5220 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5221 (handle_load_dll): Update.
5222 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5223
5224 2020-04-08 Tom Tromey <tromey@adacore.com>
5225
5226 * windows-nat.c (enum thread_disposition_type): Move to
5227 nat/windows-nat.h.
5228 (windows_nat::thread_rec): Rename from thread_rec. No longer
5229 static.
5230 (windows_add_thread, windows_nat_target::fetch_registers)
5231 (windows_nat_target::store_registers, handle_exception)
5232 (windows_nat_target::resume, get_windows_debug_event)
5233 (windows_nat_target::get_tib_address)
5234 (windows_nat_target::thread_name)
5235 (windows_nat_target::thread_alive): Update.
5236 * nat/windows-nat.h (enum thread_disposition_type): Move from
5237 windows-nat.c.
5238 (thread_rec): Declare.
5239
5240 2020-04-08 Tom Tromey <tromey@adacore.com>
5241
5242 * windows-nat.c: Add "using namespace".
5243 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5244 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5245
5246 2020-04-08 Tom Tromey <tromey@adacore.com>
5247
5248 * nat/windows-nat.h (struct windows_thread_info): Declare
5249 destructor.
5250 * nat/windows-nat.c (~windows_thread_info): New.
5251
5252 2020-04-08 Tom Tromey <tromey@adacore.com>
5253
5254 PR gdb/22992
5255 * windows-nat.c (current_event): Update comment.
5256 (last_wait_event, desired_stop_thread_id): New globals.
5257 (struct pending_stop): New.
5258 (pending_stops): New global.
5259 (windows_nat_target) <stopped_by_sw_breakpoint>
5260 <supports_stopped_by_sw_breakpoint>: New methods.
5261 (windows_fetch_one_register): Add assertions. Adjust PC.
5262 (windows_continue): Handle pending stops. Suspend other threads
5263 when stepping. Use last_wait_event
5264 (wait_for_debug_event): New function.
5265 (get_windows_debug_event): Use wait_for_debug_event. Handle
5266 pending stops. Queue spurious stops.
5267 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5268 (windows_nat_target::kill): Use wait_for_debug_event.
5269 * nat/windows-nat.h (struct windows_thread_info)
5270 <stopped_at_software_breakpoint>: New field.
5271 * nat/windows-nat.c (windows_thread_info::resume): Clear
5272 stopped_at_software_breakpoint.
5273
5274 2020-04-08 Tom Tromey <tromey@adacore.com>
5275
5276 * windows-nat.c (enum thread_disposition_type): New.
5277 (thread_rec): Replace "get_context" parameter with "disposition";
5278 change type.
5279 (windows_add_thread, windows_nat_target::fetch_registers)
5280 (windows_nat_target::store_registers, handle_exception)
5281 (windows_nat_target::resume, get_windows_debug_event)
5282 (windows_nat_target::get_tib_address)
5283 (windows_nat_target::thread_name)
5284 (windows_nat_target::thread_alive): Update.
5285
5286 2020-04-08 Tom Tromey <tromey@adacore.com>
5287
5288 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5289 (windows_continue): Use windows_continue::resume.
5290 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5291 resume>: Declare new methods.
5292 * nat/windows-nat.c: New file.
5293 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5294
5295 2020-04-08 Tom Tromey <tromey@adacore.com>
5296
5297 * windows-nat.c (windows_add_thread, windows_delete_thread)
5298 (windows_nat_target::fetch_registers)
5299 (windows_nat_target::store_registers, fake_create_process)
5300 (windows_nat_target::resume, windows_nat_target::resume)
5301 (get_windows_debug_event, windows_nat_target::wait)
5302 (windows_nat_target::pid_to_str)
5303 (windows_nat_target::get_tib_address)
5304 (windows_nat_target::get_ada_task_ptid)
5305 (windows_nat_target::thread_name)
5306 (windows_nat_target::thread_alive): Use lwp, not tid.
5307
5308 2020-04-08 Tom Tromey <tromey@adacore.com>
5309
5310 * windows-nat.c (handle_exception)
5311 (windows_nat_target::thread_name): Update.
5312 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5313 <name>: Now unique_xmalloc_ptr.
5314
5315 2020-04-08 Tom Tromey <tromey@adacore.com>
5316
5317 * windows-nat.c (thread_rec)
5318 (windows_nat_target::fetch_registers): Update.
5319 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5320 Update comment.
5321 <debug_registers_changed, reload_context>: Now bool.
5322
5323 2020-04-08 Tom Tromey <tromey@adacore.com>
5324
5325 * windows-nat.c (windows_add_thread): Use new.
5326 (windows_init_thread_list, windows_delete_thread): Use delete.
5327 (get_windows_debug_event): Update.
5328 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5329 destructor, and initializers.
5330
5331 2020-04-08 Tom Tromey <tromey@adacore.com>
5332
5333 * windows-nat.c (struct windows_thread_info): Remove.
5334 * nat/windows-nat.h: New file.
5335
5336 2020-04-08 Tom Tromey <tromey@adacore.com>
5337
5338 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5339 (thread_rec, windows_add_thread, windows_delete_thread)
5340 (windows_continue): Update.
5341
5342 2020-04-08 Tom Tromey <tromey@adacore.com>
5343
5344 * windows-nat.c (struct windows_thread_info): Remove typedef.
5345 (thread_head): Remove.
5346 (thread_list): New global.
5347 (thread_rec, windows_add_thread, windows_init_thread_list)
5348 (windows_delete_thread, windows_continue): Update.
5349
5350 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5351
5352 * windows-tdep.h (windows_init_abi): Add comment.
5353 (cygwin_init_abi): New declaration.
5354 * windows-tdep.c: Split signal enumeration in two, one for
5355 Windows and one for Cygwin.
5356 (windows_gdb_signal_to_target): Only deal with signal of the
5357 Windows OS ABI.
5358 (cygwin_gdb_signal_to_target): New function.
5359 (windows_init_abi): Rename to windows_init_abi_common, don't set
5360 gdb_signal_to_target gdbarch method. Add new new function with
5361 this name.
5362 (cygwin_init_abi): New function.
5363 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5364 comment. Don't call windows_init_abi.
5365 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5366 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5367 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5368 i386_windows_init_abi_common, don't call windows_init_abi. Add
5369 a new function of this name.
5370 (i386_cygwin_init_abi): New function.
5371 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5372 OS ABI Cygwin.
5373
5374 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5375
5376 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5377 parameter.c.
5378 (dwarf2_read_gdb_index): Update.
5379
5380 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5381
5382 * nbsd-tdep.c: Include "objfiles.h".
5383 (nbsd_skip_solib_resolver): New.
5384 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5385
5386 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5387
5388 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5389 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5390 with DW_LLE_base_addressx are being emitted in DWARFv5.
5391 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5392 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5393 unsigned integer.
5394
5395 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5396
5397 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5398 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5399 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5400 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5401 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5402 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5403 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5404
5405
5406 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5407
5408 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5409 (read_loclist_index): New function definition.
5410 (lookup_loclist_base): New function definition.
5411 (read_loclist_header): New function definition.
5412 (dwarf2_cu): Add loclist_base and loclist_header field.
5413 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5414 (read_full_die_1): Read the value of DW_AT_loclists_base.
5415 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5416 (read_attribute_value): Handle DW_FORM_loclistx.
5417 (skip_one_die): Handle DW_FORM_loclistx.
5418 (loclist_header): New structure declaration.
5419 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5420
5421 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5422
5423 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5424 constructor. Remove `addr` parameter from other constructor and
5425 add `per_cu` parameter.
5426 * dwarf2/read.c (create_partial_symtab): Update.
5427
5428 2020-04-07 Tom de Vries <tdevries@suse.de>
5429
5430 PR symtab/25796
5431 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5432 (partial_die_info::fixup): Inherit has_const_value.
5433
5434 2020-04-07 Tom de Vries <tdevries@suse.de>
5435
5436 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5437 symbols without address.
5438
5439 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5440
5441 * nbsd-nat.h (struct thread_info): Add forward declaration.
5442 (nbsd_nat_target::thread_alive): Add.
5443 (nbsd_nat_target::thread_name): Likewise.
5444 (nbsd_nat_target::update_thread_list): Likewise.
5445 (update_thread_list::post_attach): Likewise.
5446 (post_attach::pid_to_str): Likewise.
5447 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5448 (nbsd_thread_lister): Add.
5449 (nbsd_nat_target::thread_alive): Likewise.
5450 (nbsd_nat_target::thread_name): Likewise.
5451 (nbsd_add_threads): Likewise.
5452 (update_thread_list::post_attach): Likewise.
5453 (nbsd_nat_target::update_thread_list): Likewise.
5454 (post_attach::pid_to_str): Likewise.
5455
5456 2020-04-06 Tom Tromey <tromey@adacore.com>
5457
5458 * ada-valprint.c (print_variant_part): Extract the variant field.
5459 (print_field_values): Use the field as the outer value when
5460 recursing.
5461
5462 2020-04-06 Tom Tromey <tromey@adacore.com>
5463
5464 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5465 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5466 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5467 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5468 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5469
5470 2020-04-06 Tom Tromey <tromey@adacore.com>
5471
5472 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5473 TYPE_CODE_ERROR.
5474
5475 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5476
5477 * nbsd-tdep.c: Include "gdbarch.h".
5478 Define enum with NetBSD signal numbers.
5479 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5480 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5481 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5482 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5483 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5484 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5485 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5486 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5487 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5488 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5489 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5490 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5491
5492 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5493
5494 PR gdb/25325
5495 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5496
5497 2020-04-03 Tom Tromey <tromey@adacore.com>
5498
5499 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5500 Read constant block.
5501
5502 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5505 (gdb_bfd_get_full_section_contents): New declaration.
5506 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5507 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5508 gdb_bfd_get_full_section_contents.
5509
5510 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5511
5512 * exec.c (build_section_table): Replace internal_error with
5513 gdb_assert.
5514 (section_table_xfer_memory_partial): Likewise.
5515 * mdebugread.c (parse_partial_symbols): Likewise.
5516 * psymtab.c (lookup_partial_symbol): Likewise.
5517 * utils.c (wrap_here): Likewise.
5518
5519 2020-04-02 Tom Tromey <tromey@adacore.com>
5520
5521 * f-lang.c (build_fortran_types): Use arch_type to initialize
5522 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5523
5524 2020-04-02 Tom Tromey <tromey@adacore.com>
5525
5526 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5527 of attributes.
5528
5529 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5530 Bernd Edlinger <bernd.edlinger@hotmail.de>
5531 Tom Tromey <tromey@adacore.com>
5532
5533 * buildsym.c (buildsym_compunit::record_line): Remove
5534 deduplication code.
5535
5536 2020-04-02 Tom de Vries <tdevries@suse.de>
5537
5538 PR ada/24671
5539 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5540
5541 2020-04-02 Tom de Vries <tdevries@suse.de>
5542
5543 * dwarf2/read.c (dwarf2_gdb_index_functions,
5544 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5545 NULL.
5546 * psymtab.c (psym_lookup_global_symbol_language): New function.
5547 (psym_functions): Init psym_lookup_global_symbol_language with
5548 psym_lookup_global_symbol_language.
5549 * symfile-debug.c (debug_sym_quick_functions): Init
5550 lookup_global_symbol_language with NULL.
5551 * symfile.c (set_initial_language): Remove fixme comment.
5552 * symfile.h (struct quick_symbol_functions): Add
5553 lookup_global_symbol_language.
5554 * symtab.c (find_quick_global_symbol_language): New function.
5555 (find_main_name): Use find_quick_global_symbol_language.
5556
5557 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5558
5559 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5560
5561 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5562
5563 * buildsym.c (record_line): Fix undefined behavior and preserve
5564 lines at eof.
5565
5566 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5567
5568 * buildsym.c (record_line): Fix the resizing condition.
5569
5570 2020-04-01 Tom Tromey <tom@tromey.com>
5571
5572 * value.h (value_literal_complex): Add comment.
5573 * valops.c (value_literal_complex): Refer to value.h.
5574
5575 2020-04-01 Tom Tromey <tom@tromey.com>
5576
5577 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5578 (scalar_type): New rule, from typebase.
5579 (typebase): Use scalar_type. Recognize complex types.
5580 (field_name): Handle FLOAT_KEYWORD.
5581 (ident_tokens): Add _Complex and __complex__.
5582
5583 2020-04-01 Tom Tromey <tom@tromey.com>
5584
5585 PR exp/25299:
5586 * valarith.c (promotion_type, complex_binop): New functions.
5587 (scalar_binop): Handle complex numbers. Use promotion_type.
5588 (value_pos, value_neg, value_complement): Handle complex numbers.
5589
5590 2020-04-01 Tom Tromey <tom@tromey.com>
5591
5592 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5593 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5594 (parse_number): Handle complex numbers.
5595
5596 2020-04-01 Tom Tromey <tom@tromey.com>
5597
5598 * c-valprint.c (c_decorations): Change complex suffix to "i".
5599
5600 2020-04-01 Tom Tromey <tom@tromey.com>
5601
5602 * valprint.c (generic_value_print_complex): Use accessors.
5603 * value.h (value_real_part, value_imaginary_part): Declare.
5604 * valops.c (value_real_part, value_imaginary_part): New
5605 functions.
5606 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5607
5608 2020-04-01 Tom Tromey <tom@tromey.com>
5609
5610 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5611 (read_range_type): Update.
5612 * mdebugread.c (basic_type): Update.
5613 * go-lang.c (build_go_types): Use init_complex_type.
5614 * gdbtypes.h (struct main_type) <complex_type>: New member.
5615 (init_complex_type): Update.
5616 (arch_complex_type): Don't declare.
5617 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5618 Make name if none given. Use alloc_type_copy. Look for cached
5619 complex type.
5620 (arch_complex_type): Remove.
5621 (gdbtypes_post_init): Use init_complex_type.
5622 * f-lang.c (build_fortran_types): Use init_complex_type.
5623 * dwarf2/read.c (read_base_type): Update.
5624 * d-lang.c (build_d_types): Use init_complex_type.
5625 * ctfread.c (read_base_type): Update.
5626
5627 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5628
5629 * infrun.c (stop_all_threads): Update assertion, plus when
5630 stopping threads, take into account that we might be trying
5631 to stop an all-stop target.
5632 (stop_waiting): Call 'stop_all_threads' if there exists a
5633 non-stop target.
5634
5635 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5636
5637 * target.h (exists_non_stop_target): New function declaration.
5638 * target.c (exists_non_stop_target): New function.
5639
5640 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
5641
5642 PR gdb/24789
5643 * eval.c (is_integral_or_integral_reference): New function.
5644 (evaluate_subexp_standard): Allow integer references in
5645 pointer arithmetic.
5646
5647 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5648
5649 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5650 check for no ptid in the stop reply when the target is non-stop.
5651
5652 2020-04-01 Tom Tromey <tromey@adacore.com>
5653
5654 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5655 "name" parameter to rvalue reference. Initialize m_name_holder.
5656 <lookup_name_info>: New overloads.
5657 <name>: Return gdb::string_view.
5658 <c_str>: New method.
5659 <make_ignore_params>: Update.
5660 <search_name_hash>: Update.
5661 <language_lookup_name>: Return const char *.
5662 <m_name>: Change type.
5663 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5664 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5665 (lookup_name_info::match_any): Update.
5666 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5667 Update.
5668 * minsyms.c (linkage_name_str): Update.
5669 * language.c (default_symbol_name_matcher): Update.
5670 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5671 Update.
5672 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5673 (ada_lookup_name_info::ada_lookup_name_info): Update.
5674 (literal_symbol_name_matcher): Update.
5675
5676 2020-04-01 Tom Tromey <tromey@adacore.com>
5677
5678 * psymtab.c (psymtab_search_name): Remove function.
5679 (psym_lookup_symbol): Create search name and lookup name here.
5680 (lookup_partial_symbol): Remove "name" parameter; add
5681 lookup_name.
5682 (psym_expand_symtabs_for_function): Update.
5683
5684 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
5685
5686 PR tui/25597:
5687 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5688
5689 2020-03-31 Tom Tromey <tromey@adacore.com>
5690
5691 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5692 memcpy.
5693
5694 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
5695
5696 * features/riscv/32bit-csr.xml: Regenerated.
5697 * features/riscv/64bit-csr.xml: Regenerated.
5698
5699 2020-03-30 Tom Tromey <tromey@adacore.com>
5700
5701 * ada-valprint.c (print_variant_part): Update.
5702 * ada-lang.h (ada_which_variant_applies): Update.
5703 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5704 outer_valaddr parameters; replace with "outer" value parameter.
5705 (to_fixed_variant_branch_type): Update.
5706
5707 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5708
5709 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5710 <list>. Remove inclusion of observable.h.
5711 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5712 (struct arch_lwp_info): New struct.
5713 (class ppc_linux_dreg_interface): New class.
5714 (struct ppc_linux_process_info): New struct.
5715 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5716 <low_new_clone, low_forget_process, low_prepare_to_resume>
5717 <copy_thread_dreg_state, mark_thread_stale>
5718 <mark_debug_registers_changed, register_hw_breakpoint>
5719 <clear_hw_breakpoint, register_wp, clear_wp>
5720 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5721 <num_memory_accesses, get_trigger_type>
5722 <create_watchpoint_request, hwdebug_point_cmp>
5723 <init_arch_lwp_info, get_arch_lwp_info>
5724 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5725 methods.
5726 <struct ptid_hash>: New inner struct.
5727 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5728 members.
5729 (saved_dabr_value, hwdebug_info, max_slots_number)
5730 (struct hw_break_tuple, struct thread_points, ppc_threads)
5731 (have_ptrace_hwdebug_interface)
5732 (hwdebug_find_thread_points_by_tid)
5733 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5734 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5735 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5736 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5737 use m_dreg_interface.
5738 (hwdebug_point_cmp): Change to...
5739 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5740 reference arguments instead of pointers.
5741 (ppc_linux_nat_target::ranged_break_num_registers): Use
5742 m_dreg_interface.
5743 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5744 m_dreg_interface. Call register_hw_breakpoint.
5745 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5746 m_dreg_interface. Call clear_hw_breakpoint.
5747 (get_trigger_type): Change to...
5748 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5749 comment.
5750 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5751 use m_dreg_interface. Call register_hw_breakpoint.
5752 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5753 use m_dreg_interface. Call clear_hw_breakpoint.
5754 (can_use_watchpoint_cond_accel): Change to...
5755 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5756 method. Update comment, use m_dreg_interface and
5757 m_process_info.
5758 (calculate_dvc): Change to...
5759 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5760 m_dreg_interface.
5761 (num_memory_accesses): Change to...
5762 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5763 (check_condition): Change to...
5764 (ppc_linux_nat_target::check_condition): ...this method.
5765 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5766 comment, use m_dreg_interface.
5767 (create_watchpoint_request): Change to...
5768 (ppc_linux_nat_target::create_watchpoint_request): ...this
5769 method. Use m_dreg_interface.
5770 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5771 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5772 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5773 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5774 (ppc_linux_nat_target::low_forget_process)
5775 (ppc_linux_nat_target::low_new_fork)
5776 (ppc_linux_nat_target::low_new_clone)
5777 (ppc_linux_nat_target::low_delete_thread)
5778 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5779 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5780 only call mark_thread_stale.
5781 (ppc_linux_thread_exit): Remove.
5782 (ppc_linux_nat_target::stopped_data_address): Change to...
5783 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5784 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5785 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5786 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5787 comment. Call low_stopped_data_address.
5788 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5789 m_dreg_interface.
5790 (ppc_linux_nat_target::masked_watch_num_registers): Use
5791 m_dreg_interface.
5792 (ppc_linux_nat_target::copy_thread_dreg_state)
5793 (ppc_linux_nat_target::mark_thread_stale)
5794 (ppc_linux_nat_target::mark_debug_registers_changed)
5795 (ppc_linux_nat_target::register_hw_breakpoint)
5796 (ppc_linux_nat_target::clear_hw_breakpoint)
5797 (ppc_linux_nat_target::register_wp)
5798 (ppc_linux_nat_target::clear_wp)
5799 (ppc_linux_nat_target::init_arch_lwp_info)
5800 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5801 (_initialize_ppc_linux_nat): Remove observer callback.
5802
5803 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5804
5805 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5806 (ppc_linux_nat_target::auxv_parse)
5807 (ppc_linux_nat_target::read_description)
5808 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5809 Move up.
5810
5811 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5812
5813 * linux-nat.h (low_new_clone): New method.
5814 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5815
5816 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5817
5818 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5819 (dbx_expand_psymtab): ... this.
5820 (start_psymtab): Update.
5821 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5822 (mdebug_expand_psymtab): ... this.
5823 (parse_partial_symbols): Update.
5824 (new_psymtab): Update.
5825 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5826 (xcoff_expand_psymtab): ... this.
5827 (xcoff_start_psymtab): Update.
5828
5829 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5832 <expand_dependencies>: ... this.
5833 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5834 (partial_symtab::expand_dependencies): ... this.
5835 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5836 Update.
5837 (dwarf2_psymtab::expand_psymtab): Update.
5838 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5839 * mdebugread.c (psymtab_to_symtab_1): Update.
5840 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5841
5842 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5843
5844 * psympriv.h (discard_psymtab): Remove.
5845 * dbxread.c (dbx_end_psymtab): Update.
5846 * xcoffread.c (xcoff_end_psymtab): Update.
5847
5848 2020-03-28 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5851 comment.
5852
5853 2020-03-28 Tom Tromey <tom@tromey.com>
5854
5855 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5856
5857 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
5858
5859 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5860
5861 2020-03-26 John Baldwin <jhb@FreeBSD.org>
5862
5863 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5864
5865 2020-03-26 Tom Tromey <tom@tromey.com>
5866
5867 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5868 (mark_common_block_symbol_computed, read_tag_string_type)
5869 (attr_to_dynamic_prop, read_subrange_type): Update.
5870 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5871 to be methods on struct attribute.
5872 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5873 (read_call_site_scope, partial_die_info::read)
5874 (partial_die_info::read, lookup_die_type, follow_die_ref):
5875 Update.
5876 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5877 from dwarf2_get_ref_die_offset.
5878 (attribute::constant_value): New method, from
5879 dwarf2_get_attr_constant_value.
5880 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5881 Declare method.
5882 <constant_value>: New method.
5883
5884 2020-03-26 Tom Tromey <tom@tromey.com>
5885
5886 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5887 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5888 (dwarf_type_encoding_name): Move to stringify.c.
5889 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5890 * dwarf2/stringify.c: New file.
5891 * dwarf2/stringify.h: New file.
5892
5893 2020-03-26 Tom Tromey <tom@tromey.com>
5894
5895 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5896 Rewrite.
5897
5898 2020-03-26 Tom Tromey <tom@tromey.com>
5899
5900 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5901 methods.
5902 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5903 (lookup_ranges_base): Likewise.
5904 (read_cutu_die_from_dwo, read_full_die_1): Update.
5905
5906 2020-03-26 Tom Tromey <tom@tromey.com>
5907
5908 * dwarf2/read.c (read_import_statement, read_file_scope)
5909 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5910 (read_lexical_block_scope, read_call_site_scope)
5911 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5912 (handle_struct_member_die, process_structure_scope)
5913 (update_enumeration_type_from_children)
5914 (process_enumeration_scope, read_array_type, read_common_block)
5915 (read_namespace, read_module, read_subroutine_type): Update.
5916 (sibling_die): Remove.
5917
5918 2020-03-26 Tom Tromey <tom@tromey.com>
5919
5920 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5921 (build_type_psymtabs_reader, read_structure_type)
5922 (read_enumeration_type, read_full_die_1): Update.
5923 (dwarf2_attr_no_follow): Move to die.h.
5924 * dwarf2/die.h (struct die_info) <attr>: New method.
5925
5926 2020-03-26 Tom Tromey <tom@tromey.com>
5927
5928 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5929 <base_address>: Now an optional.
5930 (dwarf2_find_base_address, dwarf2_rnglists_process)
5931 (dwarf2_ranges_process, fill_in_loclist_baton)
5932 (dwarf2_symbol_mark_computed): Update.
5933
5934 2020-03-26 Tom Tromey <tom@tromey.com>
5935
5936 * dwarf2/read.c (struct die_info): Move to die.h.
5937 * dwarf2/die.h: New file.
5938
5939 2020-03-26 Tom Tromey <tom@tromey.com>
5940
5941 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5942 * dwarf2/read.c
5943 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5944 Move to line-header.c.
5945 (read_checked_initial_length_and_offset, read_formatted_entries):
5946 Likewise.
5947 (dwarf_decode_line_header): Split into two.
5948 * dwarf2/line-header.c
5949 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5950 Move from read.c.
5951 (read_checked_initial_length_and_offset, read_formatted_entries):
5952 Likewise.
5953 (dwarf_decode_line_header): New function, split from read.c.
5954
5955 2020-03-26 Tom Tromey <tom@tromey.com>
5956
5957 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5958 Declare method.
5959 * dwarf2/read.c (read_attribute_value): Update.
5960 (dwarf2_per_objfile::read_line_string): Rename from
5961 read_indirect_line_string.
5962 (read_formatted_entries): Update.
5963
5964 2020-03-26 Tom Tromey <tom@tromey.com>
5965
5966 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5967 variable.
5968
5969 2020-03-26 Tom Tromey <tom@tromey.com>
5970
5971 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5972 const.
5973 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5974 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5975 parameter const.
5976
5977 2020-03-26 Tom Tromey <tom@tromey.com>
5978
5979 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5980 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5981 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5982 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5983
5984 2020-03-26 Tom Tromey <tom@tromey.com>
5985
5986 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5987 file_names_size, file_full_name, file_file_name>: Use const.
5988 <file_name_at, file_names>: Add const overload.
5989 * dwarf2/line-header.c (line_header::file_file_name)
5990 (line_header::file_full_name): Update.
5991
5992 2020-03-26 Tom Tromey <tom@tromey.com>
5993
5994 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5995 (macro_start_file, consume_improper_spaces)
5996 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5997 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5998 (dwarf_decode_macros): Move to macro.c.
5999 * dwarf2/macro.c: New file.
6000 * dwarf2/macro.h: New file.
6001 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6002
6003 2020-03-26 Tom Tromey <tom@tromey.com>
6004
6005 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6006 method.
6007 * dwarf2/section.c: New method. From
6008 read_indirect_string_at_offset_from.
6009 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6010 (read_indirect_string_at_offset_from): Move to section.c.
6011 (read_indirect_string_at_offset): Rewrite.
6012 (read_indirect_line_string_at_offset): Remove.
6013 (read_indirect_string, read_indirect_line_string)
6014 (dwarf_decode_macro_bytes): Update.
6015
6016 2020-03-26 Tom Tromey <tom@tromey.com>
6017
6018 * dwarf2/section.h (struct dwarf2_section_info)
6019 <overload_complaint>: Declare.
6020 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6021 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6022 Rename from dwarf2_section_buffer_overflow_complaint.
6023 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6024 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6025
6026 2020-03-26 Tom Tromey <tom@tromey.com>
6027
6028 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6029 Declare.
6030 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6031 Move from read.c.
6032 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6033 to section.c.
6034
6035 2020-03-26 Tom Tromey <tom@tromey.com>
6036
6037 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6038
6039 2020-03-26 Tom Tromey <tom@tromey.com>
6040
6041 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6042 "builder".
6043 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6044 parameter.
6045 (dwarf_decode_macros): Update.
6046
6047 2020-03-26 Tom Tromey <tom@tromey.com>
6048
6049 * dwarf2/read.c (read_attribute_value): Update.
6050 (read_indirect_string_from_dwz): Move to dwz.c; change into
6051 method.
6052 (dwarf_decode_macro_bytes): Update.
6053 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6054 * dwarf2/dwz.c: New file.
6055 * Makefile.in (COMMON_SFILES): Add dwz.c.
6056
6057 2020-03-26 Tom Tromey <tom@tromey.com>
6058
6059 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6060 * dwarf2/read.c: Add include.
6061 * dwarf2/index-write.c: Add include.
6062 * dwarf2/index-cache.c: Add include.
6063 * dwarf2/dwz.h: New file.
6064
6065 2020-03-25 Tom Tromey <tom@tromey.com>
6066
6067 * compile/compile-object-load.c (get_out_value_type): Mention
6068 correct symbol name in error message.
6069
6070 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6071
6072 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6073
6074 2020-03-25 Tom de Vries <tdevries@suse.de>
6075
6076 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6077 * symmisc.c (dump_symtab_1): Print user and includes fields.
6078 (maintenance_info_symtabs): Same.
6079
6080 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6081
6082 PR gdb/25534
6083 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6084 (riscv_regcache_cooked_write): New function.
6085 (riscv_push_dummy_call): Use new function.
6086 (riscv_return_value): Likewise.
6087
6088 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6091 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6092 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6093 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6094 * infrun.c (follow_fork): Likewise.
6095 (follow_fork_inferior): Likewise.
6096 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6097 * linux-nat.h (class linux_nat_target): Likewise.
6098 * remote.c (class remote_target) <follow_fork>: Likewise.
6099 (remote_target::follow_fork): Likewise.
6100 * target-delegates.c: Re-generate.
6101 * target.c (default_follow_fork): Likewise.
6102 (target_follow_fork): Likewise.
6103 * target.h (struct target_ops) <follow_fork>: Likewise.
6104 (target_follow_fork): Likewise.
6105
6106 2020-03-24 Tom de Vries <tdevries@suse.de>
6107
6108 * psymtab.c (maintenance_info_psymtabs): Print user field.
6109
6110 2020-03-20 Tom Tromey <tromey@adacore.com>
6111
6112 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6113 const.
6114 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6115 const.
6116
6117 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * ptrace.m4: Don't check for ptrace declaration.
6120 * config.in: Re-generate.
6121 * configure: Re-generate.
6122 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6123 not defined.
6124
6125 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6126
6127 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6128 `PTRACE_TYPE_RET'.
6129 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6130 * sparc-nat.c (gdb_ptrace): Likewise.
6131 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6132
6133 2020-03-20 Tom Tromey <tromey@adacore.com>
6134
6135 * c-exp.y (lex_one_token): Fix assert.
6136
6137 2020-03-20 Tom Tromey <tromey@adacore.com>
6138
6139 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6140 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6141 strncpy call.
6142
6143 2020-03-20 Tom Tromey <tromey@adacore.com>
6144
6145 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6146
6147 2020-03-20 Tom Tromey <tromey@adacore.com>
6148
6149 * ada-valprint.c (print_variant_part): Remove parameters; switch
6150 to value-based API.
6151 (print_field_values): Likewise.
6152 (ada_val_print_struct_union): Likewise.
6153 (ada_value_print_1): Update.
6154
6155 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6156
6157 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6158 nbsd_nat_target instead of inf_ptrace_target.
6159 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6160 nbsd_nat_target.
6161
6162 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6163
6164 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6165 it to the ptrace call.
6166 * (store_registers): Likewise.
6167
6168 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6169
6170 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6171 it to the ptrace call.
6172 * (store_registers): Likewise.
6173
6174 2020-03-19 Luis Machado <luis.machado@linaro.org>
6175
6176 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6177 valid, fetch vg value from ptrace.
6178
6179 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6180 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6181 * inf-ptrace.c: Likewise.
6182 * (gdb_ptrace): Add.
6183 * (inf_ptrace_target::resume): Update.
6184 * (inf_ptrace_target::xfer_partial): Likewise.
6185 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6186 * (inf_ptrace_peek_poke): Update.
6187
6188 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6189
6190 * x86-bsd-nat.c (gdb_ptrace): New.
6191 * (x86bsd_dr_set): Add new argument `ptid'.
6192 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6193 x86bsd_dr_set_addr): Update.
6194
6195 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * remote.c (remote_target::process_stop_reply): Handle events for
6198 all threads differently.
6199
6200 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6201
6202 * completer.c (completion_tracker::remove_completion): Define new
6203 function.
6204 * completer.h (completion_tracker::remove_completion): Declare new
6205 function.
6206 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6207 when adding a C++ function symbol.
6208
6209 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * completer.c (completion_tracker::completion_hash_entry): Define
6212 new class.
6213 (advance_to_filename_complete_word_point): Call
6214 recompute_lowest_common_denominator.
6215 (completion_tracker::completion_tracker): Call discard_completions
6216 to setup the hash table.
6217 (completion_tracker::discard_completions): Allow for being called
6218 from the constructor, pass new equal function, and element deleter
6219 when constructing the hash table. Initialise new class member
6220 variables.
6221 (completion_tracker::maybe_add_completion): Remove use of
6222 m_entries_vec, and store more information into m_entries_hash.
6223 (completion_tracker::recompute_lcd_visitor): New function, most
6224 content taken from...
6225 (completion_tracker::recompute_lowest_common_denominator):
6226 ...here, this now just visits each item in the hash calling the
6227 above visitor.
6228 (completion_tracker::build_completion_result): Remove use of
6229 m_entries_vec, call recompute_lowest_common_denominator.
6230 * completer.h (completion_tracker::have_completions): Remove use
6231 of m_entries_vec.
6232 (completion_tracker::completion_hash_entry): Declare new class.
6233 (completion_tracker::recompute_lowest_common_denominator): Change
6234 function signature.
6235 (completion_tracker::recompute_lcd_visitor): Declare new function.
6236 (completion_tracker::m_entries_vec): Delete.
6237 (completion_tracker::m_entries_hash): Initialize to NULL.
6238 (completion_tracker::m_lowest_common_denominator_valid): New
6239 member variable.
6240 (completion_tracker::m_lowest_common_denominator_max_length): New
6241 member variable.
6242
6243 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6244
6245 * regformats/regdef.h: Put reg in gdb namespace.
6246
6247 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6248
6249 * i386-bsd-nat.c (gdb_ptrace): New.
6250 * (i386bsd_fetch_inferior_registers,
6251 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6252 * (i386bsd_fetch_inferior_registers,
6253 i386bsd_store_inferior_registers) Use gdb_ptrace.
6254
6255 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6256
6257 * amd64-bsd-nat.c (gdb_ptrace): New.
6258 * (amd64bsd_fetch_inferior_registers,
6259 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6260 * (amd64bsd_fetch_inferior_registers,
6261 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6262
6263 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6264
6265 * user-regs.c (user_reg::read): Rename to...
6266 (user_reg::xread): ...this.
6267 * (append_user_reg): Rename argument `read' to `xread'.
6268 * (user_reg_add_builtin): Likewise.
6269 * (user_reg_add): Likewise.
6270 * (value_of_user_reg): Likewise.
6271
6272 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6273
6274 * sparc-nat.c (gdb_ptrace): New.
6275 * sparc-nat.c (sparc_fetch_inferior_registers)
6276 (sparc_store_inferior_registers) Remove obsolete comment.
6277 * sparc-nat.c (sparc_fetch_inferior_registers)
6278 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6279 * sparc-nat.c (sparc_fetch_inferior_registers)
6280 (sparc_store_inferior_registers) Use gdb_ptrace.
6281
6282 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6283
6284 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6285 it to the ptrace call.
6286 * sh-nbsd-nat.c (store_registers): Likewise.
6287
6288 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6289
6290 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6291 nbsd_nat_target instead of inf_ptrace_target.
6292 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6293 nbsd_nat_target.
6294
6295 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6296
6297 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6298
6299 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6300
6301 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6302 <sys/sysctl.h>.
6303 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6304
6305 2020-03-17 Tom de Vries <tdevries@suse.de>
6306
6307 PR gdb/23710
6308 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6309 fields.
6310 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6311 fields.
6312 (process_imported_unit_die): Skip import of c++ CUs.
6313
6314 2020-03-16 Tom Tromey <tom@tromey.com>
6315
6316 * p-valprint.c (pascal_object_print_value): Initialize
6317 base_value.
6318
6319 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6320 Shahab Vahedi <shahab@synopsys.com>
6321
6322 * Makefile.in: Add arch/arc.o
6323 * configure.tgt: Likewise.
6324 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6325 (_initialize_arc_tdep): Don't initialize old target descriptions.
6326 (arc_read_description): New function to cache target descriptions.
6327 * arc-tdep.h (arc_read_description): Add proto type.
6328 * arch/arc.c: New file.
6329 * arch/arc.h: Likewise.
6330 * features/Makefile: Replace old target descriptions with new.
6331 * features/arc-arcompact.c: Remove.
6332 * features/arc-arcompact.xml: Likewise.
6333 * features/arc-v2.c: Likewise
6334 * features/arc-v2.xml: Likewise
6335 * features/arc/aux-arcompact.xml: New file.
6336 * features/arc/aux-v2.xml: Likewise.
6337 * features/arc/core-arcompact.xml: Likewise.
6338 * features/arc/core-v2.xml: Likewise.
6339 * features/arc/aux-arcompact.c: Generate.
6340 * features/arc/aux-v2.c: Likewise.
6341 * features/arc/core-arcompact.c: Likewise.
6342 * features/arc/core-v2.c: Likewise.
6343 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6344
6345 2020-03-16 Tom Tromey <tromey@adacore.com>
6346
6347 PR gdb/25663:
6348 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6349 putting value into bcache.
6350
6351 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6352
6353 PR gdb/21500
6354 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6355 to...
6356 (amd64_windows_init_abi_common): ... this. Don't set size of
6357 long type.
6358 (amd64_windows_init_abi): New function.
6359 (amd64_cygwin_init_abi): New function.
6360 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6361 the Cygwin OS ABI.
6362 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6363 comment.
6364
6365 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6366
6367 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6368 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6369 (pe_import_directory_entry): New struct type.
6370 (is_linked_with_cygwin_dll): New function.
6371 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6372 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6373 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6374
6375 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6376
6377 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6378 i386_cygwin_core_osabi_sniffer.
6379
6380 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6381
6382 * i386-cygwin-tdep.c: Rename to...
6383 * i386-windows-tdep.c: ... this.
6384 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6385 i386-windows-tdep.c.
6386 * configure.tgt: Likewise.
6387
6388 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6389
6390 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6391 * osabi.c (gdb_osabi_names): Add "Windows".
6392 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6393 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6394 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6395 i386_cygwin_osabi_sniffer.
6396 (_initialize_i386_cygwin_tdep): Register OS ABI
6397 GDB_OSABI_WINDOWS for i386.
6398 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6399 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6400 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6401 for x86-64.
6402 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6403 when the target matches '*-*-mingw*'.
6404
6405 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6406
6407 * defs.h (enum gdb_osabi): Move to...
6408 * osabi.h (enum gdb_osabi): ... here.
6409 * gdbarch.sh: Include osabi.h in gdbarch.h.
6410 * gdbarch.h: Re-generate.
6411
6412 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6413
6414 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6415 function.
6416 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6417
6418 2020-03-14 Tom Tromey <tom@tromey.com>
6419
6420 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6421 for C++.
6422 (c_type_print_modifier): Likewise. Add "language" parameter.
6423 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6424 (c_type_print_base_1): Update.
6425 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6426 constants.
6427 * type-stack.c (type_stack::insert): Handle tp_atomic and
6428 tp_restrict.
6429 (type_stack::follow_type_instance_flags): Likewise.
6430 (type_stack::follow_types): Likewise. Merge type-following code.
6431 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6432 (space_identifier, cv_with_space_id)
6433 (const_or_volatile_or_space_identifier_noopt)
6434 (const_or_volatile_or_space_identifier): Remove.
6435 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6436 rules.
6437 (ptr_operator, typebase): Update.
6438 (enum token_flag) <FLAG_C>: New constant.
6439 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6440 "_Atomic".
6441 (lex_one_token): Handle FLAG_C.
6442
6443 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6444
6445 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6446 it to the ptrace call.
6447 * m68k-bsd-nat.c (store_registers): Likewise.
6448
6449 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6450
6451 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6452 gdb_byte *.
6453 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6454 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6455 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6456
6457 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6458
6459 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6460 nbsd_nat_target instead of inf_ptrace_target.
6461 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6462 nbsd_nat_target.
6463
6464 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6465
6466 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6467 register_t.
6468
6469 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6470
6471 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6472 it to the ptrace call.
6473 * alpha-bsd-nat.c (store_registers): Likewise.
6474
6475 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6476
6477 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6478 includes.
6479 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6480 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6481 fill_fpregset): Likewise.
6482
6483 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6484
6485 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6486 nbsd_nat_target instead of inf_ptrace_target.
6487 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6488 nbsd_nat_target.
6489
6490 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6491
6492 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6493 register_t.
6494
6495 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6496
6497 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6498 it to the ptrace call.
6499 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6500 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6501 * arm-nbsd-nat.c (store_register): Likewise.
6502 * arm-nbsd-nat.c (store_regs): Likewise.
6503 * arm-nbsd-nat.c (store_fp_register): Likewise.
6504 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6505
6506 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6507
6508 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6509 nbsd_nat_target instead of inf_ptrace_target.
6510 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6511 nbsd_nat_target.
6512
6513 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6514
6515 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6516 it to the ptrace call.
6517 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6518
6519 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6520
6521 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6522 it to the ptrace call.
6523 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6524
6525 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6526
6527 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6528 gdb_byte *.
6529 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6530
6531 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6532
6533 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6534 instead of inf_ptrace_target.
6535 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6536 nbsd_nat_target.
6537
6538 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6539
6540 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6541 register_t.
6542
6543 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6544
6545 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6546 register_t.
6547
6548 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6549
6550 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6551 register_t.
6552
6553 2020-03-13 Tom Tromey <tom@tromey.com>
6554
6555 * value.h (val_print): Don't declare.
6556 * valprint.h (val_print_array_elements)
6557 (val_print_scalar_formatted, generic_val_print): Don't declare.
6558 * valprint.c (generic_val_print_array): Take a struct value.
6559 (generic_val_print_ptr, generic_val_print_memberptr)
6560 (generic_val_print_bool, generic_val_print_int)
6561 (generic_val_print_char, generic_val_print_complex)
6562 (generic_val_print): Remove.
6563 (generic_value_print): Update.
6564 (do_val_print): Remove unused parameters. Don't call
6565 la_val_print.
6566 (val_print): Remove.
6567 (common_val_print): Update. Don't call value_check_printable.
6568 (val_print_scalar_formatted, val_print_array_elements): Remove.
6569 * rust-lang.c (rust_val_print): Remove.
6570 (rust_language_defn): Update.
6571 * p-valprint.c (pascal_val_print): Remove.
6572 (pascal_value_print_inner): Update.
6573 (pascal_object_print_val_fields, pascal_object_print_val):
6574 Remove.
6575 (pascal_object_print_static_field): Update.
6576 * p-lang.h (pascal_val_print): Don't declare.
6577 * p-lang.c (pascal_language_defn): Update.
6578 * opencl-lang.c (opencl_language_defn): Update.
6579 * objc-lang.c (objc_language_defn): Update.
6580 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6581 * m2-lang.h (m2_val_print): Don't declare.
6582 * m2-lang.c (m2_language_defn): Update.
6583 * language.h (struct language_defn) <la_val_print>: Remove.
6584 * language.c (unk_lang_value_print_inner): Rename. Change
6585 argument types.
6586 (unknown_language_defn, auto_language_defn): Update.
6587 * go-valprint.c (go_val_print): Remove.
6588 * go-lang.h (go_val_print): Don't declare.
6589 * go-lang.c (go_language_defn): Update.
6590 * f-valprint.c (f_val_print): Remove.
6591 * f-lang.h (f_value_print): Don't declare.
6592 * f-lang.c (f_language_defn): Update.
6593 * d-valprint.c (d_val_print): Remove.
6594 * d-lang.h (d_value_print): Don't declare.
6595 * d-lang.c (d_language_defn): Update.
6596 * cp-valprint.c (cp_print_value_fields)
6597 (cp_print_value_fields_rtti, cp_print_value): Remove.
6598 (cp_print_static_field): Update.
6599 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6600 (c_val_print_struct, c_val_print_union, c_val_print_int)
6601 (c_val_print_memberptr, c_val_print): Remove.
6602 * c-lang.h (c_val_print_array, cp_print_value_fields)
6603 (cp_print_value_fields_rtti): Don't declare.
6604 * c-lang.c (c_language_defn, cplus_language_defn)
6605 (asm_language_defn, minimal_language_defn): Update.
6606 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6607 (ada_val_print_enum): Take a struct value.
6608 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6609 (ada_val_print): Remove.
6610 (ada_value_print_1): Update.
6611 (printable_val_type): Remove.
6612 * ada-lang.h (ada_val_print): Don't declare.
6613 * ada-lang.c (ada_language_defn): Update.
6614
6615 2020-03-13 Tom Tromey <tom@tromey.com>
6616
6617 * valprint.c (do_val_print): Update.
6618 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6619 a struct value.
6620 (value_to_value_object_no_release): Declare.
6621 * python/py-value.c (value_to_value_object_no_release): New
6622 function.
6623 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6624 struct value.
6625 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6626 function.
6627 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6628 a struct value.
6629 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6630 Declare.
6631 (gdbscm_apply_val_pretty_printer): Take a struct value.
6632 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6633 value.
6634 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6635 value.
6636 * extension-priv.h (struct extension_language_ops)
6637 <apply_val_pretty_printer>: Take a struct value.
6638 * cp-valprint.c (cp_print_value): Create a struct value.
6639 (cp_print_value): Update.
6640
6641 2020-03-13 Tom Tromey <tom@tromey.com>
6642
6643 * ada-valprint.c (print_field_values): Call common_val_print.
6644
6645 2020-03-13 Tom Tromey <tom@tromey.com>
6646
6647 * ada-valprint.c (val_print_packed_array_elements): Remove
6648 bitoffset and val parameters. Call common_val_print.
6649 (ada_val_print_string): Remove offset, address, and original_value
6650 parameters.
6651 (ada_val_print_array): Update.
6652 (ada_value_print_array): New function.
6653 (ada_value_print_1): Call it.
6654
6655 2020-03-13 Tom Tromey <tom@tromey.com>
6656
6657 * ada-valprint.c (ada_value_print): Use common_val_print.
6658
6659 2020-03-13 Tom Tromey <tom@tromey.com>
6660
6661 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6662
6663 2020-03-13 Tom Tromey <tom@tromey.com>
6664
6665 * ada-valprint.c (ada_value_print_num): New function.
6666 (ada_value_print_1): Use it.
6667
6668 2020-03-13 Tom Tromey <tom@tromey.com>
6669
6670 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6671
6672 2020-03-13 Tom Tromey <tom@tromey.com>
6673
6674 * ada-valprint.c (ada_value_print_ptr): New function.
6675 (ada_value_print_1): Use it.
6676
6677 2020-03-13 Tom Tromey <tom@tromey.com>
6678
6679 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6680 call common_val_print.
6681 (ada_val_print_1): Update.
6682 (ada_value_print_1): New function.
6683 (ada_value_print_inner): Rewrite.
6684
6685 2020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * cp-valprint.c (cp_print_value_fields): Update.
6688 (cp_print_value): New function.
6689
6690 2020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * m2-valprint.c (m2_value_print_inner): Use
6693 cp_print_value_fields.
6694 * cp-valprint.c (cp_print_value_fields): New function.
6695 * c-valprint.c (c_value_print_struct): New function.
6696 (c_value_print_inner): Use c_value_print_struct.
6697 * c-lang.h (cp_print_value_fields): Declare.
6698
6699 2020-03-13 Tom Tromey <tom@tromey.com>
6700
6701 * c-valprint.c (c_value_print_array): New function.
6702 (c_value_print_inner): Use it.
6703
6704 2020-03-13 Tom Tromey <tom@tromey.com>
6705
6706 * c-valprint.c (c_value_print_memberptr): New function.
6707 (c_value_print_inner): Use it.
6708
6709 2020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * c-valprint.c (c_value_print_int): New function.
6712 (c_value_print_inner): Use it.
6713
6714 2020-03-13 Tom Tromey <tom@tromey.com>
6715
6716 * c-valprint.c (c_value_print_ptr): New function.
6717 (c_value_print_inner): Use it.
6718
6719 2020-03-13 Tom Tromey <tom@tromey.com>
6720
6721 * c-valprint.c (c_value_print_inner): Rewrite.
6722
6723 2020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * valprint.c (generic_value_print_complex): New function.
6726 (generic_value_print): Use it.
6727
6728 2020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * valprint.c (generic_val_print_float): Don't call
6731 val_print_scalar_formatted.
6732 (generic_val_print, generic_value_print): Update.
6733
6734 2020-03-13 Tom Tromey <tom@tromey.com>
6735
6736 * valprint.c (generic_value_print_char): New function
6737 (generic_value_print): Use it.
6738
6739 2020-03-13 Tom Tromey <tom@tromey.com>
6740
6741 * valprint.c (generic_value_print_int): New function.
6742 (generic_value_print): Use it.
6743
6744 2020-03-13 Tom Tromey <tom@tromey.com>
6745
6746 * valprint.c (generic_value_print_bool): New function.
6747 (generic_value_print): Use it.
6748
6749 2020-03-13 Tom Tromey <tom@tromey.com>
6750
6751 * valprint.c (generic_val_print_func): Simplify.
6752 (generic_val_print, generic_value_print): Update.
6753
6754 2020-03-13 Tom Tromey <tom@tromey.com>
6755
6756 * valprint.c (generic_val_print_flags): Remove.
6757 (generic_val_print, generic_value_print): Update.
6758 (val_print_type_code_flags): Add original_value parameter.
6759
6760 2020-03-13 Tom Tromey <tom@tromey.com>
6761
6762 * valprint.c (generic_val_print): Update.
6763 (generic_value_print): Update.
6764 * valprint.c (generic_val_print_enum): Don't call
6765 val_print_scalar_formatted.
6766
6767 2020-03-13 Tom Tromey <tom@tromey.com>
6768
6769 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6770 * valprint.c (generic_value_print_ptr): New function.
6771
6772 2020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * valprint.c (generic_value_print): Rewrite.
6775
6776 2020-03-13 Tom Tromey <tom@tromey.com>
6777
6778 * p-valprint.c (pascal_object_print_value_fields)
6779 (pascal_object_print_value): New functions.
6780
6781 2020-03-13 Tom Tromey <tom@tromey.com>
6782
6783 * p-valprint.c (pascal_value_print_inner): Rewrite.
6784
6785 2020-03-13 Tom Tromey <tom@tromey.com>
6786
6787 * f-valprint.c (f_value_print_innner): Rewrite.
6788
6789 2020-03-13 Tom Tromey <tom@tromey.com>
6790
6791 * m2-valprint.c (m2_print_unbounded_array): New overload.
6792 (m2_print_unbounded_array): Update.
6793 (m2_print_array_contents): Take a struct value.
6794 (m2_value_print_inner): Rewrite.
6795
6796 2020-03-13 Tom Tromey <tom@tromey.com>
6797
6798 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6799 (d_value_print_inner): New function.
6800 * d-lang.h (d_value_print_inner): Declare.
6801 * d-lang.c (d_language_defn): Use d_value_print_inner.
6802
6803 2020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * go-valprint.c (go_value_print_inner): New function.
6806 * go-lang.h (go_value_print_inner): Declare.
6807 * go-lang.c (go_language_defn): Use go_value_print_inner.
6808
6809 2020-03-13 Tom Tromey <tom@tromey.com>
6810
6811 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6812 API.
6813 (rust_val_print): Rewrite.
6814 (rust_value_print_inner): New function, from rust_val_print.
6815 (rust_language_defn): Use rust_value_print_inner.
6816
6817 2020-03-13 Tom Tromey <tom@tromey.com>
6818
6819 * ada-valprint.c (ada_value_print_inner): New function.
6820 * ada-lang.h (ada_value_print_inner): Declare.
6821 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6822
6823 2020-03-13 Tom Tromey <tom@tromey.com>
6824
6825 * f-valprint.c (f_value_print_innner): New function.
6826 * f-lang.h (f_value_print_innner): Declare.
6827 * f-lang.c (f_language_defn): Use f_value_print_innner.
6828
6829 2020-03-13 Tom Tromey <tom@tromey.com>
6830
6831 * p-valprint.c (pascal_value_print_inner): New function.
6832 * p-lang.h (pascal_value_print_inner): Declare.
6833 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6834
6835 2020-03-13 Tom Tromey <tom@tromey.com>
6836
6837 * m2-valprint.c (m2_value_print_inner): New function.
6838 * m2-lang.h (m2_value_print_inner): Declare.
6839 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6840
6841 2020-03-13 Tom Tromey <tom@tromey.com>
6842
6843 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6844 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6845 * c-valprint.c (c_value_print_inner): New function.
6846 * c-lang.h (c_value_print_inner): Declare.
6847 * c-lang.c (c_language_defn, cplus_language_defn)
6848 (asm_language_defn, minimal_language_defn): Use
6849 c_value_print_inner.
6850
6851 2020-03-13 Tom Tromey <tom@tromey.com>
6852
6853 * p-valprint.c (pascal_object_print_value_fields): Now static.
6854 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6855
6856 2020-03-13 Tom Tromey <tom@tromey.com>
6857
6858 * c-valprint.c (c_val_print_array): Simplify.
6859
6860 2020-03-13 Tom Tromey <tom@tromey.com>
6861
6862 * valprint.c (value_print_array_elements): New function.
6863 * valprint.h (value_print_array_elements): Declare.
6864
6865 2020-03-13 Tom Tromey <tom@tromey.com>
6866
6867 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6868 * mips-tdep.c (mips_print_register): Use
6869 value_print_scalar_formatted.
6870
6871 2020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * valprint.h (value_print_scalar_formatted): Declare.
6874 * valprint.c (value_print_scalar_formatted): New function.
6875
6876 2020-03-13 Tom Tromey <tom@tromey.com>
6877
6878 * valprint.h (generic_value_print): Declare.
6879 * valprint.c (generic_value_print): New function.
6880
6881 2020-03-13 Tom Tromey <tom@tromey.com>
6882
6883 * valprint.c (do_val_print): Call la_value_print_inner, if
6884 available.
6885 * rust-lang.c (rust_language_defn): Update.
6886 * p-lang.c (pascal_language_defn): Update.
6887 * opencl-lang.c (opencl_language_defn): Update.
6888 * objc-lang.c (objc_language_defn): Update.
6889 * m2-lang.c (m2_language_defn): Update.
6890 * language.h (struct language_defn) <la_value_print_inner>: New
6891 member.
6892 * language.c (unknown_language_defn, auto_language_defn): Update.
6893 * go-lang.c (go_language_defn): Update.
6894 * f-lang.c (f_language_defn): Update.
6895 * d-lang.c (d_language_defn): Update.
6896 * c-lang.c (c_language_defn, cplus_language_defn)
6897 (asm_language_defn, minimal_language_defn): Update.
6898 * ada-lang.c (ada_language_defn): Update.
6899
6900 2020-03-13 Tom Tromey <tom@tromey.com>
6901
6902 * c-valprint.c (c_value_print): Use common_val_print.
6903
6904 2020-03-13 Tom Tromey <tom@tromey.com>
6905
6906 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6907
6908 2020-03-13 Tom Tromey <tom@tromey.com>
6909
6910 * f-valprint.c (f77_print_array_1, f_val_print): Use
6911 common_val_print.
6912
6913 2020-03-13 Tom Tromey <tom@tromey.com>
6914
6915 * riscv-tdep.c (riscv_print_one_register_info): Use
6916 common_val_print.
6917
6918 2020-03-13 Tom Tromey <tom@tromey.com>
6919
6920 * mi/mi-main.c (output_register): Use common_val_print.
6921
6922 2020-03-13 Tom Tromey <tom@tromey.com>
6923
6924 * infcmd.c (default_print_one_register_info): Use
6925 common_val_print.
6926
6927 2020-03-13 Tom Tromey <tom@tromey.com>
6928
6929 * valprint.h (common_val_print_checked): Declare.
6930 * valprint.c (common_val_print_checked): New function.
6931 * stack.c (print_frame_arg): Use common_val_print_checked.
6932
6933 2020-03-13 Tom Tromey <tom@tromey.com>
6934
6935 * valprint.c (do_val_print): New function, from val_print.
6936 (val_print): Use do_val_print.
6937 (common_val_print): Use do_val_print.
6938
6939 2020-03-13 Tom Tromey <tom@tromey.com>
6940
6941 * valprint.c (value_print): Use scoped_value_mark.
6942
6943 2020-03-13 Tom de Vries <tdevries@suse.de>
6944
6945 PR symtab/25646
6946 * psymtab.c (partial_symtab::partial_symtab): Don't set
6947 globals_offset and statics_offset. Push element onto
6948 current_global_psymbols and current_static_psymbols stacks.
6949 (concat): New function.
6950 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6951 element from current_global_psymbols and current_static_psymbols
6952 stacks. Concat popped elements to global_psymbols and
6953 static_symbols.
6954 (add_psymbol_to_list): Use current_global_psymbols and
6955 current_static_psymbols stacks.
6956 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6957 current_static_psymbols fields.
6958
6959 2020-03-12 Christian Biesinger <cbiesinger@google.com>
6960
6961 * corelow.c (sniff_core_bfd): Remove.
6962 (class core_target) <m_core_vec>: Remove.
6963 (core_target::core_target): Update.
6964 (core_file_fns): Remove.
6965 (deprecated_add_core_fns): Remove.
6966 (default_core_sniffer): Remove.
6967 (sniff_core_bfd): Remove.
6968 (default_check_format): Remove.
6969 (gdb_check_format): Remove.
6970 (core_target_open): Update.
6971 (core_target::get_core_register_section): Update.
6972 (get_core_registers_cb): Update.
6973 (core_target::fetch_registers): Update.
6974 * gdbcore.h (struct core_fns): Remove.
6975 (deprecated_add_core_fns): Remove.
6976 (default_core_sniffer): Remove.
6977 (default_check_format): Remove.
6978
6979 2020-03-12 Tom Tromey <tom@tromey.com>
6980
6981 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6982 CORE_ADDR.
6983 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6984
6985 2020-03-12 Tom Tromey <tom@tromey.com>
6986
6987 * remote.c (remote_target::download_tracepoint)
6988 (remote_target::enable_tracepoint)
6989 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6990 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6991 sprintf_vma.
6992
6993 2020-03-12 Tom Tromey <tom@tromey.com>
6994
6995 * symfile-mem.c: Update CORE_ADDR size assert.
6996
6997 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * selftest.m4: Move to gdbsupport/.
7000 * acinclude.m4: Update path to selftest.m4.
7001
7002 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7005 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7006 gdbarch-selfselftests.c and selftest-arch.c.
7007 (SUBDIR_UNITTESTS_OBS): Rename to...
7008 (SELFTESTS_OBS): ... this.
7009 (COMMON_SFILES): Remove disasm-selftests.c and
7010 gdbarch-selftests.c.
7011 * configure.ac: Don't add selftest-arch.{c,o} to
7012 CONFIG_{SRCS,OBS}.
7013 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7014 preprocessor conditions.
7015
7016 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7017
7018 * configure.ac: Don't source bfd/development.sh.
7019 * selftest.m4: Modify comment.
7020 * configure: Re-generate.
7021
7022 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7023
7024 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7025 not "true" or "false".
7026 * configure: Re-generate.
7027
7028 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7029
7030 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7031 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7032 renamed to arm_nbsd_supply_gregset.
7033 (fetch_register): Update to call arm_nbsd_supply_gregset.
7034 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7035 (arm_netbsd_nat_target::fetch_registers): Update.
7036 (fetch_elfcore_registers): Removed.
7037 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7038 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7039 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7040 not require NetBSD system headers.
7041 (arm_nbsd_regset): New struct.
7042 (arm_nbsd_iterate_over_regset_sections): New function.
7043 (arm_netbsd_init_abi_common): Updated to call
7044 set_gdbarch_iterate_over_regset_sections.
7045 * arm-nbsd-tdep.h: New file.
7046
7047 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7048
7049 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7050 recursion.
7051
7052 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7053
7054 * configure: Re-generate.
7055
7056 2020-03-11 Tom Tromey <tromey@adacore.com>
7057
7058 * ada-typeprint.c (print_choices): Fix comment.
7059
7060 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7061
7062 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7063 previous item in the list, when the list has no items.
7064
7065 2020-03-11 Tom de Vries <tdevries@suse.de>
7066
7067 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7068 PROP_LOCLIST handling code.
7069
7070 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * buildsym-legacy.c (record_line): Pass extra parameter to
7073 record_line.
7074 * buildsym.c (buildsym_compunit::record_line): Take an extra
7075 parameter, reduce duplication in the line table, and record the
7076 is_stmt flag in the line table.
7077 * buildsym.h (buildsym_compunit::record_line): Add extra
7078 parameter.
7079 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7080 non-statement lines.
7081 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7082 this to the symtab builder.
7083 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7084 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7085 through to dwarf_record_line_1.
7086 * infrun.c (process_event_stop_test): When stepping, don't stop at
7087 a non-statement instruction, and only refresh the step info when
7088 we land in the middle of a line's range. Also add an extra
7089 comment.
7090 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7091 field.
7092 * record-btrace.c (btrace_find_line_range): Only record lines
7093 marked as is-statement.
7094 * stack.c (frame_show_address): Show the frame address if we are
7095 in a non-statement sal.
7096 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7097 (maintenance_print_one_line_table): Print a header for the is_stmt
7098 column, and include is_stmt information in the output.
7099 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7100 preference to non-statements.
7101 (find_pcs_for_symtab_line): Prefer is-statement entries.
7102 (find_line_common): Likewise.
7103 * symtab.h (struct linetable_entry): Add is_stmt field.
7104 (struct symtab_and_line): Likewise.
7105 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7106 arranging the line table.
7107
7108 2020-03-07 Tom de Vries <tdevries@suse.de>
7109
7110 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7111 DIE.
7112
7113 2020-03-07 Tom Tromey <tom@tromey.com>
7114
7115 * valops.c (value_literal_complex): Remove obsolete comment.
7116 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7117 comment.
7118
7119 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7120
7121 * infrun.h: Forward-declare thread_info.
7122 (set_step_info): Add thread_info parameter, add doc.
7123 * infrun.c (set_step_info): Add thread_info parameter, move doc
7124 to header.
7125 * infrun.c (process_event_stop_test): Pass thread to
7126 set_step_info call.
7127 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7128 set_step_info.
7129 (prepare_one_step): Add thread_info parameter, pass it to
7130 set_step_frame and prepare_one_step (recursive) call.
7131 (step_1): Pass thread to prepare_one_step call.
7132 (step_command_fsm::should_stop): Pass thread to
7133 prepare_one_step.
7134 (until_next_fsm): Pass thread to set_step_frame call.
7135 (finish_command): Pass thread to set_step_info call.
7136
7137 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7138
7139 * windows-tdep.c (windows_solib_create_inferior_hook):
7140 Check if inferior is running.
7141
7142 2020-03-06 Tom de Vries <tdevries@suse.de>
7143
7144 * NEWS: Fix "the the".
7145 * ctfread.c: Same.
7146
7147 2020-03-06 Tom de Vries <tdevries@suse.de>
7148
7149 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7150
7151 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7152
7153 * .dir-locals.el: Add a comment referencing the other copies of
7154 this file.
7155
7156 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7157
7158 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7159 psargs.
7160
7161 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7162
7163 * .gitattributes: New file.
7164
7165 2020-03-04 Tom Tromey <tom@tromey.com>
7166
7167 * symmisc.c (print_symbol_bcache_statistics)
7168 (print_objfile_statistics): Update.
7169 * symfile.c (allocate_symtab): Use intern.
7170 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7171 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7172 macro_cache>: Remove.
7173 <string_cache>: New member.
7174 (struct objfile) <intern>: New methods.
7175 * elfread.c (elf_symtab_read): Use intern.
7176 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7177 (dwarf2_compute_name, dwarf2_physname)
7178 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7179 names.
7180 (guess_partial_die_structure_name): Update.
7181 (partial_die_info::fixup): Intern name.
7182 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7183 name.
7184 (dwarf2_name): Intern name. Update.
7185 * buildsym.c (buildsym_compunit::get_macro_table): Use
7186 string_cache.
7187
7188 2020-03-04 Tom Tromey <tom@tromey.com>
7189
7190 * jit.c (bfd_open_from_target_memory): Make "target" const.
7191 * corefile.c (gnutarget): Now const.
7192 * gdbcore.h (gnutarget): Now const.
7193
7194 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7195
7196 * NEWS: Mention support for WOW64 processes.
7197 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7198 (amd64_windows_segment_register_p): Remove static.
7199 (_initialize_amd64_windows_nat): Update.
7200 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7201 * i386-windows-nat.c (context_offset): Update.
7202 (i386_mappings): Rename and remove static.
7203 (i386_windows_segment_register_p): Remove static.
7204 (_initialize_i386_windows_nat): Update.
7205 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7206 (STATUS_WX86_SINGLE_STEP): New macro.
7207 (EnumProcessModulesEx): New macro.
7208 (Wow64SuspendThread): New macro.
7209 (Wow64GetThreadContext): New macro.
7210 (Wow64SetThreadContext): New macro.
7211 (Wow64GetThreadSelectorEntry): New macro.
7212 (windows_set_context_register_offsets): Add static.
7213 (windows_set_segment_register_p): Likewise.
7214 (windows_add_thread): Adapt for WOW64 processes.
7215 (windows_fetch_one_register): Likewise.
7216 (windows_nat_target::fetch_registers): Likewise.
7217 (windows_store_one_register): Likewise.
7218 (display_selector): Likewise.
7219 (display_selectors): Likewise.
7220 (handle_exception): Likewise.
7221 (windows_continue): Likewise.
7222 (windows_nat_target::resume): Likewise.
7223 (windows_add_all_dlls): Likewise.
7224 (do_initial_windows_stuff): Likewise.
7225 (windows_nat_target::attach): Likewise.
7226 (windows_get_exec_module_filename): Likewise.
7227 (windows_nat_target::create_inferior): Likewise.
7228 (windows_xfer_siginfo): Likewise.
7229 (_initialize_loadable): Initialize Wow64SuspendThread,
7230 Wow64GetThreadContext, Wow64SetThreadContext,
7231 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7232 * windows-nat.h (windows_set_context_register_offsets):
7233 Remove declaration.
7234 (windows_set_segment_register_p): Likewise.
7235 (i386_windows_segment_register_p): Add declaration.
7236 (amd64_windows_segment_register_p): Likewise.
7237
7238 2020-03-04 Luis Machado <luis.machado@linaro.org>
7239
7240 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7241 in "info registers" for AArch64/ARM.
7242
7243 The change caused "info registers" to not print GPR's.
7244
7245 gdb/ChangeLog:
7246
7247 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7248
7249 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7250 when reg->group is empty and reggroup is not.
7251
7252 2020-03-03 Tom Tromey <tromey@adacore.com>
7253
7254 * dwarf2/frame.c (struct dwarf2_frame_cache)
7255 <checked_tailcall_bottom, entry_cfa_sp_offset,
7256 entry_cfa_sp_offset_p>: Remove members.
7257 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7258 (dwarf2_frame_prev_register): Don't call
7259 dwarf2_tailcall_sniffer_first.
7260 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7261 * frame-unwind.c (add_unwinder): New fuction.
7262 (frame_unwind_init): Use it. Add tailcall unwinder.
7263
7264 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7265 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7266
7267 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7268 value should be printed as true.
7269
7270 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7271
7272 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7273 (windows_init_abi): Set and use windows_so_ops.
7274
7275 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7276
7277 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7278 when verifying if dealing with a convenience variable.
7279
7280 2020-03-03 Luis Machado <luis.machado@linaro.org>
7281
7282 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7283
7284 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7285
7286 * infrun.c (gdbarch_supports_displaced_stepping): New.
7287 (use_displaced_stepping): Break up conditions in smaller pieces.
7288 Use gdbarch_supports_displaced_stepping.
7289 (displaced_step_prepare_throw): Use
7290 gdbarch_supports_displaced_stepping.
7291
7292 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * NEWS: Mention new behaviour of the history filename.
7295 * top.c (write_history_p): Add comment.
7296 (show_write_history_p): Add header comment, give a different
7297 message when history writing is on, but the history filename is
7298 empty.
7299 (history_filename): Add comment.
7300 (history_filename_empty): New function.
7301 (show_history_filename): Add header comment, give a different
7302 message when the filename is empty.
7303 (init_history): Compare history_filename against nullptr, and only
7304 read history if the filename is not empty.
7305 (set_history_filename): Add header comment, and only make
7306 non-empty filenames absolute.
7307 (init_main): Make the filename argument to 'set history filename'
7308 optional.
7309
7310 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7311
7312 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7313 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7314 (fetch_fp_register): Update.
7315 (fetch_fp_regs): Update.
7316 (store_fp_register): Update.
7317 (store_fp_regs): Update.
7318 (arm_netbsd_nat_target::read_description): New function.
7319 (fetch_elfcore_registers): Update.
7320
7321 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7322
7323 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7324 general_thread if the stop reply is missing a thread-id.
7325 (remote_target::process_stop_reply): Use the first non-exited
7326 thread if the target didn't pass a thread-id.
7327 * infrun.c (do_target_wait): Move call to
7328 switch_to_inferior_no_thread to ....
7329 (do_target_wait_1): ... here.
7330
7331 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7332
7333 * debuginfod-support.c: Include defs.h first.
7334
7335 2020-02-28 Tom de Vries <tdevries@suse.de>
7336
7337 * symfile.c (set_initial_language): Use default language for lookup.
7338
7339 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7340
7341 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7342 reader variable, pass `this` to read_cutu_die_from_dwo.
7343
7344 2020-02-27 Aaron Merey <amerey@redhat.com>
7345
7346 * source.c (open_source_file): Check for nullptr when computing
7347 srcpath.
7348
7349 2020-02-27 Tom Tromey <tromey@adacore.com>
7350
7351 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7352 member.
7353 (dwarf2_add_field): Don't update nfields.
7354 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7355
7356 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7357
7358 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7359 abs.
7360
7361 2020-02-26 Tom Tromey <tom@tromey.com>
7362
7363 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7364 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7365 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7366 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7367 per_cu_data.
7368
7369 2020-02-26 Tom Tromey <tom@tromey.com>
7370
7371 * dwarf2/index-write.c (psym_index_map): Change type.
7372 (add_address_entry_worker, write_one_signatured_type)
7373 (recursively_count_psymbols, recursively_write_psymbols)
7374 (class debug_names, psyms_seen_size, write_gdbindex)
7375 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7376
7377 2020-02-26 Aaron Merey <amerey@redhat.com>
7378
7379 * Makefile.in: Handle optional debuginfod support.
7380 * NEWS: Update.
7381 * README: Add --with-debuginfod summary.
7382 * config.in: Regenerate.
7383 * configure: Regenerate.
7384 * configure.ac: Handle optional debuginfod support.
7385 * debuginfod-support.c: debuginfod helper functions.
7386 * debuginfod-support.h: Ditto.
7387 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7388 summary.
7389 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7390 when a dwz file cannot be found.
7391 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7392 debuginfo file cannot be found.
7393 * source.c (open_source_file): Query debuginfod servers when a
7394 source file cannot be found.
7395 * top.c (print_gdb_configuration): Include
7396 --{with,without}-debuginfod in the output.
7397
7398 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7399
7400 * thread.c (thr_try_catch_cmd): Print thread name.
7401
7402 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7403
7404 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7405 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7406 dwarf2_fetch_die_type_sect_off): Move to...
7407 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7408 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7409 dwarf2_fetch_die_type_sect_off): ... here.
7410 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7411 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7412 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7413
7414 2020-02-26 Tom de Vries <tdevries@suse.de>
7415
7416 PR gdb/25603
7417 * symfile.c (set_initial_language): Exit-early if
7418 language_mode == language_mode_manual.
7419
7420 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7421
7422 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7423 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7424 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7425
7426 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7427
7428 * gdbtypes.c (create_array_type_with_stride): Handle negative
7429 array strides.
7430 * valarith.c (value_subscripted_rvalue): Likewise.
7431
7432 2020-02-25 Luis Machado <luis.machado@linaro.org>
7433
7434 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7435
7436 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7437
7438 * loc.h (dwarf2_get_die_type): Move to...
7439 * read.h (dwarf2_get_die_type): ... here.
7440 * read.c (dwarf2_get_die_type): Move doc to header.
7441
7442 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7443
7444 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7445 'gnulib/Makefile.in' to the list.
7446
7447 2020-02-24 Tom Tromey <tom@tromey.com>
7448
7449 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7450 Remove.
7451 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7452 XOBNEWVEC.
7453
7454 2020-02-24 Tom Tromey <tom@tromey.com>
7455
7456 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7457 New method.
7458 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7459 (dw2_do_instantiate_symtab, dw2_get_file_names)
7460 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7461
7462 2020-02-24 Tom Tromey <tom@tromey.com>
7463
7464 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7465 make_scoped_restore.
7466 (dwarf2_psymtab::read_symtab): Don't clear
7467 reading_partial_symbols.
7468
7469 2020-02-24 Tom de Vries <tdevries@suse.de>
7470
7471 PR gdb/25592
7472 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7473
7474 2020-02-24 Tom de Vries <tdevries@suse.de>
7475
7476 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7477 commands layout next/prev/regs.
7478
7479 2020-02-22 Tom Tromey <tom@tromey.com>
7480
7481 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7482 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7483
7484 2020-02-22 Tom Tromey <tom@tromey.com>
7485
7486 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7487
7488 2020-02-22 Tom Tromey <tom@tromey.com>
7489
7490 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7491 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7492 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7493 * tui/tui.c (_initialize_tui): Add usage text.
7494
7495 2020-02-22 Tom Tromey <tom@tromey.com>
7496
7497 * tui/tui-win.c (tui_set_focus_command)
7498 (tui_set_win_height_command): Use error_no_arg.
7499 (_initialize_tui_win): Update help text.
7500 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7501
7502 2020-02-22 Tom Tromey <tom@tromey.com>
7503
7504 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7505 * tui/tui-disasm.h (struct tui_disasm_window)
7506 <display_start_addr>: Declare.
7507 * tui/tui-source.h (struct tui_source_window)
7508 <display_start_addr>: Declare.
7509 * tui/tui-winsource.h (struct tui_source_window_base)
7510 <show_source_line, display_start_addr>: New methods.
7511 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7512 Rename and move to protected section.
7513 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7514 (tui_source_window_base::do_erase_source_content): Update.
7515 (tui_source_window_base::show_source_line): Now a method.
7516 (tui_source_window_base::show_source_content)
7517 (tui_source_window_base::tui_source_window_base)
7518 (tui_source_window_base::rerender)
7519 (tui_source_window_base::refill)
7520 (tui_source_window_base::do_scroll_horizontal)
7521 (tui_source_window_base::set_is_exec_point_at)
7522 (tui_source_window_base::update_breakpoint_info)
7523 (tui_source_window_base::update_exec_info): Update.
7524 * tui/tui-source.c (tui_source_window::set_contents)
7525 (tui_source_window::showing_source_p)
7526 (tui_source_window::do_scroll_vertical)
7527 (tui_source_window::location_matches_p)
7528 (tui_source_window::line_is_displayed): Update.
7529 (tui_source_window::display_start_addr): New method.
7530 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7531 (tui_disasm_window::do_scroll_vertical)
7532 (tui_disasm_window::location_matches_p): Update.
7533 (tui_disasm_window::display_start_addr): New method.
7534
7535 2020-02-22 Tom Tromey <tom@tromey.com>
7536
7537 * NEWS: Add entry for gdb.register_window_type.
7538 * tui/tui-layout.h (window_factory): New typedef.
7539 (tui_register_window): Declare.
7540 * tui/tui-layout.c (saved_tui_windows): New global.
7541 (tui_apply_current_layout): Use it.
7542 (tui_register_window): New function.
7543 * python/python.c (do_start_initialization): Call
7544 gdbpy_initialize_tui.
7545 (python_GdbMethods): Add "register_window_type" function.
7546 * python/python-internal.h (gdbpy_register_tui_window)
7547 (gdbpy_initialize_tui): Declare.
7548 * python/py-tui.c: New file.
7549 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7550
7551 2020-02-22 Tom Tromey <tom@tromey.com>
7552
7553 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7554
7555 2020-02-22 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7558 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7559 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7560 (tui_set_win_focus_to): Move from tui-win.c.
7561
7562 2020-02-22 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7565 functions.
7566 (known_window_types): New global.
7567 (tui_get_window_by_name): Reimplement.
7568 (initialize_known_windows): New function.
7569 (validate_window_name): Rewrite.
7570 (_initialize_tui_layout): Call initialize_known_windows.
7571
7572 2020-02-22 Tom Tromey <tom@tromey.com>
7573
7574 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7575 Remove constants.
7576 * tui/tui-winsource.h (struct tui_source_window_base)
7577 <tui_source_window_base>: Remove parameter.
7578 * tui/tui-winsource.c
7579 (tui_source_window_base::tui_source_window_base): Remove
7580 parameter.
7581 (tui_source_window_base::refill): Update.
7582 * tui/tui-stack.h (struct tui_locator_window)
7583 <tui_locator_window>: Update.
7584 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7585 Default the constructor.
7586 * tui/tui-regs.h (struct tui_data_item_window)
7587 <tui_data_item_window>: Default the constructor.
7588 (struct tui_data_window) <tui_data_window>: Likewise.
7589 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7590 Default the constructor.
7591 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7592 Default the constructor.
7593 <type>: Remove.
7594 (struct tui_win_info) <tui_win_info>: Default the constructor.
7595 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7596 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7597 Default the constructor.
7598
7599 2020-02-22 Tom Tromey <tom@tromey.com>
7600
7601 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7602 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7603 * tui/tui-win.c (tui_resize_all): Don't call
7604 tui_delete_invisible_windows.
7605 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7606 done.
7607 (tui_set_layout): Update.
7608 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7609 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7610 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7611
7612 2020-02-22 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7615 correctly.
7616
7617 2020-02-22 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7620
7621 2020-02-22 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-winsource.h (struct tui_source_window_iterator)
7624 <inner_iterator>: New etytypedef.
7625 <tui_source_window_iterator>: Take "end" parameter.
7626 <tui_source_window_iterator>: Take iterator.
7627 <operator*, advance>: Update.
7628 <m_iter>: Change type.
7629 <m_end>: New field.
7630 (struct tui_source_windows) <begin, end>: Update.
7631 * tui/tui-layout.c (tui_windows): New global.
7632 (tui_apply_current_layout): Clear tui_windows.
7633 (tui_layout_window::apply): Update tui_windows.
7634 * tui/tui-data.h (tui_windows): Declare.
7635 (all_tui_windows): Now inline function.
7636 (class tui_window_iterator, struct all_tui_windows): Remove.
7637
7638 2020-02-22 Tom Tromey <tom@tromey.com>
7639
7640 PR tui/17850:
7641 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7642 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7643 "height" argument.
7644 (class tui_layout_window) <get_sizes>: Likewise.
7645 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7646 argument.
7647 <get_sizes>: Add "height" argument.
7648 <m_vertical>: New field.
7649 * tui/tui-layout.c (tui_layout_split::clone): Update.
7650 (tui_layout_split::get_sizes): Add "height" argument.
7651 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7652 (tui_new_layout_command): Parse "-horizontal".
7653 (_initialize_tui_layout): Update help string.
7654 (tui_layout_split::specification): Add "-horizontal" when needed.
7655 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7656 argument.
7657 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7658 New methods.
7659
7660 2020-02-22 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-layout.h (enum tui_adjust_result): New.
7663 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7664 (class tui_layout_window) <adjust_size>: Return
7665 tui_adjust_result. Rewrite.
7666 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7667 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7668
7669 2020-02-22 Tom Tromey <tom@tromey.com>
7670
7671 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7672 parameter and return types.
7673 (class tui_layout_base) <specification>: Add "depth".
7674 (class tui_layout_window) <specification>: Add "depth".
7675 (class tui_layout_split) <specification>: Add "depth".
7676 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7677 and return types.
7678 (tui_new_layout_command): Parse sub-layouts.
7679 (_initialize_tui_layout): Update help string.
7680 (tui_layout_window::specification): Add "depth".
7681 (add_layout_command): Update.
7682
7683 2020-02-22 Tom Tromey <tom@tromey.com>
7684
7685 * NEWS: Add "tui new-layout" item.
7686 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7687 Add new-layout command to help text.
7688 (validate_window_name): New function.
7689 (tui_new_layout_command): New function.
7690 (_initialize_tui_layout): Register "new-layout".
7691 (tui_layout_window::specification): New method.
7692 (tui_layout_window::specification): New method.
7693 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7694 method.
7695 (class tui_layout_window) <specification>: New method.
7696 (class tui_layout_split) <specification>: New method.
7697
7698 2020-02-22 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7701 * tui/tui-win.c (window_name_completer): Update comment.
7702 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7703 Declare method.
7704 (class tui_layout_window) <replace_window>: Likewise.
7705 (class tui_layout_split) <replace_window>: Likewise.
7706 (tui_set_layout): Don't declare.
7707 (tui_set_initial_layout): Declare function.
7708 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7709 (asm_regs_layout): New globals.
7710 (tui_current_layout, show_layout): Remove.
7711 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7712 (find_layout, tui_apply_layout): New function.
7713 (layout_completer): Remove.
7714 (tui_next_layout): Reimplement.
7715 (tui_next_layout_command): New function.
7716 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7717 (tui_regs_layout): Reimplement.
7718 (tui_regs_layout_command): New function.
7719 (extract_display_start_addr): Rewrite.
7720 (next_layout, prev_layout): Remove.
7721 (tui_layout_window::replace_window): New method.
7722 (tui_layout_split::replace_window): New method.
7723 (destroy_layout): New function.
7724 (layout_list): New global.
7725 (add_layout_command): New function.
7726 (initialize_layouts): Update.
7727 (tui_layout_command): New function.
7728 (_initialize_tui_layout): Install "layout" commands.
7729 * tui/tui-data.h (enum tui_layout_type): Remove.
7730 (tui_current_layout): Don't declare.
7731
7732 2020-02-22 Tom Tromey <tom@tromey.com>
7733
7734 * tui/tui-regs.c (tui_reg_layout): Remove.
7735 (tui_reg_command): Use tui_regs_layout.
7736 * tui/tui-layout.h (tui_reg_command): Declare.
7737 * tui/tui-layout.c (tui_reg_command): New function.
7738
7739 2020-02-22 Tom Tromey <tom@tromey.com>
7740
7741 * tui/tui.c (tui_rl_delete_other_windows): Call
7742 tui_remove_some_windows.
7743 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7744 Declare method.
7745 (class tui_layout_window) <remove_windows>: New method.
7746 (class tui_layout_split) <remove_windows>: Declare.
7747 (tui_remove_some_windows): Declare.
7748 * tui/tui-layout.c (tui_remove_some_windows): New function.
7749 (tui_layout_split::remove_windows): New method.
7750
7751 2020-02-22 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7754 * tui/tui-layout.h (tui_next_layout): Declare.
7755 * tui/tui-layout.c (tui_next_layout): New function.
7756
7757 2020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7760 correct coordinates.
7761
7762 2020-02-22 Tom Tromey <tom@tromey.com>
7763
7764 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7765 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7766 DATA_WIN case.
7767
7768 2020-02-22 Tom Tromey <tom@tromey.com>
7769
7770 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7771 TUI_DISASM_WIN, not tui_win_list.
7772
7773 2020-02-22 Tom Tromey <tom@tromey.com>
7774
7775 * valprint.c (generic_val_print_enum_1)
7776 (val_print_type_code_flags): Style member names.
7777 * rust-lang.c (val_print_struct, rust_print_enum)
7778 (rust_print_struct_def, rust_internal_print_type): Style member
7779 names.
7780 * p-valprint.c (pascal_object_print_value_fields): Style member
7781 names. Only call fprintf_symbol_filtered for static members.
7782 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7783 * f-valprint.c (f_val_print): Style member names.
7784 * f-typeprint.c (f_type_print_base): Style member names.
7785 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7786 call fprintf_symbol_filtered for static members.
7787 (cp_print_class_member): Style member names.
7788 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7789 member names.
7790 * ada-valprint.c (ada_print_scalar): Style enum names.
7791 (ada_val_print_enum): Likewise.
7792 * ada-typeprint.c (print_enum_type): Style enum names.
7793
7794 2020-02-21 Tom Tromey <tom@tromey.com>
7795
7796 * psympriv.h (struct partial_symtab): Update comment.
7797
7798 2020-02-21 Tom Tromey <tromey@adacore.com>
7799
7800 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7801 type is CORE_ADDR.
7802
7803 2020-02-21 Tom de Vries <tdevries@suse.de>
7804
7805 PR gdb/25534
7806 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7807 if dependencies[i]->user != NULL.
7808
7809 2020-02-21 Ali Tamur <tamur@google.com>
7810
7811 * dwarf2/read.c (dwarf2_name): Add null check.
7812
7813 2020-02-20 Tom Tromey <tom@tromey.com>
7814
7815 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7816 ">=", in binary search.
7817 (dwarf2_find_containing_comp_unit): New overload.
7818 (run_test): New self-test.
7819 (_initialize_dwarf2_read): Register new test.
7820
7821 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
7822
7823 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7824 * riscv-tdep.h: Likewise.
7825 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7826 rv32-only CSR.
7827 * features/riscv/64bit-csr.xml: Regenerated.
7828
7829 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7830 Tom Tromey <tom@tromey.com>
7831
7832 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7833 of 'fputc_unfiltered'.
7834 (putchar_unfiltered): Call 'fputc_unfiltered'.
7835 (fputc_unfiltered): Call 'fputs_unfiltered'.
7836
7837 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * config.in: Regenerate.
7840 * configure: Regenerate.
7841 * configure.ac: Add --with-python-libdir option.
7842 * main.c: Use WITH_PYTHON_LIBDIR.
7843
7844 2020-02-19 Tom Tromey <tom@tromey.com>
7845
7846 * symtab.c (general_symbol_info::compute_and_set_names): Use
7847 obstack_strndup. Simplify call to symbol_set_demangled_name.
7848
7849 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
7850
7851 * dwarf2/read.c (allocate_signatured_type_table,
7852 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7853 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7854 Remove objfile parameter, update all callers.
7855
7856 2020-02-19 Doug Evans <dje@google.com>
7857
7858 PR rust/25535
7859 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7860 rust_enum_variant calculation.
7861
7862 2020-02-19 Tom Tromey <tromey@adacore.com>
7863
7864 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7865
7866 2020-02-19 Tom Tromey <tromey@adacore.com>
7867
7868 * ada-lang.c (cache_symbol): Use obstack_strdup.
7869
7870 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7871
7872 * configure: Regenerate.
7873
7874 2020-02-19 Tom Tromey <tromey@adacore.com>
7875
7876 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7877 NULL check.
7878
7879 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
7880
7881 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7882
7883 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7886 if GDBSERVER is not defined.
7887 (riscv_tdesc_cache): Likewise, also store const target_desc.
7888 (STATIC_IN_GDB): Define.
7889 (riscv_create_target_description): Update declaration with
7890 STATIC_IN_GDB.
7891 (riscv_lookup_target_description): New function, only define if
7892 GDBSERVER is not defined.
7893 * arch/riscv.h (riscv_create_target_description): Declare only
7894 when GDBSERVER is defined.
7895 (riscv_lookup_target_description): New declaration when GDBSERVER
7896 is not defined.
7897 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7898 (riscv_linux_read_features): ...this, and return
7899 riscv_gdbarch_features instead of target_desc.
7900 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7901 (riscv_linux_read_description): Rename to...
7902 (riscv_linux_read_features): ...this.
7903 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7904 Update to use riscv_gdbarch_features and
7905 riscv_lookup_target_description.
7906 * riscv-tdep.c (riscv_find_default_target_description): Use
7907 riscv_lookup_target_description instead of
7908 riscv_create_target_description.
7909
7910 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * valprint.c (generic_val_print_enum_1): When printing a flag
7913 enum with value 0 and there is no enumerator with value 0, print
7914 just "0" instead of "(unknown: 0x0)".
7915
7916 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * valprint.c (generic_val_print_enum_1): Print unknown part of
7919 flag enum in hex.
7920
7921 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7922
7923 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7924 flag enums to contain duplicate enumerators.
7925 * valprint.c (generic_val_print_enum_1): Update comment.
7926
7927 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7928
7929 * dwarf2/read.c: Include "count-one-bits.h".
7930 (update_enumeration_type_from_children): If an enumerator has
7931 multiple bits set, don't treat the enumeration as a "flag enum".
7932 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7933 of flag enums have 0 or 1 bit set.
7934
7935 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7936
7937 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7938 conversion.
7939 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7940 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7941 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7942 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7943 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7944
7945 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7946
7947 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7948
7949 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7950
7951 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7952 displaced_step_closure_up.
7953 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7954 (struct displaced_step_closure_up):
7955 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7956 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7957 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7958 Likewise.
7959 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7960 * gdbarch.c, gdbarch.h: Re-generate.
7961 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7962 displaced_step_closure_up.
7963 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7964 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7965 * infrun.h (displaced_step_closure_up): New type alias.
7966 (struct displaced_step_inferior_state) <step_closure>: Change
7967 type to displaced_step_closure_up.
7968 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7969 displaced_step_closure_up.
7970 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7971
7972 2020-02-14 Tom Tromey <tom@tromey.com>
7973
7974 * minidebug.c (gnu_debug_key): New global.
7975 (find_separate_debug_file_in_section): Use it.
7976
7977 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7980 std::unique_ptr.
7981 * gdbarch.c: Re-generate.
7982 * gdbarch.h: Re-generate.
7983 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7984 change.
7985 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7986 type to std::unique_ptr.
7987 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7988 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7989 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7990 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7991 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7992 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7993 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7994 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7995 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7996
7997 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7998
7999 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8000 std::unique_ptr.
8001 (displaced_step_clear): Rename to...
8002 (displaced_step_reset): ... this. Just call displaced->reset ().
8003 (displaced_step_clear_cleanup): Rename to...
8004 (displaced_step_reset_cleanup): ... this.
8005 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8006 (displaced_step_fixup): Likewise.
8007 (resume_1): Likewise.
8008 (handle_inferior_event): Restore child's memory before calling
8009 displaced_step_fixup on the parent.
8010 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8011 to std::unique_ptr.
8012 <step_closure>: Change type to std::unique_ptr.
8013
8014 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8015
8016 * arm-tdep.c: Include count-one-bits.h.
8017 (cleanup_block_store_pc): Use count_one_bits.
8018 (cleanup_block_load_pc): Use count_one_bits.
8019 (arm_copy_block_xfer): Use count_one_bits.
8020 (thumb2_copy_block_xfer): Use count_one_bits.
8021 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8022 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8023 (thumb_get_next_pcs_raw): Use count_one_bits.
8024 (arm_get_next_pcs_raw): Use count_one_bits_l.
8025 * arch/arm.c (bitcount): Remove.
8026 * arch/arm.h (bitcount): Remove.
8027
8028 2020-02-14 Tom Tromey <tromey@adacore.com>
8029
8030 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8031 Update.
8032 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8033 * dwarf2/loc.c (call_site_find_chain_1): Return
8034 unique_xmalloc_ptr.
8035 (call_site_find_chain): Likewise.
8036
8037 2020-02-14 Richard Biener <rguenther@suse.de>
8038
8039 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8040 on expression with division operators.
8041
8042 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8043
8044 * MAINTAINERS (Write After Approval): Adding myself.
8045
8046 2020-02-12 Tom Tromey <tom@tromey.com>
8047
8048 * event-loop.c (event_data, gdb_event, event_handler_func):
8049 Remove.
8050
8051 2020-02-12 Tom Tromey <tom@tromey.com>
8052
8053 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8054 (dwarf2_frame_objfile_data): Add comment.
8055 (find_comp_unit, set_comp_unit): New functions.
8056 (dwarf2_frame_find_fde): Use find_comp_unit.
8057 (dwarf2_build_frame_info): Use set_comp_unit.
8058
8059 2020-02-12 Tom Tromey <tom@tromey.com>
8060
8061 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8062 (comp_unit): Don't initialize objfile.
8063 (execute_cfa_program): Add text_offset parameter.
8064 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8065 (dwarf2_frame_cache): Update.
8066 (dwarf2_build_frame_info): Don't set "objfile" member.
8067
8068 2020-02-12 Tom Tromey <tom@tromey.com>
8069
8070 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8071 (decode_frame_entry): Likewise.
8072 (dwarf2_build_frame_info): Update.
8073
8074 2020-02-12 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8077 (decode_frame_entry_1): Use the comp_unit obstack.
8078
8079 2020-02-12 Tom Tromey <tom@tromey.com>
8080
8081 * dwarf2/frame.c (struct comp_unit): Add initializers and
8082 constructor.
8083 (dwarf2_frame_objfile_data): Store a comp_unit.
8084 (dwarf2_frame_find_fde): Update.
8085 (dwarf2_build_frame_info): Use "new".
8086
8087 2020-02-12 Tom Tromey <tom@tromey.com>
8088
8089 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8090 (dwarf2_fde_table): Typedef for std::vector.
8091 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8092 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8093 (decode_frame_entry): Update.
8094 (dwarf2_build_frame_info): Use "new".
8095
8096 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8097
8098 * arm-tdep.c (arm_gdbarch_init): Update.
8099 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8100 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8101 have_neon, is_m>: Change to bool.
8102
8103 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8104
8105 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8106
8107 2020-02-12 Tom Tromey <tom@tromey.com>
8108
8109 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8110
8111 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8112
8113 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8114 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8115
8116 2020-02-11 Tom Tromey <tom@tromey.com>
8117
8118 * psymtab.h: Update comment.
8119
8120 2020-02-11 Tom Tromey <tom@tromey.com>
8121
8122 * gdb_obstack.h (struct auto_obstack): Use
8123 DISABLE_COPY_AND_ASSIGN.
8124
8125 2020-02-11 Tom Tromey <tom@tromey.com>
8126
8127 * dwarf2/frame.h (struct objfile): Don't forward declare.
8128
8129 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8130
8131 * cris-tdep.c (cris_supply_gregset): Change signature to match
8132 what struct regset expects.
8133 (cris_regset): New struct.
8134 (fetch_core_registers): Remove.
8135 (cris_iterate_over_regset_sections): New function.
8136 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8137 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8138
8139 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8140
8141 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8142 registers.
8143
8144 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8145
8146 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8147
8148 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8149
8150 * configure: Re-generate.
8151
8152 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8153
8154 * configure: Re-generate.
8155
8156 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * acinclude: Update warning.m4 path.
8159 * warning.m4: Move to gdbsupport.
8160
8161 2020-02-11 Tom Tromey <tromey@adacore.com>
8162
8163 * remote.c (remote_console_output): Update.
8164 * printcmd.c (printf_command): Update.
8165 * event-loop.c (gdb_wait_for_event): Update.
8166 * linux-nat.c (sigchld_handler): Update.
8167 * remote-sim.c (gdb_os_write_stdout): Update.
8168 (gdb_os_flush_stdout): Update.
8169 (gdb_os_flush_stderr): Update.
8170 (gdb_os_write_stderr): Update.
8171 * exceptions.c (print_exception): Update.
8172 * remote-fileio.c (remote_fileio_func_read): Update.
8173 (remote_fileio_func_write): Update.
8174 * tui/tui.c (tui_enable): Update.
8175 * tui/tui-interp.c (tui_interp::init): Update.
8176 * utils.c (init_page_info): Update.
8177 (putchar_unfiltered, fputc_unfiltered): Update.
8178 (gdb_flush): Update.
8179 (emit_style_escape): Update.
8180 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8181 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8182 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8183 (stderr_file::write): Update.
8184 (stderr_file::puts): Update.
8185 * ui-file.h (ui_file_isatty, ui_file_write)
8186 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8187 (ui_file_puts): Don't declare.
8188
8189 2020-02-10 Tom de Vries <tdevries@suse.de>
8190
8191 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8192 sentinel to char *.
8193
8194 2020-02-09 Tom de Vries <tdevries@suse.de>
8195
8196 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8197 filename if it matches "<artificial>".
8198
8199 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8200
8201 * windows-tdep.c (struct enum_value_name): New struct.
8202 (create_enum): New function.
8203 (windows_get_siginfo_type): Create and use enum types.
8204
8205 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8206
8207 * NEWS: Mention $_siginfo support for Windows.
8208 * windows-nat.c (handle_exception): Set siginfo_er.
8209 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8210 (windows_xfer_siginfo): New function.
8211 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8212 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8213 (init_windows_gdbarch_data): New function.
8214 (get_windows_gdbarch_data): New function.
8215 (windows_get_siginfo_type): New function.
8216 (windows_init_abi): Register windows_get_siginfo_type.
8217 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8218
8219 2020-02-08 Tom Tromey <tom@tromey.com>
8220
8221 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8222 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8223 <keep>: Declare method.
8224 <m_keep>: Remove member.
8225 <~cutu_reader>: Remove.
8226 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8227 (cutu_reader::cutu_reader): Update.
8228 (cutu_reader::keep): Rename from ~cutu_reader.
8229 (process_psymtab_comp_unit, build_type_psymtabs_1)
8230 (process_skeletonless_type_unit, load_partial_comp_unit)
8231 (load_full_comp_unit, dwarf2_read_addr_index)
8232 (read_signatured_type): Update.
8233
8234 2020-02-08 Tom Tromey <tom@tromey.com>
8235
8236 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8237 "want_partial_unit" parameter.
8238 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8239 Inline check for DW_TAG_partial_unit.
8240 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8241
8242 2020-02-08 Tom Tromey <tom@tromey.com>
8243
8244 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8245 read.c.
8246 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8247 read.c.
8248
8249 2020-02-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/read.c (read_address): Move to comp-unit.c.
8252 (dwarf2_rnglists_process, dwarf2_ranges_process)
8253 (read_attribute_value, dwarf_decode_lines_1)
8254 (var_decode_location, decode_locdesc): Update.
8255 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8256 read.c. Remove "cu" parameter.
8257 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8258 method.
8259
8260 2020-02-08 Tom Tromey <tom@tromey.com>
8261
8262 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8263 (read_indirect_line_string): Update.
8264 * dwarf2/comp-unit.c (read_offset): Remove.
8265 (read_comp_unit_head): Update.
8266 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8267 method.
8268 (read_offset): Don't declare.
8269
8270 2020-02-08 Tom Tromey <tom@tromey.com>
8271
8272 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8273 * dwarf2/read.c (struct comp_unit_head): Move to
8274 dwarf2/comp-unit.h.
8275 (enum class rcuh_kind): Move to comp-unit.h.
8276 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8277 (read_comp_unit_head, error_check_comp_unit_head)
8278 (read_and_check_comp_unit_head): Move to comp-unit.c.
8279 (read_offset, dwarf_unit_type_name): Likewise.
8280 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8281 (cutu_reader::cutu_reader, read_call_site_scope)
8282 (find_partial_die, follow_die_offset): Update.
8283 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8284
8285 2020-02-08 Tom Tromey <tom@tromey.com>
8286
8287 * dwarf2/read.c (read_offset_1): Move to leb.c.
8288 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8289 (dwarf_decode_macro_bytes): Update.
8290 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8291 * dwarf2/leb.h (read_offset): Declare.
8292
8293 2020-02-08 Tom Tromey <tom@tromey.com>
8294
8295 * dwarf2/read.c (dwarf2_section_size): Remove.
8296 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8297 Update.
8298 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8299
8300 2020-02-08 Tom Tromey <tom@tromey.com>
8301
8302 * dwarf2/read.c (read_initial_length): Move to leb.c.
8303 * dwarf2/leb.h (read_initial_length): Declare.
8304 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8305 handle_nonstd parameter.
8306 * dwarf2/frame.c (read_initial_length): Remove.
8307 (decode_frame_entry_1): Update.
8308
8309 2020-02-08 Tom Tromey <tom@tromey.com>
8310
8311 * dwarf2/loc.c (dwarf2_find_location_expression)
8312 (dwarf_evaluate_loc_desc::get_tls_address)
8313 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8314 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8315 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8316 (dwarf2_compile_property_to_c)
8317 (dwarf2_loc_desc_get_symbol_read_needs)
8318 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8319 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8320 (loclist_describe_location, loclist_tracepoint_var_ref)
8321 (loclist_generate_c_location): Update.
8322 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8323 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8324 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8325 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8326 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8327 (dwarf2_per_cu_data::addr_size)
8328 (dwarf2_per_cu_data::ref_addr_size)
8329 (dwarf2_per_cu_data::text_offset)
8330 (dwarf2_per_cu_data::addr_type): Now methods.
8331 (per_cu_header_read_in): Make per_cu "const".
8332 (dwarf2_version): Remove.
8333 (dwarf2_per_cu_data::int_type): Now a method.
8334 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8335 (set_die_type, read_array_type, read_subrange_index_type)
8336 (read_tag_string_type, read_subrange_type): Update.
8337 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8338 offset_size, ref_addr_size, text_offset, addr_type, version,
8339 objfile, int_type, addr_sized_int_type>: Declare methods.
8340
8341 2020-02-08 Tom Tromey <tom@tromey.com>
8342
8343 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8344 Move earlier.
8345
8346 2020-02-08 Tom Tromey <tom@tromey.com>
8347
8348 * dwarf2/read.h (dwarf_line_debug): Declare.
8349 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8350 * dwarf2/read.c: Move line_header code to new files.
8351 (dwarf_line_debug): No longer static.
8352 * dwarf2/line-header.c: New file.
8353 * dwarf2/line-header.h: New file.
8354
8355 2020-02-08 Tom Tromey <tom@tromey.com>
8356
8357 * dwarf2/read.c (struct line_header) <file_full_name,
8358 file_file_name>: Return unique_xmalloc_ptr.
8359 (line_header::file_file_name): Update.
8360 (line_header::file_full_name): Update.
8361 (dw2_get_file_names_reader): Update.
8362 (macro_start_file): Update.
8363
8364 2020-02-08 Tom Tromey <tom@tromey.com>
8365
8366 * dwarf2/read.c (struct line_header) <file_full_name,
8367 file_file_name>: Declare methods.
8368 (dw2_get_file_names_reader): Update.
8369 (file_file_name): Now a method.
8370 (file_full_name): Likewise.
8371 (macro_start_file): Update.
8372
8373 2020-02-08 Tom Tromey <tom@tromey.com>
8374
8375 * dwarf2/read.c (dwarf_always_disassemble)
8376 (show_dwarf_always_disassemble): Move to loc.c.
8377 (_initialize_dwarf2_read): Move "always-disassemble" registration
8378 to loc.c.
8379 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8380 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8381 static.
8382 (show_dwarf_always_disassemble): Move from read.c.
8383 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8384
8385 2020-02-08 Tom Tromey <tom@tromey.com>
8386
8387 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8388 (create_quick_file_names_table): Return htab_up.
8389 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8390 Update.
8391 * dwarf2/read.h (struct dwarf2_per_objfile)
8392 <quick_file_names_table>: Now htab_up.
8393
8394 2020-02-08 Tom Tromey <tom@tromey.com>
8395
8396 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8397
8398 2020-02-08 Tom Tromey <tom@tromey.com>
8399
8400 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8401 Rewrite.
8402 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8403 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8404 (abbrev_table::abbrev_table): No longer inline.
8405 (ABBREV_HASH_SIZE): Remove.
8406 (abbrev_table::m_abbrevs): Now an htab_up.
8407
8408 2020-02-08 Tom Tromey <tom@tromey.com>
8409
8410 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8411 (cutu_reader): Update.
8412 (build_type_psymtabs_1): Update.
8413 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8414 (abbrev_table::alloc_abbrev): Update.
8415 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8416 (abbrev_table::read): New static method, renamed from
8417 abbrev_table_read_table.
8418 (abbrev_table::alloc_abbrev)
8419 (abbrev_table::add_abbrev): Now private.
8420 (abbrev_table::abbrev_table): Now private.
8421 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8422
8423 2020-02-08 Tom Tromey <tom@tromey.com>
8424
8425 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8426 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8427 htab_up.
8428
8429 2020-02-08 Tom Tromey <tom@tromey.com>
8430
8431 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8432 htab_up.
8433 (lookup_dwo_unit_in_dwp): Update.
8434 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8435 on obstack.
8436
8437 2020-02-08 Tom Tromey <tom@tromey.com>
8438
8439 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8440 obstack.
8441
8442 2020-02-08 Tom Tromey <tom@tromey.com>
8443
8444 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8445 line_header_hash.
8446 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8447 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8448 Change type to htab_up.
8449
8450 2020-02-08 Tom Tromey <tom@tromey.com>
8451
8452 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8453 htab_up. Don't allocate on obstack.
8454 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8455 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8456 Change type to htab_up.
8457
8458 2020-02-08 Tom Tromey <tom@tromey.com>
8459
8460 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8461 Change type to htab_up.
8462 * dwarf2/read.c (create_signatured_type_table_from_index)
8463 (create_signatured_type_table_from_debug_names)
8464 (create_all_type_units, add_type_unit)
8465 (lookup_dwo_signatured_type, lookup_signatured_type)
8466 (process_skeletonless_type_unit): Update.
8467 (create_debug_type_hash_table, create_debug_types_hash_table):
8468 Change type of types_htab.
8469 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8470 htab_up. Don't allocate on obstack.
8471 (create_cus_hash_table): Change type of cus_htab parameter.
8472 (struct dwo_file) <cus, tus>: Now htab_up.
8473 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8474 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8475 (queue_and_load_all_dwo_tus): Update.
8476 * dwarf2/index-write.c (write_gdbindex): Update.
8477 (write_debug_names): Update.
8478
8479 2020-02-08 Tom Tromey <tom@tromey.com>
8480
8481 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8482 dwarf2/read.c. Remove "next" member. Add constructor ntad
8483 destructor.
8484 (struct dwarf2_per_objfile) <queue>: New member.
8485 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8486 dwarf2/read.h.
8487 (dwarf2_queue, dwarf2_queue_tail): Remove.
8488 (class dwarf2_queue_guard): Add parameter to constructor. Use
8489 DISABLE_COPY_AND_ASSIGN.
8490 <m_per_objfile>: New member.
8491 <~dwarf2_queue_guard>: Rewrite.
8492 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8493 Update.
8494 (~dwarf2_queue_item): New.
8495
8496 2020-02-08 Tom Tromey <tom@tromey.com>
8497
8498 * dwarf2/read.c (struct die_info) <has_children>: New member.
8499 (dw2_get_file_names_reader): Remove has_children.
8500 (dw2_get_file_names): Update.
8501 (read_cutu_die_from_dwo): Remove has_children.
8502 (cutu_reader::init_tu_and_read_dwo_dies)
8503 (cutu_reader::cutu_reader): Update.
8504 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8505 Remove has_children.
8506 (build_type_psymtabs_1, process_skeletonless_type_unit)
8507 (load_partial_comp_unit, load_full_comp_unit): Update.
8508 (create_dwo_cu_reader): Remove has_children.
8509 (create_cus_hash_table, read_die_and_children): Update.
8510 (read_full_die_1,read_full_die): Remove has_children.
8511 (read_signatured_type): Update.
8512 (class cutu_reader) <has_children>: Remove.
8513
8514 2020-02-08 Tom Tromey <tom@tromey.com>
8515
8516 * dwarf2/expr.c: Rename from dwarf2expr.c.
8517 * dwarf2/expr.h: Rename from dwarf2expr.h.
8518 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8519 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8520 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8521 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8522 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8523 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8524 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8525 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8526 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8527 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8528 * dwarf2/loc.c: Rename from dwarf2loc.c.
8529 * dwarf2/loc.h: Rename from dwarf2loc.h.
8530 * dwarf2/read.c: Rename from dwarf2read.c.
8531 * dwarf2/read.h: Rename from dwarf2read.h.
8532 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8533 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8534 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8535 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8536 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8537 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8538 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8539 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8540 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8541 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8542 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8543 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8544 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8545 Update.
8546 * Makefile.in (COMMON_SFILES): Update.
8547 (HFILES_NO_SRCDIR): Update.
8548
8549 2020-02-08 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8552 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8553
8554 2020-02-08 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2read.h (struct die_info): Don't declare.
8557
8558 2020-02-08 Tom Tromey <tom@tromey.com>
8559
8560 * dwarf2read.h (die_info_ptr): Remove typedef.
8561
8562 2020-02-08 Tom Tromey <tom@tromey.com>
8563
8564 * dwarf2read.c (read_call_site_scope)
8565 (handle_data_member_location, dwarf2_add_member_fn)
8566 (mark_common_block_symbol_computed, read_common_block)
8567 (attr_to_dynamic_prop, partial_die_info::read)
8568 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8569 (dwarf2_symbol_mark_computed, set_die_type): Update.
8570 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8571 method.
8572 (attr_form_is_block): Don't declare.
8573 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8574
8575 2020-02-08 Tom Tromey <tom@tromey.com>
8576
8577 * dwarf2read.c (dwarf2_find_base_address, )
8578 (read_call_site_scope, rust_containing_type)
8579 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8580 (handle_data_member_location, dwarf2_add_member_fn)
8581 (get_alignment, read_structure_type, process_structure_scope)
8582 (mark_common_block_symbol_computed, read_common_block)
8583 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8584 (partial_die_info::read, read_attribute_value, new_symbol)
8585 (lookup_die_type, dwarf2_get_ref_die_offset)
8586 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8587 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8588 (dwarf2_symbol_mark_computed): Update.
8589 * dwarf2/attribute.h (struct attribute) <value_as_address,
8590 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8591 methods.
8592 (value_as_address, attr_form_is_section_offset)
8593 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8594 * dwarf2/attribute.c (attribute::value_as_address)
8595 (attribute::form_is_section_offset, attribute::form_is_constant)
8596 (attribute::form_is_ref): Now methods.
8597
8598 2020-02-08 Tom Tromey <tom@tromey.com>
8599
8600 * dwarf2read.c (struct attribute, DW_STRING)
8601 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8602 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8603 (attr_form_is_block, attr_form_is_section_offset)
8604 (attr_form_is_constant, attr_form_is_ref): Move.
8605 * dwarf2/attribute.h: New file.
8606 * dwarf2/attribute.c: New file, from dwarf2read.c.
8607 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8608
8609 2020-02-08 Tom Tromey <tom@tromey.com>
8610
8611 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8612 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8613 Move.
8614 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8615 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8616 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8617 abbrev.c.
8618 * dwarf2/abbrev.h: New file.
8619 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8620 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8621
8622 2020-02-08 Tom Tromey <tom@tromey.com>
8623
8624 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8625 (dwarf2_section_size, dwarf2_get_section_info)
8626 (create_signatured_type_table_from_debug_names)
8627 (create_addrmap_from_aranges, read_debug_names_from_section)
8628 (get_gdb_index_contents_from_section, read_comp_unit_head)
8629 (error_check_comp_unit_head, read_abbrev_offset)
8630 (create_debug_type_hash_table, init_cu_die_reader)
8631 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8632 (read_comp_units_from_section, create_cus_hash_table)
8633 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8634 (create_dwp_v2_section, dwarf2_rnglists_process)
8635 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8636 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8637 (read_indirect_string_from_dwz, read_addr_index_1)
8638 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8639 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8640 (fill_in_loclist_baton): Update.
8641 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8642 get_containing_section, get_bfd_owner, get_bfd_section,
8643 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8644 (dwarf2_read_section, get_section_name, get_section_file_name)
8645 (get_containing_section, get_section_bfd_owner)
8646 (get_section_bfd_section, get_section_name, get_section_file_name)
8647 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8648 declare.
8649 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8650 (dwarf2_section_info::get_bfd_owner)
8651 (dwarf2_section_info::get_bfd_section)
8652 (dwarf2_section_info::get_name)
8653 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8654 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8655 (dwarf2_section_info::read): Now methods.
8656 * dwarf-index-write.c (class debug_names): Update.
8657
8658 2020-02-08 Tom Tromey <tom@tromey.com>
8659
8660 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8661 Move to dwarf2/section.h.
8662 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8663 (get_section_bfd_section, get_section_name)
8664 (get_section_file_name, get_section_id, get_section_flags)
8665 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8666 dwarf2/section.c.
8667 * dwarf2/section.h: New file.
8668 * dwarf2/section.c: New file, from dwarf2read.c.
8669 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8670
8671 2020-02-08 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8674 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8675 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8676 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8677 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8678 * dwarf2/leb.h: New file, from dwarf2read.c.
8679 * dwarf2/leb.c: New file, from dwarf2read.c.
8680 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8681 Remove.
8682 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8683 (COMMON_SFILES): Add dwarf2/leb.c.
8684
8685 2020-02-08 Joel Brobecker <brobecker@adacore.com>
8686
8687 GDB 9.1 released.
8688
8689 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8690
8691 PR gdb/25190:
8692 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8693 * gdb/remote.c (remote_console_output): Update.
8694 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8695 (ui_file_puts): ...this.
8696 * gdb/ui-file.h (ui_file_puts): Add declaration.
8697 * gdb/utils.c (emit_style_escape): Update.
8698 (flush_wrap_buffer): Update.
8699 (fputs_maybe_filtered): Update.
8700 (fputs_unfiltered): Add function.
8701
8702 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8703
8704 * gdb/event-loop.c (gdb_wait_for_event): Update.
8705 * gdb/printcmd.c (printf_command): Update.
8706 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8707 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8708 (gdb_os_flush_stderr): Update.
8709 * gdb/remote.c (remote_console_output): Update.
8710 * gdb/ui-file.c (gdb_flush): Rename to...
8711 (ui_file_flush): ...this.
8712 (stderr_file::write): Update.
8713 (stderr_file::puts): Update.
8714 * gdb/ui-file.h (gdb_flush): Rename to...
8715 (ui_file_flush): ...this.
8716 * gdb/utils.c (gdb_flush): Add function.
8717 * gdb/utils.h (gdb_flush): Add declaration.
8718
8719 2020-02-07 Tom Tromey <tromey@adacore.com>
8720
8721 PR breakpoints/24915:
8722 * source.c (find_and_open_source): Do not check basenames_may_differ.
8723
8724 2020-02-07 Tom Tromey <tom@tromey.com>
8725
8726 * README: Update gdbserver documentation.
8727 * gdbserver: Move to top level.
8728 * configure.tgt (build_gdbserver): Remove.
8729 * configure.ac: Remove --enable-gdbserver.
8730 * configure: Rebuild.
8731 * Makefile.in (distclean): Don't mention gdbserver.
8732
8733 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8734
8735 * source-cache.c (source_cache::ensure): Surround
8736 get_plain_source_lines with a try/catch.
8737 (source_cache::get_line_charpos): Get rid of try/catch
8738 and only check for the return value of "ensure".
8739 * tui/tui-source.c (tui_source_window::set_contents):
8740 Simplify "nlines" calculation.
8741
8742 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8743
8744 * MAINTAINERS (Write After Approval): Add myself.
8745
8746 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8747
8748 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8749 function call.
8750
8751 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8752
8753 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8754
8755 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
8756
8757 * nat/riscv-linux-tdesc.h: New file.
8758 * nat/riscv-linux-tdesc.c: New file, taking code from...
8759 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8760 ... here.
8761 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8762 NATDEPFILES.
8763
8764 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8765
8766 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8767 we don't set the fake simulator ptid to the null_ptid.
8768
8769 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
8770
8771 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8772 * gdbthread.h (class thread_info) <resumed>: Likewise.
8773 * infrun.c (resume_1): Likewise.
8774 (proceed): Likewise.
8775 (infrun_thread_stop_requested): Likewise.
8776 (stop_all_threads): Likewise.
8777 (handle_inferior_event): Likewise.
8778 (restart_threads): Likewise.
8779 (finish_step_over): Likewise.
8780 (keep_going_stepped_thread): Likewise.
8781 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8782 (linux_handle_extended_wait): Likewise.
8783 * record-btrace.c (get_thread_current_frame_id): Likewise.
8784 * record-full.c (record_full_wait_1): Likewise.
8785 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8786 * target.c (target_resume): Likewise.
8787 * thread.c (set_running_thread): Likewise.
8788
8789 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8790
8791 * f-valprint.c (f77_print_array_1): Changed datatype of index
8792 variable to LONGEST from int to enable it to contain bound
8793 values correctly.
8794
8795 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
8796
8797 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8798 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8799 offsets according to FLEN determined.
8800 (riscv_linux_nat_target::read_description): Determine FLEN
8801 dynamically.
8802 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8803 according to FLEN determined.
8804 (riscv_linux_nat_target::store_registers): Likewise.
8805
8806 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8807
8808 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8809 when reg->group is empty and reggroup is not.
8810
8811 2020-01-31 Tom Tromey <tromey@adacore.com>
8812
8813 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8814 Call beneath target's mourn_inferior after unpushing.
8815
8816 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8817
8818 PR tui/9765
8819 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8820 have enough lines to fill the screen, still return the lowest
8821 address we found.
8822
8823 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8824
8825 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8826 '-', '<', and '>' commands.
8827
8828 2020-01-29 Pedro Alves <palves@redhat.com>
8829 Sergio Durigan Junior <sergiodj@redhat.com>
8830
8831 * infcmd.c (construct_inferior_arguments): Assert that
8832 'argc' is greater than 0.
8833
8834 2020-01-29 Luis Machado <luis.machado@linaro.org>
8835
8836 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8837 (BRK_INSN_MASK): Define to 0xd4200000.
8838 (aarch64_program_breakpoint_here_p): New function.
8839 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8840 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8841 breakpoint.c.
8842 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8843 breakpoint.h
8844 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8845 call gdbarch_program_breakpoint_here_p.
8846 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8847 default_program_breakpoint_here_p, changed return type to bool and
8848 simplified.
8849 * breakpoint.h (program_breakpoint_here): Moved prototype to
8850 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8851 return type to bool.
8852 * gdbarch.c: Regenerate.
8853 * gdbarch.h: Regenerate.
8854 * gdbarch.sh (program_breakpoint_here_p): New method.
8855 * infrun.c (handle_signal_stop): Call
8856 gdbarch_program_breakpoint_here_p.
8857
8858 2020-01-26 Tom Tromey <tom@tromey.com>
8859
8860 * ctfread.c (struct ctf_fp_info): Reindent.
8861 (_initialize_ctfread): Remove.
8862
8863 2020-01-26 Tom Tromey <tom@tromey.com>
8864
8865 * psymtab.c (partial_map_expand_apply)
8866 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8867 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8868 (psym_print_stats, psym_expand_symtabs_for_function)
8869 (psym_map_symbol_filenames, psym_map_matching_symbols)
8870 (psym_expand_symtabs_matching)
8871 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8872 (maintenance_check_psymtabs): Use new methods.
8873 * psympriv.h (struct partial_symtab) <readin_p,
8874 get_compunit_symtab>: New methods.
8875 <readin, compunit_symtab>: Remove members.
8876 (struct standard_psymtab): New.
8877 (struct legacy_psymtab): Derive from standard_psymtab.
8878 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8879 standard_psymtab.
8880 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8881
8882 2020-01-26 Tom Tromey <tom@tromey.com>
8883
8884 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8885 read_dependencies. Add assert.
8886 * psymtab.c (partial_symtab::read_dependencies): New method.
8887 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8888 method.
8889 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8890 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8891 read_dependencies.
8892 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8893 Add assert.
8894
8895 2020-01-26 Tom Tromey <tom@tromey.com>
8896
8897 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8898 Call expand_psymtab.
8899 (xcoff_read_symtab): Call expand_psymtab.
8900 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8901 legacy_expand_psymtab.
8902 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8903 method.
8904 (struct legacy_psymtab) <expand_psymtab>: Implement.
8905 <legacy_expand_psymtab>: New member.
8906 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8907 (parse_partial_symbols): Set legacy_expand_psymtab.
8908 (psymtab_to_symtab_1): Change argument order. Call
8909 expand_psymtab.
8910 (new_psymtab): Set legacy_expand_psymtab.
8911 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8912 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8913 expand_psymtab.
8914 (dwarf2_psymtab::expand_psymtab): Rename from
8915 psymtab_to_symtab_1. Call expand_psymtab.
8916 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8917 (dbx_end_psymtab): Likewise.
8918 (dbx_psymtab_to_symtab_1): Change argument order. Call
8919 expand_psymtab.
8920 (dbx_read_symtab): Call expand_psymtab.
8921 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8922 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8923 (ctf_psymtab::read_symtab): Call expand_psymtab.
8924
8925 2020-01-26 Tom Tromey <tom@tromey.com>
8926
8927 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8928 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8929 messages.
8930 * mdebugread.c (mdebug_read_symtab): Remove prints.
8931 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8932 assert.
8933 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8934
8935 2020-01-26 Tom Tromey <tom@tromey.com>
8936
8937 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8938 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8939 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8940 legacy_symtab.
8941 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8942 * psymtab.c (psymtab_to_symtab): Call method.
8943 (dump_psymtab): Update.
8944 * psympriv.h (struct partial_symtab): Add virtual destructor.
8945 <read_symtab>: New method.
8946 (struct legacy_symtab): New.
8947 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8948 (struct pst_map) <pst>: Now a legacy_psymtab.
8949 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8950 (new_psymtab): Use legacy_psymtab.
8951 * dwarf2read.h (struct dwarf2_psymtab): New.
8952 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8953 * dwarf2read.c (dwarf2_create_include_psymtab)
8954 (dwarf2_build_include_psymtabs, create_type_unit_group)
8955 (create_partial_symtab, process_psymtab_comp_unit_reader)
8956 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8957 (set_partial_user): Use dwarf2_psymtab.
8958 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8959 (psymtab_to_symtab_1, process_full_comp_unit)
8960 (process_full_type_unit, dwarf2_ranges_read)
8961 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8962 (dwarf_decode_lines): Use dwarf2_psymtab.
8963 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8964 (add_address_entry_worker, write_one_signatured_type)
8965 (recursively_count_psymbols, recursively_write_psymbols)
8966 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8967 (write_debug_names): Likewise.
8968 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8969 <pst>: Now a legacy_psymtab.
8970 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8971 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8972 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8973 * ctfread.c (struct ctf_psymtab): New.
8974 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8975 ctf_psymtab.
8976 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8977 (create_partial_symtab): Return a ctf_psymtab.
8978 (scan_partial_symbols): Update.
8979
8980 2020-01-26 Tom Tromey <tom@tromey.com>
8981
8982 * xcoffread.c (xcoff_start_psymtab): Use new.
8983 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8984 renamed from start_psymtab_common.
8985 * psympriv.h (struct partial_symtab): Add new constructor.
8986 (start_psymtab_common): Don't declare.
8987 * mdebugread.c (parse_partial_symbols): Use new.
8988 * dwarf2read.c (create_partial_symtab): Use new.
8989 * dbxread.c (start_psymtab): Use new.
8990 * ctfread.c (create_partial_symtab): Use new.
8991
8992 2020-01-26 Tom Tromey <tom@tromey.com>
8993
8994 * xcoffread.c (xcoff_end_psymtab): Use new.
8995 * psymtab.c (start_psymtab_common): Use new.
8996 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8997 Update.
8998 * psympriv.h (struct partial_symtab): Add parameters to
8999 constructor. Don't inline.
9000 (allocate_psymtab): Don't declare.
9001 * mdebugread.c (new_psymtab): Use new.
9002 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9003 * dbxread.c (dbx_end_psymtab): Use new.
9004
9005 2020-01-26 Tom Tromey <tom@tromey.com>
9006
9007 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9008 allocate_psymtab. Update documentation.
9009 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9010 allocate_psymtab. Do not use new.
9011 (allocate_psymtab): Use new. Update.
9012
9013 2020-01-26 Tom Tromey <tom@tromey.com>
9014
9015 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9016 * psymtab.c (psym_print_stats): Update.
9017 * psympriv.h (struct partial_symtab) <readin,
9018 psymtabs_addrmap_supported, anonymous>: Now bool.
9019 * mdebugread.c (psymtab_to_symtab_1): Update.
9020 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9021 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9022 (process_full_comp_unit, process_full_type_unit): Update.
9023 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9024 * ctfread.c (psymtab_to_symtab): Update.
9025
9026 2020-01-26 Tom Tromey <tom@tromey.com>
9027
9028 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9029 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9030 * psymtab.c (psymtab_storage): Delete psymtabs.
9031 (psymtab_storage::allocate_psymtab): Use new.
9032 (psymtab_storage::discard_psymtab): Use delete.
9033 * psympriv.h (struct partial_symtab): Add constructor and
9034 initializers.
9035
9036 2020-01-26 Tom Tromey <tom@tromey.com>
9037
9038 * machoread.c: Do not include psympriv.h.
9039
9040 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9041
9042 * NEWS: Mention the new option and the set/show commands.
9043
9044 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9045
9046 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9047 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9048 (validate_exec_file): New variables, enums, functions.
9049 (exec_file_locate_attach, print_section_info): Style the filenames.
9050 (_initialize_exec): Install show_exec_file_mismatch_command and
9051 set_exec_file_mismatch_command.
9052 * gdbcore.h (validate_exec_file): Declare.
9053 * infcmd.c (attach_command): Call validate_exec_file.
9054 * remote.c ( remote_target::remote_add_inferior): Likewise.
9055
9056 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * frame.c (find_frame_sal): Move call to get_next_frame into more
9059 inner scope.
9060 * inline-frame.c (inilne_state) <inline_state>: Update argument
9061 types.
9062 (inilne_state) <skipped_symbol>: Rename to...
9063 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9064 (skip_inline_frames): Build vector of skipped symbols and use this
9065 to reate the inline_state.
9066 (inline_skipped_symbol): Add a comment and some assertions, fetch
9067 skipped symbol from the list.
9068
9069 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * buildsym.c (lte_is_less_than): Delete.
9072 (buildsym_compunit::end_symtab_with_blockvector): Create local
9073 lambda function to sort line table entries, and use
9074 std::stable_sort instead of std::sort.
9075 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9076 markers when looking for a previous line.
9077
9078 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9079
9080 * dwarf2read.c (lnp_state_machine::record_line): Include
9081 end_sequence parameter in debug print out. Record the line if we
9082 are at an end_sequence marker even if it's not the start of a
9083 statement.
9084 * symmisc.c (maintenance_print_one_line_table): Print end of
9085 sequence markers with 'END' not '0'.
9086
9087 2020-01-24 Pedro Alves <palves@redhat.com>
9088
9089 PR gdb/25410
9090 * thread.c (scoped_restore_current_thread::restore): Use
9091 switch_to_inferior_no_thread.
9092 * exec.c: Include "progspace-and-thread.h".
9093 (add_target_sections, remove_target_sections):
9094 scoped_restore_current_pspace_and_thread instead of
9095 scoped_restore_current_thread.
9096 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9097 and aspace to the inferior before calling clone_program_space.
9098 Remove stale comment.
9099
9100 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9101
9102 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9103 (arm_netbsd_nat_target::fetch_registers): ...this.
9104 (arm_nbsd_nat_target::store_registers): Rename to...
9105 (arm_netbsd_nat_target::store_registers): ...this.
9106
9107 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9108
9109 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9110 register_t.
9111
9112 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9113
9114 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9115 Update comment.
9116 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9117 Likewise.
9118 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9119 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9120 the correct replacement (iterate_over_regset_sections).
9121 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9122 Update comment.
9123
9124 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9125
9126 PR gdb/23718
9127 * gdb/python/python.c (execute_gdb_command): Call
9128 async_enable_stdin in catch block.
9129
9130 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9131
9132 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9133 SWITCH_THRU_ALL_UIS.
9134
9135 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9136
9137 PR tui/9765
9138 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9139 comment, add extra parameter, and update to store previous symbol
9140 when appropriate.
9141 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9142 add extra parameter.
9143 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9144 remove unneeded parameter, add try/catch around gdb_print_insn,
9145 rewrite to add items to asm_lines vector.
9146 (tui_find_backward_disassembly_start_address): New function.
9147 (tui_find_disassembly_address): Updated throughout.
9148 (tui_disasm_window::set_contents): Update for changes to
9149 tui_disassemble.
9150 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9151 number of lines to scroll.
9152
9153 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9154
9155 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9156 (SECT_OFF_DATA): Likewise.
9157 (SECT_OFF_RODATA): Likewise.
9158 (SECT_OFF_TEXT): Likewise.
9159 (SECT_OFF_BSS): Likewise.
9160 (struct objfile) <text_section_offset, data_section_offset>: New
9161 methods.
9162 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9163 objfile::text_section_offset.
9164 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9165 * coffread.c (coff_symtab_read): Likewise.
9166 (enter_linenos): Likewise.
9167 (process_coff_symbol): Likewise.
9168 * ctfread.c (get_objfile_text_range): Likewise.
9169 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9170 Use objfile::data_section_offset.
9171 * dwarf2-frame.c (execute_cfa_program): Use
9172 objfile::text_section_offset.
9173 (dwarf2_frame_find_fde): Likewise.
9174 * dwarf2read.c (create_addrmap_from_index): Likewise.
9175 (create_addrmap_from_aranges): Likewise.
9176 (dw2_find_pc_sect_compunit_symtab): Likewise.
9177 (process_psymtab_comp_unit_reader): Likewise.
9178 (add_partial_symbol): Likewise.
9179 (add_partial_subprogram): Likewise.
9180 (process_full_comp_unit): Likewise.
9181 (read_file_scope): Likewise.
9182 (read_func_scope): Likewise.
9183 (read_lexical_block_scope): Likewise.
9184 (read_call_site_scope): Likewise.
9185 (dwarf2_rnglists_process): Likewise.
9186 (dwarf2_ranges_process): Likewise.
9187 (dwarf2_ranges_read): Likewise.
9188 (dwarf_decode_lines_1): Likewise.
9189 (new_symbol): Likewise.
9190 (dwarf2_fetch_die_loc_sect_off): Likewise.
9191 (dwarf2_per_cu_text_offset): Likewise.
9192 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9193 * hppa-tdep.c (read_unwind_info): Likewise.
9194 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9195 * psympriv.h (struct partial_symtab): Likewise.
9196 * psymtab.c (find_pc_sect_psymtab): Likewise.
9197 * solib-svr4.c (enable_break): Likewise.
9198 * stap-probe.c (relocate_address): Use
9199 objfile::data_section_offset.
9200 * xcoffread.c (enter_line_range): Use
9201 objfile::text_section_offset.
9202 (read_xcoff_symtab): Likewise.
9203
9204 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9205
9206 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9207 declaration to narrower scopes.
9208
9209 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * darwin-nat.h (struct darwin_exception_msg, enum
9212 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9213 Move up.
9214 (class darwin_nat_target) <wait_1, check_new_threads,
9215 decode_exception_message, decode_message, stop_inferior,
9216 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9217 * darwin-nat.c (darwin_check_new_threads): Rename to...
9218 (darwin_nat_target::check_new_threads): ... this.
9219 (darwin_suspend_inferior_it): Remove.
9220 (darwin_decode_exception_message): Rename to...
9221 (darwin_nat_target::decode_exception_message): ... this.
9222 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9223 (darwin_decode_message): Rename to...
9224 (darwin_nat_target::decode_message): ... this.
9225 (cancel_breakpoint): Rename to...
9226 (darwin_nat_target::cancel_breakpoint): ... this.
9227 (darwin_wait): Rename to...
9228 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9229 instead of iterate_over_inferiors.
9230 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9231 (darwin_stop_inferior): Rename to...
9232 (darwin_nat_target::stop_inferior): ... this.
9233 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9234 (darwin_init_thread_list): Rename to...
9235 (darwin_nat_target::init_thread_list): ... this.
9236 (darwin_ptrace_him): Rename to...
9237 (darwin_nat_target::ptrace_him): ... this.
9238 (darwin_nat_target::create_inferior): Pass lambda function to
9239 fork_inferior.
9240 (darwin_nat_target::detach): Call stop_inferior instead of
9241 darwin_stop_inferior.
9242 * fork-inferior.h (fork_inferior): Change init_trace_fun
9243 parameter to gdb::function_view.
9244 * fork-inferior.c (fork_inferior): Likewise.
9245
9246 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9247
9248 * i386-cygwin-tdep.c (core_process_module_section): Update.
9249 * windows-nat.c (struct lm_info_windows): Add text_offset.
9250 (windows_xfer_shared_libraries): Update.
9251 * windows-tdep.c (windows_xfer_shared_library):
9252 Add text_offset_cached argument.
9253 * windows-tdep.h (windows_xfer_shared_library): Update.
9254
9255 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9258
9259 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9262 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9263 replace with range-based for.
9264 (gdbsim_interrupt_inferior): Remove.
9265 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9266 with a range-based for. Inline code from
9267 gdbsim_interrupt_inferior.
9268
9269 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * infrun.c (proceed): Fix indentation.
9272
9273 2020-01-21 Tom Tromey <tromey@adacore.com>
9274
9275 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9276 * python/python.c (python_extension_ops): Update.
9277 (gdbpy_colorize): New function.
9278 * python/lib/gdb/__init__.py (colorize): New function.
9279 * extension.h (ext_lang_colorize): Declare.
9280 * extension.c (ext_lang_colorize): New function.
9281 * extension-priv.h (struct extension_language_ops) <colorize>: New
9282 member.
9283 * cli/cli-style.c (_initialize_cli_style): Update help text.
9284
9285 2020-01-21 Luis Machado <luis.machado@linaro.org>
9286
9287 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9288 <cond>: Change type to bool.
9289 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9290 (aarch64_displaced_step_cb): Likewise.
9291 (aarch64_displaced_step_tb): Likewise.
9292
9293 2020-01-21 Luis Machado <luis.machado@linaro.org>
9294
9295 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9296 output.
9297
9298 2020-01-21 Luis Machado <luis.machado@linaro.org>
9299
9300 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9301 <pc_adjust>: Adjust the documentation.
9302 (aarch64_displaced_step_fixup): Check if PC really moved before
9303 adjusting it.
9304
9305 2020-01-19 Tom Tromey <tom@tromey.com>
9306
9307 * disasm.c (~gdb_disassembler): New destructor.
9308 (gdb_buffered_insn_length): Call disassemble_free_target.
9309 * disasm.h (class gdb_disassembler): Declare destructor. Use
9310 DISABLE_COPY_AND_ASSIGN.
9311
9312 2020-01-19 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9315 (die_reader_func_ftype): Remove.
9316 (cutu_reader): New class.
9317 (dw2_get_file_names_reader): Remove "data" parameter.
9318 (dw2_get_file_names): Use cutu_reader.
9319 (create_debug_type_hash_table): Update.
9320 (read_cutu_die_from_dwo): Update comment.
9321 (lookup_dwo_unit): Add dwo_name parameter.
9322 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9323 die_reader_func_ftype and data parameters.
9324 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9325 Remove die_reader_func_ftype and data parameters.
9326 (~cutu_reader): New; from init_cutu_and_read_dies.
9327 (cutu_reader::cutu_reader): Rename from
9328 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9329 and data parameters.
9330 (init_cutu_and_read_dies_simple): Remove.
9331 (struct process_psymtab_comp_unit_data): Remove.
9332 (process_psymtab_comp_unit_reader): Remove data parameter; add
9333 want_partial_unit and pretend_language parameters.
9334 (process_psymtab_comp_unit): Use cutu_reader.
9335 (build_type_psymtabs_reader): Remove data parameter.
9336 (build_type_psymtabs_1): Use cutu_reader.
9337 (process_skeletonless_type_unit): Likewise.
9338 (load_partial_comp_unit_reader): Remove.
9339 (load_partial_comp_unit): Use cutu_reader.
9340 (load_full_comp_unit_reader): Remove.
9341 (load_full_comp_unit): Use cutu_reader.
9342 (struct create_dwo_cu_data): Remove.
9343 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9344 dwo_unit parameters.
9345 (create_cus_hash_table): Use cutu_reader.
9346 (struct dwarf2_read_addr_index_data): Remove.
9347 (dwarf2_read_addr_index_reader): Remove.
9348 (dwarf2_read_addr_index): Use cutu_reader.
9349 (read_signatured_type_reader): Remove.
9350 (read_signatured_type): Use cutu_reader.
9351
9352 2020-01-19 Tom Tromey <tom@tromey.com>
9353
9354 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9355 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9356 (tui_wrefresh): Declare.
9357 * tui/tui-wingeneral.c (suppress_output): New global.
9358 (tui_suppress_output, ~tui_suppress_output): New constructor and
9359 destructor.
9360 (tui_wrefresh): New function.
9361 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9362 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9363 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9364 method.
9365 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9366 tui_wrefresh.
9367 (tui_data_window::no_refresh): New method.
9368 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9369 (tui_reg_command): Use tui_suppress_output
9370 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9371 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9372 method.
9373 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9374
9375 2020-01-19 Tom Tromey <tom@tromey.com>
9376
9377 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9378 Handle case where symtab is null.
9379
9380 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9381
9382 * linux-fork.c (one_fork_p): Simplify.
9383
9384 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9385
9386 * top.c (struct qt_args): Remove.
9387 (kill_or_detach): Change return type to void, replace `void *`
9388 parameter with a proper one.
9389 (print_inferior_quit_action): Likewise.
9390 (quit_confirm): Use range-based for loop to iterate over inferiors.
9391 (quit_force): Likewise.
9392
9393 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9394
9395 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9396 `void *` parameter with proper parameters.
9397 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9398 (print_one_inferior): Change return type to void, replace `void *`
9399 parameter with proper parameters.
9400 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9401 inferiors.
9402 (get_other_inferior): Remove.
9403 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9404 inferiors.
9405
9406 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * mi/mi-interp.c (report_initial_inferior): Remove.
9409 (mi_interp::init): Use range-based for to iterate over inferiors.
9410
9411 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9412
9413 * python/py-inferior.c (build_inferior_list): Remove.
9414 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9415
9416 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9417
9418 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9419 (btrace_stitch_trace): Likewise.
9420 * charset.c (intermediate_encoding): Likewise (vaild).
9421 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9422 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9423 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9424
9425 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9426
9427 * windows-tdep.c (windows_get_tlb_type):
9428 Add rtl_user_process_parameters type.
9429
9430 2020-01-16 Pedro Alves <palves@redhat.com>
9431 Norbert Lange <nolange79@gmail.com>
9432
9433 PR build/24805
9434 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9435 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9436 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9437 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9438 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9439 (ps_plog): Redeclare exported functions with default visibility.
9440
9441 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9442
9443 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9444 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9445
9446 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9447
9448 * infcmd.c (post_create_inferior): Use get_thread_regcache
9449 instead of get_current_regcache.
9450
9451 2020-01-14 Tom Tromey <tom@tromey.com>
9452
9453 PR symtab/12535:
9454 * python/python.c (gdbpy_decode_line): Treat empty string the same
9455 as no argument.
9456
9457 2020-01-14 Tom Tromey <tom@tromey.com>
9458
9459 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9460
9461 2020-01-14 Tom Tromey <tom@tromey.com>
9462
9463 * nat/linux-btrace.c: Don't include <config.h>.
9464 * nat/linux-ptrace.c: Don't include <config.h>.
9465 * nat/x86-linux-dregs.c: Don't include <config.h>.
9466
9467 2020-01-14 Tom Tromey <tom@tromey.com>
9468
9469 * configure: Rebuild.
9470 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9471
9472 2020-01-14 Tom Tromey <tom@tromey.com>
9473
9474 * nat/x86-linux-dregs.c: Include configh.h.
9475 * nat/linux-ptrace.c: Include configh.h.
9476 * nat/linux-btrace.c: Include configh.h.
9477 * defs.h: Include config.h, bfd.h.
9478 * configure.ac: Don't source common.host.
9479 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9480 * configure: Rebuild.
9481 * acinclude.m4: Update path.
9482 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9483 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9484 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9485 (CLIBS): Add LIBSUPPORT.
9486 (CDEPS): Likewise.
9487 (COMMON_SFILES): Remove gdbsupport files.
9488 (HFILES_NO_SRCDIR): Likewise.
9489 (stamp-version): Update path to create-version.sh.
9490 (ALLDEPFILES): Remove gdbsupport files.
9491
9492 2020-01-14 Tom Tromey <tom@tromey.com>
9493
9494 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9495 USE_WIN32API when needed.
9496 * configure.ac (USE_WIN32API): Don't define.
9497 (WIN32LIBS): Use WIN32APILIBS.
9498 * configure: Rebuild.
9499
9500 2020-01-14 Tom Tromey <tom@tromey.com>
9501
9502 * configure: Rebuild.
9503 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9504
9505 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9506
9507 * skip.c (skip_function_command): Make skip w/o arguments use the
9508 name of the inlined function if pc is inside any inlined function.
9509
9510 2020-01-14 Luis Machado <luis.machado@linaro.org>
9511
9512 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9513 * infrun.c (resume_1): Likewise.
9514 (handle_inferior_event): Remove stale comment.
9515 * linux-nat.c (linux_nat_target::resume): Update comments.
9516 (save_stop_reason): Likewise.
9517 (linux_nat_filter_event): Likewise.
9518 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9519
9520 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9521
9522 * elfread.c (record_minimal_symbol): Set section index to 0 for
9523 non-allocatable sections.
9524
9525
9526 2020-01-13 Ali Tamur <tamur@google.com>
9527
9528 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9529 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9530 to gdb::optional. Update comments.
9531 (dwo_file): Update comments.
9532 (read_attribute): Update API to take an additional out parameter,
9533 need_reprocess. This is used to mark attributes that need other
9534 attributes (e.g. str_offsets_base) for correct computation which may not
9535 have been read yet.
9536 (read_attribute_reprocess): New function declaration.
9537 (read_addr_index): Likewise.
9538 (read_dwo_str_index): Likewise.
9539 (read_stub_str_index): Likewise.
9540 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9541 (lookup_addr_base): New function definition.
9542 (lookup_ranges_base): Likewise.
9543 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9544 lookup_ranges_base.
9545 (init_cutu_and_read_dies): Update comments.
9546 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9547 unit. This is used to inherit parent's str_offsets_base and addr_base.
9548 Update comments.
9549 (init_cutu_and_read_dies_simple): Reflect API changes.
9550 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9551 (create_cus_hash_table): Change API to take parent compile unit.
9552 Reflect API changes.
9553 (open_and_init_dwo_file): Reflect API changes.
9554 (dwarf2_get_pc_bounds): Update comments.
9555 (dwarf2_record_block_ranges): Likewise.
9556 (read_full_die_1): Change implementation to reprocess attributes that
9557 need str_offsets_base and addr_base.
9558 (partial_die_info::read): Likewise.
9559 (read_attribute_reprocess): New function definition.
9560 (read_attribute_value): Change API to take an additional out parameter,
9561 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9562 when a non-dwo compile unit has index based attributes.
9563 (read_attribute): Reflect API changes.
9564 (read_addr_index_1): Reflect API changes. Update comments.
9565 (dwarf2_read_addr_index_data): Reflect API changes.
9566 (dwarf2_read_addr_index): Likewise.
9567 (read_str_index): Change API and implementation. This becomes a helper
9568 to be used by the new string index related methods. Update error
9569 message and comments.
9570 (read_dwo_str_index): New function definition.
9571 (read_stub_str_index): Likewise.
9572 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9573 * symfile.h (dwarf2_debug_sections): Likewise.
9574 * xcoffread.c (dwarf2_debug_sections): Likewise.
9575
9576 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9577
9578 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9579 core_reg_sect type to gdb_byte *.
9580 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9581 * cris-tdep.c (fetch_core_registers): Likewise.
9582 * corelow.c (core_target::get_core_register_section): Change
9583 type of `contents` to gdb::byte_vector.
9584
9585 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 * tui/tui-wingeneral.c (box_win): Position the title in the center
9588 of the border.
9589
9590 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9591
9592 * corelow.c (core_target::get_core_register_section): Use
9593 std::vector instead of alloca.
9594
9595 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * warning.m4: Add -Wmissing-declarations to build_warnings.
9598 * configure: Re-generate.
9599
9600 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * python/python.c (init__gdb_module): Add declaration.
9603
9604 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9605
9606 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9607 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9608 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9609 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9610 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9611 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9612 * ada-exp.y (_initialize_ada_exp): Add declaration.
9613 * ada-lang.c (_initialize_ada_language): Add declaration.
9614 * ada-tasks.c (_initialize_tasks): Add declaration.
9615 * agent.c (_initialize_agent): Add declaration.
9616 * aix-thread.c (_initialize_aix_thread): Add declaration.
9617 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9618 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9619 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9620 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9621 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9622 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9623 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9624 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9625 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9626 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9627 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9628 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9629 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9630 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9631 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9632 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9633 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9634 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9635 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9636 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9637 * annotate.c (_initialize_annotate): Add declaration.
9638 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9639 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9640 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9641 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9642 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9643 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9644 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9645 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9646 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9647 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9648 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9649 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9650 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9651 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9652 * auto-load.c (_initialize_auto_load): Add declaration.
9653 * auxv.c (_initialize_auxv): Add declaration.
9654 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9655 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9656 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9657 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9658 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9659 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9660 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9661 * breakpoint.c (_initialize_breakpoint): Add declaration.
9662 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9663 * btrace.c (_initialize_btrace): Add declaration.
9664 * charset.c (_initialize_charset): Add declaration.
9665 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9666 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9667 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9668 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9669 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9670 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9671 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9672 * coffread.c (_initialize_coffread): Add declaration.
9673 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9674 * compile/compile.c (_initialize_compile): Add declaration.
9675 * complaints.c (_initialize_complaints): Add declaration.
9676 * completer.c (_initialize_completer): Add declaration.
9677 * copying.c (_initialize_copying): Add declaration.
9678 * corefile.c (_initialize_core): Add declaration.
9679 * corelow.c (_initialize_corelow): Add declaration.
9680 * cp-abi.c (_initialize_cp_abi): Add declaration.
9681 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9682 * cp-support.c (_initialize_cp_support): Add declaration.
9683 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9684 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9685 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9686 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9687 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9688 * ctfread.c (_initialize_ctfread): Add declaration.
9689 * d-lang.c (_initialize_d_language): Add declaration.
9690 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9691 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9692 * dbxread.c (_initialize_dbxread): Add declaration.
9693 * dcache.c (_initialize_dcache): Add declaration.
9694 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9695 * disasm.c (_initialize_disasm): Add declaration.
9696 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9697 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9698 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9699 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9700 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9701 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9702 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9703 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9704 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9705 * elfread.c (_initialize_elfread): Add declaration.
9706 * exec.c (_initialize_exec): Add declaration.
9707 * extension.c (_initialize_extension): Add declaration.
9708 * f-lang.c (_initialize_f_language): Add declaration.
9709 * f-valprint.c (_initialize_f_valprint): Add declaration.
9710 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9711 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9712 * filesystem.c (_initialize_filesystem): Add declaration.
9713 * findcmd.c (_initialize_mem_search): Add declaration.
9714 * findvar.c (_initialize_findvar): Add declaration.
9715 * fork-child.c (_initialize_fork_child): Add declaration.
9716 * frame-base.c (_initialize_frame_base): Add declaration.
9717 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9718 * frame.c (_initialize_frame): Add declaration.
9719 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9720 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9721 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9722 * gcore.c (_initialize_gcore): Add declaration.
9723 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9724 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9725 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9726 * gdbarch.c (_initialize_gdbarch): Add declaration.
9727 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9728 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9729 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9730 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9731 * go-lang.c (_initialize_go_language): Add declaration.
9732 * go32-nat.c (_initialize_go32_nat): Add declaration.
9733 * guile/guile.c (_initialize_guile): Add declaration.
9734 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9735 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9736 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9737 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9738 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9739 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9740 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9741 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9742 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9743 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9744 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9745 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9746 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9747 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9748 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9749 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9750 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9751 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9752 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9753 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9754 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9755 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9756 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9757 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9758 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9759 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9760 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9761 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9762 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9763 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9764 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9765 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9766 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9767 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9768 * infcall.c (_initialize_infcall): Add declaration.
9769 * infcmd.c (_initialize_infcmd): Add declaration.
9770 * inflow.c (_initialize_inflow): Add declaration.
9771 * infrun.c (_initialize_infrun): Add declaration.
9772 * interps.c (_initialize_interpreter): Add declaration.
9773 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9774 * jit.c (_initialize_jit): Add declaration.
9775 * language.c (_initialize_language): Add declaration.
9776 * linux-fork.c (_initialize_linux_fork): Add declaration.
9777 * linux-nat.c (_initialize_linux_nat): Add declaration.
9778 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9779 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9780 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9781 * m2-lang.c (_initialize_m2_language): Add declaration.
9782 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9783 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9784 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9785 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9786 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9787 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9788 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9789 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9790 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9791 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9792 * machoread.c (_initialize_machoread): Add declaration.
9793 * macrocmd.c (_initialize_macrocmd): Add declaration.
9794 * macroscope.c (_initialize_macroscope): Add declaration.
9795 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9796 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9797 * maint.c (_initialize_maint_cmds): Add declaration.
9798 * mdebugread.c (_initialize_mdebugread): Add declaration.
9799 * memattr.c (_initialize_mem): Add declaration.
9800 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9801 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9802 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9803 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9804 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9805 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9806 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9807 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9808 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9809 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9810 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9811 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9812 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9813 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9814 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9815 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9816 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9817 * mipsread.c (_initialize_mipsread): Add declaration.
9818 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9819 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9820 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9821 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9822 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9823 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9824 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9825 * nto-procfs.c (_initialize_procfs): Add declaration.
9826 * objc-lang.c (_initialize_objc_language): Add declaration.
9827 * observable.c (_initialize_observer): Add declaration.
9828 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9829 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9830 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9831 * osabi.c (_initialize_gdb_osabi): Add declaration.
9832 * osdata.c (_initialize_osdata): Add declaration.
9833 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9834 * parse.c (_initialize_parse): Add declaration.
9835 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9836 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9837 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9838 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9839 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9840 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9841 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9842 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9843 * printcmd.c (_initialize_printcmd): Add declaration.
9844 * probe.c (_initialize_probe): Add declaration.
9845 * proc-api.c (_initialize_proc_api): Add declaration.
9846 * proc-events.c (_initialize_proc_events): Add declaration.
9847 * proc-service.c (_initialize_proc_service): Add declaration.
9848 * procfs.c (_initialize_procfs): Add declaration.
9849 * producer.c (_initialize_producer): Add declaration.
9850 * psymtab.c (_initialize_psymtab): Add declaration.
9851 * python/python.c (_initialize_python): Add declaration.
9852 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9853 * record-btrace.c (_initialize_record_btrace): Add declaration.
9854 * record-full.c (_initialize_record_full): Add declaration.
9855 * record.c (_initialize_record): Add declaration.
9856 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9857 * regcache.c (_initialize_regcache): Add declaration.
9858 * reggroups.c (_initialize_reggroup): Add declaration.
9859 * remote-notif.c (_initialize_notif): Add declaration.
9860 * remote-sim.c (_initialize_remote_sim): Add declaration.
9861 * remote.c (_initialize_remote): Add declaration.
9862 * reverse.c (_initialize_reverse): Add declaration.
9863 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9864 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9865 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9866 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9867 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9868 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9869 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9870 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9871 Add declaration.
9872 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9873 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9874 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9875 * rust-exp.y (_initialize_rust_exp): Add declaration.
9876 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9877 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9878 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9879 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9880 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9881 * score-tdep.c (_initialize_score_tdep): Add declaration.
9882 * ser-go32.c (_initialize_ser_dos): Add declaration.
9883 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9884 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9885 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9886 * ser-uds.c (_initialize_ser_socket): Add declaration.
9887 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9888 * serial.c (_initialize_serial): Add declaration.
9889 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9890 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9891 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9892 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9893 * skip.c (_initialize_step_skip): Add declaration.
9894 * sol-thread.c (_initialize_sol_thread): Add declaration.
9895 * solib-aix.c (_initialize_solib_aix): Add declaration.
9896 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9897 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9898 * solib-frv.c (_initialize_frv_solib): Add declaration.
9899 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9900 * solib-target.c (_initialize_solib_target): Add declaration.
9901 * solib.c (_initialize_solib): Add declaration.
9902 * source-cache.c (_initialize_source_cache): Add declaration.
9903 * source.c (_initialize_source): Add declaration.
9904 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9905 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9906 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9907 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9908 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9909 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9910 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9911 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9912 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9913 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9914 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9915 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9916 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9917 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9918 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9919 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9920 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9921 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9922 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9923 * stabsread.c (_initialize_stabsread): Add declaration.
9924 * stack.c (_initialize_stack): Add declaration.
9925 * stap-probe.c (_initialize_stap_probe): Add declaration.
9926 * std-regs.c (_initialize_frame_reg): Add declaration.
9927 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9928 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9929 * symfile.c (_initialize_symfile): Add declaration.
9930 * symmisc.c (_initialize_symmisc): Add declaration.
9931 * symtab.c (_initialize_symtab): Add declaration.
9932 * target.c (_initialize_target): Add declaration.
9933 * target-connection.c (_initialize_target_connection): Add
9934 declaration.
9935 * target-dcache.c (_initialize_target_dcache): Add declaration.
9936 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9937 * thread.c (_initialize_thread): Add declaration.
9938 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9939 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9940 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9941 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9942 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9943 * tracectf.c (_initialize_ctf): Add declaration.
9944 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9945 * tracefile.c (_initialize_tracefile): Add declaration.
9946 * tracepoint.c (_initialize_tracepoint): Add declaration.
9947 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9948 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9949 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9950 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9951 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9952 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9953 * tui/tui.c (_initialize_tui): Add declaration.
9954 * typeprint.c (_initialize_typeprint): Add declaration.
9955 * ui-style.c (_initialize_ui_style): Add declaration.
9956 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9957 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9958 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9959 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9960 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9961 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9962 * unittests/filtered_iterator-selftests.c
9963 (_initialize_filtered_iterator_selftests): Add declaration.
9964 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9965 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9966 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9967 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9968 * unittests/main-thread-selftests.c
9969 (_initialize_main_thread_selftests): Add declaration.
9970 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9971 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9972 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9973 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9974 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9975 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9976 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9977 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9978 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9979 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9980 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9981 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9982 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9983 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9984 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9985 declaration.
9986 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9987 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9988 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9989 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9990 * user-regs.c (_initialize_user_regs): Add declaration.
9991 * utils.c (_initialize_utils): Add declaration.
9992 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9993 * valops.c (_initialize_valops): Add declaration.
9994 * valprint.c (_initialize_valprint): Add declaration.
9995 * value.c (_initialize_values): Add declaration.
9996 * varobj.c (_initialize_varobj): Add declaration.
9997 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9998 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9999 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10000 * windows-nat.c (_initialize_windows_nat): Add declaration.
10001 (_initialize_check_for_gdb_ini): Add declaration.
10002 (_initialize_loadable): Add declaration.
10003 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10004 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10005 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10006 * xcoffread.c (_initialize_xcoffread): Add declaration.
10007 * xml-support.c (_initialize_xml_support): Add declaration.
10008 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10009 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10010 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10011 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10012
10013 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10014
10015 * regformats/regdat.sh: Generate declaration for init function.
10016
10017 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10018
10019 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10020 up.
10021 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10022 close_one_inferior>: New methods.
10023 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10024 pass down target to find_inferior_pid.
10025 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10026 Pass down target to find_inferior_ptid.
10027 (gdbsim_target::create_inferior): Pass down target to
10028 add_thread_silent.
10029 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10030 target down to find_inferior_ptid and switch_to_thread.
10031 (gdbsim_target::close): Update to call close_one_inferior.
10032 (struct resume_data): Remove.
10033 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10034 directly, rather than through a void pointer.
10035 (gdbsim_target::resume): Update to call resume_one_inferior.
10036
10037 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10038
10039 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10040
10041 2020-01-12 Pedro Alves <palves@redhat.com>
10042
10043 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10044 directly for the current inferior instead of
10045 discard_all_inferiors.
10046 (discard_all_inferiors): Delete.
10047
10048 2020-01-11 Tom Tromey <tom@tromey.com>
10049
10050 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10051 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10052 deprecated_safe_get_selected_frame.
10053
10054 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10055
10056 * inferior.c (print_inferior): Switch inferior before printing it.
10057
10058 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10059 Pedro Alves <palves@redhat.com>
10060
10061 * progspace-and-thread.c (switch_to_program_space_and_thread):
10062 Assert there's an inferior for PSPACE. Use
10063 switch_to_inferior_no_thread to switch the inferior too.
10064 * progspace.c (program_space::~program_space): Call
10065 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10066 (program_space::free_all_objfiles): Don't call clear_symtab_users
10067 here.
10068 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10069
10070 2020-01-10 Pedro Alves <palves@redhat.com>
10071
10072 * NEWS: Mention multi-target debugging, "info connections", and
10073 "add-inferior -no-connection".
10074
10075 2020-01-10 Pedro Alves <palves@redhat.com>
10076
10077 * infrun.c: Include "target-connection.h".
10078 (check_multi_target_resumption): New.
10079 (proceed): Call it.
10080 * target-connection.c (make_target_connection_string): Make
10081 extern.
10082 * target-connection.h (make_target_connection_string): Declare.
10083
10084 2020-01-10 Pedro Alves <palves@redhat.com>
10085
10086 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10087 * inferior.c (uiout_field_connection): New function.
10088 (print_inferior): Add new "connection-id" column.
10089 (add_inferior_command): Show connection number/string of added
10090 inferior.
10091 * process-stratum-target.h
10092 (process_stratum_target::connection_string): New virtual method.
10093 (process_stratum_target::connection_number): New field.
10094 * remote.c (remote_target::connection_string): New override.
10095 * target-connection.c: New file.
10096 * target-connection.h: New file.
10097 * target.c (decref_target): Remove process_stratum targets from
10098 the connection list.
10099 (target_stack::push): Add process_stratum targets to the
10100 connection list.
10101
10102 2020-01-10 Pedro Alves <palves@redhat.com>
10103
10104 Revert:
10105 2016-04-12 Pedro Alves <palves@redhat.com>
10106 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10107 Remove references to name.
10108 * serial.h (struct serial) <name>: Delete.
10109
10110 2020-01-10 Pedro Alves <palves@redhat.com>
10111
10112 * gdbarch-selftests.c (register_to_value_test): Remove "target
10113 already pushed" check.
10114
10115 2020-01-10 Pedro Alves <palves@redhat.com>
10116 John Baldwin <jhb@FreeBSD.org>
10117
10118 * aarch64-linux-nat.c
10119 (aarch64_linux_nat_target::thread_architecture): Adjust.
10120 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10121 (task_command_1): Likewise.
10122 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10123 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10124 (aix_thread_target::store_registers)
10125 (aix_thread_target::thread_alive): Adjust.
10126 * amd64-fbsd-tdep.c: Include "inferior.h".
10127 (amd64fbsd_get_thread_local_address): Pass down target.
10128 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10129 thread's gdbarch instead of target_gdbarch.
10130 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10131 get_last_target_status.
10132 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10133 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10134 inferiors.
10135 (update_inserted_breakpoint_locations): Skip if inferiors with no
10136 execution.
10137 (update_global_location_list): When handling moribund locations,
10138 find representative inferior for location's pspace, and use thread
10139 count of its process_stratum target.
10140 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10141 * bsd-uthread.c (bsd_uthread_target::wait): Use
10142 as_process_stratum_target and adjust thread_change_ptid and
10143 add_thread calls.
10144 (bsd_uthread_target::update_thread_list): Use
10145 as_process_stratum_target and adjust find_thread_ptid,
10146 thread_change_ptid and add_thread calls.
10147 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10148 find_thread_ptid call.
10149 * corelow.c (add_to_thread_list): Adjust add_thread call.
10150 (core_target_open): Adjust add_thread_silent and thread_count
10151 calls.
10152 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10153 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10154 * event-top.c (async_disconnect): Pop targets from all inferiors.
10155 * exec.c (add_target_sections): Push exec target on all inferiors
10156 sharing the program space.
10157 (remove_target_sections): Remove the exec target from all
10158 inferiors sharing the program space.
10159 (exec_on_vfork): New.
10160 * exec.h (exec_on_vfork): Declare.
10161 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10162 Pass it down.
10163 (fbsd_nat_target::update_thread_list): Adjust.
10164 (fbsd_nat_target::resume): Adjust.
10165 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10166 down.
10167 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10168 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10169 get_thread_arch_regcache call.
10170 * fork-child.c (gdb_startup_inferior): Pass target down to
10171 startup_inferior and set_executing.
10172 * gdbthread.h (struct process_stratum_target): Forward declare.
10173 (add_thread, add_thread_silent, add_thread_with_info)
10174 (in_thread_list): Add process_stratum_target parameter.
10175 (find_thread_ptid(inferior*, ptid_t)): New overload.
10176 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10177 parameter.
10178 (all_threads()): Delete overload.
10179 (all_threads, all_non_exited_threads): Add process_stratum_target
10180 parameter.
10181 (all_threads_safe): Use brace initialization.
10182 (thread_count): Add process_stratum_target parameter.
10183 (set_resumed, set_running, set_stop_requested, set_executing)
10184 (threads_are_executing, finish_thread_state): Add
10185 process_stratum_target parameter.
10186 (switch_to_thread): Use is_current_thread.
10187 * i386-fbsd-tdep.c: Include "inferior.h".
10188 (i386fbsd_get_thread_local_address): Pass down target.
10189 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10190 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10191 have_inferiors check.
10192 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10193 (inf_ptrace_target::attach): Adjust.
10194 * infcall.c (run_inferior_call): Adjust.
10195 * infcmd.c (run_command_1): Pass target to
10196 scoped_finish_thread_state.
10197 (proceed_thread_callback): Skip inferiors with no execution.
10198 (continue_command): Rename 'all_threads' local to avoid hiding
10199 'all_threads' function. Adjust get_last_target_status call.
10200 (prepare_one_step): Adjust set_running call.
10201 (signal_command): Use user_visible_resume_target. Compare thread
10202 pointers instead of inferior_ptid.
10203 (info_program_command): Adjust to pass down target.
10204 (attach_command): Mark target's 'thread_executing' flag.
10205 (stop_current_target_threads_ns): New, factored out from ...
10206 (interrupt_target_1): ... this. Switch inferior before making
10207 target calls.
10208 * inferior-iter.h
10209 (struct all_inferiors_iterator, struct all_inferiors_range)
10210 (struct all_inferiors_safe_range)
10211 (struct all_non_exited_inferiors_range): Filter on
10212 process_stratum_target too. Remove explicit.
10213 * inferior.c (inferior::inferior): Push dummy target on target
10214 stack.
10215 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10216 Add process_stratum_target parameter, and pass it down.
10217 (have_live_inferiors): Adjust.
10218 (switch_to_inferior_and_push_target): New.
10219 (add_inferior_command, clone_inferior_command): Handle
10220 "-no-connection" parameter. Use
10221 switch_to_inferior_and_push_target.
10222 (_initialize_inferior): Mention "-no-connection" option in
10223 the help of "add-inferior" and "clone-inferior" commands.
10224 * inferior.h: Include "process-stratum-target.h".
10225 (interrupt_target_1): Use bool.
10226 (struct inferior) <push_target, unpush_target, target_is_pushed,
10227 find_target_beneath, top_target, process_target, target_at,
10228 m_stack>: New.
10229 (discard_all_inferiors): Delete.
10230 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10231 (all_inferiors, all_non_exited_inferiors): Add
10232 process_stratum_target parameter.
10233 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10234 (target_last_proc_target): New global.
10235 (follow_fork_inferior): Push target on new inferior. Pass target
10236 to add_thread_silent. Call exec_on_vfork. Handle target's
10237 reference count.
10238 (follow_fork): Adjust get_last_target_status call. Also consider
10239 target.
10240 (follow_exec): Push target on new inferior.
10241 (struct execution_control_state) <target>: New field.
10242 (user_visible_resume_target): New.
10243 (do_target_resume): Call target_async.
10244 (resume_1): Set target's threads_executing flag. Consider resume
10245 target.
10246 (commit_resume_all_targets): New.
10247 (proceed): Also consider resume target. Skip threads of inferiors
10248 with no execution. Commit resumtion in all targets.
10249 (start_remote): Pass current inferior to wait_for_inferior.
10250 (infrun_thread_stop_requested): Consider target as well. Pass
10251 thread_info pointer to clear_inline_frame_state instead of ptid.
10252 (infrun_thread_thread_exit): Consider target as well.
10253 (random_pending_event_thread): New inferior parameter. Use it.
10254 (do_target_wait): Rename to ...
10255 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10256 down.
10257 (threads_are_resumed_pending_p, do_target_wait): New.
10258 (prepare_for_detach): Adjust calls.
10259 (wait_for_inferior): New inferior parameter. Handle it. Use
10260 do_target_wait_1 instead of do_target_wait.
10261 (fetch_inferior_event): Adjust. Switch to representative
10262 inferior. Pass target down.
10263 (set_last_target_status): Add process_stratum_target parameter.
10264 Save target in global.
10265 (get_last_target_status): Add process_stratum_target parameter and
10266 handle it.
10267 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10268 (context_switch): Check inferior_ptid == null_ptid before calling
10269 inferior_thread().
10270 (get_inferior_stop_soon): Pass down target.
10271 (wait_one): Rename to ...
10272 (poll_one_curr_target): ... this.
10273 (struct wait_one_event): New.
10274 (wait_one): New.
10275 (stop_all_threads): Adjust.
10276 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10277 event's target.
10278 (switch_back_to_stepped_thread): Also consider target.
10279 (print_stop_event): Update.
10280 (normal_stop): Update. Also consider the resume target.
10281 * infrun.h (wait_for_inferior): Remove declaration.
10282 (user_visible_resume_target): New declaration.
10283 (get_last_target_status, set_last_target_status): New
10284 process_stratum_target parameter.
10285 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10286 process_stratum_target parameter, and use it.
10287 (clear_inline_frame_state (thread_info*)): New.
10288 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10289 process_stratum_target parameter.
10290 (clear_inline_frame_state (thread_info*)): Declare.
10291 * linux-fork.c (delete_checkpoint_command): Pass target down to
10292 find_thread_ptid.
10293 (checkpoint_command): Adjust.
10294 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10295 instead of just tweaking inferior_ptid.
10296 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10297 (exit_lwp): Pass target down to find_thread_ptid.
10298 (attach_proc_task_lwp_callback): Pass target down to
10299 add_thread/set_running/set_executing.
10300 (linux_nat_target::attach): Pass target down to
10301 thread_change_ptid.
10302 (get_detach_signal): Pass target down to find_thread_ptid.
10303 Consider last target status's target.
10304 (linux_resume_one_lwp_throw, resume_lwp)
10305 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10306 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10307 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10308 (linux_nat_target::async_wait_fd): New.
10309 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10310 target down.
10311 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10312 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10313 * linux-thread-db.c (struct thread_db_info::process_target): New
10314 field.
10315 (add_thread_db_info): Save target.
10316 (get_thread_db_info): New process_stratum_target parameter. Also
10317 match target.
10318 (delete_thread_db_info): New process_stratum_target parameter.
10319 Also match target.
10320 (thread_from_lwp): Adjust to pass down target.
10321 (thread_db_notice_clone): Pass down target.
10322 (check_thread_db_callback): Pass down target.
10323 (try_thread_db_load_1): Always push the thread_db target.
10324 (try_thread_db_load, record_thread): Pass target down.
10325 (thread_db_target::detach): Pass target down. Always unpush the
10326 thread_db target.
10327 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10328 target down. Always unpush the thread_db target.
10329 (find_new_threads_callback, thread_db_find_new_threads_2)
10330 (thread_db_target::update_thread_list): Pass target down.
10331 (thread_db_target::pid_to_str): Pass current inferior down.
10332 (thread_db_target::get_thread_local_address): Pass target down.
10333 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10334 target down.
10335 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10336 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10337 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10338 (procfs_init_inferior): Rename to ...
10339 (procfs_target::procfs_init_inferior): ... this and adjust.
10340 (procfs_target::create_inferior, procfs_notice_thread)
10341 (procfs_do_thread_registers): Adjust.
10342 * ppc-fbsd-tdep.c: Include "inferior.h".
10343 (ppcfbsd_get_thread_local_address): Pass down target.
10344 * proc-service.c (ps_xfer_memory): Switch current inferior and
10345 program space as well.
10346 (get_ps_regcache): Pass target down.
10347 * process-stratum-target.c
10348 (process_stratum_target::thread_address_space)
10349 (process_stratum_target::thread_architecture): Pass target down.
10350 * process-stratum-target.h
10351 (process_stratum_target::threads_executing): New field.
10352 (as_process_stratum_target): New.
10353 * ravenscar-thread.c
10354 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10355 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10356 down.
10357 * record-btrace.c (record_btrace_target::info_record): Adjust.
10358 (record_btrace_target::record_method)
10359 (record_btrace_target::record_is_replaying)
10360 (record_btrace_target::fetch_registers)
10361 (get_thread_current_frame_id, record_btrace_target::resume)
10362 (record_btrace_target::wait, record_btrace_target::stop): Pass
10363 target down.
10364 * record-full.c (record_full_wait_1): Switch to event thread.
10365 Pass target down.
10366 * regcache.c (regcache::regcache)
10367 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10368 process_stratum_target parameter and handle it.
10369 (current_thread_target): New global.
10370 (get_thread_regcache): Add process_stratum_target parameter and
10371 handle it. Switch inferior before calling target method.
10372 (get_thread_regcache): Pass target down.
10373 (get_thread_regcache_for_ptid): Pass target down.
10374 (registers_changed_ptid): Add process_stratum_target parameter and
10375 handle it.
10376 (registers_changed_thread, registers_changed): Pass target down.
10377 (test_get_thread_arch_aspace_regcache): New.
10378 (current_regcache_test): Define a couple local test_target_ops
10379 instances and use them for testing.
10380 (readwrite_regcache): Pass process_stratum_target parameter.
10381 (cooked_read_test, cooked_write_test): Pass mock_target down.
10382 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10383 (get_thread_arch_aspace_regcache): Add process_stratum_target
10384 parameter.
10385 (regcache::target): New method.
10386 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10387 (regcache::registers_changed_ptid): Add process_stratum_target
10388 parameter.
10389 (regcache::m_target): New field.
10390 (registers_changed_ptid): Add process_stratum_target parameter.
10391 * remote.c (remote_state::supports_vCont_probed): New field.
10392 (remote_target::async_wait_fd): New method.
10393 (remote_unpush_and_throw): Add remote_target parameter.
10394 (get_current_remote_target): Adjust.
10395 (remote_target::remote_add_inferior): Push target.
10396 (remote_target::remote_add_thread)
10397 (remote_target::remote_notice_new_inferior)
10398 (get_remote_thread_info): Pass target down.
10399 (remote_target::update_thread_list): Skip threads of inferiors
10400 bound to other targets. (remote_target::close): Don't discard
10401 inferiors. (remote_target::add_current_inferior_and_thread)
10402 (remote_target::process_initial_stop_replies)
10403 (remote_target::start_remote)
10404 (remote_target::remote_serial_quit_handler): Pass down target.
10405 (remote_target::remote_unpush_target): New remote_target
10406 parameter. Unpush the target from all inferiors.
10407 (remote_target::remote_unpush_and_throw): New remote_target
10408 parameter. Pass it down.
10409 (remote_target::open_1): Check whether the current inferior has
10410 execution instead of checking whether any inferior is live. Pass
10411 target down.
10412 (remote_target::remote_detach_1): Pass down target. Use
10413 remote_unpush_target.
10414 (extended_remote_target::attach): Pass down target.
10415 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10416 (remote_target::append_resumption): Pass down target.
10417 (remote_target::append_pending_thread_resumptions)
10418 (remote_target::remote_resume_with_hc, remote_target::resume)
10419 (remote_target::commit_resume): Pass down target.
10420 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10421 (remote_target::interrupt_query)
10422 (remote_target::remove_new_fork_children)
10423 (remote_target::check_pending_events_prevent_wildcard_vcont)
10424 (remote_target::remote_parse_stop_reply)
10425 (remote_target::process_stop_reply): Pass down target.
10426 (first_remote_resumed_thread): New remote_target parameter. Pass
10427 it down.
10428 (remote_target::wait_as): Pass down target.
10429 (unpush_and_perror): New remote_target parameter. Pass it down.
10430 (remote_target::readchar, remote_target::remote_serial_write)
10431 (remote_target::getpkt_or_notif_sane_1)
10432 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10433 down target.
10434 (remote_target::mourn_inferior): Pass down target. Use
10435 remote_unpush_target.
10436 (remote_target::core_of_thread)
10437 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10438 (remote_target::pid_to_exec_file)
10439 (remote_target::thread_handle_to_thread_info): Pass down target.
10440 (remote_target::async_wait_fd): New.
10441 * riscv-fbsd-tdep.c: Include "inferior.h".
10442 (riscv_fbsd_get_thread_local_address): Pass down target.
10443 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10444 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10445 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10446 Adjust.
10447 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10448 * solib-svr4.c (enable_break): Pass down target.
10449 * spu-multiarch.c (parse_spufs_run): Pass down target.
10450 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10451 * target-delegates.c: Regenerate.
10452 * target.c (g_target_stack): Delete.
10453 (current_top_target): Return the current inferior's top target.
10454 (target_has_execution_1): Refer to the passed-in inferior's top
10455 target.
10456 (target_supports_terminal_ours): Check whether the initial
10457 inferior was already created.
10458 (decref_target): New.
10459 (target_stack::push): Incref/decref the target.
10460 (push_target, push_target, unpush_target): Adjust.
10461 (target_stack::unpush): Defref target.
10462 (target_is_pushed): Return bool. Adjust to refer to the current
10463 inferior's target stack.
10464 (dispose_inferior): Delete, and inline parts ...
10465 (target_preopen): ... here. Only dispose of the current inferior.
10466 (target_detach): Hold strong target reference while detaching.
10467 Pass target down.
10468 (target_thread_name): Add assertion.
10469 (target_resume): Pass down target.
10470 (target_ops::beneath, find_target_at): Adjust to refer to the
10471 current inferior's target stack.
10472 (get_dummy_target): New.
10473 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10474 has a thread running.
10475 (initialize_targets): Rename to ...
10476 (_initialize_target): ... this.
10477 * target.h: Include "gdbsupport/refcounted-object.h".
10478 (struct target_ops): Inherit refcounted_object.
10479 (target_ops::shortname, target_ops::longname): Make const.
10480 (target_ops::async_wait_fd): New method.
10481 (decref_target): Declare.
10482 (struct target_ops_ref_policy): New.
10483 (target_ops_ref): New typedef.
10484 (get_dummy_target): Declare function.
10485 (target_is_pushed): Return bool.
10486 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10487 (all_matching_threads_iterator::all_matching_threads_iterator):
10488 Handle filter target.
10489 * thread-iter.h (struct all_matching_threads_iterator, struct
10490 all_matching_threads_range, class all_non_exited_threads_range):
10491 Filter by target too. Remove explicit.
10492 * thread.c (threads_executing): Delete.
10493 (inferior_thread): Pass down current inferior.
10494 (clear_thread_inferior_resources): Pass down thread pointer
10495 instead of ptid_t.
10496 (add_thread_silent, add_thread_with_info, add_thread): Add
10497 process_stratum_target parameter. Use it for thread and inferior
10498 searches.
10499 (is_current_thread): New.
10500 (thread_info::deletable): Use it.
10501 (find_thread_ptid, thread_count, in_thread_list)
10502 (thread_change_ptid, set_resumed, set_running): New
10503 process_stratum_target parameter. Pass it down.
10504 (set_executing): New process_stratum_target parameter. Pass it
10505 down. Adjust reference to 'threads_executing'.
10506 (threads_are_executing): New process_stratum_target parameter.
10507 Adjust reference to 'threads_executing'.
10508 (set_stop_requested, finish_thread_state): New
10509 process_stratum_target parameter. Pass it down.
10510 (switch_to_thread): Also match inferior.
10511 (switch_to_thread): New process_stratum_target parameter. Pass it
10512 down.
10513 (update_threads_executing): Reimplement.
10514 * top.c (quit_force): Pop targets from all inferior.
10515 (gdb_init): Don't call initialize_targets.
10516 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10517 Declare.
10518 (windows_add_thread, windows_delete_thread): Adjust.
10519 (get_windows_debug_event): Rename to ...
10520 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10521 * tracefile-tfile.c (tfile_target_open): Pass down target.
10522 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10523 Forward declare.
10524 (switch_to_thread): Add process_stratum_target parameter.
10525 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10526 parameter. Use it.
10527 (mi_on_resume): Pass target down.
10528 * nat/fork-inferior.c (startup_inferior): Add
10529 process_stratum_target parameter. Pass it down.
10530 * nat/fork-inferior.h (startup_inferior): Add
10531 process_stratum_target parameter.
10532 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10533
10534 2020-01-10 Pedro Alves <palves@redhat.com>
10535
10536 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10537 directly. Instead find the first thread in the thread list and
10538 use switch_to_thread.
10539
10540 2020-01-10 Pedro Alves <palves@redhat.com>
10541
10542 * remote.c (remote_target::remote_add_inferior): Don't bind a
10543 process to the current inferior if the current inferior is already
10544 bound to a process.
10545
10546 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10547 Pedro Alves <palves@redhat.com>
10548
10549 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10550 If no process is specified, return null_ptid instead of
10551 inferior_ptid.
10552 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10553 TARGET_WAITKIND_SIGNALLED with no pid.
10554
10555 2020-01-10 Pedro Alves <palves@redhat.com>
10556
10557 * remote.c (first_remote_resumed_thread): New.
10558 (remote_target::wait_as): Use it as default event_ptid instead of
10559 inferior_ptid.
10560
10561 2020-01-10 Pedro Alves <palves@redhat.com>
10562
10563 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10564
10565 2020-01-10 Pedro Alves <palves@redhat.com>
10566
10567 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10568 not -1.
10569
10570 2020-01-10 Pedro Alves <palves@redhat.com>
10571
10572 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10573 ptid to get_last_target_status.
10574 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10575 ptid to get_last_target_status.
10576 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10577 get_last_target_status.
10578 (info_program_command): Don't pass a target_waitstatus to
10579 get_last_target_status.
10580 * infrun.c (init_wait_for_inferior): Use
10581 nullify_last_target_wait_ptid.
10582 (get_last_target_status): Handle nullptr arguments.
10583 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10584 (print_stop_event): Don't pass a ptid to get_last_target_status.
10585 (normal_stop): Don't pass a ptid to get_last_target_status.
10586 * infrun.h (get_last_target_status, set_last_target_status): Move
10587 comments here and update.
10588 (nullify_last_target_wait_ptid): Declare.
10589 * linux-fork.c (fork_load_infrun_state): Remove local extern
10590 declaration of nullify_last_target_wait_ptid.
10591 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10592 to get_last_target_status.
10593
10594 2020-01-10 Pedro Alves <palves@redhat.com>
10595
10596 * gdbthread.h (scoped_restore_current_thread)
10597 <dont_restore, restore, m_dont_restore>: Declare.
10598 * thread.c (thread_alive): Add assertion. Return bool.
10599 (switch_to_thread_if_alive): New.
10600 (prune_threads): Switch inferior/thread.
10601 (print_thread_info_1): Switch thread before calling target methods.
10602 (scoped_restore_current_thread::restore): New, factored out from
10603 ...
10604 (scoped_restore_current_thread::~scoped_restore_current_thread):
10605 ... this.
10606 (scoped_restore_current_thread::scoped_restore_current_thread):
10607 Add assertion.
10608 (thread_apply_all_command, thread_select): Use
10609 switch_to_thread_if_alive.
10610 * infrun.c (proceed, restart_threads, handle_signal_stop)
10611 (switch_back_to_stepped_thread): Switch current thread before
10612 calling target methods.
10613
10614 2020-01-10 Pedro Alves <palves@redhat.com>
10615
10616 * inferior.c (switch_to_inferior_no_thread): New function,
10617 factored out from ...
10618 (inferior_command): ... here.
10619 * inferior.h (switch_to_inferior_no_thread): Declare.
10620 * mi/mi-main.c (run_one_inferior): Use
10621 switch_to_inferior_no_thread.
10622
10623 2020-01-10 Pedro Alves <palves@redhat.com>
10624
10625 * infcmd.c (kill_command): Remove dead code.
10626
10627 2020-01-10 Pedro Alves <palves@redhat.com>
10628
10629 * remote.c (remote_target::mourn_inferior): No longer check
10630 whether the target is running.
10631
10632 2020-01-10 Pedro Alves <palves@redhat.com>
10633
10634 * corelow.c (core_target::has_execution): Change parameter type to
10635 inferior pointer.
10636 * inferior.c (number_of_live_inferiors): Use
10637 inferior::has_execution instead of target_has_execution_1.
10638 * inferior.h (inferior::has_execution): New.
10639 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10640 inferior::has_execution instead of target_has_execution_1.
10641 * process-stratum-target.c
10642 (process_stratum_target::has_execution): Change parameter type to
10643 inferior pointer. Check the inferior's PID instead of
10644 inferior_ptid.
10645 * process-stratum-target.h
10646 (process_stratum_target::has_execution): Change parameter type to
10647 inferior pointer.
10648 * record-full.c (record_full_core_target::has_execution): Change
10649 parameter type to inferior pointer.
10650 * target.c (target_has_execution_1): Change parameter type to
10651 inferior pointer.
10652 (target_has_execution_current): Adjust.
10653 * target.h (target_ops::has_execution): Change parameter type to
10654 inferior pointer.
10655 (target_has_execution_1): Change parameter type to inferior
10656 pointer. Change return type to bool.
10657 * tracefile.h (tracefile_target::has_execution): Change parameter
10658 type to inferior pointer.
10659
10660 2020-01-10 Pedro Alves <palves@redhat.com>
10661
10662 * exceptions.c (print_flush): Remove current_top_target() check.
10663
10664 2020-01-10 Pedro Alves <palves@redhat.com>
10665
10666 * remote.c (show_remote_exec_file): Show the current inferior's
10667 exec-file instead of the command variable's value.
10668
10669 2020-01-10 Pedro Alves <palves@redhat.com>
10670
10671 * record-full.c (record_full_resume_ptid): New global.
10672 (record_full_target::resume): Set it.
10673 (record_full_wait_1): Use record_full_resume_ptid instead of
10674 inferior_ptid.
10675
10676 2020-01-10 Pedro Alves <palves@redhat.com>
10677
10678 * gdbthread.h (scoped_restore_current_thread)
10679 <dont_restore, restore, m_dont_restore>: Declare.
10680 * thread.c (thread_alive): Add assertion. Return bool.
10681 (switch_to_thread_if_alive): New.
10682 (prune_threads): Switch inferior/thread.
10683 (print_thread_info_1): Switch thread before calling target methods.
10684 (scoped_restore_current_thread::restore): New, factored out from
10685 ...
10686 (scoped_restore_current_thread::~scoped_restore_current_thread):
10687 ... this.
10688 (scoped_restore_current_thread::scoped_restore_current_thread):
10689 Add assertion.
10690 (thread_apply_all_command, thread_select): Use
10691 switch_to_thread_if_alive.
10692
10693 2020-01-10 George Barrett <bob@bob131.so>
10694
10695 * stap-probe.c (stap_modify_semaphore): Don't check for null
10696 semaphores.
10697 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10698 for null semaphores.
10699
10700 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10701
10702 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10703 all source windows, and maintain horizontal scroll status while
10704 doing so.
10705
10706 2020-01-09 Tom Tromey <tom@tromey.com>
10707
10708 PR tui/18932:
10709 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10710 update_source_window, not print_source_lines.
10711
10712 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10713
10714 * tui/tui.c (tui_enable): Register tui hooks after calling
10715 tui_display_main.
10716
10717 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10718
10719 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10720
10721 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * thread.c (print_thread_info_1): Fix indentation.
10724
10725 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10726
10727 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10728 unique_xmalloc_ptr outside the if to always free the demangled name.
10729
10730 2020-01-08 Tom Tromey <tromey@adacore.com>
10731
10732 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10733 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10734 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10735 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10736 Remove.
10737 (section_offsets): New typedef.
10738 * symtab.c (fixup_section, get_msymbol_address): Update.
10739 * symmisc.c (dump_msymbols): Update.
10740 * symfile.h (relative_addr_info_to_section_offsets)
10741 (symfile_map_offsets_to_segments): Update.
10742 * symfile.c (build_section_addr_info_from_objfile)
10743 (init_objfile_sect_indices): Update.
10744 (struct place_section_arg): Change type of "offsets".
10745 (place_section): Update.
10746 (relative_addr_info_to_section_offsets): Change type of
10747 "section_offsets". Remove "num_sections" parameter.
10748 (default_symfile_offsets, syms_from_objfile_1)
10749 (set_objfile_default_section_offset): Update.
10750 (reread_symbols): No need to preserve section offsets by hand.
10751 (symfile_map_offsets_to_segments): Change type of "offsets".
10752 * stap-probe.c (relocate_address): Update.
10753 * stabsread.h (process_one_symbol): Update.
10754 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10755 (solib_target_relocate_section_addresses): Update.
10756 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10757 Update.
10758 * solib-frv.c (frv_relocate_main_executable): Update.
10759 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10760 * solib-aix.c (solib_aix_get_section_offsets): Change return
10761 type.
10762 (solib_aix_solib_create_inferior_hook): Update.
10763 * remote.c (remote_target::get_offsets): Update.
10764 * psymtab.c (find_pc_sect_psymtab): Update.
10765 * psympriv.h (struct partial_symbol) <address, text_low,
10766 text_high>: Update.
10767 * objfiles.h (obj_section_offset): Update.
10768 (struct objfile) <section_offsets>: Change type.
10769 <num_sections>: Remove.
10770 (objfile_relocate): Update.
10771 * objfiles.c (entry_point_address_query): Update
10772 (relocate_one_symbol): Change type of "section_offsets".
10773 (objfile_relocate1, objfile_relocate1): Change type of
10774 "new_offsets".
10775 (objfile_rebase1): Update.
10776 * mipsread.c (mipscoff_symfile_read): Update.
10777 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10778 parameter.
10779 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10780 (parse_external, psymtab_to_symtab_1): Update.
10781 * machoread.c (macho_symfile_offsets): Update.
10782 * ia64-tdep.c (ia64_find_unwind_table): Update.
10783 * hppa-tdep.c (read_unwind_info): Update.
10784 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10785 * dwarf2read.c (create_addrmap_from_index)
10786 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10787 (process_psymtab_comp_unit_reader, add_partial_symbol)
10788 (add_partial_subprogram, process_full_comp_unit)
10789 (read_file_scope, read_func_scope, read_lexical_block_scope)
10790 (read_call_site_scope, dwarf2_rnglists_process)
10791 (dwarf2_ranges_process, dwarf2_ranges_read)
10792 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10793 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10794 Update.
10795 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10796 Update.
10797 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10798 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10799 (process_one_symbol): Change type of "section_offsets".
10800 * ctfread.c (get_objfile_text_range): Update.
10801 * coffread.c (coff_symtab_read, enter_linenos)
10802 (process_coff_symbol): Update.
10803 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10804 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10805
10806 2020-01-08 Tom Tromey <tromey@adacore.com>
10807
10808 * dwarf2read.c (parse_macro_definition): Use std::string.
10809 (parse_macro_definition): Likewise.
10810
10811 2020-01-08 Tom Tromey <tromey@adacore.com>
10812
10813 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10814 (ATTR_ALLOC_CHUNK): Remove.
10815
10816 2020-01-08 Tom Tromey <tromey@adacore.com>
10817
10818 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10819
10820 2020-01-08 Tom Tromey <tromey@adacore.com>
10821
10822 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10823 (dwarf2_compute_name, open_dwo_file): Likewise.
10824 (process_enumeration_scope): Use std::vector.
10825 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10826 (partial_die_info::fixup, dwarf2_start_subfile)
10827 (guess_full_die_structure_name, dwarf2_name): Likewise.
10828 (determine_prefix): Update.
10829 (guess_full_die_structure_name): Make return type const.
10830 (partial_die_full_name): Return unique_xmalloc_ptr.
10831 (DW_FIELD_ALLOC_CHUNK): Remove.
10832
10833 2020-01-07 Tom Tromey <tromey@adacore.com>
10834
10835 PR build/24937:
10836 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10837
10838 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10839
10840 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10841
10842 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10843
10844 * stack.c (print_frame_info): Move disassemble_next_line code
10845 inside source_print block.
10846
10847 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10848
10849 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10850 gdb/signals.h, as we are now using native signal symbols.
10851
10852 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10853
10854 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10855 overflow by an early check of content vs threshold.
10856 * tui/tui-source.c (tui_source_window::line_is_displayed):
10857 Likewise.
10858
10859 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10860
10861 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10862
10863 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10864
10865 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10866 export table if no section contains it's RVA.
10867
10868 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10869
10870 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10871
10872 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
10873
10874 * source.c (print_source_lines_base): Set last_line_listed.
10875
10876 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10877
10878 * tui/tui-disasm.c: Remove trailing spaces.
10879
10880 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10881 Pedro Alves <palves@redhat.com>
10882
10883 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10884 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10885 (windows_gdb_signal_to_target): New function, uses the above
10886 enumeration to convert GDB internal signal codes to equivalent
10887 Windows codes.
10888 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10889 * windows-nat.c: Include "gdb_wait.h".
10890 (get_windows_debug_event): Extract the fatal exception from the
10891 exit status and convert to the equivalent Posix signal number.
10892 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10893 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10894 * gdbsupport/gdb_wait.c: New file, implements
10895 windows_status_to_termsig.
10896 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10897 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10898
10899 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10900
10901 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10902 show_layout.
10903
10904 2020-01-05 Luis Machado <luis.machado@linaro.org>
10905
10906 * aarch64-linux-nat.c
10907 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10908 and bfd_mach_aarch64.
10909
10910 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10911
10912 * ui-file.c (stdio_file::can_emit_style_escape)
10913 (tee_file::can_emit_style_escape): Ensure style is used also on
10914 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10915 to gdb_stdout.
10916 * main.c (set_gdb_data_directory): Use file style to output the
10917 warning that the given pathname is not a directory.
10918 * top.c (show_history_filename, gdb_safe_append_history)
10919 (show_gdb_datadir): Use file style.
10920
10921 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
10922
10923 * solib-target.c (struct lm_info_target):
10924 Change offsets to be a unique_xmalloc_ptr.
10925 (solib_target_relocate_section_addresses): Update.
10926
10927 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
10928
10929 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10930
10931 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10932
10933 * MAINTAINERS (Write After Approval): Add myself.
10934
10935 2020-01-02 Luis Machado <luis.machado@linaro.org>
10936
10937 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10938 Cell BE architecture.
10939 * target.h (struct target_ops) <thread_architecture>: Likewise.
10940
10941 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
10942
10943 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10944
10945 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
10946
10947 * MAINTAINERS (Write After Approval): Add myself.
10948
10949 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10950
10951 * gdbarch.sh: Update copyright year range of generated files.
10952
10953 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10954
10955 Update copyright year range in all GDB files.
10956
10957 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10958
10959 * copyright.py: Convert to Python 3.
10960
10961 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10962
10963 * copyright.py: Adapt after move of gnulib directory from gdb
10964 directory to toplevel directory.
10965
10966 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10967
10968 * copyright.py (main): Exit if run from the wrong directory.
10969
10970 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10971
10972 * top.c (print_gdb_version): Change copyright year to 2020.
10973
10974 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10975
10976 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
10977
10978 For older changes see ChangeLog-2019.
10979 \f
10980 Local Variables:
10981 mode: change-log
10982 left-margin: 8
10983 fill-column: 74
10984 version-control: never
10985 coding: utf-8
10986 End: