3233cb5fa8fe6b0c96a09905b1f7b16fc92d6164
[binutils-gdb.git] / gdb / ChangeLog
1 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5 to get the bound property's kind and check against
6 PROP_UNDEFINED.
7
8 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
9
10 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
11 all callers to use type::range_bounds followed by
12 dynamic_prop::{low,high}.
13
14 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
15
16 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
17 const_val, set_const_val, baton, set_locexpr, set_loclist,
18 set_addr_offset, variant_parts, set_variant_parts,
19 original_type, set_original_type>: New methods.
20 <kind>: Rename to...
21 <m_kind>: ... this. Update all users to use the new methods
22 instead.
23 <data>: Rename to...
24 <m_data>: ... this. Update all users to use the new methods
25 instead.
26
27 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
28
29 * gdbtypes.c (get_discrete_bounds): Return failure if
30 the range type's bounds are not both defined and constant
31 values.
32 (get_array_bounds): Update comment. Remove undefined bound check.
33
34 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
37 the type::bounds method directly.
38
39 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
40
41 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
42 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
43 are used to set the range type's bounds to use set_bounds.
44
45 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
46
47 * exec.c (_initialize_exec): Update exec-file-mismatch help.
48
49 2020-07-10 Pedro Alves <pedro@palves.net>
50
51 * gdbthread.h (inferior_ref): Define.
52 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
53 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
54 * thread.c
55 (scoped_restore_current_thread::restore):
56 Adjust to gdb::ref_ptr.
57 (scoped_restore_current_thread::~scoped_restore_current_thread):
58 Remove manual decref handling.
59 (scoped_restore_current_thread::scoped_restore_current_thread):
60 Adjust to use
61 inferior_ref::new_reference/thread_info_ref::new_reference.
62 Incref the thread before calling get_frame_id instead of after.
63 Let TARGET_CLOSE_ERROR propagate.
64
65 2020-07-10 Pedro Alves <pedro@palves.net>
66
67 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
68 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
69 NOT_AVAILABLE_ERROR.
70 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
71 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
72
73 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
74 Pedro Alves <pedro@palves.net>
75
76 PR gdb/26199
77 * infrun.c (threads_are_resumed_pending_p): Delete.
78 (do_target_wait): Remove threads_are_executing and
79 threads_are_resumed_pending_p checks from the inferior_matches
80 lambda. Update comments.
81
82 2020-07-10 Pedro Alves <pedro@palves.net>
83
84 PR gdb/26199
85 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
86 executing threads.
87
88 2020-07-10 Pedro Alves <pedro@palves.net>
89
90 PR gdb/26199
91 * infrun.c (handle_no_resumed): Handle multiple targets.
92
93 2020-07-10 Pedro Alves <pedro@palves.net>
94
95 PR gdb/26199
96 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
97 target_is_async_p.
98
99 2020-07-10 Pedro Alves <pedro@palves.net>
100
101 PR gdb/26199
102 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
103 threads, not all threads.
104
105 2020-07-10 Pedro Alves <pedro@palves.net>
106
107 PR gdb/26199
108 * remote.c (remote_target::open_1): Pass remote target pointer as
109 data to create_async_event_handler.
110 (remote_async_inferior_event_handler): Mark async event handler
111 before returning if the remote target still has either pending
112 events or unacknowledged notifications.
113
114 2020-07-10 John Baldwin <jhb@FreeBSD.org>
115
116 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
117 declaration.
118 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
119 function.
120
121 2020-07-09 John Baldwin <jhb@FreeBSD.org>
122
123 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
124 inferior_ptid.
125
126 2020-07-09 John Baldwin <jhb@FreeBSD.org>
127
128 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
129 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
130 AT_FREEBSD_PS_STRINGS.
131
132 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
133
134 * auto-load.c (auto_load_objfile_script_1): Convert drive part
135 of debugfile path on Windows.
136
137 2020-07-08 John Baldwin <jhb@FreeBSD.org>
138
139 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
140 argument to 'data'.
141
142 2020-07-08 Tom Tromey <tromey@adacore.com>
143
144 * ada-lang.c (ada_exception_message_1): Use read_memory.
145
146 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 PR python/22748
149 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
150 special handling for inline frames.
151 * findvar.c (value_of_register_lazy): Skip inline frames when
152 creating lazy register values.
153 * frame.c (frame_id_computed_p): Delete definition.
154 * frame.h (frame_id_computed_p): Delete declaration.
155
156 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * NEWS: Mention additions to Python API.
159 * python/py-arch.c (archpy_register_groups): New function.
160 (arch_object_methods): Add 'register_groups' method.
161 * python/py-registers.c (reggroup_iterator_object): New struct.
162 (reggroup_object): New struct.
163 (gdbpy_new_reggroup): New function.
164 (gdbpy_reggroup_to_string): New function.
165 (gdbpy_reggroup_name): New function.
166 (gdbpy_reggroup_iter): New function.
167 (gdbpy_reggroup_iter_next): New function.
168 (gdbpy_new_reggroup_iterator): New function
169 (gdbpy_initialize_registers): Register new types.
170 (reggroup_iterator_object_type): Define new Python type.
171 (gdbpy_reggroup_getset): New static global.
172 (reggroup_object_type): Define new Python type.
173 * python/python-internal.h
174
175 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
176
177 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
178 * python/py-arch.c (archpy_registers): New function.
179 (arch_object_methods): Add 'registers' method.
180 * python/py-registers.c: New file.
181 * python/python-internal.h
182 (gdbpy_new_register_descriptor_iterator): Declare.
183 (gdbpy_initialize_registers): Declare.
184 * python/python.c (do_start_initialization): Call
185 gdbpy_initialize_registers.
186 * NEWS: Mention additions to the Python API.
187
188 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * NEWS: Mention new Python API method.
191 * python/py-unwind.c (pending_framepy_architecture): New function.
192 (pending_frame_object_methods): Add architecture method.
193
194 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * gdbarch.c: Regenerate.
197 * gdbarch.h: Regenerate.
198 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
199 (gdbarch_data): Use internal_error for the case where
200 deprecated_set_gdbarch_data was originally needed.
201 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
202 and use passed in obstack.
203 (libunwind_frame_set_descr): Should no longer get back NULL from
204 gdbarch_data.
205 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
206 type.
207 * user-regs.c (user_regs_init): Update parameters, and use passed
208 in obstack.
209 (user_reg_add): Should no longer get back NULL from gdbarch_data.
210 (_initialize_user_regs): Register as a pre-init gdbarch data type.
211
212 2020-07-06 Tom de Vries <tdevries@suse.de>
213
214 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
215 End-Of-Sequence in lte_is_less_than.
216 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
217 "gdb: Don't reorder line table entries too much when sorting".
218
219 2020-07-06 Tom de Vries <tdevries@suse.de>
220
221 PR tui/26205
222 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
223
224 2020-07-05 Tom de Vries <tdevries@suse.de>
225
226 PR build/26187
227 * inferior.h (struct infcall_suspend_state_deleter): If available, use
228 std::uncaught_exceptions instead of deprecated
229 std::uncaught_exception.
230
231 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * macroexp.h (macro_stringify): Return
234 gdb::unique_xmalloc_ptr<char>.
235 * macroexp.c (macro_stringify): Likewise.
236 * macrotab.c (fixup_definition): Update.
237
238 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
239
240 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
241 (lex_one_token): Update.
242 * macroexp.c (struct macro_buffer) <release>: Return
243 gdb::unique_xmalloc_ptr<char>.
244 (macro_stringify): Update.
245 (macro_expand): Update.
246 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
247 * macroexp.h (macro_expand_next): Likewise.
248
249 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
250
251 * macroexp.h (macro_lookup_ftype): Remove.
252 (macro_expand, macro_expand_once, macro_expand_next): Remove
253 lookup function parameters, add scope parameter.
254 * macroexp.c (scan, substitute_args, expand, maybe_expand,
255 macro_expand, macro_expand_once, macro_expand_next): Likewise.
256 * macroscope.h (standard_macro_lookup): Change parameter type
257 to macro_scope.
258 * macroscope.c (standard_macro_lookup): Likewise.
259 * c-exp.y (lex_one_token): Update.
260 * macrocmd.c (macro_expand_command): Likewise.
261 (macro_expand_once_command): Likewise.
262
263 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
264
265 * inf-loop.c (inferior_event_handler): Remove client_data param.
266 * inf-loop.h (inferior_event_handler): Likewise.
267 * infcmd.c (step_1): Adjust.
268 * infrun.c (proceed): Adjust.
269 (fetch_inferior_event): Remove client_data param.
270 (infrun_async_inferior_event_handler): Adjust.
271 * infrun.h (fetch_inferior_event): Remove `void *` param.
272 * linux-nat.c (handle_target_event): Adjust.
273 * record-btrace.c (record_btrace_handle_async_inferior_event):
274 Adjust.
275 * record-full.c (record_full_async_inferior_event_handler):
276 Adjust.
277 * remote.c (remote_async_inferior_event_handler): Adjust.
278
279 2020-07-01 Tom Tromey <tom@tromey.com>
280
281 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
282 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
283
284 2020-07-01 Tom Tromey <tom@tromey.com>
285
286 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
287 tui_gen_win_info.
288 (tui_win_info::make_window): Merge with
289 tui_gen_win_info::make_window.
290 (tui_win_info::make_visible): Move from tui_gen_win_info.
291 * tui/tui-win.c (tui_win_info::max_width): Move from
292 tui_gen_win_info.
293 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
294 type.
295 <window_factory>: Likewise.
296 * tui/tui-layout.c (tui_win_info::resize): Move from
297 tui_gen_win_info.
298 (make_standard_window): Change return type.
299 (get_locator_window, tui_get_window_by_name): Likewise.
300 (tui_layout_window::apply): Remove a cast.
301 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
302 (struct tui_win_info): Merge with tui_gen_win_info.
303 (struct tui_gen_win_info): Remove.
304
305 2020-07-01 Tom Tromey <tom@tromey.com>
306
307 * tui/tui-stack.h (struct tui_locator_window): Derive from
308 tui_win_info.
309 <do_scroll_horizontal, do_scroll_vertical>: New methods.
310 <can_box>: New method.
311
312 2020-07-01 Tom Tromey <tom@tromey.com>
313
314 * tui/tui-stack.h (struct tui_locator_window): Remove body.
315
316 2020-07-01 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-regs.c (tui_data_window::display_registers_from)
319 (tui_data_window::display_registers_from)
320 (tui_data_window::first_data_item_displayed)
321 (tui_data_window::delete_data_content_windows): Update.
322 (tui_data_window::refresh_window, tui_data_window::no_refresh):
323 Remove.
324 (tui_data_window::check_register_values): Update.
325 (tui_data_item_window::rerender): Add parameters. Update.
326 (tui_data_item_window::refresh_window): Remove.
327 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
328 virtual.
329 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
330 tui_gen_win_info.
331 <refresh_window, max_height, min_height>: Remove.
332 <rerender>: Add parameters.
333 <x, y, visible>: New members.
334 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
335 <m_item_width>: New member.
336
337 2020-07-01 Tom Tromey <tom@tromey.com>
338
339 * tui/tui-regs.c (tui_data_window::show_register_group)
340 (tui_data_window::check_register_values): Update.
341 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
342 from item_no.
343
344 2020-07-01 Tom Tromey <tom@tromey.com>
345
346 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
347 useless "if".
348
349 2020-07-01 Tom Tromey <tom@tromey.com>
350
351 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
352 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
353
354 2020-07-01 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
357 * tui/tui-winsource.h (enum tui_line_or_address_kind)
358 (struct tui_line_or_address): Move from tui-data.h.
359 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
360 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
361 (tui_cmd_window, tui_source_window_base, tui_source_window)
362 (tui_disasm_window): Don't declare.
363 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
364 to tui-winsource.h.
365 (SINGLE_KEY): Move to tui-stack.c.
366
367 2020-07-01 Tom Tromey <tom@tromey.com>
368
369 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
370 std::string.
371 * tui/tui-regs.c (class tab_expansion_file): New.
372 (tab_expansion_file::write): New method.
373 (tui_register_format): Change return type. Use
374 tab_expansion_file.
375 (tui_get_register, tui_data_window::display_registers_from)
376 (tui_data_item_window::rerender): Update.
377 * tui/tui-io.h (tui_expand_tabs): Don't declare.
378 * tui/tui-io.c (tui_expand_tabs): Remove.
379
380 2020-07-01 Tom Tromey <tom@tromey.com>
381
382 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
383
384 2020-07-01 Fangrui Song <maskray@google.com>
385
386 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
387
388 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
389
390 * dwarf2/read.c (set_die_type): Removed conditions to restrict
391 forms for DW_AT_associated and DW_AT_allocated attributes,
392 which is already checked in function attr_to_dynamic_prop.
393
394 2020-06-30 Tom Tromey <tromey@adacore.com>
395
396 * dwarf2/read.c (quirk_rust_enum): Correctly call
397 alloc_rust_variant for default-less enum.
398
399 2020-06-30 Tom Tromey <tromey@adacore.com>
400
401 PR build/26183:
402 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
403 gdb::to_string.
404
405 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
406
407 * gdbarch.sh (displaced_step_copy_insn): Update doc.
408 * gdbarch.h: Re-generate.
409
410 2020-06-28 Tom Tromey <tom@tromey.com>
411
412 * command.h (cmd_types): Remove.
413 (cmd_type): Don't declare.
414 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
415 typedef.
416 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
417 * cli/cli-decode.c (cmd_type): Remove.
418
419 2020-06-27 Pedro Alves <palves@redhat.com>
420
421 * fork-child.c (prefork_hook): Adjust.
422 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
423 Delete.
424 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
425 * inferior.c (inferior::set_tty, inferior::tty): New methods.
426 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
427 Remove declarations.
428 (struct inferior) <set_tty, tty>: New methods.
429 (struct inferior) <terminal>: Rename to ...
430 (struct inferior) <m_terminal>: ... this and make private.
431 * main.c (captured_main_1): Adjust.
432 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
433 (mi_cmd_inferior_tty_show): Adjust.
434 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
435 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
436
437 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
438
439 * configure.ac: Add --enable-libctf: handle --disable-static
440 properly.
441 * acinclude.m4: sinclude ../config/enable.m4.
442 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
443 (LIBCTF): Substitute in.
444 (CTF_DEPS): New, likewise.
445 (CLIBS): libctf needs symbols from libbfd: move earlier.
446 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
447 flags.
448 * ctfread.c: Surround in ENABLE_LIBCTF.
449 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
450 * configure: Regenerate.
451 * config.in: Likewise.
452
453 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
454
455 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
456
457 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
458
459 * inferior.h (struct inferior) <terminal>: Change type to
460 gdb::unique_xmalloc_ptr<char>.
461 * inferior.c (inferior::~inferior): Don't free inf->terminal.
462 * infcmd.c (set_inferior_io_terminal): Don't free terminal
463 field, adjust to unique pointer.
464 (get_inferior_io_terminal): Adjust to unique pointer.
465
466 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * riscv-tdep.c (riscv_print_registers_info): Loop over all
469 registers, not just the known core set of registers.
470
471 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
472
473 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
474 fflags, frm, and fcsr registers.
475 (riscv_register_reggroup_p): Remove unknown CSRs from save and
476 restore groups.
477 (riscv_tdesc_unknown_reg): New function.
478 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
479 tdesc_use_registers.
480 * riscv-tdep.h (struct gdbarch_tdep): Add
481 unknown_csrs_first_regnum, unknown_csrs_count,
482 duplicate_fflags_regnum, duplicate_frm_regnum, and
483 duplicate_fcsr_regnum fields.
484
485 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * target-descriptions.c (tdesc_use_registers): Add new parameter a
488 callback, use the callback (when not null) to help number unknown
489 registers.
490 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
491 (tdesc_use_registers): Add extra parameter to declaration.
492
493 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
494
495 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
496 in the file.
497 (class riscv_pending_register_alias): Likewise.
498 (riscv_register_feature::register_info): Change 'required_p' field
499 to 'required', and change its type. Add 'check' member function.
500 (riscv_register_feature::register_info::check): Define new member
501 function.
502 (riscv_xreg_feature): Change initialisation of 'required' field.
503 (riscv_freg_feature): Likewise.
504 (riscv_virtual_feature): Likewise.
505 (riscv_csr_feature): Likewise.
506 (riscv_check_tdesc_feature): Take extra parameter, the csr
507 tdesc_feature, rewrite the function to use the new
508 riscv_register_feature::register_info::check function.
509 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
510
511 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * features/Makefile: Remove all references to the deleted files
514 below.
515 * features/riscv/32bit-csr.c: Deleted.
516 * features/riscv/32bit-csr.xml: Deleted.
517 * features/riscv/64bit-csr.c: Deleted.
518 * features/riscv/64bit-csr.xml: Deleted.
519 * features/riscv/rebuild-csr-xml.sh: Deleted.
520
521 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
524 whitespace error for declaration of names member variable.
525 (struct riscv_register_feature): Add new prefer_first_name member
526 variable, and fix whitespace error in declaration of registers.
527 (riscv_xreg_feature): Initialize prefer_first_name field.
528 (riscv_freg_feature): Likewise.
529 (riscv_virtual_feature): Likewise.
530 (riscv_csr_feature): Likewise.
531 (riscv_register_name): Expand on comments. Remove register name
532 modifications for CSR and virtual registers.
533
534 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
537 errors.
538
539 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
540
541 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
542 riscv-opc.h.
543 (class riscv_pending_register_alias): New class.
544 (riscv_check_tdesc_feature): Take vector of pending aliases and
545 populate it as appropriate.
546 (riscv_setup_register_aliases): Delete.
547 (riscv_gdbarch_init): Create vector of pending aliases and pass it
548 to riscv_check_tdesc_feature in all cases. Use the vector to
549 create the register aliases.
550
551 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
552
553 * sol2-tdep.c (sol2_static_transform_name): Remove.
554 (sol2_init_abi): Don't register it.
555 * gdbarch.sh (static_transform_name): Remove.
556 * gdbarch.c, gdbarch.h: Regenerate.
557
558 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
559 gdbarch_static_transform_name.
560 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
561 * stabsread.c (define_symbol) <'X'>: Remove.
562 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
563 handling.
564 <'V'>: Likewise.
565 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
566 <'S'>: Remove call to gdbarch_static_transform_name.
567
568 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
569
570 * procfs.c (procfs_pre_trace): New function.
571 (procfs_target::create_inferior): Pass it to fork_inferior.
572
573 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
574
575 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
576 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
577 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
578 sol2-tdep.o, sparc-sol2-tdep.o.
579 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
580 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
581 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
582 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
583
584 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
585
586 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
587 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
588 Call sol2_init_abi.
589 Remove calls to set_gdbarch_skip_solib_resolver,
590 set_gdbarch_core_pid_to_str.
591 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
592 (i386_sol2_static_transform_name): Remove.
593 (i386_sol2_init_abi): Call sol2_init_abi.
594 Remove calls to set_gdbarch_sofun_address_maybe_missing,
595 set_gdbarch_static_transform_name,
596 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
597 Use sol2_sigtramp_p.
598 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
599 (sol2_sigtramp_p): New function.
600 (sol2_static_transform_name): New function.
601 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
602 (sol2_init_abi): New function.
603 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
604 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
605 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
606 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
607 (sparc_sol2_static_transform_name): Remove.
608 (sparc32_sol2_init_abi): Call sol2_init_abi.
609 Remove calls to set_gdbarch_sofun_address_maybe_missing,
610 set_gdbarch_static_transform_name,
611 set_gdbarch_skip_solib_resolver,
612 set_gdbarch_core_pid_to_str.
613 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
614 (sparc_sol2_static_transform_name): Remove
615 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
616 call sol2_sigtramp_p.
617 (sparc64_sol2_init_abi): Call sol2_init_abi.
618 Remove calls to set_gdbarch_sofun_address_maybe_missing,
619 set_gdbarch_static_transform_name,
620 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
621
622 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
623
624 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
625 * exec.c (validate_exec_file): If from_tty, set both
626 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
627 * symfile.c (symbol_file_add_with_addrs): if always_confirm
628 and from_tty, unconditionally ask a confirmation.
629
630 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * target-descriptions.c (tdesc_architecture_name): Protect against
633 NULL pointer dereference.
634 (maint_print_xml_tdesc_cmd): New function.
635 (_initialize_target_descriptions): Register new 'maint print
636 xml-tdesc' command and give it the filename completer.
637 * NEWS: Mention new 'maint print xml-tdesc' command.
638
639 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * target-descriptions.c (class tdesc_compatible_info): New class.
642 (struct target_desc): Change type of compatible vector.
643 (tdesc_compatible_p): Update for change in type of
644 target_desc::compatible.
645 (tdesc_compatible_info_list): New function.
646 (tdesc_compatible_info_arch_name): New function.
647 (tdesc_add_compatible): Update for change in type of
648 target_desc::compatible.
649 (print_c_tdesc::visit_pre): Likewise.
650
651 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
654 whitespace to underscore.
655 (maint_print_c_tdesc_cmd): Use fake filename for target
656 descriptions that came from the target.
657 (_initialize_target_descriptions): Add filename command completion
658 for 'maint print c-tdesc'.
659
660 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
661
662 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
663 lines.
664
665 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
666
667 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
668 lines.
669 (dwarf2_find_location_expression): Likewise.
670 (call_site_parameter_matches): Likewise.
671 (dwarf2_compile_expr_to_ax): Likewise.
672 (disassemble_dwarf_expression): Likewise.
673 (loclist_describe_location): Likewise.
674
675 2020-06-23 Pedro Alves <palves@redhat.com>
676
677 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
678 progspace-and-thread.h. Include scoped-mock-context.h instead.
679 (register_to_value_test): Use scoped_mock_context.
680 * regcache.c: Include "scoped-mock-context.h".
681 (cooked_read_test): Don't error out if a target is already pushed.
682 Use scoped_mock_context. Adjust.
683 * scoped-mock-context.h: New file.
684
685 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
688 initializer.
689 (ada_language::is_string_type_p): New member function.
690 * c-lang.c (c_language_data): Delete la_is_string_type_p
691 initializer.
692 (cplus_language_data): Likewise.
693 (asm_language_data): Likewise.
694 (minimal_language_data): Likewise.
695 * d-lang.c (d_language_data): Likewise.
696 * f-lang.c (f_is_string_type_p): Delete function, implementation
697 moved to f_language::is_string_type_p.
698 (f_language_data): Delete la_is_string_type_p initializer.
699 (f_language::is_string_type_p): New member function,
700 implementation from f_is_string_type_p.
701 * go-lang.c (go_is_string_type_p): Delete function, implementation
702 moved to go_language::is_string_type_p.
703 (go_language_data): Delete la_is_string_type_p initializer.
704 (go_language::is_string_type_p): New member function,
705 implementation from go_is_string_type_p.
706 * language.c (language_defn::is_string_type_p): Define new member
707 function.
708 (default_is_string_type_p): Make static, add comment copied from
709 header file.
710 (unknown_language_data): Delete la_is_string_type_p initializer.
711 (unknown_language::is_string_type_p): New member function.
712 (auto_language_data): Delete la_is_string_type_p initializer.
713 (auto_language::is_string_type_p): New member function.
714 * language.h (language_data): Delete la_is_string_type_p field.
715 (language_defn::is_string_type_p): Declare new function.
716 (default_is_string_type_p): Delete desclaration, move comment to
717 definition.
718 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
719 moved to m2_language::is_string_type_p.
720 (m2_language_data): Delete la_is_string_type_p initializer.
721 (m2_language::is_string_type_p): New member function,
722 implementation from m2_is_string_type_p.
723 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
724 initializer.
725 * opencl-lang.c (opencl_language_data): Likewise.
726 * p-lang.c (pascal_is_string_type_p): Delete function,
727 implementation moved to pascal_language::is_string_type_p.
728 (pascal_language_data): Delete la_is_string_type_p initializer.
729 (pascal_language::is_string_type_p): New member function,
730 implementation from pascal_is_string_type_p.
731 * rust-lang.c (rust_is_string_type_p): Delete function,
732 implementation moved to rust_language::is_string_type_p.
733 (rust_language_data): Delete la_is_string_type_p initializer.
734 (rust_language::is_string_type_p): New member function,
735 implementation from rust_is_string_type_p.
736 * valprint.c (val_print_scalar_or_string_type_p): Update call to
737 is_string_type_p.
738
739 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * ada-lang.c (ada_language_data): Delete la_print_typedef
742 initializer.
743 (ada_language::print_typedef): New member function.
744 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
745 (cplus_language_data): Likewise.
746 (asm_language_data): Likewise.
747 (minimal_language_data): Likewise.
748 * d-lang.c (d_language_data): Likewise.
749 * f-lang.c (f_language_data): Likewise.
750 (f_language::print_typedef): New member function.
751 * go-lang.c (go_language_data): Delete la_print_typedef
752 initializer.
753 * language.c (language_defn::print_typedef): Define member
754 function.
755 (unknown_language_data): Delete la_print_typedef initializer.
756 (unknown_language::print_typedef): New member function.
757 (auto_language_data): Delete la_print_typedef initializer.
758 (auto_language::print_typedef): New member function.
759 * language.h (language_data): Delete la_print_typedef field.
760 (language_defn::print_typedef): Declare new member function.
761 (LA_PRINT_TYPEDEF): Update call to print_typedef.
762 (default_print_typedef): Delete declaration.
763 * m2-lang.c (m2_language_data): Delete la_print_typedef
764 initializer.
765 (m2_language::print_typedef): New member function.
766 * objc-lang.c (objc_language_data): Delete la_print_typedef
767 initializer.
768 * opencl-lang.c (opencl_language_data): Likewise.
769 * p-lang.c (pascal_language_data): Likewise.
770 (pascal_language::print_typedef): New member function.
771 * rust-lang.c (rust_print_typedef): Delete function,
772 implementation moved to rust_language::print_typedef.
773 (rust_language): Delete la_print_typedef initializer.
774 (rust_language::print_typedef): New member function,
775 implementation from rust_print_typedef.
776 * typeprint.c (default_print_typedef): Delete.
777
778 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
779
780 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
781 (ada_language::printstr): New member function.
782 * c-lang.c (c_language_data): Delete la_printstr initializer.
783 (cplus_language_data): Likewise.
784 (asm_language_data): Likewise.
785 (minimal_language_data): Likewise.
786 * d-lang.c (d_language_data): Likewise.
787 * f-lang.c (f_printstr): Rename to f_language::printstr.
788 (f_language_data): Delete la_printstr initializer.
789 (f_language::printstr): New member function, implementation from
790 f_printstr.
791 * go-lang.c (go_language_data): Delete la_printstr initializer.
792 * language.c (language_defn::printstr): Define new member
793 function.
794 (unk_lang_printstr): Delete.
795 (unknown_language_data): Delete la_printstr initializer.
796 (unknown_language::printstr): New member function.
797 (auto_language_data): Delete la_printstr initializer.
798 (auto_language::printstr): New member function.
799 * language.h (language_data): Delete la_printstr field.
800 (language_defn::printstr): Declare new member function.
801 (LA_PRINT_STRING): Update call to printstr.
802 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
803 (m2_language_data): Delete la_printstr initializer.
804 (m2_language::printstr): New member function, implementation from
805 m2_printstr.
806 * objc-lang.c (objc_language_data): Delete la_printstr
807 initializer.
808 * opencl-lang.c (opencl_language_data): Likewise.
809 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
810 (pascal_language_data): Delete la_printstr initializer.
811 (pascal_language::printstr): New member function, implementation
812 from pascal_printstr.
813 * p-lang.h (pascal_printstr): Delete declaration.
814 * rust-lang.c (rust_printstr): Update header comment.
815 (rust_language_data): Delete la_printstr initializer.
816 (rust_language::printstr): New member function.
817
818 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
819
820 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
821 (ada_language::printchar): New member function.
822 * c-lang.c (c_language_data): Delete la_printchar initializer.
823 (cplus_language_data): Likewise.
824 (asm_language_data): Likewise.
825 (minimal_language_data): Likewise.
826 * d-lang.c (d_language_data): Likewise.
827 * f-lang.c (f_printchar): Rename to f_language::printchar.
828 (f_language_data): Delete la_printchar initializer.
829 (f_language::printchar): New member function, implementation from
830 f_printchar.
831 * go-lang.c (go_language_data): Delete la_printchar initializer.
832 * language.c (unk_lang_printchar): Delete.
833 (language_defn::printchar): Define new member function.
834 (unknown_language_data): Delete la_printchar initializer.
835 (unknown_language::printchar): New member function.
836 (auto_language_data): Delete la_printchar initializer.
837 (auto_language::printchar): New member function.
838 * language.h (language_data): Delete la_printchar field.
839 (language_defn::printchar): Declare new member function.
840 (LA_PRINT_CHAR): Update call to printchar.
841 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
842 (m2_language::printchar): New member function.
843 * objc-lang.c (objc_language_data): Delete la_printchar
844 initializer.
845 * opencl-lang.c (opencl_language_data): Likewise.
846 * p-lang.c (pascal_language_data): Delete la_printchar
847 initializer.
848 (pascal_language::printchar): New member function.
849 * rust-lang.c (rust_printchar): Rename to
850 rust_language::printchar.
851 (rust_language_data): Delete la_printchar initializer.
852 (rust_language::printchar): New member function, implementation
853 from rust_printchar.
854
855 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
858 (ada_language_data): Delete la_emitchar initializer.
859 (ada_language::emitchar): New member function, implementation from
860 emit_char.
861 * c-lang.c (c_language_data): Delete la_emitchar initializer.
862 (cplus_language_data): Likewise.
863 (asm_language_data): Likewise.
864 (minimal_language_data): Likewise.
865 * d-lang.c (d_language_data): Likewise.
866 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
867 (f_language_data): Delete la_emitchar initializer.
868 (f_language::emitchar): New member function, implementation from
869 f_emit_char.
870 * go-lang.c (go_language_data): Delete la_emitchar initializer.
871 * language.c (unk_lang_emit_char): Delete.
872 (language_defn::emitchar): New member function definition.
873 (unknown_language_data): Delete la_emitchar initializer.
874 (unknown_language::emitchar): New member function.
875 (auto_language_data): Delete la_emitchar initializer.
876 (auto_language::emitchar): New member function.
877 * language.h (language_data): Delete la_emitchar field.
878 (language_defn::emitchar): New member field declaration.
879 (LA_EMIT_CHAR): Update call to emitchar.
880 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
881 (m2_language_data): Delete la_emitchar initializer.
882 (m2_language::emitchar): New member function, implementation from
883 m2_emit_char.
884 * objc-lang.c (objc_language_data): Delete la_emitchar
885 initializer.
886 * opencl-lang.c (opencl_language_data): Likewise.
887 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
888 (pascal_language_data): Delete la_emitchar initializer.
889 (pascal_language::emitchar): New member function, implementation
890 from pascal_emit_char.
891 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
892 (rust_language_data): Delete la_emitchar initializer.
893 (rust_language::emitchar): New member function, implementation
894 from rust_emitchar.
895
896 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * ada-lang.c (resolve): Rename to ada_language::post_parser.
899 (ada_language_data): Delete la_post_parser initializer.
900 (ada_language::post_parser): New member function.
901 * c-lang.c (c_language_data): Delete la_post_parser initializer.
902 (cplus_language_data): Likewise.
903 (asm_language_data): Likewise.
904 (minimal_language_data): Likewise.
905 * d-lang.c (d_language_data): Likewise.
906 * f-lang.c (f_language_data): Likewise.
907 * go-lang.c (go_language_data): Likewise.
908 * language.c (unknown_language_data): Likewise.
909 (auto_language_data): Likewise.
910 * language.h (language_data): Delete la_post_parser field.
911 (language_defn::post_parser): New member function.
912 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
913 * objc-lang.c (objc_language_data): Likewise.
914 * opencl-lang.c (opencl_language_data): Likewise.
915 * p-lang.c (pascal_language_data): Likewise.
916 * parse.c (parse_exp_in_context): Update call to post_parser.
917 (null_post_parser): Delete definition.
918 * parser-defs.h (null_post_parser): Delete declaration.
919 * rust-lang.c (rust_language_data): Delete la_post_parser
920 initializer.
921
922 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
923
924 * ada-lang.c (parse): Rename to ada_language::parser.
925 (ada_language_data): Delete la_parser initializer.
926 (ada_language::parser): New member function, implementation from
927 parse.
928 * c-lang.c (c_language_data): Delete la_parser initializer.
929 (cplus_language_data): Likewise.
930 (asm_language_data): Likewise.
931 (minimal_language_data): Likewise.
932 * d-lang.c (d_language_data): Likewise.
933 (d_language::parser): New member function.
934 * f-lang.c (f_language_data): Delete la_parser initializer.
935 (f_language::parser): New member function.
936 * go-lang.c (go_language_data): Delete la_parser initializer.
937 (go_language::parser): New member function.
938 * language.c (unk_lang_parser): Delete.
939 (language_defn::parser): Define new member function.
940 (unknown_language_data): Delete la_parser initializer.
941 (unknown_language::parser): New member function.
942 (auto_language_data): Delete la_parser initializer.
943 (auto_language::parser): New member function.
944 * language.h (language_data): Delete la_parser field.
945 (language_defn::parser): Declare new member function.
946 * m2-lang.c (m2_language_data): Delete la_parser initializer.
947 (m2_language::parser): New member function.
948 * objc-lang.c (objc_language_data): Delete la_parser initializer.
949 * opencl-lang.c (opencl_language_data): Likewise.
950 * p-lang.c (pascal_language_data): Likewise.
951 (pascal_language::parser): New member function.
952 * parse.c (parse_exp_in_context): Update call to parser.
953 * rust-lang.c (rust_language_data): Delete la_parser initializer.
954 (rust_language::parser): New member function.
955
956 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * top.c (print_gdb_configuration): Print --with-python-libdir
959 configuration value.
960
961 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
962
963 * NEWS: Mention change to the alias command.
964
965 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
966
967 * cli/cli-cmds.c (lookup_cmd_for_default_args)
968 (alias_command_completer)
969 (make_alias_options_def_group): New functions.
970 (alias_opts, alias_option_defs): New struct and array.
971 (alias_usage_error): Update usage.
972 (alias_command): Handles optional DEFAULT-ARGS... arguments.
973 Use option framework.
974 (_initialize_cli_cmds): Update alias command help.
975 Update aliases command help.
976 (show_user):
977 Add NULL for new default_args lookup_cmd argument.
978 (valid_command_p): Rename to validate_aliased_command.
979 Add NULL for new default_args lookup_cmd argument. Verify that the
980 aliased_command has no default args.
981 * cli/cli-decode.c (help_cmd): Show aliases definitions.
982 (lookup_cmd_1, lookup_cmd): New argument default_args.
983 (add_alias_cmd):
984 Add NULL for new default_args lookup_cmd argument.
985 (print_help_for_command): Show default args under the layout
986 alias some_alias = some_aliased_cmd some_alias_default_arg.
987 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
988 xfree default_args in destructor.
989 * cli/cli-script.c (process_next_line, do_define_command):
990 Add NULL for new default_args lookup_cmd argument.
991 * command.h: Declare new default_args argument in lookup_cmd
992 and lookup_cmd_1.
993 * completer.c (complete_line_internal_1):
994 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
995 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
996 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
997 Likewise.
998 * infcmd.c (_initialize_infcmd): Likewise.
999 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1000 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1001 * python/py-param.c (add_setshow_generic): Likewise.
1002 * remote.c (_initialize_remote): Likewise.
1003 * top.c (execute_command): Prepend default_args if command has some.
1004 (set_verbose):
1005 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1006 * tracepoint.c (validate_actionline, encode_actions_1):
1007 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1008
1009 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1010
1011 * jit.c (jit_read_descriptor): Use bool as the return type.
1012 (jit_breakpoint_re_set_internal): Use bool as the return type.
1013 Invert the return value logic; return true if the jit breakpoint
1014 has been successfully initialized.
1015 (jit_inferior_init): Update the call to
1016 jit_breakpoint_re_set_internal.
1017
1018 2020-06-22 Pedro Alves <palves@redhat.com>
1019
1020 PR gdb/25939
1021 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1022 Use the current inferior instead. Don't return
1023 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1024 wait again.
1025 * sol-thread.c (sol_thread_target::wait): Don't reference
1026 inferior_ptid.
1027 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1028 (sol_update_thread_list_callback): Use the current inferior's pid
1029 instead of inferior_ptid.
1030
1031 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1032
1033 * procfs.c: Cleanup many comments.
1034
1035 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1036 (AFTER_WATCHFLAG): Replace by value.
1037
1038 (MAIN_PROC_NAME_FORMAT): Inline ...
1039 (create_procinfo): ... here.
1040
1041 (procfs_debug_inferior): Remove SYS_exec handling.
1042 (syscall_is_exec): Likewise.
1043 (procfs_set_exec_trap): Likewise.
1044
1045 (syscall_is_lwp_exit): Inline in callers.
1046 (syscall_is_exit): Likewise.
1047 (syscall_is_exec): Likewise.
1048 (syscall_is_lwp_create): Likewise.
1049
1050 (invalidate_cache): Remove #if 0 code.
1051
1052 (make_signal_thread_runnable): Remove.
1053 (procfs_target::resume): Remove #if 0 code.
1054
1055 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1056
1057 PR gdb/25939
1058 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1059 call ...
1060 (procfs_target::create_inferior): ... here.
1061
1062 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1063
1064 * exec.c (validate_exec_file): Ensure the build-id is up to
1065 date by calling reopen_exec_file (that checks file timestamp
1066 to decide to re-read the file).
1067
1068 2020-06-18 Pedro Alves <palves@redhat.com>
1069
1070 PR gdb/25412
1071 * gdbthread.h (delete_thread, delete_thread_silent)
1072 (find_thread_ptid): Update comments.
1073 * thread.c (current_thread_): New global.
1074 (is_current_thread): Move higher, and reimplement.
1075 (inferior_thread): Reimplement.
1076 (set_thread_exited): Use bool. Add assertions.
1077 (add_thread_silent): Simplify thread-reuse handling by always
1078 calling delete_thread.
1079 (delete_thread): Remove intro comment.
1080 (find_thread_ptid): Skip exited threads.
1081 (switch_to_thread_no_regs): Write to current_thread_.
1082 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1083 INFERIOR_PTID. Clear current_thread_.
1084
1085 2020-06-18 Pedro Alves <palves@redhat.com>
1086
1087 * aix-thread.c (pd_update): Use switch_to_thread.
1088
1089 2020-06-18 Pedro Alves <palves@redhat.com>
1090
1091 * ravenscar-thread.c (ravenscar_thread_target): Update.
1092 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1093 (ravenscar_thread_target::add_active_thread): ... this. Don't
1094 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1095 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1096
1097 2020-06-18 Pedro Alves <palves@redhat.com>
1098
1099 * nat/windows-nat.c (current_windows_thread): Remove.
1100 * nat/windows-nat.h (current_windows_thread): Remove.
1101 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1102 Adjust.
1103 (display_selectors): Adjust to fetch the current
1104 windows_thread_info based on inferior_ptid.
1105 (fake_create_process): No longer write to current_windows_thread.
1106 (windows_nat_target::get_windows_debug_event):
1107 Don't set inferior_ptid or current_windows_thread.
1108 (windows_nat_target::wait): Adjust to not rely on
1109 current_windows_thread.
1110 (do_initial_windows_stuff): Now a method of windows_nat_target.
1111 Switch to the last_ptid thread.
1112 (windows_nat_target::attach): Adjust.
1113 (windows_nat_target::detach): Use switch_to_no_thread instead of
1114 writing to inferior_ptid directly.
1115 (windows_nat_target::create_inferior): Adjust.
1116
1117 2020-06-18 Pedro Alves <palves@redhat.com>
1118
1119 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1120
1121 2020-06-18 Pedro Alves <palves@redhat.com>
1122
1123 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1124 after creating it, instead of writing to inferior_ptid. Don't
1125 write to inferior_ptid.
1126
1127 2020-06-18 Pedro Alves <palves@redhat.com>
1128
1129 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1130
1131 2020-06-18 Pedro Alves <palves@redhat.com>
1132
1133 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1134 it, instead of writing to inferior_ptid.
1135
1136 2020-06-18 Pedro Alves <palves@redhat.com>
1137
1138 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1139 to inferior_ptid.
1140
1141 2020-06-18 Pedro Alves <palves@redhat.com>
1142
1143 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1144 instead of writing to inferior_ptid directly.
1145
1146 2020-06-18 Pedro Alves <palves@redhat.com>
1147
1148 * corelow.c (core_target::close): Use switch_to_no_thread instead
1149 of writing to inferior_ptid directly.
1150 (add_to_thread_list, core_target_open): Use switch_to_thread
1151 instead of writing to inferior_ptid directly.
1152
1153 2020-06-18 Pedro Alves <palves@redhat.com>
1154
1155 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1156 inferior_ptid.
1157 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1158 inferior_ptid.
1159 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1160 inferior_ptid directly.
1161 (darwin_nat_target::init_thread_list): Switch to thread, instead
1162 of writing to inferior_ptid.
1163 (darwin_nat_target::attach): Don't write to inferior_ptid.
1164 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1165
1166 2020-06-18 Pedro Alves <palves@redhat.com>
1167
1168 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1169 thread.
1170 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1171 Instead use switch_to_thread.
1172 (gnu_nat_target::detach): Use switch_to_no_thread
1173 instead of writing to inferior_ptid directly. Used passed-in
1174 inferior instead of looking up the inferior by pid.
1175
1176 2020-06-18 Pedro Alves <palves@redhat.com>
1177
1178 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1179 inferior_ptid.
1180
1181 2020-06-18 Pedro Alves <palves@redhat.com>
1182
1183 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1184 inferior_ptid.
1185 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1186 thread.
1187 (nto_procfs_target::detach): Avoid referencing
1188 inferior_ptid. Use switch_to_no_thread instead of writing to
1189 inferior_ptid directly.
1190 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1191 instead of writing to inferior_ptid directly.
1192 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1193 to thread.
1194
1195 2020-06-18 Pedro Alves <palves@redhat.com>
1196
1197 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1198 after creating it, instead of writing to inferior_ptid.
1199 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1200 to inferior_ptid directly.
1201 (gdbsim_target::wait): Don't write to inferior_ptid.
1202
1203 2020-06-18 Pedro Alves <palves@redhat.com>
1204
1205 * remote.c (remote_target::remote_notice_new_inferior): Use
1206 switch_to_thread instead of writing to inferior_ptid directly.
1207 (remote_target::add_current_inferior_and_thread): Use
1208 switch_to_no_thread instead of writing to inferior_ptid directly.
1209 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1210 and switch_to_thread instead of using set_current_inferior or
1211 writing to inferior_ptid directly.
1212
1213 2020-06-18 Pedro Alves <palves@redhat.com>
1214
1215 * tracectf.c (ctf_target_open): Switch to added thread instead of
1216 writing to inferior_ptid directly.
1217 (ctf_target::close): Use switch_to_no_thread instead of writing to
1218 inferior_ptid directly.
1219
1220 2020-06-18 Pedro Alves <palves@redhat.com>
1221
1222 * tracefile-tfile.c (tfile_target_open): Don't write to
1223 inferior_ptid directly, instead switch to added thread.
1224 (tfile_target::close): Use switch_to_no_thread instead of writing
1225 to inferior_ptid directly.
1226
1227 2020-06-18 Pedro Alves <palves@redhat.com>
1228
1229 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1230 (procfs_target::detach): Use switch_to_no_thread
1231 instead of writing to inferior_ptid directly.
1232 (do_attach): Change return type to void. Switch to the added
1233 thread.
1234 (procfs_target::create_inferior): Switch to the added thread.
1235 (procfs_do_thread_registers): Don't write to inferior_ptid.
1236
1237 2020-06-18 Pedro Alves <palves@redhat.com>
1238
1239 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1240 of writing to inferior_ptid.
1241 (scoped_restore_exited_inferior): Delete.
1242 (handle_vfork_child_exec_or_exit): Simplify using
1243 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1244 instead of writing to inferior_ptid.
1245 (THREAD_STOPPED_BY): Delete.
1246 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1247 (thread_stopped_by_hw_breakpoint): Delete.
1248 (save_waitstatus): Use
1249 scoped_restore_current_thread+switch_to_thread, and call
1250 target_stopped_by_watchpoint instead of
1251 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1252 instead of thread_stopped_by_sw_breakpoint, and
1253 target_stopped_by_hw_breakpoint instead of
1254 thread_stopped_by_hw_breakpoint.
1255 (handle_inferior_event)
1256 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1257 inferior_ptid directly, nor
1258 set_current_inferior/set_current_program_space. Use
1259 switch_to_thread / switch_to_inferior_no_thread instead.
1260
1261 2020-06-18 Pedro Alves <palves@redhat.com>
1262
1263 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1264 instead of writing to inferior_ptid.
1265
1266 2020-06-18 Pedro Alves <palves@redhat.com>
1267
1268 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1269 added thread.
1270 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1271 to the added thread.
1272 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1273 instead of writing to inferior_ptid.
1274
1275 2020-06-18 Pedro Alves <palves@redhat.com>
1276
1277 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1278 (register_to_value_test): Mock a program_space too. Heap-allocate
1279 the address space. Don't write to inferior_ptid. Use
1280 switch_to_thread instead.
1281
1282 2020-06-18 Pedro Alves <palves@redhat.com>
1283
1284 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1285 Delete.
1286 (find_signalled_thread()): New, factored out from
1287 linux_make_corefile_notes and adjusted to handle exited threads.
1288 (linux_make_corefile_notes): Adjust to use the new
1289 find_signalled_thread.
1290
1291 2020-06-18 Pedro Alves <palves@redhat.com>
1292
1293 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1294 of saving/restoring inferior_ptid.
1295
1296 2020-06-17 Tom Tromey <tom@tromey.com>
1297
1298 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1299 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1300 declare.
1301 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1302
1303 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1304
1305 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1306 of partial symtabs.
1307
1308 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1309
1310 * regformats/reg-arm.dat: Remove.
1311 * regformats/reg-bfin.dat: Remove.
1312 * regformats/reg-cris.dat: Remove.
1313 * regformats/reg-crisv32.dat: Remove.
1314 * regformats/reg-m32r.dat: Remove.
1315 * regformats/reg-tilegx.dat: Remove.
1316 * regformats/reg-tilegx32.dat: Remove.
1317
1318 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1319
1320 * features/Makefile (WHICH): Remove arm files.
1321 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1322 * regformats/arm/arm-with-neon.dat: Remove.
1323 * regformats/arm/arm-with-vfpv2.dat: Remove.
1324 * regformats/arm/arm-with-vfpv3.dat: Remove.
1325
1326 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1327
1328 * features/Makefile (XMLTOC): Remove rx.xml.
1329
1330 2020-06-17 Pedro Alves <palves@redhat.com>
1331
1332 * gdbthread.h (thread_control_state) <trap_expected> Update
1333 comments.
1334
1335 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1336
1337 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1338 ada_language::lookup_symbol_nonlocal.
1339 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1340 (ada_language::lookup_symbol_nonlocal): New member function,
1341 implementation from ada_lookup_symbol_nonlocal.
1342 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1343 initializer.
1344 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1345 initializer.
1346 (cplus_language::lookup_symbol_nonlocal): New member function.
1347 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1348 (minimal_language_data) Likewise.
1349 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1350 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1351 initializer.
1352 (d_language::lookup_symbol_nonlocal): New member function.
1353 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1354 initializer.
1355 (f_language::lookup_symbol_nonlocal): New member function.
1356 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1357 initializer.
1358 * language.c (unknown_language_data): Likewise.
1359 (auto_language_data): Likewise.
1360 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1361 field.
1362 (language_defn::lookup_symbol_nonlocal): New member function.
1363 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1364 initializer.
1365 * objc-lang.c (objc_language_data): Likewise.
1366 * opencl-lang.c (opencl_language_data): Likewise.
1367 * p-lang.c (pascal_language_data): Likewise.
1368 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1369 rust_language::lookup_symbol_nonlocal.
1370 (rust_language_data): Delete la_lookup_symbol_nonlocal
1371 initializer.
1372 (rust_language::lookup_symbol_nonlocal): New member function,
1373 implementation from rust_lookup_symbol_nonlocal.
1374 * symtab.c (lookup_symbol_aux): Update call to
1375 lookup_symbol_nonlocal.
1376 (basic_lookup_symbol_nonlocal): Rename to...
1377 (language_defn::lookup_symbol_nonlocal): ...this, and update
1378 header comment. Remove language_defn parameter, and replace with
1379 uses of `this'.
1380 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1381
1382 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1383
1384 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1385 initializer.
1386 (ada_language::value_print_inner): New member function.
1387 * c-lang.c (c_language_data): Delete la_value_print_inner
1388 initializer.
1389 (cplus_language_data): Likewise.
1390 (asm_language_data): Likewise.
1391 (minimal_language_data): Likewise.
1392 * d-lang.c (d_language_data): Likewise.
1393 (d_language::value_print_inner): New member function.
1394 * f-lang.c (f_language_data): Delete la_value_print_inner
1395 initializer.
1396 (f_language::value_print_inner): New member function.
1397 * f-lang.h (f_value_print_innner): Rename to...
1398 (f_value_print_inner): ...this (note spelling of 'inner').
1399 * f-valprint.c (f_value_print_innner): Rename to...
1400 (f_value_print_inner): ...this (note spelling of 'inner').
1401 * go-lang.c (go_language_data): Delete la_value_print_inner
1402 initializer.
1403 (go_language::value_print_inner): New member function.
1404 * language.c (language_defn::value_print_inner): Define new member
1405 function.
1406 (unk_lang_value_print_inner): Delete.
1407 (unknown_language_data): Delete la_value_print_inner initializer.
1408 (unknown_language::value_print_inner): New member function.
1409 (auto_language_data): Delete la_value_print_inner initializer.
1410 (auto_language::value_print_inner): New member function.
1411 * language.h (language_data): Delete la_value_print_inner field.
1412 (language_defn::value_print_inner): Delcare new member function.
1413 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1414 initializer.
1415 (m2_language::value_print_inner): New member function.
1416 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1417 initializer.
1418 * opencl-lang.c (opencl_language_data): Likewise.
1419 * p-lang.c (pascal_language_data): Likewise.
1420 (pascal_language::value_print_inner): New member function.
1421 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1422 initializer.
1423 (rust_language::value_print_inner): New member function.
1424 * valprint.c (do_val_print): Update call to value_print_inner.
1425
1426 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * ada-lang.c (ada_language_data): Delete la_value_print
1429 initializer.
1430 (ada_language::value_print): New member function.
1431 * c-lang.c (c_language_data): Delete la_value_print initializer.
1432 (cplus_language_data): Likewise.
1433 (asm_language_data): Likewise.
1434 (minimal_language_data): Likewise.
1435 * d-lang.c (d_language_data): Likewise.
1436 * f-lang.c (f_language_data): Likewise.
1437 * go-lang.c (go_language_data): Likewise.
1438 * language.c (unk_lang_value_print): Delete.
1439 (language_defn::value_print): Define new member function.
1440 (unknown_language_data): Delete la_value_print initializer.
1441 (unknown_language::value_print): New member function.
1442 (auto_language_data): Delete la_value_print initializer.
1443 (auto_language::value_print): New member function.
1444 * language.h (language_data): Delete la_value_print field.
1445 (language_defn::value_print): Declare new member function.
1446 (LA_VALUE_PRINT): Update call to value_print.
1447 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1448 * objc-lang.c (objc_language_data): Likewise.
1449 * opencl-lang.c (opencl_language_data): Likewise.
1450 * p-lang.c (pascal_language_data): Likewise.
1451 (pascal_language::value_print): New member function.
1452 * rust-lang.c (rust_language_data): Delete la_value_print
1453 initializer.
1454
1455 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * ada-lang.c (ada_watch_location_expression): Rename to
1458 ada_language::watch_location_expression.
1459 (ada_language_data): Delete la_watch_location_expression
1460 initializer.
1461 (ada_language::watch_location_expression): New member function,
1462 implementation from ada_watch_location_expression.
1463 * breakpoint.c (watch_command_1): Update call to
1464 watch_location_expression.
1465 * c-lang.c (c_watch_location_expression): Rename to
1466 language_defn::watch_location_expression.
1467 (c_language_data): Delete la_watch_location_expression
1468 initializer.
1469 (cplus_language_data): Likewise.
1470 (asm_language_data): Likewise.
1471 (minimal_language_data): Likewise.
1472 * c-lang.h (c_watch_location_expression): Delete declaration.
1473 * d-lang.c (d_language_data): Delete la_watch_location_expression
1474 initializer.
1475 * f-lang.c (f_language_data): Likewise.
1476 * go-lang.c (go_language_data): Likewise.
1477 * language.c (language_defn::watch_location_expression): Member
1478 function implementation from c_watch_location_expression.
1479 (unknown_language_data): Delete la_watch_location_expression
1480 initializer.
1481 (auto_language_data): Likewise.
1482 * language.h (language_data): Delete la_watch_location_expression
1483 field.
1484 (language_defn::watch_location_expression): Declare new member
1485 function.
1486 * m2-lang.c (m2_language_data): Delete
1487 la_watch_location_expression initializer.
1488 * objc-lang.c (objc_language_data): Likewise.
1489 * opencl-lang.c (opencl_language_data): Likewise.
1490 * p-lang.c (pascal_language_data): Likewise.
1491 * rust-lang.c (rust_watch_location_expression): Rename to
1492 rust_language::watch_location_expression.
1493 (rust_language_data): Delete la_watch_location_expression
1494 initializer.
1495 (rust_language::watch_location_expression): New member function,
1496 implementation from rust_watch_location_expression.
1497
1498 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1501 ada_language::collect_symbol_completion_matches.
1502 (ada_language_data): Delete la_collect_symbol_completion_matches
1503 initializer.
1504 (ada_language::collect_symbol_completion_matches): New member
1505 function, implementation from
1506 ada_collect_symbol_completion_matches.
1507 * c-lang.c (c_language_data): Delete
1508 la_collect_symbol_completion_matches initializer.
1509 (cplus_language_data): Likewise.
1510 (asm_language_data): Likewise.
1511 (minimal_language_data): Likewise.
1512 * d-lang.c (d_language_data): Likewise.
1513 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1514 f_language::collect_symbol_completion_matches.
1515 (f_language_data): Delete la_collect_symbol_completion_matches
1516 initializer.
1517 (f_language::collect_symbol_completion_matches) New member
1518 function, implementation from f_collect_symbol_completion_matches.
1519 * go-lang.c (go_language_data): Delete
1520 la_collect_symbol_completion_matches initializer.
1521 * language.c (unknown_language_data): Likewise.
1522 (auto_language_data): Likewise.
1523 * language.h (language_data): Delete
1524 la_collect_symbol_completion_matches field.
1525 (language_defn::collect_symbol_completion_matches): New member
1526 function.
1527 * m2-lang.c (m2_language_data): Delete
1528 la_collect_symbol_completion_matches initializer.
1529 * objc-lang.c (objc_language_data): Likewise.
1530 * opencl-lang.c (opencl_language_data): Likewise.
1531 * p-lang.c (pascal_language_data): Likewise.
1532 * rust-lang.c (rust_language_data): Likewise.
1533 * symtab.c (default_collect_symbol_completion_matches): Delete.
1534 (collect_symbol_completion_matches): Update call to
1535 collect_symbol_completion_matches.
1536 (collect_symbol_completion_matches_type): Likewise.
1537 * symtab.h (default_collect_symbol_completion_matches): Delete
1538 declaration.
1539
1540 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1541
1542 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1543 (ada_language_data): Delete la_word_break_characters initializer.
1544 (ada_language::word_break_characters): New member function.
1545 * c-lang.c (c_language_data): Delete la_word_break_characters
1546 initializer.
1547 (cplus_language_data): Likewise.
1548 (asm_language_data): Likewise.
1549 (minimal_language_data): Likewise.
1550 * completer.c: Update global comment.
1551 (advance_to_expression_complete_word_point): Update call to
1552 word_break_characters.
1553 (complete_files_symbols): Likewise.
1554 (complete_line_internal_1): Likewise.
1555 (default_completer_handle_brkchars): Likewise.
1556 (skip_quoted_chars): Likewise.
1557 * d-lang.c (d_language_data): Delete la_word_break_characters
1558 initializer.
1559 * f-lang.c (f_word_break_characters): Delete.
1560 (f_language_data): Delete la_word_break_characters initializer.
1561 (f_language::word_break_characters): New member function.
1562 * go-lang.c (go_language_data): Delete la_word_break_characters
1563 initializer.
1564 * language.c (unknown_language_data): Likewise.
1565 (auto_language_data): Likewise.
1566 * language.h (default_word_break_characters): Move declaration to
1567 earlier in the file.
1568 (language_data): Delete la_word_break_characters field.
1569 (language_defn::word_break_characters): New member function.
1570 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1571 initializer.
1572 * objc-lang.c (objc_language_data): Likewise.
1573 * opencl-lang.c (opencl_language_data): Likewise.
1574 * p-lang.c (pascal_language_data): Likewise.
1575 * rust-lang.c (rust_language_data): Likewise.
1576
1577 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1580 (ada_language_data): Delete la_get_symbol_name_matcher
1581 initializer.
1582 (language_defn::get_symbol_name_matcher_inner): New member
1583 function.
1584 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1585 initializer.
1586 (cplus_language_data): Likewise.
1587 (cplus_language::get_symbol_name_matcher_inner): New member
1588 function.
1589 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1590 (minimal_language_data): Likewise.
1591 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1592 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1593 initializer.
1594 * dictionary.c (iter_match_first_hashed): Update call to
1595 get_symbol_name_matcher.
1596 (iter_match_next_hashed): Likewise.
1597 (iter_match_next_linear): Likewise.
1598 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1599 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1600 initializer.
1601 (f_language::get_symbol_name_matcher_inner): New member function.
1602 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1603 initializer.
1604 * language.c (default_symbol_name_matcher): Update header comment,
1605 make static.
1606 (language_defn::get_symbol_name_matcher): New definition.
1607 (language_defn::get_symbol_name_matcher_inner): Likewise.
1608 (get_symbol_name_matcher): Delete.
1609 (unknown_language_data): Delete la_get_symbol_name_matcher
1610 initializer.
1611 (auto_language_data): Likewise.
1612 * language.h (language_data): Delete la_get_symbol_name_matcher
1613 field.
1614 (language_defn::get_symbol_name_matcher): New member function.
1615 (language_defn::get_symbol_name_matcher_inner): Likewise.
1616 (default_symbol_name_matcher): Delete declaration.
1617 * linespec.c (find_methods): Update call to
1618 get_symbol_name_matcher.
1619 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1620 initializer.
1621 * minsyms.c (lookup_minimal_symbol): Update call to
1622 get_symbol_name_matcher.
1623 (iterate_over_minimal_symbols): Likewise.
1624 * objc-lang.c (objc_language_data): Delete
1625 la_get_symbol_name_matcher initializer.
1626 * opencl-lang.c (opencl_language_data): Likewise.
1627 * p-lang.c (pascal_language_data): Likewise.
1628 * psymtab.c (psymbol_name_matches): Update call to
1629 get_symbol_name_matcher.
1630 * rust-lang.c (rust_language_data): Delete
1631 la_get_symbol_name_matcher initializer.
1632 * symtab.c (symbol_matches_search_name): Update call to
1633 get_symbol_name_matcher.
1634 (compare_symbol_name): Likewise.
1635
1636 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1637
1638 * ada-lang.c (ada_language_data): Delete la_compute_program
1639 initializer.
1640 * c-lang.c (c_language_data): Likewise.
1641 (c_language::compute_program): New member function.
1642 (cplus_language_data): Delete la_compute_program initializer.
1643 (cplus_language::compute_program): New member function.
1644 (asm_language_data): Delete la_compute_program initializer.
1645 (minimal_language_data): Likewise.
1646 * c-lang.h (c_compute_program): Update comment.
1647 (cplus_compute_program): Likewise.
1648 * compile/compile-c-support.c (c_compute_program): Likewise.
1649 (cplus_compute_program): Likewise.
1650 * compile/compile.c (compile_to_object): Update call to
1651 la_compute_program.
1652 * d-lang.c (d_language_data): Delete la_compute_program
1653 initializer.
1654 * f-lang.c (f_language_data): Likewise.
1655 * go-lang.c (go_language_data): Likewise.
1656 * language.c (unknown_language_data): Likewise.
1657 (auto_language_data): Likewise.
1658 * language.h (language_data): Delete la_compute_program field.
1659 (language_defn::compute_program): New member function.
1660 * m2-lang.c (m2_language_data): Delete la_compute_program
1661 initializer.
1662 * objc-lang.c (objc_language_data): Likewise.
1663 * opencl-lang.c (opencl_language_data): Likewise.
1664 * p-lang.c (pascal_language_data): Likewise.
1665 * rust-lang.c (rust_language_data): Likewise.
1666
1667 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * ada-lang.c (ada_language_data) Delete
1670 la_class_name_from_physname initializer.
1671 * c-lang.c (c_language_data): Likewise.
1672 (cplus_language_data): Likewise.
1673 (cplus_language::class_name_from_physname): New member function.
1674 (asm_language_data): Delete la_class_name_from_physname
1675 initializer.
1676 (minimal_language_data): Likewise.
1677 * d-lang.c (d_language_data): Likewise.
1678 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1679 method on language_defn class.
1680 (guess_full_die_structure_name): Likewise.
1681 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1682 initializer.
1683 * go-lang.c (go_language_data): Likewise.
1684 * language.c (language_class_name_from_physname): Delete.
1685 (unk_lang_class_name): Delete.
1686 (unknown_language_data): Delete la_class_name_from_physname
1687 initializer.
1688 (auto_language_data): Likewise.
1689 * language.h (language_data): Delete la_class_name_from_physname
1690 field.
1691 (language_defn::class_name_from_physname): New function.
1692 (language_class_name_from_physname): Delete declaration.
1693 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1694 initializer.
1695 * objc-lang.c (objc_language_data): Likewise.
1696 * opencl-lang.c (opencl_language_data): Likewise.
1697 * p-lang.c (pascal_language_data): Likewise.
1698 * rust-lang.c (rust_language_data): Likewise.
1699
1700 2020-06-16 Tom Tromey <tom@tromey.com>
1701
1702 * tui/tui-data.h (STATUS_NAME): New macro.
1703 * tui/tui-layout.c (tui_remove_some_windows)
1704 (initialize_known_windows, tui_register_window)
1705 (tui_layout_split::remove_windows, initialize_layouts)
1706 (tui_new_layout_command): Don't use hard-coded window names.
1707
1708 2020-06-16 Tom Tromey <tom@tromey.com>
1709
1710 PR tui/25348:
1711 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1712 tui_initialize_readline. Only run once. Call rl_initialize.
1713 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1714 tui_initialize_readline.
1715 * tui/tui-io.c (tui_setup_io): Call
1716 tui_ensure_readline_initialized.
1717 * tui/tui-interp.c (tui_interp::init): Update.
1718
1719 2020-06-16 Tom Tromey <tom@tromey.com>
1720
1721 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1722 Also preserve the status window.
1723
1724 2020-06-16 Tom Tromey <tom@tromey.com>
1725
1726 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1727 where m_window==nullptr.
1728
1729 2020-06-15 Tom Tromey <tromey@adacore.com>
1730
1731 * windows-nat.c (windows_nat::handle_output_debug_string):
1732 Update.
1733 (windows_nat::handle_ms_vc_exception): Update.
1734 * target.h (target_read_string): Change API.
1735 * target.c (target_read_string): Change API.
1736 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1737 Update.
1738 * solib-frv.c (frv_current_sos): Update.
1739 * solib-dsbt.c (dsbt_current_sos): Update.
1740 * solib-darwin.c (darwin_current_sos): Update.
1741 * linux-thread-db.c (inferior_has_bug): Update.
1742 * expprint.c (print_subexp_standard): Update.
1743 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1744 (ada_exception_message_1): Update.
1745
1746 2020-06-15 Tom Tromey <tromey@adacore.com>
1747
1748 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1749
1750 2020-06-15 Tom Tromey <tromey@adacore.com>
1751
1752 * valprint.c (read_string): Update comment.
1753 * target.c (MIN): Remove.
1754 (target_read_string): Rewrite.
1755
1756 2020-06-15 Tom Tromey <tromey@adacore.com>
1757
1758 * corefile.c (read_memory_string): Remove.
1759 * ada-valprint.c (ada_value_print_ptr): Update.
1760 * ada-lang.h (ada_tag_name): Change return type.
1761 * ada-lang.c (type_from_tag): Update.
1762 (ada_tag_name_from_tsd): Change return type. Use
1763 target_read_string.
1764 (ada_tag_name): Likewise.
1765 * gdbcore.h (read_memory_string): Don't declare.
1766
1767 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
1768
1769 * symtab.c (rbreak_command): Ignore Windows drive colon.
1770
1771 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
1772
1773 * NEWS: Mention removed GDBserver host support.
1774
1775 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
1776
1777 * features/riscv/rebuild-csr-xml.sh: Updated.
1778
1779 2020-06-11 Tom Tromey <tom@tromey.com>
1780
1781 PR gdb/18318:
1782 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1783
1784 2020-06-09 Jonny Grant <jg@jguk.org>
1785 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1786
1787 * main.c (captured_main_1): Don't print new line after help.
1788 (print_gdb_help): add mailing list and IRC channel information
1789 to --help. Add new lines between items in the footer. Remove
1790 quotes around bug url.
1791
1792 2020-06-11 Keith Seitz <keiths@redhat.com>
1793
1794 PR gdb/21356
1795 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1796 Resolve typedefs for type length calculations.
1797
1798 2020-06-10 Tom de Vries <tdevries@suse.de>
1799
1800 PR ada/24713
1801 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1802 (write_psymbols): Enable .gdb_index for ada.
1803 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1804 ada.
1805
1806 2020-06-10 Tom de Vries <tdevries@suse.de>
1807
1808 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1809 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1810 namei" instead of "const char *name" argument.
1811 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1812 dw2_symtab_iter_init.
1813
1814 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1815
1816 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1817 to use type::field and field::type instead.
1818
1819 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1820
1821 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1822 to use field::type instead.
1823
1824 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1825
1826 * gdbtypes.h (struct field) <type, set_type>: New methods.
1827 Rename `type` field to...
1828 <m_type>: ... this. Change references throughout to use type or
1829 set_type methods.
1830 (FIELD_TYPE): Use field::type. Change call sites that modify
1831 the field's type to use field::set_type instead.
1832
1833 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1834
1835 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1836 to use type::index_type instead.
1837
1838 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1839
1840 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1841 methods.
1842 (TYPE_INDEX_TYPE): Use type::index_type.
1843 * gdbtypes.c (create_array_type_with_stride): Likewise.
1844
1845 2020-06-07 Tom Tromey <tom@tromey.com>
1846
1847 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1848 parameter.
1849 (generic_value_print): Update.
1850
1851 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 Revert commit 982a38f60b0.
1854 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1855
1856 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1859 avoid use after free.
1860
1861 2020-06-05 Tom de Vries <tdevries@suse.de>
1862
1863 * NEWS: Fix typos.
1864
1865 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1868 the per_bfd object.
1869 (dwarf2_read_debug_names): Likewise.
1870 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1871 object when re-using a per_bfd object with an index.
1872
1873 2020-06-03 Tom de Vries <tdevries@suse.de>
1874
1875 PR symtab/26046
1876 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1877 children for C++.
1878 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1879 DW_TAG_subprogram.
1880
1881 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1882
1883 * ada-lang.c (ada_language_data): Delete skip_trampoline
1884 initializer.
1885 * c-lang.c (c_language_data): Likewise.
1886 (cplus_language_data): Likewise.
1887 (cplus_language::skip_trampoline): New member function.
1888 (asm_language_data): Delete skip_trampoline initializer.
1889 (minimal_language_data): Likewise.
1890 * d-lang.c (d_language_data): Likewise.
1891 * f-lang.c (f_language_data): Likewise.
1892 * go-lang.c (go_language_data): Likewise.
1893 * language.c (unk_lang_trampoline): Delete function.
1894 (skip_language_trampoline): Update.
1895 (unknown_language_data): Delete skip_trampoline initializer.
1896 (auto_language_data): Likewise.
1897 * language.h (language_data): Delete skip_trampoline field.
1898 (language_defn::skip_trampoline): New function.
1899 * m2-lang.c (m2_language_data): Delete skip_trampoline
1900 initializer.
1901 * objc-lang.c (objc_skip_trampoline): Delete function, move
1902 implementation to objc_language::skip_trampoline.
1903 (objc_language_data): Delete skip_trampoline initializer.
1904 (objc_language::skip_trampoline): New member function with
1905 implementation from objc_skip_trampoline.
1906 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1907 initializer.
1908 * p-lang.c (pascal_language_data): Likewise.
1909 * rust-lang.c (rust_language_data): Likewise.
1910
1911 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1914 (ada_language::demangle): New member function.
1915 * c-lang.c (c_language_data): Delete la_demangle initializer.
1916 (cplus_language_data): Delete la_demangle initializer.
1917 (cplus_language::demangle): New member function.
1918 (asm_language_data): Delete la_demangle initializer.
1919 (minimal_language_data): Delete la_demangle initializer.
1920 * d-lang.c (d_language_data): Delete la_demangle initializer.
1921 (d_language::demangle): New member function.
1922 * f-lang.c (f_language_data): Delete la_demangle initializer.
1923 (f_language::demangle): New member function.
1924 * go-lang.c (go_language_data): Delete la_demangle initializer.
1925 (go_language::demangle): New member function.
1926 * language.c (language_demangle): Update.
1927 (unk_lang_demangle): Delete.
1928 (unknown_language_data): Delete la_demangle initializer.
1929 (unknown_language::demangle): New member function.
1930 (auto_language_data): Delete la_demangle initializer.
1931 (auto_language::demangle): New member function.
1932 * language.h (language_data): Delete la_demangle field.
1933 (language_defn::demangle): New function.
1934 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1935 * objc-lang.c (objc_language_data): Delete la_demangle
1936 initializer.
1937 (objc_language::demangle): New member function.
1938 * opencl-lang.c (opencl_language_data): Delete la_demangle
1939 initializer.
1940 * p-lang.c (pascal_language_data): Likewise.
1941 * rust-lang.c (rust_language_data): Likewise.
1942 (rust_language::demangle): New member function.
1943
1944 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * ada-lang.c (ada_language_data): Delete la_print_type
1947 initializer.
1948 (ada_language::print_type): New member function.
1949 * c-lang.c (c_language_data): Delete la_print_type initializer.
1950 (c_language::print_type): New member function.
1951 (cplus_language_data): Delete la_print_type initializer.
1952 (cplus_language::print_type): New member function.
1953 (asm_language_data): Delete la_print_type initializer.
1954 (asm_language::print_type): New member function.
1955 (minimal_language_data): Delete la_print_type initializer.
1956 (minimal_language::print_type): New member function.
1957 * d-lang.c (d_language_data): Delete la_print_type initializer.
1958 (d_language::print_type): New member function.
1959 * f-lang.c (f_language_data): Delete la_print_type initializer.
1960 (f_language::print_type): New member function.
1961 * go-lang.c (go_language_data): Delete la_print_type initializer.
1962 (go_language::print_type): New member function.
1963 * language.c (unk_lang_print_type): Delete.
1964 (unknown_language_data): Delete la_print_type initializer.
1965 (unknown_language::print_type): New member function.
1966 (auto_language_data): Delete la_print_type initializer.
1967 (auto_language::print_type): New member function.
1968 * language.h (language_data): Delete la_print_type field.
1969 (language_defn::print_type): New function.
1970 (LA_PRINT_TYPE): Update.
1971 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1972 (m2_language::print_type): New member function.
1973 * objc-lang.c (objc_language_data): Delete la_print_type
1974 initializer.
1975 (objc_language::print_type): New member function.
1976 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1977 to opencl_language::print_type.
1978 (opencl_language_data): Delete la_print_type initializer.
1979 (opencl_language::print_type): New member function, implementation
1980 from opencl_print_type.
1981 * p-lang.c (pascal_language_data): Delete la_print_type
1982 initializer.
1983 (pascal_language::print_type): New member function.
1984 * rust-lang.c (rust_print_type): Delete, implementation moved to
1985 rust_language::print_type.
1986 (rust_language_data): Delete la_print_type initializer.
1987 (rust_language::print_type): New member function, implementation
1988 from rust_print_type.
1989
1990 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1993 implementation moves to...
1994 (ada_language::sniff_from_mangled_name): ...here. Update return
1995 type.
1996 (ada_language_data): Delete la_sniff_from_mangled_name
1997 initializer.
1998 * c-lang.c (c_language_data): Likewise.
1999 (cplus_language_data): Likewise.
2000 (cplus_language::sniff_from_mangled_name): New member function,
2001 implementation taken from gdb_sniff_from_mangled_name.
2002 (asm_language_data): Delete la_sniff_from_mangled_name
2003 initializer.
2004 (minimal_language_data): Likewise.
2005 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2006 implementation moves to cplus_language::sniff_from_mangled_name.
2007 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2008 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2009 moves to...
2010 (d_language::sniff_from_mangled_name): ...here.
2011 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2012 * f-lang.c (f_language_data): Likewise.
2013 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2014 moves to...
2015 (go_language::sniff_from_mangled_name): ...here.
2016 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2017 * language.c (language_sniff_from_mangled_name): Delete.
2018 (unknown_language_data): Delete la_sniff_from_mangled_name
2019 initializer.
2020 (auto_language_data): Likewise.
2021 * language.h (language_data): Delete la_sniff_from_mangled_name
2022 field.
2023 (language_defn::sniff_from_mangled_name): New function.
2024 (language_sniff_from_mangled_name): Delete declaration.
2025 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2026 field.
2027 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2028 implementation moves to...
2029 (objc_language::sniff_from_mangled_name): ...here.
2030 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2031 * opencl-lang.c (opencl_language_data): Likewise.
2032 * p-lang.c (pascal_language_data): Likewise.
2033 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2034 implementation moves to...
2035 (rust_language::sniff_from_mangled_name): ...here.
2036 (rust_language_data): Delete la_sniff_from_mangled_name
2037 initializer.
2038 * symtab.c (symbol_find_demangled_name): Call
2039 sniff_from_mangled_name member function.
2040
2041 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2044 initializer.
2045 * c-lang.c (c_language_data): Likewise.
2046 (cplus_language_data): Likewise.
2047 (cplus_language::search_name_hash): New member function.
2048 (asm_language_data): Delete la_search_name_hash initializer.
2049 (minimal_language_data): Likewise.
2050 * d-lang.c (d_language_data): Likewise.
2051 * dictionary.c (default_search_name_hash): Rename to...
2052 (language_defn::search_name_hash): ...this.
2053 * f-lang.c (f_language_data): Likewise.
2054 (f_language::search_name_hash): New member function.
2055 * go-lang.c (go_language_data): Delete la_search_name_hash
2056 initializer.
2057 * language.c (unknown_language_data): Likewise.
2058 (auto_language_data): Likewise.
2059 * language.h (struct language_data): Delete la_search_name_hash
2060 field.
2061 (language_defn::search_name_hash): Declare new member function.
2062 (default_search_name_hash): Delete declaration.
2063 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2064 initializer.
2065 * objc-lang.c (objc_language_data): Likewise.
2066 * opencl-lang.c (opencl_language_data): Likewise.
2067 * p-lang.c (pascal_language_data): Likewise.
2068 * rust-lang.c (rust_language_data): Likewise.
2069 * symtab.c (search_name_hash): Update call.
2070
2071 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2072
2073 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2074 initializer.
2075 * c-lang.c (class compile_instance): Declare.
2076 (c_language_data): Delete la_get_compile_instance initializer.
2077 (c_language::get_compile_instance): New member function.
2078 (cplus_language_data): Delete la_get_compile_instance initializer.
2079 (cplus_language::get_compile_instance): New member function.
2080 (asm_language_data): Delete la_get_compile_instance initializer.
2081 (minimal_language_data): Likewise.
2082 * c-lang.h (c_get_compile_context): Update comment.
2083 (cplus_get_compile_context): Update comment.
2084 * compile/compile.c (compile_to_object): Update calls, don't rely
2085 on function pointer being NULL.
2086 * d-lang.c (d_language_data): Delete la_get_compile_instance
2087 initializer.
2088 * f-lang.c (f_language_data): Likewise.
2089 * go-lang.c (go_language_data): Likewise.
2090 * language.c (unknown_language_data): Likewise.
2091 (auto_language_data): Likewise.
2092 * language.h (language_data): Delete la_get_compile_instance field.
2093 (language_defn::get_compile_instance): New member function.
2094 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2095 initializer.
2096 * objc-lang.c (objc_language_data): Likewise.
2097 * opencl-lang.c (opencl_language_data): Likewise.
2098 * p-lang.c (pascal_language_data): Likewise.
2099 * rust-lang.c (rust_language_data): Likewise.
2100
2101 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * ada-lang.c (ada_add_all_symbols): Update comment.
2104 (ada_iterate_over_symbols): Delete, move implementation to...
2105 (ada_language::iterate_over_symbols): ...here, a new member
2106 function, rewrite to use range based for loop.
2107 (ada_language_data): Delete la_iterate_over_symbols initializer.
2108 * c-lang.c (c_language_data): Likewise.
2109 (cplus_language_data): Likewise.
2110 (asm_language_data): Likewise.
2111 (minimal_language_data): Likewise.
2112 * d-lang.c (d_language_data): Likewise.
2113 * f-lang.c (f_language_data): Likewise.
2114 * go-lang.c (go_language_data): Likewise.
2115 * language.c (unknown_language_data): Likewise.
2116 (auto_language_data): Likewise.
2117 * language.h (language_data): Delete la_iterate_over_symbols field.
2118 (language_defn::iterate_over_symbols): New member function.
2119 (LA_ITERATE_OVER_SYMBOLS): Update.
2120 * linespec.c (iterate_over_all_matching_symtabs): Update.
2121 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2122 initializer.
2123 * objc-lang.c (objc_language_data): Likewise.
2124 * opencl-lang.c (opencl_language_data): Likewise.
2125 * p-lang.c (pascal_language_data): Likewise.
2126 * rust-lang.c (rust_language_data): Likewise.
2127
2128 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * ada-lang.c (ada_language_data): Delete
2131 la_lookup_transparent_type initializer.
2132 * c-lang.c (c_language_data): Likewise.
2133 (cplus_language_data): Likewise.
2134 (cplus_language::lookup_transparent_type): New member function.
2135 (asm_language_data): Delete la_lookup_transparent_type
2136 initializer.
2137 (minimal_language_data): Likewise.
2138 * d-lang.c (d_language_data): Likewise.
2139 * f-lang.c (f_language_data): Likewise.
2140 * go-lang.c (go_language_data): Likewise.
2141 * language.c (unknown_language_data): Likewise.
2142 (auto_language_data): Likewise.
2143 * language.h (struct language_data): Delete
2144 la_lookup_transparent_type field.
2145 (language_defn::lookup_transparent_type): New member function.
2146 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2147 initializer.
2148 * objc-lang.c (objc_language_data): Likewise.
2149 * opencl-lang.c (opencl_language_data): Likewise.
2150 * p-lang.c (pascal_language_data): Likewise.
2151 * rust-lang.c (rust_language_data): Likewise.
2152 * symtab.c (symbol_matches_domain): Update call.
2153
2154 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * ada-lang.c (ada_language_arch_info): Delete function, move
2157 implementation to...
2158 (ada_language::language_arch_info): ...here, a new member
2159 function.
2160 (ada_language_data): Delete la_language_arch_info.
2161 * c-lang.c (c_language_data): Likewise.
2162 (c_language::language_arch_info): New member function.
2163 (cplus_language_arch_info): Delete function, move
2164 implementation to...
2165 (cplus_language::language_arch_info): ...here, a new member
2166 function.
2167 (cplus_language_data): Delete la_language_arch_info.
2168 (asm_language_data): Likewise.
2169 (asm_language::language_arch_info): New member function.
2170 (minimal_language_data): Delete la_language_arch_info.
2171 (minimal_language::language_arch_info): New member function.
2172 * d-lang.c (d_language_arch_info): Delete function, move
2173 implementation to...
2174 (d_language::language_arch_info): ...here, a new member
2175 function.
2176 (d_language_data): Delete la_language_arch_info.
2177 * f-lang.c (f_language_arch_info): Delete function, move
2178 implementation to...
2179 (f_language::language_arch_info): ...here, a new member
2180 function.
2181 (f_language_data): Delete la_language_arch_info.
2182 * go-lang.c (go_language_arch_info): Delete function, move
2183 implementation to...
2184 (go_language::language_arch_info): ...here, a new member
2185 function.
2186 (go_language_data): Delete la_language_arch_info.
2187 * language.c (unknown_language_data): Likewise.
2188 (unknown_language::language_arch_info): New member function.
2189 (auto_language_data): Delete la_language_arch_info.
2190 (auto_language::language_arch_info): New member function.
2191 (language_gdbarch_post_init): Update call to
2192 la_language_arch_info.
2193 * language.h (language_data): Delete la_language_arch_info
2194 function pointer.
2195 (language_defn::language_arch_info): New function.
2196 * m2-lang.c (m2_language_arch_info): Delete function, move
2197 implementation to...
2198 (m2_language::language_arch_info): ...here, a new member
2199 function.
2200 (m2_language_data): Delete la_language_arch_info.
2201 * objc-lang.c (objc_language_arch_info): Delete function, move
2202 implementation to...
2203 (objc_language::language_arch_info): ...here, a new member
2204 function.
2205 (objc_language_data): Delete la_language_arch_info.
2206 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2207 implementation to...
2208 (opencl_language::language_arch_info): ...here, a new member
2209 function.
2210 (opencl_language_data): Delete la_language_arch_info.
2211 * p-lang.c (pascal_language_arch_info): Delete function, move
2212 implementation to...
2213 (pascal_language::language_arch_info): ...here, a new member
2214 function.
2215 (pascal_language_data): Delete la_language_arch_info.
2216 * rust-lang.c (rust_language_arch_info): Delete function, move
2217 implementation to...
2218 (rust_language::language_arch_info): ...here, a new member
2219 function.
2220 (rust_language_data): Delete la_language_arch_info.
2221
2222 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2225 initializer.
2226 * c-lang.c (c_language_data): Likewise.
2227 (cplus_language_data): Likewise.
2228 (cplus_language::pass_by_reference_info): New method.
2229 (asm_language_data): Delete la_pass_by_reference initializer.
2230 (minimal_language_data): Likewise.
2231 * cp-abi.c (cp_pass_by_reference): Remove use of
2232 default_pass_by_reference.
2233 * d-lang.c (d_language_data): Likewise.
2234 * f-lang.c (f_language_data): Likewise.
2235 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2236 default_pass_by_reference.
2237 * go-lang.c (go_language_data): Likewise.
2238 * language.c (language_pass_by_reference): Update.
2239 (default_pass_by_reference): Delete.
2240 (unknown_language_data): Delete la_pass_by_reference
2241 initializer.
2242 (auto_language_data): Likewise.
2243 * language.h (struct language_data): Delete la_pass_by_reference
2244 field.
2245 (language_defn::pass_by_reference_info): New member function.
2246 (default_pass_by_reference): Delete declaration.
2247 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2248 initializer.
2249 * objc-lang.c (objc_language_data): Likewise.
2250 * opencl-lang.c (opencl_language_data): Likewise.
2251 * p-lang.c (pascal_language_data): Likewise.
2252 * rust-lang.c (rust_language_data): Likewise.
2253
2254 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * ada-lang.c (ada_read_var_value): Delete function, move
2257 implementation to...
2258 (ada_language::read_var_value): ...here.
2259 (ada_language_data): Delete la_read_var_value initializer.
2260 * c-lang.c (c_language_data): Likewise.
2261 (cplus_language_data): Likewise.
2262 (minimal_language_data): Likewise.
2263 * d-lang.c (d_language_data): Likewise.
2264 * f-lang.c (f_language_data): Likewise.
2265 * findvar.c (default_read_var_value): Rename to...
2266 (language_defn::read_var_value): ...this.
2267 * findvar.c (read_var_value): Update header comment, and change to
2268 call member function instead of function pointer.
2269 * go-lang.c (go_language_data): Likewise.
2270 * language.c (unknown_language_data): Delete la_read_var_value
2271 initializer.
2272 (auto_language_data): Likewise.
2273 * language.h (struct language_data): Delete la_read_var_value
2274 field.
2275 (language_defn::read_var_value): New member function.
2276 (default_read_var_value): Delete declaration.
2277 * m2-lang.c (m2_language_data): Delete la_read_var_value
2278 initializer.
2279 * objc-lang.c (objc_language_data): Likewise.
2280 * opencl-lang.c (opencl_language_data): Likewise.
2281 * p-lang.c (pascal_language_data): Likewise.
2282 * rust-lang.c (rust_language_data): Likewise.
2283 * value.h (default_read_var_value): Delete declaration.
2284
2285 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 * ada-lang.c (ada_print_array_index): Delete function, move
2288 implementation to...
2289 (ada_language::print_array_index): ...here.
2290 (ada_language_data): Delete la_print_array_index initializer.
2291 * c-lang.c (c_language_data): Likewise.
2292 (cplus_language_data): Likewise.
2293 (minimal_language_data): Likewise.
2294 * d-lang.c (d_language_data): Likewise.
2295 * f-lang.c (f_language_data): Likewise.
2296 * go-lang.c (go_language_data): Likewise.
2297 * language.c (default_print_array_index): Delete function, move
2298 implementation to...
2299 (language_defn::print_array_index): ...here.
2300 (unknown_language_data): Delete la_print_array_index initializer.
2301 (auto_language_data): Likewise.
2302 * language.h (struct language_data): Delete la_print_array_index
2303 field.
2304 (language_defn::print_array_index): New member function.
2305 (LA_PRINT_ARRAY_INDEX): Update.
2306 (default_print_array_index): Delete declaration.
2307 * m2-lang.c (m2_language_data): Delete la_print_array_index
2308 initializer.
2309 * objc-lang.c (objc_language_data): Likewise.
2310 * opencl-lang.c (opencl_language_data): Likewise.
2311 * p-lang.c (pascal_language_data): Likewise.
2312 * rust-lang.c (rust_language_data): Likewise.
2313
2314 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * gdb/ada-lang.c (ada_language_defn): Convert to...
2317 (ada_language_data): ...this.
2318 (class ada_language): New class.
2319 (ada_language_defn): New static global.
2320 * gdb/c-lang.c (c_language_defn): Convert to...
2321 (c_language_data): ...this.
2322 (class c_language): New class.
2323 (c_language_defn): New static global.
2324 (cplus_language_defn): Convert to...
2325 (cplus_language_data): ...this.
2326 (class cplus_language): New class.
2327 (cplus_language_defn): New static global.
2328 (asm_language_defn): Convert to...
2329 (asm_language_data): ...this.
2330 (class asm_language): New class.
2331 (asm_language_defn): New static global.
2332 (minimal_language_defn): Convert to...
2333 (minimal_language_data): ...this.
2334 (class minimal_language): New class.
2335 (minimal_language_defn): New static global.
2336 * gdb/d-lang.c (d_language_defn): Convert to...
2337 (d_language_data): ...this.
2338 (class d_language): New class.
2339 (d_language_defn): New static global.
2340 * gdb/f-lang.c (f_language_defn): Convert to...
2341 (f_language_data): ...this.
2342 (class f_language): New class.
2343 (f_language_defn): New static global.
2344 * gdb/go-lang.c (go_language_defn): Convert to...
2345 (go_language_data): ...this.
2346 (class go_language): New class.
2347 (go_language_defn): New static global.
2348 * gdb/language.c (unknown_language_defn): Remove declaration.
2349 (current_language): Initialize to nullptr, real initialization is
2350 moved to _initialize_language.
2351 (languages): Delete global.
2352 (language_defn::languages): Define.
2353 (set_language_command): Use language_defn::languages.
2354 (set_language): Likewise.
2355 (range_error): Likewise.
2356 (language_enum): Likewise.
2357 (language_def): Likewise.
2358 (add_set_language_command): Use language_def::languages for the
2359 language list, and language_def to lookup language pointers.
2360 (skip_language_trampoline): Use language_defn::languages.
2361 (unknown_language_defn): Convert to...
2362 (unknown_language_data): ...this.
2363 (class unknown_language): New class.
2364 (unknown_language_defn): New static global.
2365 (auto_language_defn): Convert to...
2366 (auto_language_data): ...this.
2367 (class auto_language): New class.
2368 (auto_language_defn): New static global.
2369 (language_gdbarch_post_init): Use language_defn::languages.
2370 (_initialize_language): Initialize current_language.
2371 * gdb/language.h (struct language_defn): Rename to...
2372 (struct language_data): ...this.
2373 (struct language_defn): New.
2374 (auto_language_defn): Delete.
2375 (unknown_language_defn): Delete.
2376 (minimal_language_defn): Delete.
2377 (ada_language_defn): Delete.
2378 (asm_language_defn): Delete.
2379 (c_language_defn): Delete.
2380 (cplus_language_defn): Delete.
2381 (d_language_defn): Delete.
2382 (f_language_defn): Delete.
2383 (go_language_defn): Delete.
2384 (m2_language_defn): Delete.
2385 (objc_language_defn): Delete.
2386 (opencl_language_defn): Delete.
2387 (pascal_language_defn): Delete.
2388 (rust_language_defn): Delete.
2389 * gdb/m2-lang.c (m2_language_defn): Convert to...
2390 (m2_language_data): ...this.
2391 (class m2_language): New class.
2392 (m2_language_defn): New static global.
2393 * gdb/objc-lang.c (objc_language_defn): Convert to...
2394 (objc_language_data): ...this.
2395 (class objc_language): New class.
2396 (objc_language_defn): New static global.
2397 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2398 (opencl_language_data): ...this.
2399 (class opencl_language): New class.
2400 (opencl_language_defn): New static global.
2401 * gdb/p-lang.c (pascal_language_defn): Convert to...
2402 (pascal_language_data): ...this.
2403 (class pascal_language): New class.
2404 (pascal_language_defn): New static global.
2405 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2406 language pointer, update comment format.
2407 * gdb/rust-lang.c (rust_language_defn): Convert to...
2408 (rust_language_data): ...this.
2409 (class rust_language): New class.
2410 (rust_language_defn): New static global.
2411
2412 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2415 member variable.
2416 <m_stmt_at_address>: New member variable.
2417 (lnp_state_machine::record_line): Don't record some lines, update
2418 tracking of is_stmt at the same address.
2419 (lnp_state_machine::lnp_state_machine): Initialise new member
2420 variables.
2421
2422 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2423
2424 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2425 "-include gnu-nat-mig.h".
2426 * gnu-nat-mig.h: New file.
2427 * gnu-nat.c: Include "gnu-nat-mig.h".
2428 (exc_server, msg_reply_server, notify_server,
2429 process_reply_server): Remove declarations.
2430
2431 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2432
2433 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2434 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2435 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2436 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2437 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2438 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2439 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2440 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2441 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2442 to gnu_nat_target class.
2443 * gnu-nat.c: Likewise.
2444 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2445 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2446 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2447 object.
2448 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2449 instead of `gnu_target'.
2450
2451 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2452
2453 * i386-gnu-tdep.c: Include "gdbcore.h"
2454 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2455 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2456 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2457 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2458 i386_gnu_sigcontext_addr): New functions
2459 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2460 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2461 tdep.
2462
2463 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2464
2465 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2466 before fork_inferior call. Avoid calling it if target_is_pushed returns
2467 true.
2468
2469 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2470
2471 * gnu-nat.h (gnu_target): New variable declaration.
2472 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2473 gnu_target.
2474 * gnu-nat.c (gnu_target): New variable.
2475 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2476 add_thread_silent, and add_thread calls.
2477 (gnu_nat_target::create_inferior): Pass gnu_target to
2478 add_thread_silent, thread_change_ptid call.
2479 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2480 call.
2481
2482 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2483
2484 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2485 (gnu_nat_target::find_memory_regions): Remove unused
2486 `old_address' variable.
2487
2488 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2489
2490 * gnu-nat.c: Include "gdbarch.h".
2491
2492 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2493
2494 * reply_mig_hack.awk (Error return): Cast function through
2495 void *, to bypass compiler function call check.
2496
2497 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2498
2499 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2500 $(srcdir)/reply_mig_hack.awk.
2501
2502 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2503
2504 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2505
2506 2020-05-30 Jonny Grant <jg@jguk.org>
2507
2508 * configure.ac (ACX_BUGURL): change bug URL to https.
2509
2510 2020-05-30 Pedro Alves <palves@redhat.com>
2511
2512 * cp-support.c (replace_typedefs_template): New.
2513 (replace_typedefs_qualified_name): Handle
2514 DEMANGLE_COMPONENT_TEMPLATE.
2515
2516 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2519 dwarf2/index-cache.h, dwarf2/index-write.c,
2520 dwarf2/index-write.h, dwarf2/line-header.c,
2521 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2522 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2523 variables and fields from `dwarf2_per_objfile` to just
2524 `per_objfile` throughout.
2525
2526 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2529 <push_dwarf_reg_entry_value>: Add comment.
2530
2531 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2532 Keith Seitz <keiths@redhat.com>
2533
2534 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2535 instead of PyEval_ReleaseLock.
2536 (class gdbpy_gil): Move to earlier in file.
2537 (finalize_python): Set gdb_python_initialized.
2538 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2539 when not initialized.
2540
2541 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2544 <push_dwarf_reg_entry_value>: Remove assert. Override
2545 per_objfile with caller_per_objfile.
2546
2547 2020-05-28 Tom de Vries <tdevries@suse.de>
2548
2549 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2550 PR gold/15646 workaround to symbol kind "type".
2551
2552 2020-05-27 Tom Tromey <tromey@adacore.com>
2553
2554 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2555
2556 2020-05-27 Tom Tromey <tromey@adacore.com>
2557
2558 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2559 Use htab_find_with_hash.
2560 <add_abbrev>: Remove "abbrev_number" parameter.
2561 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2562 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2563 (hash_abbrev): Add comment.
2564 (abbrev_table::lookup_abbrev): Move to header file.
2565 (abbrev_table::read): Update.
2566
2567 2020-05-27 Tom Tromey <tromey@adacore.com>
2568
2569 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2570 method.
2571 <canonical_name>: New member.
2572 <raw_name>: Rename from "name".
2573 (partial_die_info): Initialize canonical_name.
2574 (scan_partial_symbols): Check raw_name.
2575 (partial_die_parent_scope, partial_die_full_name)
2576 (add_partial_symbol, add_partial_subprogram)
2577 (add_partial_enumeration, load_partial_dies): Use "name" method.
2578 (partial_die_info::name): New method.
2579 (partial_die_info::read, guess_partial_die_structure_name)
2580 (partial_die_info::fixup): Update.
2581
2582 2020-05-27 Tom Tromey <tromey@adacore.com>
2583
2584 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2585 <get_ref_die_offset>: Inline.
2586 <get_ref_die_offset_complaint>: New method.
2587 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2588 (attribute::get_ref_die_offset_complaint): Rename from
2589 get_ref_die_offset. Just issue complaint.
2590
2591 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2592
2593 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2594
2595 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2596
2597 * exec.c (exec_file_attach): Use errno value of first openp failure.
2598
2599 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2600
2601 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2602 Don't close thread handle.
2603
2604 2020-05-27 Tom Tromey <tom@tromey.com>
2605 Simon Marchi <simon.marchi@efficios.com>
2606
2607 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2608 shared_ptr.
2609 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2610 member.
2611 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2612 dwarf2_per_bfd_objfile_data_key>: New globals.
2613 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2614 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2615 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2616 shared.
2617 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2618 short-circuit when sharing.
2619 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2620 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2621
2622 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2623
2624 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2625 to...
2626 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2627 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2628
2629 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2632 build_name_components, find_name_components_bounds>:
2633 Add per_objfile parameter.
2634 (struct mapped_index) <symbol_name_at>: Likewise.
2635 (struct mapped_debug_names): Remove constructor.
2636 <dwarf2_per_objfile>: Remove field.
2637 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2638 (mapped_index_base::find_name_components_bounds,
2639 mapped_index_base::build_name_components,
2640 dw2_expand_symtabs_matching_symbol): Likewise.
2641 (class mock_mapped_index) <symbol_name_at>: Likewise.
2642 (check_match): Likewise.
2643 (check_find_bounds_finds): Likewise.
2644 (test_mapped_index_find_name_component_bounds): Update.
2645 (CHECK_MATCH): Update.
2646 (dw2_expand_symtabs_matching): Update.
2647 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2648 per_objfile parameter.
2649 <find_vec_in_debug_names>: Likewise.
2650 <m_per_objfile>: New field.
2651 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2652 parameter.
2653 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2654 (dw2_debug_names_iterator::next): Update.
2655 (dw2_debug_names_lookup_symbol): Update.
2656 (dw2_debug_names_expand_symtabs_for_function): Update.
2657 (dw2_debug_names_map_matching_symbols): Update.
2658 (dw2_debug_names_expand_symtabs_matching): Update.
2659 (dwarf2_read_debug_names): Update.
2660
2661 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2662
2663 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2664 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2665 move to dwarf2_per_objfile.
2666 <read_in_chain>: Remove.
2667 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2668 remove_all_cus, age_comp_units>: New methods.
2669 <m_dwarf2_cus>: New member.
2670 (struct dwarf2_per_cu_data) <cu>: Remove.
2671 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2672 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2673 moved to methods of dwarf2_per_objfile.
2674 (dwarf2_clear_marks): Remove.
2675 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2676 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2677 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2678 (dwarf2_per_objfile::remove_all_cus): New.
2679 (class free_cached_comp_units) <~free_cached_comp_units>:
2680 Update.
2681 (load_cu): Update.
2682 (dw2_do_instantiate_symtab): Adjust.
2683 (fill_in_sig_entry_from_dwo_entry): Adjust.
2684 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2685 (cutu_reader::cutu_reader): Likewise.
2686 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2687 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2688 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2689 and dwarf2_per_objfile::age_comp_units.
2690 (load_partial_comp_unit): Update.
2691 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2692 (process_queue): Likewise.
2693 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2694 backlink.
2695 (dwarf2_read_addr_index): Likewise.
2696 (follow_die_offset): Likewise.
2697 (dwarf2_fetch_die_loc_sect_off): Likewise.
2698 (dwarf2_fetch_constant_bytes): Likewise.
2699 (dwarf2_fetch_die_type_sect_off): Likewise.
2700 (follow_die_sig_1): Likewise.
2701 (load_full_type_unit): Likewise.
2702 (read_signatured_type): Likewise.
2703 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2704 (dwarf2_cu::~dwarf2_cu): Remove.
2705 (dwarf2_per_objfile::get_cu): New.
2706 (dwarf2_per_objfile::set_cu): New.
2707 (age_cached_comp_units): Rename to...
2708 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2709 to std::unordered_map.
2710 (free_one_cached_comp_unit): Rename to...
2711 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2712 to std::unordered_map.
2713 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2714 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2715 a dwarf2_per_objfile in data.
2716 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2717 (dwarf2_clear_marks): Remove.
2718
2719 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2720
2721 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2722 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2723 (init_tu_and_read_dwo_dies): Likewise.
2724 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2725 (cutu_reader::cutu_reader): Likewise.
2726 (load_partial_comp_unit): Likewise.
2727 (process_psymtab_comp_unit): Update.
2728 (build_type_psymtabs_1): Update.
2729 (process_skeletonless_type_unit): Update.
2730 (load_full_comp_unit): Update.
2731 (find_partial_die): Update.
2732 (dwarf2_read_addr_index): Update.
2733 (read_signatured_type): Update.
2734
2735 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2738 m_header_read_in>: New fields.
2739 <get_header>: New method.
2740 * dwarf2/read.c (per_cu_header_read_in): Remove.
2741 (dwarf2_per_cu_data::get_header): New.
2742 (dwarf2_per_cu_data::addr_size): Update.
2743 (dwarf2_per_cu_data::offset_size): Update.
2744 (dwarf2_per_cu_data::ref_addr_size): Update.
2745
2746 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2747
2748 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2749 (dw2_do_instantiate_symtab): Update.
2750 (queue_and_load_all_dwo_tus): Change parameter from
2751 dwarf2_per_cu_data to dwarf2_cu.
2752 (dwarf2_fetch_die_loc_sect_off): Update.
2753 (dwarf2_fetch_constant_bytes): Update.
2754 (dwarf2_fetch_die_type_sect_off): Update.
2755
2756 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2757
2758 * dwarf2/read.c (process_full_comp_unit,
2759 process_full_type_unit): Remove per_cu, per_objfile paramters.
2760 Add dwarf2_cu parameter.
2761 (process_queue): Update.
2762
2763 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2764
2765 * dwarf2/read.c (create_cu_from_index_list): Replace
2766 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2767 (create_cus_from_index_list): Likewise.
2768 (create_cus_from_index): Likewise.
2769 (create_signatured_type_table_from_index): Likewise.
2770 (create_cus_from_debug_names_list): Likewise.
2771 (create_cus_from_debug_names): Likewise.
2772 (dwarf2_read_gdb_index): Update.
2773 (dwarf2_read_debug_names): Update.
2774
2775 2020-05-27 Tom Tromey <tom@tromey.com>
2776 Simon Marchi <simon.marchi@efficios.com>
2777
2778 * dwarf2/read.h (struct dwarf2_per_objfile)
2779 <get_type_for_signatured_type, set_type_for_signatured_type>:
2780 New methods.
2781 <m_type_map>: New member.
2782 (struct signatured_type) <type>: Remove.
2783 * dwarf2/read.c
2784 (dwarf2_per_objfile::get_type_for_signatured_type,
2785 dwarf2_per_objfile::set_type_for_signatured_type): New.
2786 (get_signatured_type): Use new methods.
2787
2788 2020-05-27 Tom Tromey <tom@tromey.com>
2789 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2792 (struct dwarf2_per_objfile) <type_units>: New member.
2793 <get_type_unit_group_unshareable>: New method.
2794 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2795 num_symtabs, symtabs>: Remove; move to
2796 type_unit_group_unshareable.
2797 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2798 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2799 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2800
2801 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * dwarf2/read.h (struct dwarf2_per_cu_data):
2804 <dwarf2_per_objfile>: Remove.
2805 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2806 dwarf2_per_objfile.
2807 (create_signatured_type_table_from_index): Likewise.
2808 (create_signatured_type_table_from_debug_names): Likewise.
2809 (create_debug_type_hash_table): Likewise.
2810 (fill_in_sig_entry_from_dwo_entry): Likewise.
2811 (create_type_unit_group): Likewise.
2812 (read_comp_units_from_section): Likewise.
2813 (create_cus_hash_table): Likewise.
2814
2815 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2816
2817 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2818 dwarf2_per_cu_data::dwarf2_per_objfile.
2819 (compute_compunit_symtab_includes): Likewise.
2820 (dwarf2_cu::start_symtab): Likewise.
2821
2822 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2823
2824 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2825 parameter.
2826 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2827 (read_namespace_alias): Update.
2828 (lookup_die_type): Update.
2829 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2830 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2831 Update.
2832 (disassemble_dwarf_expression): Update.
2833
2834 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2835
2836 * dwarf2/read.h (struct dwarf2_queue_item): Add
2837 dwarf2_per_objfile parameter, assign new parameter.
2838 <per_objfile>: New field.
2839 * dwarf2/read.c (free_one_cached_comp_unit): Add
2840 dwarf2_per_objfile parameter.
2841 (queue_comp_unit): Likewise.
2842 (dw2_do_instantiate_symtab): Update.
2843 (process_psymtab_comp_unit): Update.
2844 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2845 (process_imported_unit_die): Update.
2846 (queue_and_load_dwo_tu): Update.
2847 (follow_die_offset): Update.
2848 (follow_die_sig_1): Update.
2849
2850 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2851
2852 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2853 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2854 (read_call_site_scope): Assign per_objfile.
2855 (dwarf2_per_cu_data::objfile): Remove.
2856 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2857 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2858 dwarf2_per_objfile parameter.
2859 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2860 dwarf2_per_objfile parameter.
2861 (dwarf_expr_reg_to_entry_parameter): Add output
2862 dwarf2_per_objfile parameter.
2863 (locexpr_get_frame_base): Update.
2864 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2865 <push_dwarf_reg_entry_value>: Update.
2866 <call_site_to_target_addr>: Update.
2867 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2868 parameter.
2869 (value_of_dwarf_reg_entry): Update.
2870 (rw_pieced_value): Update.
2871 (indirect_synthetic_pointer): Update.
2872 (dwarf2_evaluate_property): Update.
2873 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2874 parameter.
2875 (locexpr_read_variable): Update.
2876 (locexpr_get_symbol_read_needs): Update.
2877 (loclist_read_variable): Update.
2878
2879 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2882 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2883 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2884 parameter.
2885 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2886 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2887 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2888 parameter.
2889 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2890 sect_variable_value): Add dwarf2_per_objfile parameter.
2891 (class dwarf_evaluate_loc_desc) <dwarf_call,
2892 dwarf_variable_value>: Update.
2893 (fetch_const_value_from_synthetic_pointer): Add
2894 dwarf2_per_objfile parameter.
2895 (fetch_const_value_from_synthetic_pointer): Update.
2896 (coerced_pieced_ref): Update.
2897 (class symbol_needs_eval_context) <dwarf_call,
2898 dwarf_variable_value>: Update.
2899 (dwarf2_compile_expr_to_ax): Update.
2900
2901 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2902
2903 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2904 parameter.
2905 (dwarf2_evaluate_loc_desc_full): Update.
2906
2907 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2908
2909 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2910 parameter.
2911 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2912 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2913 dwarf2_per_objfile parameter.
2914 (decode_debug_loc_dwo_addresses): Likewise.
2915 (dwarf2_find_location_expression): Update.
2916 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2917 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2918 parameter.
2919 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2920 parameter.
2921 (locexpr_describe_location_1): Likewise.
2922 (locexpr_describe_location): Update.
2923
2924 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2925
2926 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2927 Remove.
2928 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2929 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2930 (dwarf2_compile_property_to_c): Update.
2931 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2932 use text offset from objfile.
2933 (locexpr_tracepoint_var_ref): Update.
2934 (locexpr_generate_c_location): Update.
2935 (loclist_describe_location): Update.
2936 (loclist_tracepoint_var_ref): Update.
2937 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2938 dwarf2_per_objfile parameter.
2939 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2940 use text offset from objfile.
2941 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2942
2943 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2944
2945 * dwarf2/expr.h (struct dwarf_expr_context)
2946 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2947 <offset>: Remove.
2948 <per_objfile>: New member.
2949 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2950 dwarf2_per_objfile parameter. Don't set offset, set
2951 per_objfile.
2952 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2953 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2954 a dwarf2_per_objfile object instead of an offset.
2955 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2956 constructor.
2957 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2958 to dwarf2_expr_executor constructor. Don't set offset.
2959 (dwarf2_fetch_cfa_info): Update.
2960 (struct dwarf2_frame_cache) <text_offset>: Remove.
2961 <per_objfile>: New field.
2962 (dwarf2_frame_cache): Update.
2963 (dwarf2_frame_prev_register): Update.
2964 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2965 <dwarf_evaluate_loc_desc>: Add constructor.
2966 (dwarf2_evaluate_loc_desc_full): Update.
2967 (dwarf2_locexpr_baton_eval): Update.
2968 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2969 Add constructor.
2970 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2971
2972 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2975 addr_sized_int_type>: Move to dwarf2_cu.
2976 <int_type>: Move to dwarf2_per_objfile.
2977 (struct dwarf2_per_objfile) <int_type>: Move here.
2978 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2979 addr_sized_int_type>: Move here.
2980 (read_func_scope): Update.
2981 (read_array_type): Update.
2982 (read_tag_string_type): Update.
2983 (attr_to_dynamic_prop): Update.
2984 (dwarf2_per_cu_data::int_type): Rename to...
2985 (dwarf2_per_objfile::int_type): ... this.
2986 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2987 (dwarf2_cu::addr_sized_int_type): ... this.
2988 (read_subrange_type): Update.
2989 (dwarf2_per_cu_data::addr_type): Rename to...
2990 (dwarf2_cu::addr_type): ... this.
2991 (set_die_type): Update.
2992
2993 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2996 data through per_cu->cu.
2997
2998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2999
3000 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3001 dwarf2_per_cu_data parameter fo dwarf2_cu.
3002 (lookup_dwo_type_unit): Likewise.
3003 (read_cutu_die_from_dwo): Likewise.
3004 (lookup_dwo_unit): Likewise.
3005 (open_and_init_dwo_file): Likewise.
3006 (lookup_dwo_cutu): Likewise.
3007 (lookup_dwo_comp_unit): Likewise.
3008 (lookup_dwo_type_unit): Likewise.
3009 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3010 (cutu_reader::cutu_reader): Update.
3011
3012 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3013
3014 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3015 parameter.
3016 (process_full_type_unit): Likewise.
3017 (process_queue): Update.
3018
3019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * dwarf2/read.c (recursively_compute_inclusions): Add
3022 dwarf2_per_objfile parameter.
3023 (compute_compunit_symtab_includes): Likewise.
3024 (process_cu_includes): Update.
3025
3026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3029 parameter.
3030 (create_type_unit_group): Update.
3031 (process_psymtab_comp_unit_reader): Update.
3032 (build_type_psymtabs_reader): Update.
3033
3034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3037 object through m_this_cu->cu.
3038
3039 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3040
3041 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3042 the info parameter.
3043 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3044
3045 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3048 per_objfile parameter.
3049 (load_full_type_unit): Add per_objfile parameter.
3050 (read_signatured_type): Likewise.
3051 (load_full_comp_unit): Likewise.
3052 (load_cu): Likewise.
3053 (dw2_do_instantiate_symtab): Likewise.
3054 (dw2_get_file_names): Likewise.
3055 (dw2_map_symtabs_matching_filename): Update.
3056 (dw_expand_symtabs_matching_file_matcher): Update.
3057 (dw2_map_symbol_filenames): Update.
3058 (process_psymtab_comp_unit): Add per_objfile parameter.
3059 (build_type_psymtabs_1): Update.
3060 (process_skeletonless_type_unit): Update.
3061 (dwarf2_build_psymtabs_hard): Update.
3062 (load_partial_comp_unit): Add per_objfile parameter.
3063 (scan_partial_symbols): Update.
3064 (load_full_comp_unit): Add per_objfile parameter.
3065 (process_imported_unit_die): Update.
3066 (create_cus_hash_table): Update.
3067 (find_partial_die): Update.
3068 (dwarf2_read_addr_index): Update.
3069 (follow_die_offset): Update.
3070 (dwarf2_fetch_die_loc_sect_off): Update.
3071 (dwarf2_fetch_constant_bytes): Update.
3072 (dwarf2_fetch_die_type_sect_off): Update.
3073 (follow_die_sig_1): Update.
3074 (load_full_type_unit): Add per_objfile parameter.
3075 (read_signatured_type): Likewise.
3076
3077 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3080 of objfile_name.
3081
3082 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3083
3084 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3085 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3086 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3087 field.
3088 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3089 (create_cus_from_index): Update.
3090 (dwarf2_read_gdb_index): Update.
3091 (create_cus_from_debug_names): Update.
3092 (dwarf2_read_debug_names): Update.
3093 (get_abbrev_section_for_cu): Update.
3094 (create_all_comp_units): Update.
3095 (read_attribute_value): Update.
3096 (get_debug_line_section): Update.
3097 * dwarf2/index-cache.c (index_cache::store): Update.
3098 * dwarf2/index-write.c (save_gdb_index_command): Update.
3099 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3100
3101 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3104 member.
3105 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3106 dwarf2_per_cu_data::per_bfd.
3107 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3108 (create_type_unit_group): Likewise.
3109 (queue_comp_unit): Remove reference to
3110 per_cu->dwarf2_per_objfile.
3111 (maybe_queue_comp_unit): Likewise.
3112 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3113 (create_cus_hash_table): Assign new field.
3114
3115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * dwarf2/read.c: Replace
3118 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3119 dwarf2_cu->per_objfile throughout.
3120
3121 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3122
3123 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3124 parameter, don't use per_cu->dwarf2_per_objfile.
3125 (dw2_instantiate_symtab): Likewise.
3126 (dw2_find_last_source_symtab): Update.
3127 (dw2_map_expand_apply): Update.
3128 (dw2_lookup_symbol): Update.
3129 (dw2_expand_symtabs_for_function): Update.
3130 (dw2_expand_all_symtabs): Update.
3131 (dw2_expand_symtabs_with_fullname): Update.
3132 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3133 don't use per_cu->dwarf2_per_objfile.
3134 (dw2_expand_marked_cus): Update.
3135 (dw2_find_pc_sect_compunit_symtab): Update.
3136 (dw2_debug_names_lookup_symbol): Update.
3137 (dw2_debug_names_expand_symtabs_for_function): Update.
3138 (dw2_debug_names_map_matching_symbols): Update.
3139 (dwarf2_psymtab::expand_psymtab): Update.
3140
3141 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3144 <per_objfile>: New member.
3145 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3146 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3147 call to dwarf2_cu.
3148 (cutu_reader::cutu_reader): Update.
3149 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3150
3151 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3152
3153 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3154 struct dwarf2_per_objfile.
3155 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3156 dwarf2_per_bfd.
3157 * dwarf2/read.c (set_die_type): Update.
3158 (get_die_type_at_offset): Update.
3159
3160 2020-05-27 Tom Tromey <tom@tromey.com>
3161 Simon Marchi <simon.marchi@efficios.com>
3162
3163 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3164 method.
3165 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3166 get_symtab, set_symtab>: New methods.
3167 <m_symtabs>: New field.
3168 (struct dwarf2_psymtab): Derive from partial_symtab.
3169 <readin_p, get_compunit_symtab>: Declare methods.
3170 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3171 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3172 New methods.
3173 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3174 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3175 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3176 (dw2_symtab_iter_next, dw2_print_stats)
3177 (dw2_expand_symtabs_with_fullname)
3178 (dw2_expand_symtabs_matching_one)
3179 (dw_expand_symtabs_matching_file_matcher)
3180 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3181 (dw2_debug_names_iterator::next)
3182 (dw2_debug_names_map_matching_symbols)
3183 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3184 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3185 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3186 New methods.
3187 (get_compunit_symtab, process_full_comp_unit)
3188 (process_full_type_unit): Update.
3189 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3190
3191 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3192
3193 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3194 then introduce a new dwarf2_per_objfile type.
3195 <read_line_string>: Move to the new dwarf2_per_objfile type.
3196 <objfile>: Likewise.
3197 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3198 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3199 dwarf2_per_objfile->per_bfd.
3200 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3201 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3202 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3203 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3204 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3205 (dwarf2_per_objfile::locate_sections): Rename to...
3206 (dwarf2_per_bfd::locate_sections): ... this.
3207 (dwarf2_per_objfile::get_cutu): Rename to...
3208 (dwarf2_per_bfd::get_cutu): ... this.
3209 (dwarf2_per_objfile::get_cu): Rename to...
3210 (dwarf2_per_bfd::get_cu): ... this.
3211 (dwarf2_per_objfile::get_tu): Rename to...
3212 (dwarf2_per_bfd::get_tu): ... this.
3213 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3214 (dwarf2_per_bfd::allocate_per_cu): ... this.
3215 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3216 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3217 (get_gdb_index_contents_ftype): Change parameter from
3218 dwarf2_per_objfile to dwarf2_per_bfd.
3219 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3220 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3221
3222 2020-05-27 Tom Tromey <tom@tromey.com>
3223 Simon Marchi <simon.marchi@efficios.com>
3224
3225 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3226 (allocate_piece_closure): Set "per_objfile" member.
3227 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3228 (locexpr_describe_location, loclist_describe_location): Use new
3229 member.
3230 * dwarf2/read.c (read_call_site_scope)
3231 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3232 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3233 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3234 handle_data_member_location): Set per_objfile member.
3235 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3236 member.
3237 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3238
3239 2020-05-27 Tom Tromey <tom@tromey.com>
3240
3241 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3242 allocate_signatured_type>: Declare new methods.
3243 <m_num_psymtabs>: New member.
3244 (struct dwarf2_per_cu_data) <index>: New member.
3245 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3246 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3247 (create_cu_from_index_list): Use allocate_per_cu.
3248 (create_signatured_type_table_from_index)
3249 (create_signatured_type_table_from_debug_names)
3250 (create_debug_type_hash_table, add_type_unit)
3251 (read_comp_units_from_section): Use allocate_signatured_type.
3252
3253 2020-05-27 Tom Tromey <tom@tromey.com>
3254
3255 * psymtab.c (partial_map_expand_apply)
3256 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3257 (psym_lookup_global_symbol_language)
3258 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3259 (psym_print_stats, psym_expand_symtabs_for_function)
3260 (psym_map_symbol_filenames, psym_map_matching_symbols)
3261 (psym_expand_symtabs_matching)
3262 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3263 (maintenance_check_psymtabs): Update.
3264 * psympriv.h (struct partial_symtab) <readin_p,
3265 get_compunit_symtab>: Add objfile parameter.
3266 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3267 Likewise.
3268 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3269 get_compunit_symtab>: Likewise.
3270 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3271
3272 2020-05-27 Tom Tromey <tom@tromey.com>
3273
3274 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3275 member.
3276 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3277 (create_cu_from_index_list)
3278 (create_signatured_type_table_from_index)
3279 (create_signatured_type_table_from_debug_names)
3280 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3281 (dwarf2_create_include_psymtab)
3282 (create_debug_type_hash_table, add_type_unit)
3283 (create_type_unit_group, read_comp_units_from_section)
3284 (dwarf2_compute_name, create_cus_hash_table)
3285 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3286 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3287 obstack.
3288 (dw2_get_real_path): Likewise. Change argument to
3289 dwarf2_per_objfile.
3290
3291 2020-05-27 Luis Machado <luis.machado@linaro.org>
3292
3293 PR tdep/26000
3294 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3295 for ldrd (immediate).
3296
3297 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3298
3299 * command.h: Add comment giving the name of class_tui.
3300 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3301 create the fake command for the help for class_tui.
3302
3303 2020-05-26 Tom Tromey <tromey@adacore.com>
3304
3305 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3306 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3307 (val_atr): New function.
3308 (value_val_atr): Use it.
3309 * ada-valprint.c (print_optional_low_bound): Change low bound
3310 handling for enums.
3311 (val_print_packed_array_elements): Don't call discrete_position.
3312 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3313 discrete_position for enum types.
3314 * language.c (default_print_array_index): Change type.
3315 * language.h (struct language_defn) <la_print_array_index>: Add
3316 index_type parameter, change type of index_value.
3317 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3318 (default_print_array_index): Update.
3319 * valprint.c (maybe_print_array_index): Don't call
3320 value_from_longest. Update.
3321 (value_print_array_elements): Don't call discrete_position.
3322
3323 2020-05-26 Tom Tromey <tromey@adacore.com>
3324
3325 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3326 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3327
3328 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3329
3330 PR gdb/13519
3331 * avr-tdep.c (avr_integer_to_address): Return data or code
3332 address accordingly to the second 'type' argument of the
3333 function.
3334
3335 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3336
3337 * infcmd.c, inferior.h: (construct_inferior_arguments):
3338 Moved function from here to gdbsupport/common-inferior.{h,cc}
3339
3340 2020-05-23 Tom Tromey <tom@tromey.com>
3341
3342 Revert commit eca1f90c:
3343 * NEWS: Remove entry for completion styling.
3344 * completer.c (_rl_completion_prefix_display_length): Move
3345 declaration later.
3346 (gdb_fnprint): Revert.
3347 (gdb_display_match_list_1): Likewise.
3348 * cli/cli-style.c (completion_prefix_style)
3349 (completion_difference_style, completion_suffix_style): Remove.
3350 (_initialize_cli_style): Revert.
3351 * cli/cli-style.h (completion_prefix_style)
3352 (completion_difference_style, completion_suffix_style): Don't
3353 declare.
3354
3355 2020-05-24 Pedro Alves <palves@redhat.com>
3356
3357 * symtab.c (completion_list_add_name): Return boolean indication
3358 of whether the symbol matched.
3359 (completion_list_add_symbol): Don't try to remove C++ aliases if
3360 the symbol didn't match in the first place.
3361 * symtab.h (completion_list_add_name): Return bool.
3362
3363 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3366 type::field.
3367
3368 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3369
3370 GDB 9.2 released.
3371
3372 2020-05-23 Tom Tromey <tom@tromey.com>
3373
3374 * NEWS: Add entry for completion styling.
3375 * completer.c (_rl_completion_prefix_display_length): Move
3376 declaration earlier.
3377 (gdb_fnprint): Use completion_style.
3378 (gdb_display_match_list_1): Likewise.
3379 * cli/cli-style.c (completion_prefix_style)
3380 (completion_difference_style, completion_suffix_style): New
3381 globals.
3382 (_initialize_cli_style): Register new globals.
3383 * cli/cli-style.h (completion_prefix_style)
3384 (completion_difference_style, completion_suffix_style): Declare.
3385
3386 2020-05-23 Pedro Alves <palves@redhat.com>
3387
3388 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3389 (parse_escape): Use ISDIGIT instead of isdigit.
3390 (puts_debug): Use gdb_isprint instead of isprint.
3391 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3392 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3393 ISSPACE instead of isspace.
3394 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3395 instead of isspace.
3396 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3397 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3398 instead of isxdigit and ISDIGIT instead of isdigit.
3399
3400 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * gdbtypes.h (struct type) <field>: New method.
3403 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3404 or type::field.
3405
3406 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3409 (TYPE_FIELDS): Use type::fields. Change all call sites that
3410 modify the propery to use type::set_fields instead.
3411
3412 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3415 type::num_fields instead.
3416
3417 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3420 methods.
3421 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3422 that modify the number of fields to use type::set_num_fields
3423 instead.
3424
3425 2020-05-22 Tom Tromey <tromey@adacore.com>
3426
3427 * compile/compile-object-load.h (munmap_list_free): Don't
3428 declare.
3429
3430 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * annotate.c (annotate_source_line): Update return type, add call
3433 to update current symtab and line.
3434 * annotate.h (annotate_source_line): Update return type, and
3435 extend header comment.
3436 * source.c (info_line_command): Check annotation_level before
3437 calling annotate_source_line.
3438 * stack.c (print_frame_info): If calling annotate_source_line
3439 returns true, then don't print any other source line information.
3440
3441 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3442
3443 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3444
3445 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * coffread.c (patch_type): Remove NULL check before xfree.
3448 * corefile.c (set_gnutarget): Likewise.
3449 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3450 * exec.c (build_section_table): Likewise.
3451 * remote.c (remote_target::pass_signals): Likewise.
3452 * utils.c (n_spaces): Likewise.
3453 * cli/cli-script.c (document_command): Likewise.
3454 * i386-windows-tdep.c (core_process_module_section): Likewise.
3455 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3456
3457 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3458
3459 * symfile.c (reread_symbols): Clear objfile's section_offsets
3460 vector and section indices, re-compute them by calling
3461 sym_offsets.
3462
3463 2020-05-20 Tom Tromey <tromey@adacore.com>
3464
3465 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3466 (desc_one_bound, desc_index_type): Compute field name.
3467
3468 2020-05-20 Tom de Vries <tdevries@suse.de>
3469
3470 PR symtab/25833
3471 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3472
3473 2020-05-20 Alan Modra <amodra@gmail.com>
3474
3475 PR 25993
3476 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3477 bfd_set_filename.
3478 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3479 passed to bfd_set_filename.
3480 * symfile-mem.c (add_vsyscall_page): Likewise for string
3481 passed to symbol_file_add_from_memory.
3482 (symbol_file_add_from_memory): Make name param a const char* and
3483 don't strdup.
3484
3485 2020-05-20 Alan Modra <amodra@gmail.com>
3486
3487 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3488 rather than accessing bfd->filename directly.
3489 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3490 and use bfd_section_name.
3491 * dwarf2/frame.c (decode_frame_entry): Likewise.
3492 * exec.c (exec_set_section_address): Likewise.
3493 * solib-aix.c (solib_aix_bfd_open): Likewise.
3494 * stap-probe.c (get_stap_base_address): Likewise.
3495 * symfile.c (reread_symbols): Likewise.
3496
3497 2020-05-19 Tom Tromey <tromey@adacore.com>
3498
3499 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3500
3501 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3504
3505 2020-05-19 Pedro Alves <palves@redhat.com>
3506
3507 * NEWS (set exec-file-mismatch): Adjust entry.
3508 * exec.c: Include "build-id.h".
3509 (validate_exec_file): Try to match build IDs instead of filenames.
3510 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3511 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3512 and pass down 'warn_if_slow'.
3513 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3514 gdb_bfd_open_closure to pass it down.
3515 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3516
3517 2020-05-19 Pedro Alves <palves@redhat.com>
3518
3519 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3520 * target.c (target_fileio_open_1): Rename to target_fileio_open
3521 and make extern. Use bool.
3522 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3523 (target_fileio_read_alloc_1): Adjust.
3524 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3525 (target_fileio_open_warn_if_slow): Delete declaration.
3526
3527 2020-05-19 Pedro Alves <palves@redhat.com>
3528
3529 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3530 Adjust all callers.
3531
3532 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3533
3534 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3535 whether disp is negative.
3536
3537 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * symfile.h (struct symfile_segment_data)
3540 <~symfile_segment_data>: Remove.
3541 <segment_info>: Change to std::vector.
3542 * symfile.c (default_symfile_segments): Update.
3543 * elfread.c (elf_symfile_segments): Update.
3544
3545 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3548 <segments>: New.
3549 <segment_bases, segment_sizes>: Remove.
3550 * symfile.c (default_symfile_segments): Update.
3551 * elfread.c (elf_symfile_segments): Update.
3552 * remote.c (remote_target::get_offsets): Update.
3553 * solib-target.c (solib_target_relocate_section_addresses):
3554 Update.
3555
3556 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * symfile.h (struct symfile_segment_data): Initialize fields.
3559 <~symfile_segment_data>: Add.
3560 (symfile_segment_data_up): New.
3561 (struct sym_fns) <sym_segments>: Return a
3562 symfile_segment_data_up.
3563 (default_symfile_segments): Return a symfile_segment_data_up.
3564 (free_symfile_segment_data): Remove.
3565 (get_symfile_segment_data): Return a symfile_segment_data_up.
3566 * symfile.c (default_symfile_segments): Likewise.
3567 (get_symfile_segment_data): Likewise.
3568 (free_symfile_segment_data): Remove.
3569 (symfile_find_segment_sections): Update.
3570 * elfread.c (elf_symfile_segments): Return a
3571 symfile_segment_data_up.
3572 * remote.c (remote_target::get_offsets): Update.
3573 * solib-target.c (solib_target_relocate_section_addresses):
3574 Update.
3575 * symfile-debug.c (debug_sym_segments): Return a
3576 symfile_segment_data_up.
3577
3578 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3579
3580 PR build/25981
3581 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3582 Hardcode register numbers.
3583
3584 PR build/25981
3585 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3586 procfs_find_LDT_entry): Remove.
3587 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3588 procfs_find_LDT_entry): Remove.
3589 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3590 Remove.
3591
3592 2020-05-17 Pedro Alves <palves@redhat.com>
3593 Andrew Burgess <andrew.burgess@embecosm.com>
3594 Keno Fischer <keno@juliacomputing.com>
3595
3596 PR gdb/25741
3597 * breakpoint.c (build_target_condition_list): Update comments.
3598 (build_target_command_list): Update comments and skip matching
3599 locations.
3600 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3601 a separate function. Simplify "set breakpoint auto-hw off"
3602 handling.
3603 (insert_breakpoints): Update comment.
3604 (tracepoint_locations_match): New parameter. For breakpoints,
3605 compare location types too, if the caller wants to.
3606 (handle_automatic_hardware_breakpoints): New functions.
3607 (bp_location_is_less_than): Also sort by location type and
3608 hardware breakpoint length.
3609 (update_global_location_list): Handle "set breakpoint auto-hw on"
3610 here.
3611 (update_breakpoint_locations): Ask breakpoint_locations_match to
3612 ignore location types.
3613
3614 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3615
3616 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3617 type::name instead.
3618
3619 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * gdbtypes.h (struct type) <name, set_name>: New methods.
3622 (TYPE_CODE): Use type::name. Change all call sites used to set
3623 the name to use type::set_name instead.
3624
3625 2020-05-16 Tom Tromey <tom@tromey.com>
3626
3627 * top.c (quit_force): Update.
3628 * infrun.c (handle_no_resumed): Update.
3629 * top.h (all_uis): New function.
3630 (ALL_UIS): Remove.
3631
3632 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3635
3636 2020-05-16 Pedro Alves <palves@redhat.com>
3637
3638 * ia64-linux-nat.c
3639 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3640 Declare method.
3641 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3642
3643 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3646 (sparc64_adi_info): Likewise.
3647
3648 2020-05-15 Tom Tromey <tom@tromey.com>
3649
3650 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3651 block_objfile.
3652 (lookup_objfile_from_block): Remove.
3653 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3654 (lookup_global_symbol): Use block_objfile.
3655 * symtab.h (lookup_objfile_from_block): Don't declare.
3656 * printcmd.c (clear_dangling_display_expressions): Use
3657 block_objfile.
3658 * parse.c (operator_check_standard): Use block_objfile.
3659
3660 2020-05-15 Tom Tromey <tom@tromey.com>
3661
3662 * language.c (language_alloc_type_symbol): Set
3663 SYMBOL_SECTION.
3664 * symtab.c (initialize_objfile_symbol): Remove.
3665 (allocate_symbol): Remove.
3666 (allocate_template_symbol): Remove.
3667 * dwarf2/read.c (fixup_go_packaging): Use "new".
3668 (new_symbol): Use "new".
3669 (read_variable): Don't call initialize_objfile_symbol. Use
3670 "new".
3671 (read_func_scope): Use "new".
3672 * xcoffread.c (process_xcoff_symbol): Don't call
3673 initialize_objfile_symbol.
3674 (SYMBOL_DUP): Remove.
3675 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3676 "new".
3677 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3678 (allocate_template_symbol): Don't declare.
3679 (struct symbol): Add copy constructor. Change defaults.
3680 * jit.c (finalize_symtab): Use "new".
3681 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3682 Use "new".
3683 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3684 (common_block_end): Use "new".
3685 * mdebugread.c (parse_symbol): Use "new".
3686 (new_symbol): Likewise.
3687
3688 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3689
3690 * NEWS: Mention changes to help and apropos.
3691
3692 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3693
3694 * command.h (enum command_class): Improve comments, document
3695 that class_alias is for user-defined aliases, give the class
3696 name for each class, remove unused class_xdb.
3697 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3698 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3699 by a precise class.
3700 * infcmd.c (_initialize_infcmd): Likewise.
3701 * reverse.c (_initialize_reverse): Likewise.
3702 * stack.c (_initialize_stack): Likewise.
3703 * symfile.c (_initialize_symfile): Likewise.
3704 * tracepoint.c (_initialize_tracepoint): Likewise.
3705
3706 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3707
3708 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3709 when their aliased command is traversed.
3710 (help_cmd): Add fput_command_names_styled call to
3711 output command name and aliases when command has an alias.
3712
3713 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714
3715 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3716 * cli/cli-decode.c (help_cmd_list): Declare as static,
3717 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3718 a command together with the command.
3719 (fput_command_name_styled, fput_command_names_styled): New functions.
3720 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3721 fput_command_name_styled.
3722 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3723 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3724
3725 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3726
3727 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3728 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3729 * command.h (cmd_show_list): Likewise.
3730 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3731 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3732
3733 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3734
3735 * unittests/command-def-selftests.c (traverse_command_structure):
3736 Verify all commands of a list have the same prefix command and
3737 that only the top cmdlist commands have a null prefix.
3738
3739 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3740
3741 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3742 as prefix, not one of its aliases.
3743 (set_cmd_prefix): Remove.
3744 (do_add_cmd): Centralize the setting of the prefix of a command, when
3745 command is defined after its full chain of prefix commands.
3746 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3747 (add_setshow_cmd_full): Likewise.
3748 (update_prefix_field_of_prefixed_commands): New function.
3749 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3750 update_prefix_field_of_prefixed_commands.
3751 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3752 addresses of remote_set_cmdlist and remote_show_cmdlist given
3753 as argument, not the address of an argument.
3754 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3755 * gdb/remote.c (_initialize_remote): Likewise.
3756
3757 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3758
3759 * cli/cli-cmds.c (alias_command): Check for an existing alias
3760 using lookup_cmd_composition, as valid_command_p is too strict
3761 and forbids aliases that are the prefix of an existing alias
3762 or command.
3763 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3764 command is properly recognised as a valid command.
3765
3766 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3767
3768 * unittests/help-doc-selftests.c: Rename to
3769 unittests/command-def-selftests.c
3770 * unittests/command-def-selftests.c (help_doc_tests): Update some
3771 comments.
3772 (command_structure_tests, traverse_command_structure): New namespace
3773 and function.
3774 (command_structure_invariants_tests): New function.
3775 (_initialize_command_def_selftests) Renamed from
3776 _initialize_help_doc_selftests, register command_structure_invariants
3777 selftest.
3778
3779 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3780
3781 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3782 an alias of 'show'.
3783
3784 2020-05-15 Joel Brobecker <brobecker@adacore.com>
3785
3786 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3787 ada_is_fixed_point_type. Update all callers.
3788 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3789 all callers.
3790 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3791 Update all callers.
3792 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3793 print_fixed_point_type. Update all callers.
3794 * ada-valprint.c (ada_value_print_num): Replace call to
3795 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3796
3797 2020-05-14 Kevin Buettner <kevinb@redhat.com>
3798
3799 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3800 processors.
3801 (cpu_supports_bts): Add CV_AMD case.
3802
3803 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3804 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * infrun.c (stop_all_threads): Collect multiple wait events at
3807 each pass.
3808
3809 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3810
3811 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3812 type::code instead.
3813
3814 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * gdbtypes.h (struct type) <code, set_code>: New methods.
3817 (TYPE_CODE): Use type::code. Change all call sites used to set
3818 the code to use type::set_code instead.
3819
3820 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3821 Tom de Vries <tdevries@suse.de>
3822 Pedro Alves <palves@redhat.com>
3823
3824 PR threads/25478
3825 * infrun.c (stop_all_threads): Do NOT ignore
3826 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3827 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3828 received.
3829 (handle_no_resumed): Remove code handling a live inferior with no
3830 threads.
3831 * remote.c (has_single_non_exited_thread): New.
3832 (remote_target::update_thread_list): Do not delete a thread if is
3833 the last thread of the process.
3834 * thread.c (thread_select): Call delete_exited_threads instead of
3835 prune_threads.
3836
3837 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3838
3839 * infrun.c (stop_all_threads): Enable/disable thread events of all
3840 targets. Move a debug message denoting the end of the function
3841 into the SCOPED_EXIT block.
3842
3843 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844
3845 * process-stratum-target.h: Include <set>.
3846 (all_non_exited_process_targets, switch_to_target_no_thread): New
3847 function declarations.
3848 * process-stratum-target.c (all_non_exited_process_targets)
3849 (switch_to_target_no_thread): New function implementations.
3850
3851 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3852
3853 * infrun.c (handle_inferior_event): Extract out a piece of code
3854 into...
3855 (mark_non_executing_threads): ...this new function.
3856
3857 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3858
3859 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3860 use.
3861
3862 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3863
3864 * regcache.c (regcache_read_pc_protected): New function
3865 implementation that returns 0 if the PC cannot read via
3866 'regcache_read_pc'.
3867 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3868 instead of 'regcache_read_pc'.
3869 (keep_going_pass_signal): Ditto.
3870
3871 2020-05-13 Tom Tromey <tromey@adacore.com>
3872
3873 * ada-lang.c (align_value): Remove.
3874 (ada_template_to_fixed_record_type_1): Use align_up.
3875
3876 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3877
3878 * async-event.c: Update the copyright year.
3879 * async-event.h: Update the copyright year.
3880
3881 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
3882
3883 * objfiles.h (is_addr_in_objfile,
3884 shared_objfile_contains_address_p): Return bool.
3885 * objfile.c (is_addr_in_objfile,
3886 shared_objfile_contains_address_p): Return bool.
3887
3888 2020-05-11 Tom Tromey <tromey@adacore.com>
3889
3890 * cli/cli-cmds.c (info_command): Restore.
3891 (_initialize_cli_cmds): Use add_prefix_command for "info".
3892 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3893
3894 2020-05-11 Tom Tromey <tromey@adacore.com>
3895
3896 * ada-lang.c (ada_value_primitive_field): Now public.
3897 * ada-lang.h (ada_value_primitive_field): Declare.
3898 * ada-valprint.c (print_field_values): Use
3899 ada_value_primitive_field for wrapper fields.
3900
3901 2020-05-11 Tom de Vries <tdevries@suse.de>
3902
3903 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3904 MODULE_DOMAIN.
3905
3906 2020-05-11 Tom de Vries <tdevries@suse.de>
3907
3908 PR symtab/25941
3909 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3910 with length 0, if not gdb-produced.
3911 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3912
3913 2020-05-09 Tom de Vries <tdevries@suse.de>
3914
3915 PR gdb/25955
3916 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3917 calculation.
3918
3919 2020-05-09 Tom Tromey <tom@tromey.com>
3920
3921 * top.c (server_command): Now bool.
3922 * top.h (server_command): Now bool.
3923
3924 2020-05-08 Tom Tromey <tromey@adacore.com>
3925
3926 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3927 already being processed.
3928
3929 2020-05-08 Tom Tromey <tom@tromey.com>
3930
3931 * printcmd.c (struct display) <next>: Remove.
3932 <display>: New constructor.
3933 <exp_string>: Now a std::string.
3934 <enabled_p>: Now a bool.
3935 (display_number): Move definition earlier.
3936 (displays): Rename from display_chain. Now a std::vector.
3937 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3938 (display_command): Update.
3939 (do_one_display, disable_display)
3940 (enable_disable_display_command, do_enable_disable_display):
3941 Update.
3942 (free_display): Remove.
3943 (clear_displays): Rewrite.
3944 (delete_display): Update.
3945 (map_display_numbers): Use function_view. Remove "data"
3946 parameter. Update.
3947 (do_delete_display): Remove.
3948 (undisplay_command): Update.
3949 (do_one_display, do_displays, disable_display)
3950 (info_display_command): Update.
3951 (do_enable_disable_display): Remove.
3952 (enable_disable_display_command)
3953 (clear_dangling_display_expressions): Update.
3954
3955 2020-05-08 Tom Tromey <tom@tromey.com>
3956
3957 * symtab.c (set_symbol_cache_size)
3958 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3959 (maintenance_print_symbol_cache_statistics): Update.
3960 * symmisc.c (print_symbol_bcache_statistics)
3961 (print_objfile_statistics, maintenance_print_objfiles)
3962 (maintenance_info_symtabs, maintenance_check_symtabs)
3963 (maintenance_expand_symtabs, maintenance_info_line_tables):
3964 Update.
3965 * symfile-debug.c (set_debug_symfile): Update.
3966 * source.c (forget_cached_source_info): Update.
3967 * python/python.c (gdbpy_progspaces): Update.
3968 * psymtab.c (maintenance_info_psymtabs): Update.
3969 * probe.c (parse_probes): Update.
3970 * linespec.c (iterate_over_all_matching_symtabs)
3971 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3972 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3973 * exec.c (exec_target::close): Update.
3974 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3975 * breakpoint.c (print_one_breakpoint_location)
3976 (create_longjmp_master_breakpoint)
3977 (create_std_terminate_master_breakpoint): Update.
3978 * progspace.c (program_spaces): Now a std::vector.
3979 (maybe_new_address_space): Update.
3980 (add_program_space): Remove.
3981 (program_space::program_space): Update.
3982 (remove_program_space): Update.
3983 (number_of_program_spaces): Remove.
3984 (print_program_space, update_address_spaces): Update.
3985 * progspace.h (program_spaces): Change type.
3986 (ALL_PSPACES): Remove.
3987 (number_of_program_spaces): Don't declare.
3988 (struct program_space) <next>: Remove.
3989
3990 2020-05-08 Tom Tromey <tom@tromey.com>
3991
3992 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3993 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3994 (enable_break): Update.
3995 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3996 (frv_fdpic_find_canonical_descriptor): Update.
3997 (frv_fetch_objfile_link_map): Update.
3998 * progspace.c (program_space::free_all_objfiles): Update.
3999 (program_space::solibs): New method.
4000 * progspace.h (struct program_space) <solibs>: New method.
4001 * solist.h (master_so_list): Don't declare.
4002 (ALL_SO_LIBS): Remove.
4003 * solib.h (so_list_head): Remove.
4004 (update_solib_list): Update comment.
4005 * solib.c (master_so_list): Remove.
4006 (solib_used, update_solib_list, solib_add)
4007 (info_sharedlibrary_command, clear_solib)
4008 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4009
4010 2020-05-08 Tom Tromey <tom@tromey.com>
4011
4012 * extension.c (extension_languages): Now a std::array.
4013 (ALL_EXTENSION_LANGUAGES): Remove.
4014 (get_ext_lang_defn, get_ext_lang_of_file)
4015 (eval_ext_lang_from_control_command): Update.
4016 (finish_ext_lang_initialization)
4017 (auto_load_ext_lang_scripts_for_objfile)
4018 (ext_lang_type_printers::ext_lang_type_printers)
4019 (apply_ext_lang_type_printers)
4020 (ext_lang_type_printers::~ext_lang_type_printers)
4021 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4022 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4023 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4024 (get_matching_xmethod_workers, ext_lang_colorize)
4025 (ext_lang_before_prompt): Update.
4026 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4027
4028 2020-05-08 Tom Tromey <tom@tromey.com>
4029
4030 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4031 overload.
4032 <swap_string, m_string>: Remove.
4033 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4034 Update.
4035 * stabsread.c (define_symbol, read_type): Update.
4036 * linespec.c (find_linespec_symbols): Update.
4037 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4038 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4039 * dbxread.c (read_dbx_symtab): Update.
4040 * cp-support.h (cp_canonicalize_string_full)
4041 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4042 Return unique_xmalloc_ptr.
4043 * cp-support.c (inspect_type): Update.
4044 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4045 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4046 Likewise.
4047 * c-typeprint.c (print_name_maybe_canonical): Update.
4048 * break-catch-throw.c (check_status_exception_catchpoint):
4049 Update.
4050
4051 2020-05-08 Tom de Vries <tdevries@suse.de>
4052
4053 * infrun.c (follow_fork): Copy current_line and current_symtab to
4054 child thread.
4055
4056 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * async-event.c (struct async_signal_handler, struct
4059 async_event_handler): Reformat, remove typedef.
4060
4061 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4064 access thistype->main_type->dyn_prop_list directly.
4065
4066 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4069 (remove_dyn_prop): Remove. Update all users to use
4070 type::remove_dyn_prop.
4071 * gdbtypes.c (remove_dyn_prop): Rename to...
4072 (type::remove_dyn_prop): ... this.
4073
4074 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4075
4076 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4077 (add_dyn_prop): Remove. Update all users to use
4078 type::add_dyn_prop.
4079 * gdbtypes.c (add_dyn_prop): Rename to...
4080 (type::add_dyn_prop): ... this.
4081
4082 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4085 (get_dyn_prop): Remove. Update all users to use
4086 type::dyn_prop.
4087 * gdbtypes.c (get_dyn_prop): Rename to...
4088 (type::dyn_prop): ... this.
4089
4090 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4093
4094 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4097 instruction, skip it if it's there.
4098
4099 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4102
4103 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4104
4105 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4106 * gdbtypes.c (recursive_dump_type): Remove use of
4107 TYPE_INCOMPLETE.
4108
4109 2020-05-03 Tom Tromey <tom@tromey.com>
4110
4111 * breakpoint.c (catch_command, tcatch_command): Remove.
4112 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4113 add_show_prefix_cmd.
4114 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4115 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4116 Remove.
4117 (add_internal_problem_command): Use add_basic_prefix_cmd,
4118 add_show_prefix_cmd.
4119 * mips-tdep.c (set_mipsfpu_command): Remove.
4120 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4121 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4122 (_initialize_index_cache): Use add_basic_prefix_cmd.
4123 * memattr.c (dummy_cmd): Remove.
4124 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4125 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4126 (_initialize_tui_win): Use add_basic_prefix_cmd,
4127 add_show_prefix_cmd.
4128 * cli/cli-logging.c (set_logging_command): Remove.
4129 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4130 add_show_prefix_cmd.
4131 (show_logging_command): Remove.
4132 * target.c (target_command): Remove.
4133 (add_target): Use add_basic_prefix_cmd.
4134
4135 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4136
4137 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4138
4139 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4140
4141 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4142 info_command.
4143
4144 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4145
4146 * nbsd-nat.c (nbsd_enable_proc_events)
4147 (nbsd_nat_target::post_startup_inferior): Add.
4148 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4149 (nbsd_nat_target::update_thread_list): Rewrite.
4150 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4151 "PTRACE_LWP_CREATE".
4152 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4153
4154 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4155
4156 * stack.c (_initialize_stack): Remove duplicated creation
4157 of "frame" command and "f" alias.
4158
4159 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4160
4161 PR gdb/18706
4162 * gdbtypes.c (check_typedef): Calculate size of array of
4163 stubbed type.
4164
4165 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4166
4167 PR gdb/15559
4168 * i386-tdep.c (i386_push_dummy_call): Call
4169 i386_thiscall_push_dummy_call.
4170 (i386_thiscall_push_dummy_call): New function.
4171 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4172 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4173 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4174
4175 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4176
4177 * gdbarch.sh (do_read): Add shellcheck disable directive for
4178 warning SC2162.
4179
4180 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4181
4182 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4183 "referenced but not assigned" warning.
4184
4185 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * gdbarch.sh: Remove code that sets fallbackdefault.
4188
4189 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * gdbarch.sh: Use shell operators && and || instead of
4192 -a and -o.
4193
4194 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4195
4196 * gdbarch.sh: Use $(...) instead of `...`.
4197
4198 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * gdbarch.sh: Use double quotes around variables.
4201
4202 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * gdbarch.sh: Use %s with printf, instead of variables in the
4205 format string.
4206
4207 2020-04-29 Tom Tromey <tromey@adacore.com>
4208
4209 PR ada/25875:
4210 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4211 type fields here.
4212 (read_enumeration_type): Call
4213 update_enumeration_type_from_children later. Update comments.
4214 (process_enumeration_scope): Don't create type fields.
4215
4216 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4217
4218 * nbsd-tdep.c: Include "xml-syscall.h".
4219 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4220
4221 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4222
4223 * nbsd-nat.c: Include "sys/wait.h".
4224 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4225 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4226 (nbsd_nat_target::remove_exec_catchpoint)
4227 (nbsd_nat_target::set_syscall_catchpoint): Add.
4228 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4229 (nbsd_nat_target::insert_exec_catchpoint)
4230 (nbsd_nat_target::remove_exec_catchpoint)
4231 (nbsd_nat_target::set_syscall_catchpoint): Add.
4232 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4233 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4234 `nbsd_get_syscall_number'.
4235
4236 2020-04-29 Tom Tromey <tom@tromey.com>
4237
4238 * stack.c (print_block_frame_labels): Remove.
4239
4240 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4241
4242 PR gdb/17320
4243 * ada-valprint.c (val_print_packed_array_elements): Move array
4244 end bracket to new line.
4245 (ada_val_print_string): Remove extra spaces before first array
4246 element.
4247 * c-valprint.c (c_value_print_array): Likewise.
4248 * m2-valprint.c (m2_print_array_contents): Likewise.
4249 (m2_value_print_inner): Likewise.
4250 * p-valprint.c (pascal_value_print_inner): Likewise.
4251 * valprint.c (generic_val_print_array): Likewise.
4252 (value_print_array_elements): Move first array element and array
4253 end bracket to new line.
4254
4255 2020-04-29 Tom de Vries <tdevries@suse.de>
4256
4257 PR symtab/25889
4258 * linespec.c (find_method): Fix ix calculation.
4259
4260 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4261
4262 * syscalls/update-netbsd.sh: New file.
4263 * syscalls/netbsd.xml: Regenerate.
4264 * data-directory/Makefile.in: Register `netbsd.xml' in
4265 `SYSCALLS_FILES'.
4266
4267 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * syscalls/update-freebsd.sh: Add double quotes.
4270
4271 2020-04-28 Tom Tromey <tom@tromey.com>
4272
4273 * NEWS: Update.
4274 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4275 (cmdpy_init): Allow class_tui.
4276
4277 2020-04-28 Mark Williams <mark@myosotissp.com>
4278
4279 PR gdb/24480
4280 * dwarf2read.c: Add missing assingments to list_in_scope when
4281 start_symtab was already called.
4282
4283 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4284
4285 PR gdb/25881
4286 * dwarf2/read.c (offset_map_type): Use
4287 gdb:hash_enum<sect_offset> as hash function.
4288
4289 2020-04-28 Tom de Vries <tdevries@suse.de>
4290
4291 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4292 with DW_AT_signature.
4293
4294 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4295
4296 * configure.ac: Remove check for fs_base/gs_base in
4297 user_regs_struct.
4298 * configure: Re-generate.
4299 * config.in: Re-generate.
4300 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4301 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4302 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4303
4304 2020-04-27 Luis Machado <luis.machado@linaro.org>
4305
4306 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4307 problematic inline frame unwinding situation.
4308 * frame.c (frame_id_computed_p): New function.
4309 * frame.h (frame_id_computed_p): New prototype.
4310
4311 2020-04-26 Tom Tromey <tom@tromey.com>
4312
4313 * command.h (enum command_class) <class_pseudo>: Remove.
4314
4315 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4316
4317 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4318 and whitespace.
4319
4320 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4321
4322 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4323 `PT_GET_PROCESS_STATE' block.
4324
4325 2020-04-24 Tom Tromey <tom@tromey.com>
4326
4327 * symtab.h (symbol_get_demangled_name): Don't declare.
4328 * symtab.c (symbol_get_demangled_name): Remove.
4329 (general_symbol_info::natural_name)
4330 (general_symbol_info::demangled_name): Update.
4331
4332 2020-04-24 Tom Tromey <tom@tromey.com>
4333
4334 PR rust/25025:
4335 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4336
4337 2020-04-24 Tom Tromey <tom@tromey.com>
4338
4339 PR symtab/12707:
4340 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4341 exists.
4342 (new_symbol): Likewise.
4343 * compile/compile-object-load.c (get_out_value_type): Use
4344 symbol_matches_search_name.
4345
4346 2020-04-24 Tom Tromey <tom@tromey.com>
4347
4348 * dwarf2/read.c (add_partial_symbol): Do not call
4349 compute_and_set_names.
4350
4351 2020-04-24 Tom Tromey <tom@tromey.com>
4352
4353 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4354 overload.
4355
4356 2020-04-24 Tom Tromey <tom@tromey.com>
4357
4358 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4359 (add_psymbol_to_list): New overload. Make old overload call new
4360 one.
4361 * psympriv.h (add_psymbol_to_list): New overload.
4362
4363 2020-04-24 Tom Tromey <tom@tromey.com>
4364
4365 * dwarf2/read.c (partial_die_info::read) <case
4366 DW_AT_linkage_name>: Use value_as_string.
4367 (dwarf2_string_attr): Use value_as_string.
4368 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4369 method.
4370 * dwarf2/attribute.c (attribute::value_as_string): New method.
4371
4372 2020-04-24 Tom Tromey <tom@tromey.com>
4373
4374 * symtab.c (general_symbol_info::natural_name)
4375 (general_symbol_info::demangled_name): Check for language_rust.
4376
4377 2020-04-24 Tom Tromey <tom@tromey.com>
4378
4379 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4380 (dwarf2_physname): ... from here.
4381 (partial_die_info::read): Add Rust "{" hack.
4382
4383 2020-04-24 Tom Tromey <tom@tromey.com>
4384
4385 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4386 method.
4387 (symbol_set_demangled_name): Don't declare.
4388 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4389 symbol_set_demangled_name.
4390 (general_symbol_info::set_language)
4391 (general_symbol_info::compute_and_set_names): Update.
4392 * minsyms.c (minimal_symbol_reader::install): Update.
4393 * dwarf2/read.c (new_symbol): Update.
4394
4395 2020-04-24 Tom Tromey <tromey@adacore.com>
4396
4397 PR python/23662:
4398 * python/py-type.c (convert_field): Handle
4399 FIELD_LOC_KIND_DWARF_BLOCK.
4400 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4401 (typy_get_dynamic): Nw function.
4402 (type_object_getset): Add "dynamic".
4403 * NEWS: Add entry.
4404
4405 2020-04-24 Tom Tromey <tromey@adacore.com>
4406
4407 * ada-typeprint.c (print_choices, print_variant_part)
4408 (print_record_field_types_dynamic): New functions.
4409 (print_record_field_types): Use print_record_field_types_dynamic.
4410
4411 2020-04-24 Tom Tromey <tromey@adacore.com>
4412
4413 * dwarf2/read.c (handle_data_member_location): New overload.
4414 (dwarf2_add_field): Use it.
4415 (decode_locdesc): Add "computed" parameter. Update comment.
4416 * gdbtypes.c (is_dynamic_type_internal): Also look for
4417 FIELD_LOC_KIND_DWARF_BLOCK.
4418 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4419 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4420 virtual base classes.
4421 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4422 FIELD_LOC_KIND_DWARF_BLOCK.
4423
4424 2020-04-24 Tom Tromey <tromey@adacore.com>
4425
4426 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4427 * gdbtypes.c (is_dynamic_type_internal): Check
4428 TYPE_HAS_DYNAMIC_LENGTH.
4429 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4430 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4431 New macros.
4432 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4433 constant.
4434
4435 2020-04-24 Tom Tromey <tromey@adacore.com>
4436
4437 * dwarf2/read.c (struct variant_field): Rewrite.
4438 (struct variant_part_builder): New.
4439 (struct nextfield): Remove "variant" field. Add "offset".
4440 (struct field_info): Add "current_variant_part" and
4441 "variant_parts".
4442 (alloc_discriminant_info): Remove.
4443 (alloc_rust_variant): New function.
4444 (quirk_rust_enum): Update.
4445 (dwarf2_add_field): Set "offset" member. Don't handle
4446 DW_TAG_variant_part.
4447 (offset_map_type): New typedef.
4448 (convert_variant_range, create_one_variant)
4449 (create_one_variant_part, create_variant_parts)
4450 (add_variant_property): New functions.
4451 (dwarf2_attach_fields_to_type): Call add_variant_property.
4452 (read_structure_type): Don't handle DW_TAG_variant_part.
4453 (handle_variant_part, handle_variant): New functions.
4454 (handle_struct_member_die): Use them.
4455 (process_structure_scope): Don't handle variant parts.
4456 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4457 (struct discriminant_info): Remove.
4458 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4459 (struct main_type) <flag_discriminated_union>: Remove.
4460 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4461 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4462 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4463 Update.
4464 * valops.c (value_union_variant): Remove.
4465 * value.h (value_union_variant): Don't declare.
4466
4467 2020-04-24 Tom Tromey <tromey@adacore.com>
4468
4469 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4470 (ada_value_primitive_packed_val): Update.
4471 * ada-valprint.c (ada_value_print_1): Update.
4472 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4473 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4474 just an address. Use evaluate_for_locexpr_baton.
4475 (dwarf2_evaluate_property): Update.
4476 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4477 array_view.
4478 * findvar.c (default_read_var_value): Update.
4479 * gdbtypes.c (compute_variant_fields_inner)
4480 (resolve_dynamic_type_internal): Update.
4481 (resolve_dynamic_type): Change type of valaddr parameter.
4482 * gdbtypes.h (resolve_dynamic_type): Update.
4483 * valarith.c (value_subscripted_rvalue): Update.
4484 * value.c (value_from_contents_and_address): Update.
4485
4486 2020-04-24 Tom Tromey <tromey@adacore.com>
4487
4488 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4489 "push_initial_value" parameter.
4490 (dwarf2_evaluate_property): Likewise.
4491 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4492
4493 2020-04-24 Tom Tromey <tromey@adacore.com>
4494
4495 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4496 (variant::matches, compute_variant_fields_recurse)
4497 (compute_variant_fields_inner, compute_variant_fields): New
4498 functions.
4499 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4500 Use resolved_type after type is made.
4501 (operator==): Add new cases.
4502 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4503 (struct discriminant_range, struct variant, struct variant_part):
4504 New.
4505 (union dynamic_prop_data) <variant_parts, original_type>: New
4506 members.
4507 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4508 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4509 constants.
4510 * value.c (unpack_bits_as_long): Now public.
4511 * value.h (unpack_bits_as_long): Declare.
4512
4513 2020-04-24 Tom Tromey <tromey@adacore.com>
4514
4515 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4516 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4517
4518 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4519
4520 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4521
4522 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4523
4524 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4525 (remove_fork_catchpoint, post_startup_inferior)
4526 (post_attach): Move...
4527 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4528 (remove_fork_catchpoint, post_startup_inferior)
4529 (post_attach): ...here.
4530 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4531 (remove_fork_catchpoint, post_startup_inferior)
4532 (post_attach): Move...
4533 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4534 (remove_fork_catchpoint, post_startup_inferior)
4535 (post_attach): ...here.
4536
4537 2020-04-24 Tom Tromey <tromey@adacore.com>
4538
4539 * nat/windows-nat.h (struct windows_thread_info)
4540 <pc_adjusted>: New member.
4541 * windows-nat.c (windows_fetch_one_register): Check
4542 pc_adjusted.
4543 (windows_nat_target::get_windows_debug_event)
4544 (windows_nat_target::wait): Set pc_adjusted.
4545
4546 2020-04-24 Tom de Vries <tdevries@suse.de>
4547
4548 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4549 Run gdb-add-index inside temp dir.
4550
4551 2020-04-23 Tom Tromey <tromey@adacore.com>
4552
4553 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4554 in loop.
4555
4556 2020-04-23 Luis Machado <luis.machado@linaro.org>
4557
4558 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4559 get_frame_register instead of gdbarch_unwind_pc.
4560
4561 2020-04-23 Tom de Vries <tdevries@suse.de>
4562
4563 * symtab.c (lookup_global_symbol): Prefer def over decl.
4564
4565 2020-04-23 Tom de Vries <tdevries@suse.de>
4566
4567 PR symtab/25807
4568 * block.c (best_symbol, better_symbol): Promote to external.
4569 * block.h (best_symbol, better_symbol): Declare.
4570 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4571 decl.
4572
4573 2020-04-23 Tom Tromey <tromey@adacore.com>
4574
4575 PR ada/25837:
4576 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4577 "const char *", not a "const std::string &".
4578 <name_and_matcher::operator==>: Update.
4579 * unittests/lookup_name_info-selftests.c: Change type of
4580 "result".
4581
4582 2020-04-23 Tom Tromey <tom@tromey.com>
4583
4584 * inferior.h (iterate_over_inferiors): Don't declare.
4585 * inferior.c (iterate_over_inferiors): Remove.
4586 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4587 Remove.
4588 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4589 use iterate_over_inferiors.
4590 (darwin_resume_inferior_it)
4591 (struct resume_inferior_threads_param)
4592 (darwin_resume_inferior_threads_it): Remove.
4593 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4594
4595 2020-04-23 Tom de Vries <tdevries@suse.de>
4596
4597 * blockframe.c (find_pc_partial_function): Use
4598 find_pc_sect_compunit_symtab rather than
4599 objfile->sf->qf->find_pc_sect_compunit_symtab.
4600
4601 2020-04-22 Tom de Vries <tdevries@suse.de>
4602
4603 PR symtab/25764
4604 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4605 in psymtabs.
4606
4607 2020-04-22 Tom de Vries <tdevries@suse.de>
4608
4609 PR symtab/25801
4610 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4611 symtabs.
4612
4613 2020-04-22 Tom de Vries <tdevries@suse.de>
4614
4615 PR symtab/25700
4616 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4617 CU if already created.
4618
4619 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4620
4621 * infrun.c (displaced_step_fixup): Switch to the event_thread
4622 before calling displaced_step_restore, not after.
4623
4624 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4625
4626 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4627 its inferior is not recorded by us.
4628 (record_btrace_target_open): Replace call to
4629 all_non_exited_threads () with call to current_inferior
4630 ()->non_exited_threads ().
4631 (record_btrace_target::stop_recording): Likewise.
4632 (record_btrace_target::close): Likewise.
4633 (record_btrace_target::wait): Likewise.
4634 (record_btrace_target::record_stop_replaying): Likewise.
4635
4636 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4637
4638 * btrace.c (btrace_enable): Throw an error on double enables and
4639 when enabling recording fails.
4640 (btrace_disable): Throw an error if the thread is not recorded.
4641
4642 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4643
4644 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4645 request if we do not have a thread_info.
4646
4647 2020-04-21 Tom de Vries <tdevries@suse.de>
4648
4649 PR gdb/25471
4650 * thread.c
4651 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4652 exception in get_frame_id.
4653
4654 2020-04-20 Tom Tromey <tromey@adacore.com>
4655
4656 * python/python.c (struct gdbpy_event): Mark move constructor as
4657 noexcept.
4658 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4659 constructor as noexcept.
4660 * completer.h (struct completion_result): Mark move constructor as
4661 noexcept.
4662 * completer.c (completion_result::completion_result): Use
4663 initialization style. Don't call reset_match_list.
4664
4665 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4666
4667 * MAINTAINERS (Write After Approval): Add myself.
4668
4669 2020-04-18 Tom Tromey <tom@tromey.com>
4670
4671 * windows-tdep.c (init_w32_command_list)
4672 (w32_prefix_command_valid): Restore.
4673 (_initialize_windows_tdep): Call init_w32_command_list.
4674
4675 2020-04-18 Tom Tromey <tom@tromey.com>
4676
4677 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4678 * value.c (value_fn_field): Update.
4679 * valops.c (find_function_in_inferior)
4680 (value_allocate_space_in_inferior): Update.
4681 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4682 Update.
4683 * tui/tui-source.c (tui_source_window::set_contents): Update.
4684 * symtab.c (lookup_global_or_static_symbol)
4685 (find_function_start_sal_1, skip_prologue_sal)
4686 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4687 * symmisc.c (dump_msymbols, dump_symtab_1)
4688 (maintenance_print_one_line_table): Update.
4689 * symfile.c (init_entry_point_info, section_is_mapped)
4690 (list_overlays_command, simple_read_overlay_table)
4691 (simple_overlay_update_1): Update.
4692 * stap-probe.c (handle_stap_probe): Update.
4693 * stabsread.c (dbx_init_float_type, define_symbol)
4694 (read_one_struct_field, read_enum_type, read_range_type): Update.
4695 * source.c (info_line_command): Update.
4696 * python/python.c (gdbpy_source_objfile_script)
4697 (gdbpy_execute_objfile_script): Update.
4698 * python/py-type.c (save_objfile_types): Update.
4699 * python/py-objfile.c (py_free_objfile): Update.
4700 * python/py-inferior.c (python_new_objfile): Update.
4701 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4702 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4703 (maintenance_check_psymtabs): Update.
4704 * printcmd.c (info_address_command): Update.
4705 * objfiles.h (struct objfile) <arch>: New method, from
4706 get_objfile_arch.
4707 (get_objfile_arch): Don't declare.
4708 * objfiles.c (get_objfile_arch): Remove.
4709 (filter_overlapping_sections): Update.
4710 * minsyms.c (msymbol_is_function): Update.
4711 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4712 (output_nondebug_symbol): Update.
4713 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4714 (mdebug_expand_psymtab): Update.
4715 * machoread.c (macho_add_oso_symfile): Update.
4716 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4717 Update.
4718 * linux-fork.c (checkpoint_command): Update.
4719 * linespec.c (convert_linespec_to_sals): Update.
4720 * jit.c (finalize_symtab): Update.
4721 * infrun.c (insert_exception_resume_from_probe): Update.
4722 * ia64-tdep.c (ia64_find_unwind_table): Update.
4723 * hppa-tdep.c (internalize_unwinds): Update.
4724 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4725 Update.
4726 * gcore.c (call_target_sbrk): Update.
4727 * elfread.c (record_minimal_symbol, elf_symtab_read)
4728 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4729 (elf_gnu_ifunc_resolve_by_got): Update.
4730 * dwarf2/read.c (create_addrmap_from_index)
4731 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4732 (read_debug_names_from_section)
4733 (process_psymtab_comp_unit_reader, add_partial_symbol)
4734 (add_partial_subprogram, process_full_comp_unit)
4735 (read_file_scope, read_func_scope, read_lexical_block_scope)
4736 (read_call_site_scope, dwarf2_ranges_read)
4737 (dwarf2_record_block_ranges, dwarf2_add_field)
4738 (mark_common_block_symbol_computed, read_tag_pointer_type)
4739 (read_tag_string_type, dwarf2_init_float_type)
4740 (dwarf2_init_complex_target_type, read_base_type)
4741 (partial_die_info::read, partial_die_info::read)
4742 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4743 (dwarf2_fetch_die_loc_sect_off): Update.
4744 * dwarf2/loc.c (dwarf2_find_location_expression)
4745 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4746 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4747 (dwarf2_loc_desc_get_symbol_read_needs)
4748 (locexpr_describe_location_piece, locexpr_describe_location_1)
4749 (loclist_describe_location): Update.
4750 * dwarf2/index-write.c (write_debug_names): Update.
4751 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4752 * dtrace-probe.c (dtrace_process_dof): Update.
4753 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4754 (process_one_symbol): Update.
4755 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4756 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4757 (coff_read_enum_type): Update.
4758 * cli/cli-cmds.c (edit_command, list_command): Update.
4759 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4760 * breakpoint.c (create_overlay_event_breakpoint)
4761 (create_longjmp_master_breakpoint)
4762 (create_std_terminate_master_breakpoint)
4763 (create_exception_master_breakpoint, get_sal_arch): Update.
4764 * block.c (block_gdbarch): Update.
4765 * annotate.c (annotate_source_line): Update.
4766
4767 2020-04-17 Tom Tromey <tromey@adacore.com>
4768
4769 * auto-load.c (show_auto_load_cmd): Remove.
4770 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4771 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4772 (maintenance_print_arc_command): Remove.
4773 * tui/tui-win.c (tui_command): Remove.
4774 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4775 * tui/tui-layout.c (tui_layout_command): Remove.
4776 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4777 * python/python.c (user_set_python, user_show_python): Remove.
4778 (_initialize_python): Use add_basic_prefix_cmd,
4779 add_show_prefix_cmd.
4780 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4781 (install_gdb_commands): Use add_basic_prefix_cmd,
4782 add_show_prefix_cmd.
4783 (info_guile_command): Remove.
4784 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4785 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4786 add_show_prefix_cmd.
4787 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4788 Remove do_set and do_show parameters.
4789 * cli/cli-style.c (set_style, show_style): Remove.
4790 (_initialize_cli_style): Use add_basic_prefix_cmd,
4791 add_show_prefix_cmd.
4792 (cli_style_option::add_setshow_commands): Remove do_set and
4793 do_show parameters.
4794 (cli_style_option::add_setshow_commands): Use
4795 add_basic_prefix_cmd, add_show_prefix_cmd.
4796 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4797 (set_style_name): Remove.
4798 * cli/cli-dump.c (dump_command, append_command): Remove.
4799 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4800 (tekhex_dump_command, binary_dump_command)
4801 (binary_append_command): Remove.
4802 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4803 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4804 (init_w32_command_list): Remove; move into ...
4805 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4806 * valprint.c (set_print, show_print, set_print_raw)
4807 (show_print_raw): Remove.
4808 (_initialize_valprint): Use add_basic_prefix_cmd,
4809 add_show_prefix_cmd.
4810 * typeprint.c (set_print_type, show_print_type): Remove.
4811 (_initialize_typeprint): Use add_basic_prefix_cmd,
4812 add_show_prefix_cmd.
4813 * record.c (set_record_command, show_record_command): Remove.
4814 (_initialize_record): Use add_basic_prefix_cmd,
4815 add_show_prefix_cmd.
4816 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4817 add_show_prefix_cmd.
4818 (info_command, show_command, set_debug, show_debug): Remove.
4819 * top.h (set_history, show_history): Don't declare.
4820 * top.c (set_history, show_history): Remove.
4821 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4822 (unset_tdesc_cmd): Remove.
4823 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4824 add_show_prefix_cmd.
4825 * symtab.c (info_module_command): Remove.
4826 (_initialize_symtab): Use add_basic_prefix_cmd.
4827 * symfile.c (overlay_command): Remove.
4828 (_initialize_symfile): Use add_basic_prefix_cmd.
4829 * sparc64-tdep.c (info_adi_command): Remove.
4830 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4831 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4832 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4833 add_show_prefix_cmd.
4834 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4835 (_initialize_serial): Use add_basic_prefix_cmd,
4836 add_show_prefix_cmd.
4837 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4838 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4839 add_show_prefix_cmd.
4840 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4841 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4842 add_show_prefix_cmd.
4843 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4844 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4845 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4846 add_show_prefix_cmd.
4847 * remote.c (remote_command, set_remote_cmd): Remove.
4848 (_initialize_remote): Use add_basic_prefix_cmd.
4849 * record-full.c (set_record_full_command)
4850 (show_record_full_command): Remove.
4851 (_initialize_record_full): Use add_basic_prefix_cmd,
4852 add_show_prefix_cmd.
4853 * record-btrace.c (cmd_set_record_btrace)
4854 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4855 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4856 (cmd_show_record_btrace_pt): Remove.
4857 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4858 add_show_prefix_cmd.
4859 * ravenscar-thread.c (set_ravenscar_command)
4860 (show_ravenscar_command): Remove.
4861 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4862 add_show_prefix_cmd.
4863 * mips-tdep.c (show_mips_command, set_mips_command)
4864 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4865 add_show_prefix_cmd.
4866 * maint.c (maintenance_command, maintenance_info_command)
4867 (maintenance_check_command, maintenance_print_command)
4868 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4869 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4870 add_show_prefix_cmd.
4871 (show_per_command_cmd): Remove.
4872 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4873 Remove.
4874 (maintenance_show_test_settings_cmd): Remove.
4875 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4876 add_show_prefix_cmd.
4877 * maint-test-options.c (maintenance_test_options_command):
4878 Remove.
4879 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4880 * macrocmd.c (macro_command): Remove
4881 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4882 * language.c (set_check, show_check): Remove.
4883 (_initialize_language): Use add_basic_prefix_cmd,
4884 add_show_prefix_cmd.
4885 * infcmd.c (unset_command): Remove.
4886 (_initialize_infcmd): Use add_basic_prefix_cmd.
4887 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4888 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4889 add_show_prefix_cmd.
4890 * go32-nat.c (go32_info_dos_command): Remove.
4891 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4892 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4893 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4894 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4895 (_initialize_frame): Use add_basic_prefix_cmd,
4896 add_show_prefix_cmd.
4897 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4898 (_initialize_dcache): Use add_basic_prefix_cmd,
4899 add_show_prefix_cmd.
4900 * cp-support.c (maint_cplus_command): Remove.
4901 (_initialize_cp_support): Use add_basic_prefix_cmd.
4902 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4903 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4904 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4905 add_basic_prefix_cmd, add_show_prefix_cmd.
4906 * breakpoint.c (save_command): Remove.
4907 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4908 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4909 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4910 add_show_prefix_cmd.
4911 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4912 (set_ada_command, show_ada_command): Remove.
4913 (_initialize_ada_language): Use add_basic_prefix_cmd,
4914 add_show_prefix_cmd.
4915 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4916
4917 2020-04-16 Kamil Rytarowski <n54@gmx.com>
4918
4919 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4920 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4921
4922 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4923
4924 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4925 warning messages.
4926
4927 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4928
4929 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4930 import table is not at beginning of .idata section.
4931
4932 2020-04-16 Pedro Alves <palves@redhat.com>
4933
4934 * inferior.c (delete_inferior): Use delete operator directly
4935 instead of delete_program_space.
4936 * progspace.c (add_program_space): New, factored out from
4937 program_space::program_space.
4938 (remove_program_space): New, factored out from
4939 delete_program_space.
4940 (program_space::program_space): Remove intro comment. Rewrite.
4941 (program_space::~program_space): Remove intro comment. Call
4942 remove_program_space.
4943 (delete_program_space): Delete.
4944 * progspace.h (program_space::program_space): Make explicit. Move
4945 intro comment here, adjusted.
4946 (program_space::~program_space): Move intro comment here,
4947 adjusted.
4948 (delete_program_space): Remove.
4949
4950 2020-04-16 Tom Tromey <tromey@adacore.com>
4951
4952 * windows-nat.c (windows_nat::handle_access_violation): New
4953 function.
4954 * nat/windows-nat.h (handle_access_violation): Declare.
4955 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4956 windows-nat.c. Call handle_access_violation.
4957
4958 2020-04-16 Tom de Vries <tdevries@suse.de>
4959
4960 PR symtab/25791
4961 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4962 CUs without psymtab.
4963
4964 2020-04-16 Kevin Buettner <kevinb@redhat.com>
4965
4966 * python/python.c (do_start_initialization): Don't call
4967 PyEval_InitThreads for Python 3.9 and beyond.
4968
4969 2020-04-15 Kamil Rytarowski <n54@gmx.com>
4970
4971 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4972 thread functions.
4973 (obsd_nat_target::wait): Likewise.
4974
4975 2020-04-15 Tom Tromey <tromey@adacore.com>
4976
4977 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4978 (DEBUG_EXCEPT): Use debug_printf.
4979
4980 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4981
4982 * completer.c (class completion_tracker::completion_hash_entry)
4983 <hash_name>: New member function.
4984 (completion_tracker::discard_completions): New callback to hash a
4985 completion_hash_entry, pass this to htab_create_alloc.
4986
4987 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4988
4989 * windows-nat.c (windows_make_so): Warn rather than stopping with
4990 an error if realpath() fails.
4991
4992 2020-04-14 Kamil Rytarowski <n54@gmx.com>
4993
4994 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4995 (nbsd_nat_target::info_proc): Add do_status.
4996
4997 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4998 Tom de Vries <tdevries@suse.de>
4999
5000 PR symtab/25718
5001 * psympriv.h (struct partial_symtab::read_symtab)
5002 (struct partial_symtab::expand_psymtab)
5003 (struct partial_symtab::read_dependencies): Update comments.
5004 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5005 read_symtab for includer.
5006 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5007 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5008 (struct dwarf2_include_psymtab::m_readin): Remove.
5009 (struct dwarf2_include_psymtab::includer): New member function.
5010 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5011
5012 2020-04-14 Tom de Vries <tdevries@suse.de>
5013
5014 PR symtab/25720
5015 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5016 with NULL symbol_matcher and lookup_name.
5017 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5018 and lookup_name.
5019 * dwarf2/read.c (dw2_expand_symtabs_matching)
5020 (dw2_debug_names_expand_symtabs_matching): Same.
5021 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5022 Make lookup_name a pointer. Update comment.
5023 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5024 lookup_name being a pointer.
5025 * symfile.c (expand_symtabs_matching): Same.
5026 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5027 * linespec.c (iterate_over_all_matching_symtabs): Same.
5028
5029 2020-04-13 Tom Tromey <tom@tromey.com>
5030
5031 * run-on-main-thread.c: Update include.
5032 * unittests/main-thread-selftests.c: Update include.
5033 * tui/tui-win.c: Update include.
5034 * tui/tui-io.c: Update include.
5035 * tui/tui-interp.c: Update include.
5036 * tui/tui-hooks.c: Update include.
5037 * top.h: Update include.
5038 * top.c: Update include.
5039 * ser-base.c: Update include.
5040 * remote.c: Update include.
5041 * remote-notif.c: Update include.
5042 * remote-fileio.c: Update include.
5043 * record-full.c: Update include.
5044 * record-btrace.c: Update include.
5045 * python/python.c: Update include.
5046 * posix-hdep.c: Update include.
5047 * mingw-hdep.c: Update include.
5048 * mi/mi-main.c: Update include.
5049 * mi/mi-interp.c: Update include.
5050 * main.c: Update include.
5051 * linux-nat.c: Update include.
5052 * interps.c: Update include.
5053 * infrun.c: Update include.
5054 * inf-loop.c: Update include.
5055 * event-top.c: Update include.
5056 * event-loop.c: Move to ../gdbsupport/.
5057 * event-loop.h: Move to ../gdbsupport/.
5058 * async-event.h: Update include.
5059 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5060
5061 2020-04-13 Tom Tromey <tom@tromey.com>
5062
5063 * tui/tui-win.c: Include async-event.h.
5064 * remote.c: Include async-event.h.
5065 * remote-notif.c: Include async-event.h.
5066 * record-full.c: Include async-event.h.
5067 * record-btrace.c: Include async-event.h.
5068 * infrun.c: Include async-event.h.
5069 * event-top.c: Include async-event.h.
5070 * event-loop.h: Move some declarations to async-event.h.
5071 * event-loop.c: Don't include ser-event.h or top.h. Move some
5072 code to async-event.c.
5073 * async-event.h: New file.
5074 * async-event.c: New file.
5075 * Makefile.in (COMMON_SFILES): Add async-event.c.
5076 (HFILES_NO_SRCDIR): Add async-event.h.
5077
5078 2020-04-13 Tom Tromey <tom@tromey.com>
5079
5080 * utils.c (flush_streams): New function.
5081 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5082
5083 2020-04-13 Tom Tromey <tom@tromey.com>
5084
5085 * event-loop.c (handle_file_event): Use warning, not
5086 printf_unfiltered.
5087
5088 2020-04-13 Tom Tromey <tom@tromey.com>
5089
5090 * event-loop.c: Include <chrono>.
5091
5092 2020-04-13 Tom Tromey <tom@tromey.com>
5093
5094 * gdb_select.h: Move to ../gdbsupport/.
5095 * event-loop.c: Update include path.
5096 * top.c: Update include path.
5097 * ser-base.c: Update include path.
5098 * ui-file.c: Update include path.
5099 * ser-tcp.c: Update include path.
5100 * guile/scm-ports.c: Update include path.
5101 * posix-hdep.c: Update include path.
5102 * ser-unix.c: Update include path.
5103 * gdb_usleep.c: Update include path.
5104 * mingw-hdep.c: Update include path.
5105 * inflow.c: Update include path.
5106 * infrun.c: Update include path.
5107 * event-top.c: Update include path.
5108
5109 2020-04-13 Tom Tromey <tom@tromey.com>
5110
5111 * configure: Rebuild.
5112 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5113
5114 2020-04-13 Tom Tromey <tom@tromey.com>
5115
5116 * event-loop.h (start_event_loop): Don't declare.
5117 * event-loop.c (start_event_loop): Move...
5118 * main.c (start_event_loop): ...here. Now static.
5119
5120 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5121
5122 * MAINTAINERS: Update my email address.
5123
5124 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5125
5126 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5127 IP_ALL.
5128
5129 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5130
5131 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5132 (nbsd_nat_target::info_proc): Add do_cmdline.
5133
5134 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5135
5136 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5137 (nbsd_nat_target::info_proc): Add do_cwd.
5138
5139 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5140
5141 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5142
5143 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5144
5145 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5146 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5147 (nbsd_nat_target::info_proc): New functions.
5148 * nbsd-nat.c (kinfo_get_vmmap): New function.
5149 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5150 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5151 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5152 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5153 functions.
5154 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5155 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5156 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5157 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5158 (KINFO_VME_FLAG_GROWS_DOWN): New.
5159
5160 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5161
5162 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5163 bit shift.
5164
5165 2020-04-10 Tom Tromey <tromey@adacore.com>
5166
5167 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5168
5169 2020-04-10 Tom Tromey <tromey@adacore.com>
5170
5171 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5172 separate debug files.
5173
5174 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5175
5176 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5177 Move to...
5178 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5179 ... here.
5180 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5181 Check for STATUS_WX86_BREAKPOINT.
5182 (windows_nat_target::wait): Same.
5183
5184 2020-04-10 Tom de Vries <tdevries@suse.de>
5185
5186 PR cli/25808
5187 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5188
5189 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5192 (Write After Approval): Remove Tom de Vries.
5193
5194 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5195
5196 revert partially:
5197 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5198
5199 * buildsym.c (record_line): Fix undefined behavior and preserve
5200 lines at eof.
5201
5202 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5203
5204 * auxv.h (svr4_auxv_parse): New.
5205 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5206 and generic_auxv_parse.
5207 (svr4_auxv_parse): Add.
5208 * obsd-tdep.c: Include "auxv.h".
5209 (obsd_auxv_parse): Remove.
5210 (obsd_init_abi): Remove comment.
5211 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5212 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5213 * nbsd-tdep.c: Include "auxv.h".
5214 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5215
5216 2020-04-08 Tom Tromey <tromey@adacore.com>
5217
5218 * nat/windows-nat.h (last_wait_event): Don't declare.
5219 (wait_for_debug_event): Update comment.
5220 * nat/windows-nat.c (last_wait_event): Now static.
5221
5222 2020-04-08 Tom Tromey <tromey@adacore.com>
5223
5224 * windows-nat.c (wait_for_debug_event): Move to
5225 nat/windows-nat.c.
5226 * nat/windows-nat.h (wait_for_debug_event): Declare.
5227 * nat/windows-nat.c (wait_for_debug_event): Move from
5228 windows-nat.c. No longer static.
5229
5230 2020-04-08 Tom Tromey <tromey@adacore.com>
5231
5232 * windows-nat.c (get_windows_debug_event): Use
5233 fetch_pending_stop.
5234 * nat/windows-nat.h (fetch_pending_stop): Declare.
5235 * nat/windows-nat.c (fetch_pending_stop): New function.
5236
5237 2020-04-08 Tom Tromey <tromey@adacore.com>
5238
5239 * windows-nat.c (windows_continue): Use matching_pending_stop and
5240 continue_last_debug_event.
5241 * nat/windows-nat.h (matching_pending_stop)
5242 (continue_last_debug_event): Declare.
5243 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5244 (matching_pending_stop, continue_last_debug_event): New
5245 functions.
5246
5247 2020-04-08 Tom Tromey <tromey@adacore.com>
5248
5249 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5250 (handle_exception_result): Move to nat/windows-nat.h.
5251 (DEBUG_EXCEPTION_SIMPLE): Remove.
5252 (windows_nat::handle_ms_vc_exception): New function.
5253 (handle_exception): Move to nat/windows-nat.c.
5254 (get_windows_debug_event): Update.
5255 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5256 nat/windows-nat.c.
5257 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5258 (handle_exception_result): Move from windows-nat.c.
5259 (handle_exception): Declare.
5260 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5261 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5262 windows-nat.c.
5263
5264 2020-04-08 Tom Tromey <tromey@adacore.com>
5265
5266 * windows-nat.c (exception_count, event_count): Remove.
5267 (handle_exception, get_windows_debug_event)
5268 (do_initial_windows_stuff): Update.
5269
5270 2020-04-08 Tom Tromey <tromey@adacore.com>
5271
5272 * windows-nat.c (windows_nat::handle_load_dll)
5273 (windows_nat::handle_unload_dll): Rename. No longer static.
5274 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5275 Declare.
5276
5277 2020-04-08 Tom Tromey <tromey@adacore.com>
5278
5279 * complaints.h (stop_whining): Declare at top-level.
5280 (complaint): Don't declare stop_whining.
5281
5282 2020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (windows_nat::handle_output_debug_string):
5285 Rename. No longer static.
5286 * nat/windows-nat.h (handle_output_debug_string): Declare.
5287
5288 2020-04-08 Tom Tromey <tromey@adacore.com>
5289
5290 * windows-nat.c (current_process_handle, current_process_id)
5291 (main_thread_id, last_sig, current_event, last_wait_event)
5292 (current_windows_thread, desired_stop_thread_id, pending_stops)
5293 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5294 (display_selectors, fake_create_process)
5295 (get_windows_debug_event): Update.
5296 * nat/windows-nat.h (current_process_handle, current_process_id)
5297 (main_thread_id, last_sig, current_event, last_wait_event)
5298 (current_windows_thread, desired_stop_thread_id, pending_stops)
5299 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5300 * nat/windows-nat.c (current_process_handle, current_process_id)
5301 (main_thread_id, last_sig, current_event, last_wait_event)
5302 (current_windows_thread, desired_stop_thread_id, pending_stops)
5303 (siginfo_er): New globals. Move from windows-nat.c.
5304
5305 2020-04-08 Tom Tromey <tromey@adacore.com>
5306
5307 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5308 (handle_load_dll): Update.
5309 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5310
5311 2020-04-08 Tom Tromey <tromey@adacore.com>
5312
5313 * windows-nat.c (enum thread_disposition_type): Move to
5314 nat/windows-nat.h.
5315 (windows_nat::thread_rec): Rename from thread_rec. No longer
5316 static.
5317 (windows_add_thread, windows_nat_target::fetch_registers)
5318 (windows_nat_target::store_registers, handle_exception)
5319 (windows_nat_target::resume, get_windows_debug_event)
5320 (windows_nat_target::get_tib_address)
5321 (windows_nat_target::thread_name)
5322 (windows_nat_target::thread_alive): Update.
5323 * nat/windows-nat.h (enum thread_disposition_type): Move from
5324 windows-nat.c.
5325 (thread_rec): Declare.
5326
5327 2020-04-08 Tom Tromey <tromey@adacore.com>
5328
5329 * windows-nat.c: Add "using namespace".
5330 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5331 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5332
5333 2020-04-08 Tom Tromey <tromey@adacore.com>
5334
5335 * nat/windows-nat.h (struct windows_thread_info): Declare
5336 destructor.
5337 * nat/windows-nat.c (~windows_thread_info): New.
5338
5339 2020-04-08 Tom Tromey <tromey@adacore.com>
5340
5341 PR gdb/22992
5342 * windows-nat.c (current_event): Update comment.
5343 (last_wait_event, desired_stop_thread_id): New globals.
5344 (struct pending_stop): New.
5345 (pending_stops): New global.
5346 (windows_nat_target) <stopped_by_sw_breakpoint>
5347 <supports_stopped_by_sw_breakpoint>: New methods.
5348 (windows_fetch_one_register): Add assertions. Adjust PC.
5349 (windows_continue): Handle pending stops. Suspend other threads
5350 when stepping. Use last_wait_event
5351 (wait_for_debug_event): New function.
5352 (get_windows_debug_event): Use wait_for_debug_event. Handle
5353 pending stops. Queue spurious stops.
5354 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5355 (windows_nat_target::kill): Use wait_for_debug_event.
5356 * nat/windows-nat.h (struct windows_thread_info)
5357 <stopped_at_software_breakpoint>: New field.
5358 * nat/windows-nat.c (windows_thread_info::resume): Clear
5359 stopped_at_software_breakpoint.
5360
5361 2020-04-08 Tom Tromey <tromey@adacore.com>
5362
5363 * windows-nat.c (enum thread_disposition_type): New.
5364 (thread_rec): Replace "get_context" parameter with "disposition";
5365 change type.
5366 (windows_add_thread, windows_nat_target::fetch_registers)
5367 (windows_nat_target::store_registers, handle_exception)
5368 (windows_nat_target::resume, get_windows_debug_event)
5369 (windows_nat_target::get_tib_address)
5370 (windows_nat_target::thread_name)
5371 (windows_nat_target::thread_alive): Update.
5372
5373 2020-04-08 Tom Tromey <tromey@adacore.com>
5374
5375 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5376 (windows_continue): Use windows_continue::resume.
5377 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5378 resume>: Declare new methods.
5379 * nat/windows-nat.c: New file.
5380 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5381
5382 2020-04-08 Tom Tromey <tromey@adacore.com>
5383
5384 * windows-nat.c (windows_add_thread, windows_delete_thread)
5385 (windows_nat_target::fetch_registers)
5386 (windows_nat_target::store_registers, fake_create_process)
5387 (windows_nat_target::resume, windows_nat_target::resume)
5388 (get_windows_debug_event, windows_nat_target::wait)
5389 (windows_nat_target::pid_to_str)
5390 (windows_nat_target::get_tib_address)
5391 (windows_nat_target::get_ada_task_ptid)
5392 (windows_nat_target::thread_name)
5393 (windows_nat_target::thread_alive): Use lwp, not tid.
5394
5395 2020-04-08 Tom Tromey <tromey@adacore.com>
5396
5397 * windows-nat.c (handle_exception)
5398 (windows_nat_target::thread_name): Update.
5399 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5400 <name>: Now unique_xmalloc_ptr.
5401
5402 2020-04-08 Tom Tromey <tromey@adacore.com>
5403
5404 * windows-nat.c (thread_rec)
5405 (windows_nat_target::fetch_registers): Update.
5406 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5407 Update comment.
5408 <debug_registers_changed, reload_context>: Now bool.
5409
5410 2020-04-08 Tom Tromey <tromey@adacore.com>
5411
5412 * windows-nat.c (windows_add_thread): Use new.
5413 (windows_init_thread_list, windows_delete_thread): Use delete.
5414 (get_windows_debug_event): Update.
5415 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5416 destructor, and initializers.
5417
5418 2020-04-08 Tom Tromey <tromey@adacore.com>
5419
5420 * windows-nat.c (struct windows_thread_info): Remove.
5421 * nat/windows-nat.h: New file.
5422
5423 2020-04-08 Tom Tromey <tromey@adacore.com>
5424
5425 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5426 (thread_rec, windows_add_thread, windows_delete_thread)
5427 (windows_continue): Update.
5428
5429 2020-04-08 Tom Tromey <tromey@adacore.com>
5430
5431 * windows-nat.c (struct windows_thread_info): Remove typedef.
5432 (thread_head): Remove.
5433 (thread_list): New global.
5434 (thread_rec, windows_add_thread, windows_init_thread_list)
5435 (windows_delete_thread, windows_continue): Update.
5436
5437 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5438
5439 * windows-tdep.h (windows_init_abi): Add comment.
5440 (cygwin_init_abi): New declaration.
5441 * windows-tdep.c: Split signal enumeration in two, one for
5442 Windows and one for Cygwin.
5443 (windows_gdb_signal_to_target): Only deal with signal of the
5444 Windows OS ABI.
5445 (cygwin_gdb_signal_to_target): New function.
5446 (windows_init_abi): Rename to windows_init_abi_common, don't set
5447 gdb_signal_to_target gdbarch method. Add new new function with
5448 this name.
5449 (cygwin_init_abi): New function.
5450 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5451 comment. Don't call windows_init_abi.
5452 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5453 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5454 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5455 i386_windows_init_abi_common, don't call windows_init_abi. Add
5456 a new function of this name.
5457 (i386_cygwin_init_abi): New function.
5458 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5459 OS ABI Cygwin.
5460
5461 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5462
5463 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5464 parameter.c.
5465 (dwarf2_read_gdb_index): Update.
5466
5467 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5468
5469 * nbsd-tdep.c: Include "objfiles.h".
5470 (nbsd_skip_solib_resolver): New.
5471 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5472
5473 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5474
5475 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5476 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5477 with DW_LLE_base_addressx are being emitted in DWARFv5.
5478 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5479 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5480 unsigned integer.
5481
5482 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5483
5484 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5485 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5486 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5487 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5488 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5489 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5490 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5491
5492
5493 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5494
5495 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5496 (read_loclist_index): New function definition.
5497 (lookup_loclist_base): New function definition.
5498 (read_loclist_header): New function definition.
5499 (dwarf2_cu): Add loclist_base and loclist_header field.
5500 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5501 (read_full_die_1): Read the value of DW_AT_loclists_base.
5502 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5503 (read_attribute_value): Handle DW_FORM_loclistx.
5504 (skip_one_die): Handle DW_FORM_loclistx.
5505 (loclist_header): New structure declaration.
5506 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5507
5508 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5511 constructor. Remove `addr` parameter from other constructor and
5512 add `per_cu` parameter.
5513 * dwarf2/read.c (create_partial_symtab): Update.
5514
5515 2020-04-07 Tom de Vries <tdevries@suse.de>
5516
5517 PR symtab/25796
5518 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5519 (partial_die_info::fixup): Inherit has_const_value.
5520
5521 2020-04-07 Tom de Vries <tdevries@suse.de>
5522
5523 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5524 symbols without address.
5525
5526 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5527
5528 * nbsd-nat.h (struct thread_info): Add forward declaration.
5529 (nbsd_nat_target::thread_alive): Add.
5530 (nbsd_nat_target::thread_name): Likewise.
5531 (nbsd_nat_target::update_thread_list): Likewise.
5532 (update_thread_list::post_attach): Likewise.
5533 (post_attach::pid_to_str): Likewise.
5534 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5535 (nbsd_thread_lister): Add.
5536 (nbsd_nat_target::thread_alive): Likewise.
5537 (nbsd_nat_target::thread_name): Likewise.
5538 (nbsd_add_threads): Likewise.
5539 (update_thread_list::post_attach): Likewise.
5540 (nbsd_nat_target::update_thread_list): Likewise.
5541 (post_attach::pid_to_str): Likewise.
5542
5543 2020-04-06 Tom Tromey <tromey@adacore.com>
5544
5545 * ada-valprint.c (print_variant_part): Extract the variant field.
5546 (print_field_values): Use the field as the outer value when
5547 recursing.
5548
5549 2020-04-06 Tom Tromey <tromey@adacore.com>
5550
5551 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5552 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5553 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5554 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5555 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5556
5557 2020-04-06 Tom Tromey <tromey@adacore.com>
5558
5559 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5560 TYPE_CODE_ERROR.
5561
5562 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5563
5564 * nbsd-tdep.c: Include "gdbarch.h".
5565 Define enum with NetBSD signal numbers.
5566 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5567 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5568 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5569 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5570 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5571 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5572 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5573 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5574 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5575 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5576 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5577 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5578
5579 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5580
5581 PR gdb/25325
5582 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5583
5584 2020-04-03 Tom Tromey <tromey@adacore.com>
5585
5586 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5587 Read constant block.
5588
5589 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5590
5591 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5592 (gdb_bfd_get_full_section_contents): New declaration.
5593 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5594 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5595 gdb_bfd_get_full_section_contents.
5596
5597 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5598
5599 * exec.c (build_section_table): Replace internal_error with
5600 gdb_assert.
5601 (section_table_xfer_memory_partial): Likewise.
5602 * mdebugread.c (parse_partial_symbols): Likewise.
5603 * psymtab.c (lookup_partial_symbol): Likewise.
5604 * utils.c (wrap_here): Likewise.
5605
5606 2020-04-02 Tom Tromey <tromey@adacore.com>
5607
5608 * f-lang.c (build_fortran_types): Use arch_type to initialize
5609 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5610
5611 2020-04-02 Tom Tromey <tromey@adacore.com>
5612
5613 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5614 of attributes.
5615
5616 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5617 Bernd Edlinger <bernd.edlinger@hotmail.de>
5618 Tom Tromey <tromey@adacore.com>
5619
5620 * buildsym.c (buildsym_compunit::record_line): Remove
5621 deduplication code.
5622
5623 2020-04-02 Tom de Vries <tdevries@suse.de>
5624
5625 PR ada/24671
5626 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5627
5628 2020-04-02 Tom de Vries <tdevries@suse.de>
5629
5630 * dwarf2/read.c (dwarf2_gdb_index_functions,
5631 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5632 NULL.
5633 * psymtab.c (psym_lookup_global_symbol_language): New function.
5634 (psym_functions): Init psym_lookup_global_symbol_language with
5635 psym_lookup_global_symbol_language.
5636 * symfile-debug.c (debug_sym_quick_functions): Init
5637 lookup_global_symbol_language with NULL.
5638 * symfile.c (set_initial_language): Remove fixme comment.
5639 * symfile.h (struct quick_symbol_functions): Add
5640 lookup_global_symbol_language.
5641 * symtab.c (find_quick_global_symbol_language): New function.
5642 (find_main_name): Use find_quick_global_symbol_language.
5643
5644 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5647
5648 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5649
5650 * buildsym.c (record_line): Fix undefined behavior and preserve
5651 lines at eof.
5652
5653 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5654
5655 * buildsym.c (record_line): Fix the resizing condition.
5656
5657 2020-04-01 Tom Tromey <tom@tromey.com>
5658
5659 * value.h (value_literal_complex): Add comment.
5660 * valops.c (value_literal_complex): Refer to value.h.
5661
5662 2020-04-01 Tom Tromey <tom@tromey.com>
5663
5664 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5665 (scalar_type): New rule, from typebase.
5666 (typebase): Use scalar_type. Recognize complex types.
5667 (field_name): Handle FLOAT_KEYWORD.
5668 (ident_tokens): Add _Complex and __complex__.
5669
5670 2020-04-01 Tom Tromey <tom@tromey.com>
5671
5672 PR exp/25299:
5673 * valarith.c (promotion_type, complex_binop): New functions.
5674 (scalar_binop): Handle complex numbers. Use promotion_type.
5675 (value_pos, value_neg, value_complement): Handle complex numbers.
5676
5677 2020-04-01 Tom Tromey <tom@tromey.com>
5678
5679 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5680 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5681 (parse_number): Handle complex numbers.
5682
5683 2020-04-01 Tom Tromey <tom@tromey.com>
5684
5685 * c-valprint.c (c_decorations): Change complex suffix to "i".
5686
5687 2020-04-01 Tom Tromey <tom@tromey.com>
5688
5689 * valprint.c (generic_value_print_complex): Use accessors.
5690 * value.h (value_real_part, value_imaginary_part): Declare.
5691 * valops.c (value_real_part, value_imaginary_part): New
5692 functions.
5693 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5694
5695 2020-04-01 Tom Tromey <tom@tromey.com>
5696
5697 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5698 (read_range_type): Update.
5699 * mdebugread.c (basic_type): Update.
5700 * go-lang.c (build_go_types): Use init_complex_type.
5701 * gdbtypes.h (struct main_type) <complex_type>: New member.
5702 (init_complex_type): Update.
5703 (arch_complex_type): Don't declare.
5704 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5705 Make name if none given. Use alloc_type_copy. Look for cached
5706 complex type.
5707 (arch_complex_type): Remove.
5708 (gdbtypes_post_init): Use init_complex_type.
5709 * f-lang.c (build_fortran_types): Use init_complex_type.
5710 * dwarf2/read.c (read_base_type): Update.
5711 * d-lang.c (build_d_types): Use init_complex_type.
5712 * ctfread.c (read_base_type): Update.
5713
5714 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5715
5716 * infrun.c (stop_all_threads): Update assertion, plus when
5717 stopping threads, take into account that we might be trying
5718 to stop an all-stop target.
5719 (stop_waiting): Call 'stop_all_threads' if there exists a
5720 non-stop target.
5721
5722 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5723
5724 * target.h (exists_non_stop_target): New function declaration.
5725 * target.c (exists_non_stop_target): New function.
5726
5727 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
5728
5729 PR gdb/24789
5730 * eval.c (is_integral_or_integral_reference): New function.
5731 (evaluate_subexp_standard): Allow integer references in
5732 pointer arithmetic.
5733
5734 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5735
5736 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5737 check for no ptid in the stop reply when the target is non-stop.
5738
5739 2020-04-01 Tom Tromey <tromey@adacore.com>
5740
5741 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5742 "name" parameter to rvalue reference. Initialize m_name_holder.
5743 <lookup_name_info>: New overloads.
5744 <name>: Return gdb::string_view.
5745 <c_str>: New method.
5746 <make_ignore_params>: Update.
5747 <search_name_hash>: Update.
5748 <language_lookup_name>: Return const char *.
5749 <m_name>: Change type.
5750 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5751 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5752 (lookup_name_info::match_any): Update.
5753 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5754 Update.
5755 * minsyms.c (linkage_name_str): Update.
5756 * language.c (default_symbol_name_matcher): Update.
5757 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5758 Update.
5759 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5760 (ada_lookup_name_info::ada_lookup_name_info): Update.
5761 (literal_symbol_name_matcher): Update.
5762
5763 2020-04-01 Tom Tromey <tromey@adacore.com>
5764
5765 * psymtab.c (psymtab_search_name): Remove function.
5766 (psym_lookup_symbol): Create search name and lookup name here.
5767 (lookup_partial_symbol): Remove "name" parameter; add
5768 lookup_name.
5769 (psym_expand_symtabs_for_function): Update.
5770
5771 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
5772
5773 PR tui/25597:
5774 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5775
5776 2020-03-31 Tom Tromey <tromey@adacore.com>
5777
5778 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5779 memcpy.
5780
5781 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
5782
5783 * features/riscv/32bit-csr.xml: Regenerated.
5784 * features/riscv/64bit-csr.xml: Regenerated.
5785
5786 2020-03-30 Tom Tromey <tromey@adacore.com>
5787
5788 * ada-valprint.c (print_variant_part): Update.
5789 * ada-lang.h (ada_which_variant_applies): Update.
5790 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5791 outer_valaddr parameters; replace with "outer" value parameter.
5792 (to_fixed_variant_branch_type): Update.
5793
5794 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5795
5796 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5797 <list>. Remove inclusion of observable.h.
5798 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5799 (struct arch_lwp_info): New struct.
5800 (class ppc_linux_dreg_interface): New class.
5801 (struct ppc_linux_process_info): New struct.
5802 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5803 <low_new_clone, low_forget_process, low_prepare_to_resume>
5804 <copy_thread_dreg_state, mark_thread_stale>
5805 <mark_debug_registers_changed, register_hw_breakpoint>
5806 <clear_hw_breakpoint, register_wp, clear_wp>
5807 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5808 <num_memory_accesses, get_trigger_type>
5809 <create_watchpoint_request, hwdebug_point_cmp>
5810 <init_arch_lwp_info, get_arch_lwp_info>
5811 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5812 methods.
5813 <struct ptid_hash>: New inner struct.
5814 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5815 members.
5816 (saved_dabr_value, hwdebug_info, max_slots_number)
5817 (struct hw_break_tuple, struct thread_points, ppc_threads)
5818 (have_ptrace_hwdebug_interface)
5819 (hwdebug_find_thread_points_by_tid)
5820 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5821 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5822 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5823 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5824 use m_dreg_interface.
5825 (hwdebug_point_cmp): Change to...
5826 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5827 reference arguments instead of pointers.
5828 (ppc_linux_nat_target::ranged_break_num_registers): Use
5829 m_dreg_interface.
5830 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5831 m_dreg_interface. Call register_hw_breakpoint.
5832 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5833 m_dreg_interface. Call clear_hw_breakpoint.
5834 (get_trigger_type): Change to...
5835 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5836 comment.
5837 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5838 use m_dreg_interface. Call register_hw_breakpoint.
5839 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5840 use m_dreg_interface. Call clear_hw_breakpoint.
5841 (can_use_watchpoint_cond_accel): Change to...
5842 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5843 method. Update comment, use m_dreg_interface and
5844 m_process_info.
5845 (calculate_dvc): Change to...
5846 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5847 m_dreg_interface.
5848 (num_memory_accesses): Change to...
5849 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5850 (check_condition): Change to...
5851 (ppc_linux_nat_target::check_condition): ...this method.
5852 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5853 comment, use m_dreg_interface.
5854 (create_watchpoint_request): Change to...
5855 (ppc_linux_nat_target::create_watchpoint_request): ...this
5856 method. Use m_dreg_interface.
5857 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5858 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5859 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5860 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5861 (ppc_linux_nat_target::low_forget_process)
5862 (ppc_linux_nat_target::low_new_fork)
5863 (ppc_linux_nat_target::low_new_clone)
5864 (ppc_linux_nat_target::low_delete_thread)
5865 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5866 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5867 only call mark_thread_stale.
5868 (ppc_linux_thread_exit): Remove.
5869 (ppc_linux_nat_target::stopped_data_address): Change to...
5870 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5871 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5872 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5873 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5874 comment. Call low_stopped_data_address.
5875 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5876 m_dreg_interface.
5877 (ppc_linux_nat_target::masked_watch_num_registers): Use
5878 m_dreg_interface.
5879 (ppc_linux_nat_target::copy_thread_dreg_state)
5880 (ppc_linux_nat_target::mark_thread_stale)
5881 (ppc_linux_nat_target::mark_debug_registers_changed)
5882 (ppc_linux_nat_target::register_hw_breakpoint)
5883 (ppc_linux_nat_target::clear_hw_breakpoint)
5884 (ppc_linux_nat_target::register_wp)
5885 (ppc_linux_nat_target::clear_wp)
5886 (ppc_linux_nat_target::init_arch_lwp_info)
5887 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5888 (_initialize_ppc_linux_nat): Remove observer callback.
5889
5890 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5891
5892 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5893 (ppc_linux_nat_target::auxv_parse)
5894 (ppc_linux_nat_target::read_description)
5895 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5896 Move up.
5897
5898 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5899
5900 * linux-nat.h (low_new_clone): New method.
5901 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5902
5903 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5904
5905 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5906 (dbx_expand_psymtab): ... this.
5907 (start_psymtab): Update.
5908 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5909 (mdebug_expand_psymtab): ... this.
5910 (parse_partial_symbols): Update.
5911 (new_psymtab): Update.
5912 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5913 (xcoff_expand_psymtab): ... this.
5914 (xcoff_start_psymtab): Update.
5915
5916 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5919 <expand_dependencies>: ... this.
5920 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5921 (partial_symtab::expand_dependencies): ... this.
5922 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5923 Update.
5924 (dwarf2_psymtab::expand_psymtab): Update.
5925 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5926 * mdebugread.c (psymtab_to_symtab_1): Update.
5927 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5928
5929 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5930
5931 * psympriv.h (discard_psymtab): Remove.
5932 * dbxread.c (dbx_end_psymtab): Update.
5933 * xcoffread.c (xcoff_end_psymtab): Update.
5934
5935 2020-03-28 Tom Tromey <tom@tromey.com>
5936
5937 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5938 comment.
5939
5940 2020-03-28 Tom Tromey <tom@tromey.com>
5941
5942 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5943
5944 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
5945
5946 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5947
5948 2020-03-26 John Baldwin <jhb@FreeBSD.org>
5949
5950 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5951
5952 2020-03-26 Tom Tromey <tom@tromey.com>
5953
5954 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5955 (mark_common_block_symbol_computed, read_tag_string_type)
5956 (attr_to_dynamic_prop, read_subrange_type): Update.
5957 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5958 to be methods on struct attribute.
5959 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5960 (read_call_site_scope, partial_die_info::read)
5961 (partial_die_info::read, lookup_die_type, follow_die_ref):
5962 Update.
5963 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5964 from dwarf2_get_ref_die_offset.
5965 (attribute::constant_value): New method, from
5966 dwarf2_get_attr_constant_value.
5967 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5968 Declare method.
5969 <constant_value>: New method.
5970
5971 2020-03-26 Tom Tromey <tom@tromey.com>
5972
5973 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5974 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5975 (dwarf_type_encoding_name): Move to stringify.c.
5976 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5977 * dwarf2/stringify.c: New file.
5978 * dwarf2/stringify.h: New file.
5979
5980 2020-03-26 Tom Tromey <tom@tromey.com>
5981
5982 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5983 Rewrite.
5984
5985 2020-03-26 Tom Tromey <tom@tromey.com>
5986
5987 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5988 methods.
5989 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5990 (lookup_ranges_base): Likewise.
5991 (read_cutu_die_from_dwo, read_full_die_1): Update.
5992
5993 2020-03-26 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2/read.c (read_import_statement, read_file_scope)
5996 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5997 (read_lexical_block_scope, read_call_site_scope)
5998 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5999 (handle_struct_member_die, process_structure_scope)
6000 (update_enumeration_type_from_children)
6001 (process_enumeration_scope, read_array_type, read_common_block)
6002 (read_namespace, read_module, read_subroutine_type): Update.
6003 (sibling_die): Remove.
6004
6005 2020-03-26 Tom Tromey <tom@tromey.com>
6006
6007 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6008 (build_type_psymtabs_reader, read_structure_type)
6009 (read_enumeration_type, read_full_die_1): Update.
6010 (dwarf2_attr_no_follow): Move to die.h.
6011 * dwarf2/die.h (struct die_info) <attr>: New method.
6012
6013 2020-03-26 Tom Tromey <tom@tromey.com>
6014
6015 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6016 <base_address>: Now an optional.
6017 (dwarf2_find_base_address, dwarf2_rnglists_process)
6018 (dwarf2_ranges_process, fill_in_loclist_baton)
6019 (dwarf2_symbol_mark_computed): Update.
6020
6021 2020-03-26 Tom Tromey <tom@tromey.com>
6022
6023 * dwarf2/read.c (struct die_info): Move to die.h.
6024 * dwarf2/die.h: New file.
6025
6026 2020-03-26 Tom Tromey <tom@tromey.com>
6027
6028 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6029 * dwarf2/read.c
6030 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6031 Move to line-header.c.
6032 (read_checked_initial_length_and_offset, read_formatted_entries):
6033 Likewise.
6034 (dwarf_decode_line_header): Split into two.
6035 * dwarf2/line-header.c
6036 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6037 Move from read.c.
6038 (read_checked_initial_length_and_offset, read_formatted_entries):
6039 Likewise.
6040 (dwarf_decode_line_header): New function, split from read.c.
6041
6042 2020-03-26 Tom Tromey <tom@tromey.com>
6043
6044 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6045 Declare method.
6046 * dwarf2/read.c (read_attribute_value): Update.
6047 (dwarf2_per_objfile::read_line_string): Rename from
6048 read_indirect_line_string.
6049 (read_formatted_entries): Update.
6050
6051 2020-03-26 Tom Tromey <tom@tromey.com>
6052
6053 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6054 variable.
6055
6056 2020-03-26 Tom Tromey <tom@tromey.com>
6057
6058 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6059 const.
6060 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6061 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6062 parameter const.
6063
6064 2020-03-26 Tom Tromey <tom@tromey.com>
6065
6066 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6067 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6068 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6069 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6070
6071 2020-03-26 Tom Tromey <tom@tromey.com>
6072
6073 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6074 file_names_size, file_full_name, file_file_name>: Use const.
6075 <file_name_at, file_names>: Add const overload.
6076 * dwarf2/line-header.c (line_header::file_file_name)
6077 (line_header::file_full_name): Update.
6078
6079 2020-03-26 Tom Tromey <tom@tromey.com>
6080
6081 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6082 (macro_start_file, consume_improper_spaces)
6083 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6084 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6085 (dwarf_decode_macros): Move to macro.c.
6086 * dwarf2/macro.c: New file.
6087 * dwarf2/macro.h: New file.
6088 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6089
6090 2020-03-26 Tom Tromey <tom@tromey.com>
6091
6092 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6093 method.
6094 * dwarf2/section.c: New method. From
6095 read_indirect_string_at_offset_from.
6096 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6097 (read_indirect_string_at_offset_from): Move to section.c.
6098 (read_indirect_string_at_offset): Rewrite.
6099 (read_indirect_line_string_at_offset): Remove.
6100 (read_indirect_string, read_indirect_line_string)
6101 (dwarf_decode_macro_bytes): Update.
6102
6103 2020-03-26 Tom Tromey <tom@tromey.com>
6104
6105 * dwarf2/section.h (struct dwarf2_section_info)
6106 <overload_complaint>: Declare.
6107 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6108 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6109 Rename from dwarf2_section_buffer_overflow_complaint.
6110 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6111 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6112
6113 2020-03-26 Tom Tromey <tom@tromey.com>
6114
6115 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6116 Declare.
6117 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6118 Move from read.c.
6119 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6120 to section.c.
6121
6122 2020-03-26 Tom Tromey <tom@tromey.com>
6123
6124 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6125
6126 2020-03-26 Tom Tromey <tom@tromey.com>
6127
6128 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6129 "builder".
6130 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6131 parameter.
6132 (dwarf_decode_macros): Update.
6133
6134 2020-03-26 Tom Tromey <tom@tromey.com>
6135
6136 * dwarf2/read.c (read_attribute_value): Update.
6137 (read_indirect_string_from_dwz): Move to dwz.c; change into
6138 method.
6139 (dwarf_decode_macro_bytes): Update.
6140 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6141 * dwarf2/dwz.c: New file.
6142 * Makefile.in (COMMON_SFILES): Add dwz.c.
6143
6144 2020-03-26 Tom Tromey <tom@tromey.com>
6145
6146 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6147 * dwarf2/read.c: Add include.
6148 * dwarf2/index-write.c: Add include.
6149 * dwarf2/index-cache.c: Add include.
6150 * dwarf2/dwz.h: New file.
6151
6152 2020-03-25 Tom Tromey <tom@tromey.com>
6153
6154 * compile/compile-object-load.c (get_out_value_type): Mention
6155 correct symbol name in error message.
6156
6157 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6158
6159 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6160
6161 2020-03-25 Tom de Vries <tdevries@suse.de>
6162
6163 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6164 * symmisc.c (dump_symtab_1): Print user and includes fields.
6165 (maintenance_info_symtabs): Same.
6166
6167 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6168
6169 PR gdb/25534
6170 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6171 (riscv_regcache_cooked_write): New function.
6172 (riscv_push_dummy_call): Use new function.
6173 (riscv_return_value): Likewise.
6174
6175 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6176
6177 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6178 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6179 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6180 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6181 * infrun.c (follow_fork): Likewise.
6182 (follow_fork_inferior): Likewise.
6183 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6184 * linux-nat.h (class linux_nat_target): Likewise.
6185 * remote.c (class remote_target) <follow_fork>: Likewise.
6186 (remote_target::follow_fork): Likewise.
6187 * target-delegates.c: Re-generate.
6188 * target.c (default_follow_fork): Likewise.
6189 (target_follow_fork): Likewise.
6190 * target.h (struct target_ops) <follow_fork>: Likewise.
6191 (target_follow_fork): Likewise.
6192
6193 2020-03-24 Tom de Vries <tdevries@suse.de>
6194
6195 * psymtab.c (maintenance_info_psymtabs): Print user field.
6196
6197 2020-03-20 Tom Tromey <tromey@adacore.com>
6198
6199 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6200 const.
6201 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6202 const.
6203
6204 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * ptrace.m4: Don't check for ptrace declaration.
6207 * config.in: Re-generate.
6208 * configure: Re-generate.
6209 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6210 not defined.
6211
6212 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6213
6214 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6215 `PTRACE_TYPE_RET'.
6216 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6217 * sparc-nat.c (gdb_ptrace): Likewise.
6218 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6219
6220 2020-03-20 Tom Tromey <tromey@adacore.com>
6221
6222 * c-exp.y (lex_one_token): Fix assert.
6223
6224 2020-03-20 Tom Tromey <tromey@adacore.com>
6225
6226 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6227 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6228 strncpy call.
6229
6230 2020-03-20 Tom Tromey <tromey@adacore.com>
6231
6232 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6233
6234 2020-03-20 Tom Tromey <tromey@adacore.com>
6235
6236 * ada-valprint.c (print_variant_part): Remove parameters; switch
6237 to value-based API.
6238 (print_field_values): Likewise.
6239 (ada_val_print_struct_union): Likewise.
6240 (ada_value_print_1): Update.
6241
6242 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6243
6244 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6245 nbsd_nat_target instead of inf_ptrace_target.
6246 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6247 nbsd_nat_target.
6248
6249 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6250
6251 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6252 it to the ptrace call.
6253 * (store_registers): Likewise.
6254
6255 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6256
6257 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6258 it to the ptrace call.
6259 * (store_registers): Likewise.
6260
6261 2020-03-19 Luis Machado <luis.machado@linaro.org>
6262
6263 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6264 valid, fetch vg value from ptrace.
6265
6266 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6267 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6268 * inf-ptrace.c: Likewise.
6269 * (gdb_ptrace): Add.
6270 * (inf_ptrace_target::resume): Update.
6271 * (inf_ptrace_target::xfer_partial): Likewise.
6272 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6273 * (inf_ptrace_peek_poke): Update.
6274
6275 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6276
6277 * x86-bsd-nat.c (gdb_ptrace): New.
6278 * (x86bsd_dr_set): Add new argument `ptid'.
6279 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6280 x86bsd_dr_set_addr): Update.
6281
6282 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6283
6284 * remote.c (remote_target::process_stop_reply): Handle events for
6285 all threads differently.
6286
6287 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6288
6289 * completer.c (completion_tracker::remove_completion): Define new
6290 function.
6291 * completer.h (completion_tracker::remove_completion): Declare new
6292 function.
6293 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6294 when adding a C++ function symbol.
6295
6296 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6297
6298 * completer.c (completion_tracker::completion_hash_entry): Define
6299 new class.
6300 (advance_to_filename_complete_word_point): Call
6301 recompute_lowest_common_denominator.
6302 (completion_tracker::completion_tracker): Call discard_completions
6303 to setup the hash table.
6304 (completion_tracker::discard_completions): Allow for being called
6305 from the constructor, pass new equal function, and element deleter
6306 when constructing the hash table. Initialise new class member
6307 variables.
6308 (completion_tracker::maybe_add_completion): Remove use of
6309 m_entries_vec, and store more information into m_entries_hash.
6310 (completion_tracker::recompute_lcd_visitor): New function, most
6311 content taken from...
6312 (completion_tracker::recompute_lowest_common_denominator):
6313 ...here, this now just visits each item in the hash calling the
6314 above visitor.
6315 (completion_tracker::build_completion_result): Remove use of
6316 m_entries_vec, call recompute_lowest_common_denominator.
6317 * completer.h (completion_tracker::have_completions): Remove use
6318 of m_entries_vec.
6319 (completion_tracker::completion_hash_entry): Declare new class.
6320 (completion_tracker::recompute_lowest_common_denominator): Change
6321 function signature.
6322 (completion_tracker::recompute_lcd_visitor): Declare new function.
6323 (completion_tracker::m_entries_vec): Delete.
6324 (completion_tracker::m_entries_hash): Initialize to NULL.
6325 (completion_tracker::m_lowest_common_denominator_valid): New
6326 member variable.
6327 (completion_tracker::m_lowest_common_denominator_max_length): New
6328 member variable.
6329
6330 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6331
6332 * regformats/regdef.h: Put reg in gdb namespace.
6333
6334 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6335
6336 * i386-bsd-nat.c (gdb_ptrace): New.
6337 * (i386bsd_fetch_inferior_registers,
6338 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6339 * (i386bsd_fetch_inferior_registers,
6340 i386bsd_store_inferior_registers) Use gdb_ptrace.
6341
6342 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6343
6344 * amd64-bsd-nat.c (gdb_ptrace): New.
6345 * (amd64bsd_fetch_inferior_registers,
6346 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6347 * (amd64bsd_fetch_inferior_registers,
6348 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6349
6350 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6351
6352 * user-regs.c (user_reg::read): Rename to...
6353 (user_reg::xread): ...this.
6354 * (append_user_reg): Rename argument `read' to `xread'.
6355 * (user_reg_add_builtin): Likewise.
6356 * (user_reg_add): Likewise.
6357 * (value_of_user_reg): Likewise.
6358
6359 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6360
6361 * sparc-nat.c (gdb_ptrace): New.
6362 * sparc-nat.c (sparc_fetch_inferior_registers)
6363 (sparc_store_inferior_registers) Remove obsolete comment.
6364 * sparc-nat.c (sparc_fetch_inferior_registers)
6365 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6366 * sparc-nat.c (sparc_fetch_inferior_registers)
6367 (sparc_store_inferior_registers) Use gdb_ptrace.
6368
6369 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6370
6371 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6372 it to the ptrace call.
6373 * sh-nbsd-nat.c (store_registers): Likewise.
6374
6375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6376
6377 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6378 nbsd_nat_target instead of inf_ptrace_target.
6379 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6380 nbsd_nat_target.
6381
6382 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6383
6384 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6385
6386 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6387
6388 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6389 <sys/sysctl.h>.
6390 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6391
6392 2020-03-17 Tom de Vries <tdevries@suse.de>
6393
6394 PR gdb/23710
6395 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6396 fields.
6397 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6398 fields.
6399 (process_imported_unit_die): Skip import of c++ CUs.
6400
6401 2020-03-16 Tom Tromey <tom@tromey.com>
6402
6403 * p-valprint.c (pascal_object_print_value): Initialize
6404 base_value.
6405
6406 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6407 Shahab Vahedi <shahab@synopsys.com>
6408
6409 * Makefile.in: Add arch/arc.o
6410 * configure.tgt: Likewise.
6411 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6412 (_initialize_arc_tdep): Don't initialize old target descriptions.
6413 (arc_read_description): New function to cache target descriptions.
6414 * arc-tdep.h (arc_read_description): Add proto type.
6415 * arch/arc.c: New file.
6416 * arch/arc.h: Likewise.
6417 * features/Makefile: Replace old target descriptions with new.
6418 * features/arc-arcompact.c: Remove.
6419 * features/arc-arcompact.xml: Likewise.
6420 * features/arc-v2.c: Likewise
6421 * features/arc-v2.xml: Likewise
6422 * features/arc/aux-arcompact.xml: New file.
6423 * features/arc/aux-v2.xml: Likewise.
6424 * features/arc/core-arcompact.xml: Likewise.
6425 * features/arc/core-v2.xml: Likewise.
6426 * features/arc/aux-arcompact.c: Generate.
6427 * features/arc/aux-v2.c: Likewise.
6428 * features/arc/core-arcompact.c: Likewise.
6429 * features/arc/core-v2.c: Likewise.
6430 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6431
6432 2020-03-16 Tom Tromey <tromey@adacore.com>
6433
6434 PR gdb/25663:
6435 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6436 putting value into bcache.
6437
6438 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6439
6440 PR gdb/21500
6441 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6442 to...
6443 (amd64_windows_init_abi_common): ... this. Don't set size of
6444 long type.
6445 (amd64_windows_init_abi): New function.
6446 (amd64_cygwin_init_abi): New function.
6447 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6448 the Cygwin OS ABI.
6449 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6450 comment.
6451
6452 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6453
6454 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6455 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6456 (pe_import_directory_entry): New struct type.
6457 (is_linked_with_cygwin_dll): New function.
6458 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6459 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6460 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6461
6462 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6463
6464 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6465 i386_cygwin_core_osabi_sniffer.
6466
6467 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6468
6469 * i386-cygwin-tdep.c: Rename to...
6470 * i386-windows-tdep.c: ... this.
6471 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6472 i386-windows-tdep.c.
6473 * configure.tgt: Likewise.
6474
6475 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6476
6477 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6478 * osabi.c (gdb_osabi_names): Add "Windows".
6479 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6480 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6481 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6482 i386_cygwin_osabi_sniffer.
6483 (_initialize_i386_cygwin_tdep): Register OS ABI
6484 GDB_OSABI_WINDOWS for i386.
6485 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6486 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6487 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6488 for x86-64.
6489 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6490 when the target matches '*-*-mingw*'.
6491
6492 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * defs.h (enum gdb_osabi): Move to...
6495 * osabi.h (enum gdb_osabi): ... here.
6496 * gdbarch.sh: Include osabi.h in gdbarch.h.
6497 * gdbarch.h: Re-generate.
6498
6499 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6502 function.
6503 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6504
6505 2020-03-14 Tom Tromey <tom@tromey.com>
6506
6507 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6508 for C++.
6509 (c_type_print_modifier): Likewise. Add "language" parameter.
6510 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6511 (c_type_print_base_1): Update.
6512 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6513 constants.
6514 * type-stack.c (type_stack::insert): Handle tp_atomic and
6515 tp_restrict.
6516 (type_stack::follow_type_instance_flags): Likewise.
6517 (type_stack::follow_types): Likewise. Merge type-following code.
6518 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6519 (space_identifier, cv_with_space_id)
6520 (const_or_volatile_or_space_identifier_noopt)
6521 (const_or_volatile_or_space_identifier): Remove.
6522 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6523 rules.
6524 (ptr_operator, typebase): Update.
6525 (enum token_flag) <FLAG_C>: New constant.
6526 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6527 "_Atomic".
6528 (lex_one_token): Handle FLAG_C.
6529
6530 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6531
6532 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6533 it to the ptrace call.
6534 * m68k-bsd-nat.c (store_registers): Likewise.
6535
6536 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6537
6538 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6539 gdb_byte *.
6540 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6541 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6542 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6543
6544 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6545
6546 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6547 nbsd_nat_target instead of inf_ptrace_target.
6548 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6549 nbsd_nat_target.
6550
6551 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6552
6553 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6554 register_t.
6555
6556 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6557
6558 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6559 it to the ptrace call.
6560 * alpha-bsd-nat.c (store_registers): Likewise.
6561
6562 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6563
6564 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6565 includes.
6566 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6567 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6568 fill_fpregset): Likewise.
6569
6570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6571
6572 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6573 nbsd_nat_target instead of inf_ptrace_target.
6574 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6575 nbsd_nat_target.
6576
6577 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6578
6579 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6580 register_t.
6581
6582 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6583
6584 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6585 it to the ptrace call.
6586 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6587 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6588 * arm-nbsd-nat.c (store_register): Likewise.
6589 * arm-nbsd-nat.c (store_regs): Likewise.
6590 * arm-nbsd-nat.c (store_fp_register): Likewise.
6591 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6592
6593 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6594
6595 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6596 nbsd_nat_target instead of inf_ptrace_target.
6597 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6598 nbsd_nat_target.
6599
6600 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6601
6602 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6603 it to the ptrace call.
6604 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6605
6606 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6607
6608 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6609 it to the ptrace call.
6610 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6611
6612 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6613
6614 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6615 gdb_byte *.
6616 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6617
6618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6619
6620 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6621 instead of inf_ptrace_target.
6622 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6623 nbsd_nat_target.
6624
6625 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6626
6627 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6628 register_t.
6629
6630 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6631
6632 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6633 register_t.
6634
6635 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6636
6637 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6638 register_t.
6639
6640 2020-03-13 Tom Tromey <tom@tromey.com>
6641
6642 * value.h (val_print): Don't declare.
6643 * valprint.h (val_print_array_elements)
6644 (val_print_scalar_formatted, generic_val_print): Don't declare.
6645 * valprint.c (generic_val_print_array): Take a struct value.
6646 (generic_val_print_ptr, generic_val_print_memberptr)
6647 (generic_val_print_bool, generic_val_print_int)
6648 (generic_val_print_char, generic_val_print_complex)
6649 (generic_val_print): Remove.
6650 (generic_value_print): Update.
6651 (do_val_print): Remove unused parameters. Don't call
6652 la_val_print.
6653 (val_print): Remove.
6654 (common_val_print): Update. Don't call value_check_printable.
6655 (val_print_scalar_formatted, val_print_array_elements): Remove.
6656 * rust-lang.c (rust_val_print): Remove.
6657 (rust_language_defn): Update.
6658 * p-valprint.c (pascal_val_print): Remove.
6659 (pascal_value_print_inner): Update.
6660 (pascal_object_print_val_fields, pascal_object_print_val):
6661 Remove.
6662 (pascal_object_print_static_field): Update.
6663 * p-lang.h (pascal_val_print): Don't declare.
6664 * p-lang.c (pascal_language_defn): Update.
6665 * opencl-lang.c (opencl_language_defn): Update.
6666 * objc-lang.c (objc_language_defn): Update.
6667 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6668 * m2-lang.h (m2_val_print): Don't declare.
6669 * m2-lang.c (m2_language_defn): Update.
6670 * language.h (struct language_defn) <la_val_print>: Remove.
6671 * language.c (unk_lang_value_print_inner): Rename. Change
6672 argument types.
6673 (unknown_language_defn, auto_language_defn): Update.
6674 * go-valprint.c (go_val_print): Remove.
6675 * go-lang.h (go_val_print): Don't declare.
6676 * go-lang.c (go_language_defn): Update.
6677 * f-valprint.c (f_val_print): Remove.
6678 * f-lang.h (f_value_print): Don't declare.
6679 * f-lang.c (f_language_defn): Update.
6680 * d-valprint.c (d_val_print): Remove.
6681 * d-lang.h (d_value_print): Don't declare.
6682 * d-lang.c (d_language_defn): Update.
6683 * cp-valprint.c (cp_print_value_fields)
6684 (cp_print_value_fields_rtti, cp_print_value): Remove.
6685 (cp_print_static_field): Update.
6686 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6687 (c_val_print_struct, c_val_print_union, c_val_print_int)
6688 (c_val_print_memberptr, c_val_print): Remove.
6689 * c-lang.h (c_val_print_array, cp_print_value_fields)
6690 (cp_print_value_fields_rtti): Don't declare.
6691 * c-lang.c (c_language_defn, cplus_language_defn)
6692 (asm_language_defn, minimal_language_defn): Update.
6693 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6694 (ada_val_print_enum): Take a struct value.
6695 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6696 (ada_val_print): Remove.
6697 (ada_value_print_1): Update.
6698 (printable_val_type): Remove.
6699 * ada-lang.h (ada_val_print): Don't declare.
6700 * ada-lang.c (ada_language_defn): Update.
6701
6702 2020-03-13 Tom Tromey <tom@tromey.com>
6703
6704 * valprint.c (do_val_print): Update.
6705 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6706 a struct value.
6707 (value_to_value_object_no_release): Declare.
6708 * python/py-value.c (value_to_value_object_no_release): New
6709 function.
6710 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6711 struct value.
6712 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6713 function.
6714 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6715 a struct value.
6716 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6717 Declare.
6718 (gdbscm_apply_val_pretty_printer): Take a struct value.
6719 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6720 value.
6721 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6722 value.
6723 * extension-priv.h (struct extension_language_ops)
6724 <apply_val_pretty_printer>: Take a struct value.
6725 * cp-valprint.c (cp_print_value): Create a struct value.
6726 (cp_print_value): Update.
6727
6728 2020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * ada-valprint.c (print_field_values): Call common_val_print.
6731
6732 2020-03-13 Tom Tromey <tom@tromey.com>
6733
6734 * ada-valprint.c (val_print_packed_array_elements): Remove
6735 bitoffset and val parameters. Call common_val_print.
6736 (ada_val_print_string): Remove offset, address, and original_value
6737 parameters.
6738 (ada_val_print_array): Update.
6739 (ada_value_print_array): New function.
6740 (ada_value_print_1): Call it.
6741
6742 2020-03-13 Tom Tromey <tom@tromey.com>
6743
6744 * ada-valprint.c (ada_value_print): Use common_val_print.
6745
6746 2020-03-13 Tom Tromey <tom@tromey.com>
6747
6748 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6749
6750 2020-03-13 Tom Tromey <tom@tromey.com>
6751
6752 * ada-valprint.c (ada_value_print_num): New function.
6753 (ada_value_print_1): Use it.
6754
6755 2020-03-13 Tom Tromey <tom@tromey.com>
6756
6757 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6758
6759 2020-03-13 Tom Tromey <tom@tromey.com>
6760
6761 * ada-valprint.c (ada_value_print_ptr): New function.
6762 (ada_value_print_1): Use it.
6763
6764 2020-03-13 Tom Tromey <tom@tromey.com>
6765
6766 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6767 call common_val_print.
6768 (ada_val_print_1): Update.
6769 (ada_value_print_1): New function.
6770 (ada_value_print_inner): Rewrite.
6771
6772 2020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * cp-valprint.c (cp_print_value_fields): Update.
6775 (cp_print_value): New function.
6776
6777 2020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * m2-valprint.c (m2_value_print_inner): Use
6780 cp_print_value_fields.
6781 * cp-valprint.c (cp_print_value_fields): New function.
6782 * c-valprint.c (c_value_print_struct): New function.
6783 (c_value_print_inner): Use c_value_print_struct.
6784 * c-lang.h (cp_print_value_fields): Declare.
6785
6786 2020-03-13 Tom Tromey <tom@tromey.com>
6787
6788 * c-valprint.c (c_value_print_array): New function.
6789 (c_value_print_inner): Use it.
6790
6791 2020-03-13 Tom Tromey <tom@tromey.com>
6792
6793 * c-valprint.c (c_value_print_memberptr): New function.
6794 (c_value_print_inner): Use it.
6795
6796 2020-03-13 Tom Tromey <tom@tromey.com>
6797
6798 * c-valprint.c (c_value_print_int): New function.
6799 (c_value_print_inner): Use it.
6800
6801 2020-03-13 Tom Tromey <tom@tromey.com>
6802
6803 * c-valprint.c (c_value_print_ptr): New function.
6804 (c_value_print_inner): Use it.
6805
6806 2020-03-13 Tom Tromey <tom@tromey.com>
6807
6808 * c-valprint.c (c_value_print_inner): Rewrite.
6809
6810 2020-03-13 Tom Tromey <tom@tromey.com>
6811
6812 * valprint.c (generic_value_print_complex): New function.
6813 (generic_value_print): Use it.
6814
6815 2020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * valprint.c (generic_val_print_float): Don't call
6818 val_print_scalar_formatted.
6819 (generic_val_print, generic_value_print): Update.
6820
6821 2020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * valprint.c (generic_value_print_char): New function
6824 (generic_value_print): Use it.
6825
6826 2020-03-13 Tom Tromey <tom@tromey.com>
6827
6828 * valprint.c (generic_value_print_int): New function.
6829 (generic_value_print): Use it.
6830
6831 2020-03-13 Tom Tromey <tom@tromey.com>
6832
6833 * valprint.c (generic_value_print_bool): New function.
6834 (generic_value_print): Use it.
6835
6836 2020-03-13 Tom Tromey <tom@tromey.com>
6837
6838 * valprint.c (generic_val_print_func): Simplify.
6839 (generic_val_print, generic_value_print): Update.
6840
6841 2020-03-13 Tom Tromey <tom@tromey.com>
6842
6843 * valprint.c (generic_val_print_flags): Remove.
6844 (generic_val_print, generic_value_print): Update.
6845 (val_print_type_code_flags): Add original_value parameter.
6846
6847 2020-03-13 Tom Tromey <tom@tromey.com>
6848
6849 * valprint.c (generic_val_print): Update.
6850 (generic_value_print): Update.
6851 * valprint.c (generic_val_print_enum): Don't call
6852 val_print_scalar_formatted.
6853
6854 2020-03-13 Tom Tromey <tom@tromey.com>
6855
6856 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6857 * valprint.c (generic_value_print_ptr): New function.
6858
6859 2020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * valprint.c (generic_value_print): Rewrite.
6862
6863 2020-03-13 Tom Tromey <tom@tromey.com>
6864
6865 * p-valprint.c (pascal_object_print_value_fields)
6866 (pascal_object_print_value): New functions.
6867
6868 2020-03-13 Tom Tromey <tom@tromey.com>
6869
6870 * p-valprint.c (pascal_value_print_inner): Rewrite.
6871
6872 2020-03-13 Tom Tromey <tom@tromey.com>
6873
6874 * f-valprint.c (f_value_print_innner): Rewrite.
6875
6876 2020-03-13 Tom Tromey <tom@tromey.com>
6877
6878 * m2-valprint.c (m2_print_unbounded_array): New overload.
6879 (m2_print_unbounded_array): Update.
6880 (m2_print_array_contents): Take a struct value.
6881 (m2_value_print_inner): Rewrite.
6882
6883 2020-03-13 Tom Tromey <tom@tromey.com>
6884
6885 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6886 (d_value_print_inner): New function.
6887 * d-lang.h (d_value_print_inner): Declare.
6888 * d-lang.c (d_language_defn): Use d_value_print_inner.
6889
6890 2020-03-13 Tom Tromey <tom@tromey.com>
6891
6892 * go-valprint.c (go_value_print_inner): New function.
6893 * go-lang.h (go_value_print_inner): Declare.
6894 * go-lang.c (go_language_defn): Use go_value_print_inner.
6895
6896 2020-03-13 Tom Tromey <tom@tromey.com>
6897
6898 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6899 API.
6900 (rust_val_print): Rewrite.
6901 (rust_value_print_inner): New function, from rust_val_print.
6902 (rust_language_defn): Use rust_value_print_inner.
6903
6904 2020-03-13 Tom Tromey <tom@tromey.com>
6905
6906 * ada-valprint.c (ada_value_print_inner): New function.
6907 * ada-lang.h (ada_value_print_inner): Declare.
6908 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6909
6910 2020-03-13 Tom Tromey <tom@tromey.com>
6911
6912 * f-valprint.c (f_value_print_innner): New function.
6913 * f-lang.h (f_value_print_innner): Declare.
6914 * f-lang.c (f_language_defn): Use f_value_print_innner.
6915
6916 2020-03-13 Tom Tromey <tom@tromey.com>
6917
6918 * p-valprint.c (pascal_value_print_inner): New function.
6919 * p-lang.h (pascal_value_print_inner): Declare.
6920 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6921
6922 2020-03-13 Tom Tromey <tom@tromey.com>
6923
6924 * m2-valprint.c (m2_value_print_inner): New function.
6925 * m2-lang.h (m2_value_print_inner): Declare.
6926 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6927
6928 2020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6931 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6932 * c-valprint.c (c_value_print_inner): New function.
6933 * c-lang.h (c_value_print_inner): Declare.
6934 * c-lang.c (c_language_defn, cplus_language_defn)
6935 (asm_language_defn, minimal_language_defn): Use
6936 c_value_print_inner.
6937
6938 2020-03-13 Tom Tromey <tom@tromey.com>
6939
6940 * p-valprint.c (pascal_object_print_value_fields): Now static.
6941 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6942
6943 2020-03-13 Tom Tromey <tom@tromey.com>
6944
6945 * c-valprint.c (c_val_print_array): Simplify.
6946
6947 2020-03-13 Tom Tromey <tom@tromey.com>
6948
6949 * valprint.c (value_print_array_elements): New function.
6950 * valprint.h (value_print_array_elements): Declare.
6951
6952 2020-03-13 Tom Tromey <tom@tromey.com>
6953
6954 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6955 * mips-tdep.c (mips_print_register): Use
6956 value_print_scalar_formatted.
6957
6958 2020-03-13 Tom Tromey <tom@tromey.com>
6959
6960 * valprint.h (value_print_scalar_formatted): Declare.
6961 * valprint.c (value_print_scalar_formatted): New function.
6962
6963 2020-03-13 Tom Tromey <tom@tromey.com>
6964
6965 * valprint.h (generic_value_print): Declare.
6966 * valprint.c (generic_value_print): New function.
6967
6968 2020-03-13 Tom Tromey <tom@tromey.com>
6969
6970 * valprint.c (do_val_print): Call la_value_print_inner, if
6971 available.
6972 * rust-lang.c (rust_language_defn): Update.
6973 * p-lang.c (pascal_language_defn): Update.
6974 * opencl-lang.c (opencl_language_defn): Update.
6975 * objc-lang.c (objc_language_defn): Update.
6976 * m2-lang.c (m2_language_defn): Update.
6977 * language.h (struct language_defn) <la_value_print_inner>: New
6978 member.
6979 * language.c (unknown_language_defn, auto_language_defn): Update.
6980 * go-lang.c (go_language_defn): Update.
6981 * f-lang.c (f_language_defn): Update.
6982 * d-lang.c (d_language_defn): Update.
6983 * c-lang.c (c_language_defn, cplus_language_defn)
6984 (asm_language_defn, minimal_language_defn): Update.
6985 * ada-lang.c (ada_language_defn): Update.
6986
6987 2020-03-13 Tom Tromey <tom@tromey.com>
6988
6989 * c-valprint.c (c_value_print): Use common_val_print.
6990
6991 2020-03-13 Tom Tromey <tom@tromey.com>
6992
6993 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6994
6995 2020-03-13 Tom Tromey <tom@tromey.com>
6996
6997 * f-valprint.c (f77_print_array_1, f_val_print): Use
6998 common_val_print.
6999
7000 2020-03-13 Tom Tromey <tom@tromey.com>
7001
7002 * riscv-tdep.c (riscv_print_one_register_info): Use
7003 common_val_print.
7004
7005 2020-03-13 Tom Tromey <tom@tromey.com>
7006
7007 * mi/mi-main.c (output_register): Use common_val_print.
7008
7009 2020-03-13 Tom Tromey <tom@tromey.com>
7010
7011 * infcmd.c (default_print_one_register_info): Use
7012 common_val_print.
7013
7014 2020-03-13 Tom Tromey <tom@tromey.com>
7015
7016 * valprint.h (common_val_print_checked): Declare.
7017 * valprint.c (common_val_print_checked): New function.
7018 * stack.c (print_frame_arg): Use common_val_print_checked.
7019
7020 2020-03-13 Tom Tromey <tom@tromey.com>
7021
7022 * valprint.c (do_val_print): New function, from val_print.
7023 (val_print): Use do_val_print.
7024 (common_val_print): Use do_val_print.
7025
7026 2020-03-13 Tom Tromey <tom@tromey.com>
7027
7028 * valprint.c (value_print): Use scoped_value_mark.
7029
7030 2020-03-13 Tom de Vries <tdevries@suse.de>
7031
7032 PR symtab/25646
7033 * psymtab.c (partial_symtab::partial_symtab): Don't set
7034 globals_offset and statics_offset. Push element onto
7035 current_global_psymbols and current_static_psymbols stacks.
7036 (concat): New function.
7037 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7038 element from current_global_psymbols and current_static_psymbols
7039 stacks. Concat popped elements to global_psymbols and
7040 static_symbols.
7041 (add_psymbol_to_list): Use current_global_psymbols and
7042 current_static_psymbols stacks.
7043 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7044 current_static_psymbols fields.
7045
7046 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7047
7048 * corelow.c (sniff_core_bfd): Remove.
7049 (class core_target) <m_core_vec>: Remove.
7050 (core_target::core_target): Update.
7051 (core_file_fns): Remove.
7052 (deprecated_add_core_fns): Remove.
7053 (default_core_sniffer): Remove.
7054 (sniff_core_bfd): Remove.
7055 (default_check_format): Remove.
7056 (gdb_check_format): Remove.
7057 (core_target_open): Update.
7058 (core_target::get_core_register_section): Update.
7059 (get_core_registers_cb): Update.
7060 (core_target::fetch_registers): Update.
7061 * gdbcore.h (struct core_fns): Remove.
7062 (deprecated_add_core_fns): Remove.
7063 (default_core_sniffer): Remove.
7064 (default_check_format): Remove.
7065
7066 2020-03-12 Tom Tromey <tom@tromey.com>
7067
7068 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7069 CORE_ADDR.
7070 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7071
7072 2020-03-12 Tom Tromey <tom@tromey.com>
7073
7074 * remote.c (remote_target::download_tracepoint)
7075 (remote_target::enable_tracepoint)
7076 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7077 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7078 sprintf_vma.
7079
7080 2020-03-12 Tom Tromey <tom@tromey.com>
7081
7082 * symfile-mem.c: Update CORE_ADDR size assert.
7083
7084 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7085
7086 * selftest.m4: Move to gdbsupport/.
7087 * acinclude.m4: Update path to selftest.m4.
7088
7089 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7090
7091 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7092 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7093 gdbarch-selfselftests.c and selftest-arch.c.
7094 (SUBDIR_UNITTESTS_OBS): Rename to...
7095 (SELFTESTS_OBS): ... this.
7096 (COMMON_SFILES): Remove disasm-selftests.c and
7097 gdbarch-selftests.c.
7098 * configure.ac: Don't add selftest-arch.{c,o} to
7099 CONFIG_{SRCS,OBS}.
7100 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7101 preprocessor conditions.
7102
7103 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * configure.ac: Don't source bfd/development.sh.
7106 * selftest.m4: Modify comment.
7107 * configure: Re-generate.
7108
7109 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7110
7111 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7112 not "true" or "false".
7113 * configure: Re-generate.
7114
7115 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7116
7117 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7118 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7119 renamed to arm_nbsd_supply_gregset.
7120 (fetch_register): Update to call arm_nbsd_supply_gregset.
7121 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7122 (arm_netbsd_nat_target::fetch_registers): Update.
7123 (fetch_elfcore_registers): Removed.
7124 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7125 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7126 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7127 not require NetBSD system headers.
7128 (arm_nbsd_regset): New struct.
7129 (arm_nbsd_iterate_over_regset_sections): New function.
7130 (arm_netbsd_init_abi_common): Updated to call
7131 set_gdbarch_iterate_over_regset_sections.
7132 * arm-nbsd-tdep.h: New file.
7133
7134 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7135
7136 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7137 recursion.
7138
7139 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7140
7141 * configure: Re-generate.
7142
7143 2020-03-11 Tom Tromey <tromey@adacore.com>
7144
7145 * ada-typeprint.c (print_choices): Fix comment.
7146
7147 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7148
7149 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7150 previous item in the list, when the list has no items.
7151
7152 2020-03-11 Tom de Vries <tdevries@suse.de>
7153
7154 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7155 PROP_LOCLIST handling code.
7156
7157 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * buildsym-legacy.c (record_line): Pass extra parameter to
7160 record_line.
7161 * buildsym.c (buildsym_compunit::record_line): Take an extra
7162 parameter, reduce duplication in the line table, and record the
7163 is_stmt flag in the line table.
7164 * buildsym.h (buildsym_compunit::record_line): Add extra
7165 parameter.
7166 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7167 non-statement lines.
7168 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7169 this to the symtab builder.
7170 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7171 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7172 through to dwarf_record_line_1.
7173 * infrun.c (process_event_stop_test): When stepping, don't stop at
7174 a non-statement instruction, and only refresh the step info when
7175 we land in the middle of a line's range. Also add an extra
7176 comment.
7177 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7178 field.
7179 * record-btrace.c (btrace_find_line_range): Only record lines
7180 marked as is-statement.
7181 * stack.c (frame_show_address): Show the frame address if we are
7182 in a non-statement sal.
7183 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7184 (maintenance_print_one_line_table): Print a header for the is_stmt
7185 column, and include is_stmt information in the output.
7186 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7187 preference to non-statements.
7188 (find_pcs_for_symtab_line): Prefer is-statement entries.
7189 (find_line_common): Likewise.
7190 * symtab.h (struct linetable_entry): Add is_stmt field.
7191 (struct symtab_and_line): Likewise.
7192 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7193 arranging the line table.
7194
7195 2020-03-07 Tom de Vries <tdevries@suse.de>
7196
7197 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7198 DIE.
7199
7200 2020-03-07 Tom Tromey <tom@tromey.com>
7201
7202 * valops.c (value_literal_complex): Remove obsolete comment.
7203 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7204 comment.
7205
7206 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7207
7208 * infrun.h: Forward-declare thread_info.
7209 (set_step_info): Add thread_info parameter, add doc.
7210 * infrun.c (set_step_info): Add thread_info parameter, move doc
7211 to header.
7212 * infrun.c (process_event_stop_test): Pass thread to
7213 set_step_info call.
7214 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7215 set_step_info.
7216 (prepare_one_step): Add thread_info parameter, pass it to
7217 set_step_frame and prepare_one_step (recursive) call.
7218 (step_1): Pass thread to prepare_one_step call.
7219 (step_command_fsm::should_stop): Pass thread to
7220 prepare_one_step.
7221 (until_next_fsm): Pass thread to set_step_frame call.
7222 (finish_command): Pass thread to set_step_info call.
7223
7224 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7225
7226 * windows-tdep.c (windows_solib_create_inferior_hook):
7227 Check if inferior is running.
7228
7229 2020-03-06 Tom de Vries <tdevries@suse.de>
7230
7231 * NEWS: Fix "the the".
7232 * ctfread.c: Same.
7233
7234 2020-03-06 Tom de Vries <tdevries@suse.de>
7235
7236 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7237
7238 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7239
7240 * .dir-locals.el: Add a comment referencing the other copies of
7241 this file.
7242
7243 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7244
7245 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7246 psargs.
7247
7248 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7249
7250 * .gitattributes: New file.
7251
7252 2020-03-04 Tom Tromey <tom@tromey.com>
7253
7254 * symmisc.c (print_symbol_bcache_statistics)
7255 (print_objfile_statistics): Update.
7256 * symfile.c (allocate_symtab): Use intern.
7257 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7258 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7259 macro_cache>: Remove.
7260 <string_cache>: New member.
7261 (struct objfile) <intern>: New methods.
7262 * elfread.c (elf_symtab_read): Use intern.
7263 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7264 (dwarf2_compute_name, dwarf2_physname)
7265 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7266 names.
7267 (guess_partial_die_structure_name): Update.
7268 (partial_die_info::fixup): Intern name.
7269 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7270 name.
7271 (dwarf2_name): Intern name. Update.
7272 * buildsym.c (buildsym_compunit::get_macro_table): Use
7273 string_cache.
7274
7275 2020-03-04 Tom Tromey <tom@tromey.com>
7276
7277 * jit.c (bfd_open_from_target_memory): Make "target" const.
7278 * corefile.c (gnutarget): Now const.
7279 * gdbcore.h (gnutarget): Now const.
7280
7281 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7282
7283 * NEWS: Mention support for WOW64 processes.
7284 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7285 (amd64_windows_segment_register_p): Remove static.
7286 (_initialize_amd64_windows_nat): Update.
7287 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7288 * i386-windows-nat.c (context_offset): Update.
7289 (i386_mappings): Rename and remove static.
7290 (i386_windows_segment_register_p): Remove static.
7291 (_initialize_i386_windows_nat): Update.
7292 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7293 (STATUS_WX86_SINGLE_STEP): New macro.
7294 (EnumProcessModulesEx): New macro.
7295 (Wow64SuspendThread): New macro.
7296 (Wow64GetThreadContext): New macro.
7297 (Wow64SetThreadContext): New macro.
7298 (Wow64GetThreadSelectorEntry): New macro.
7299 (windows_set_context_register_offsets): Add static.
7300 (windows_set_segment_register_p): Likewise.
7301 (windows_add_thread): Adapt for WOW64 processes.
7302 (windows_fetch_one_register): Likewise.
7303 (windows_nat_target::fetch_registers): Likewise.
7304 (windows_store_one_register): Likewise.
7305 (display_selector): Likewise.
7306 (display_selectors): Likewise.
7307 (handle_exception): Likewise.
7308 (windows_continue): Likewise.
7309 (windows_nat_target::resume): Likewise.
7310 (windows_add_all_dlls): Likewise.
7311 (do_initial_windows_stuff): Likewise.
7312 (windows_nat_target::attach): Likewise.
7313 (windows_get_exec_module_filename): Likewise.
7314 (windows_nat_target::create_inferior): Likewise.
7315 (windows_xfer_siginfo): Likewise.
7316 (_initialize_loadable): Initialize Wow64SuspendThread,
7317 Wow64GetThreadContext, Wow64SetThreadContext,
7318 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7319 * windows-nat.h (windows_set_context_register_offsets):
7320 Remove declaration.
7321 (windows_set_segment_register_p): Likewise.
7322 (i386_windows_segment_register_p): Add declaration.
7323 (amd64_windows_segment_register_p): Likewise.
7324
7325 2020-03-04 Luis Machado <luis.machado@linaro.org>
7326
7327 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7328 in "info registers" for AArch64/ARM.
7329
7330 The change caused "info registers" to not print GPR's.
7331
7332 gdb/ChangeLog:
7333
7334 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7335
7336 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7337 when reg->group is empty and reggroup is not.
7338
7339 2020-03-03 Tom Tromey <tromey@adacore.com>
7340
7341 * dwarf2/frame.c (struct dwarf2_frame_cache)
7342 <checked_tailcall_bottom, entry_cfa_sp_offset,
7343 entry_cfa_sp_offset_p>: Remove members.
7344 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7345 (dwarf2_frame_prev_register): Don't call
7346 dwarf2_tailcall_sniffer_first.
7347 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7348 * frame-unwind.c (add_unwinder): New fuction.
7349 (frame_unwind_init): Use it. Add tailcall unwinder.
7350
7351 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7352 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7353
7354 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7355 value should be printed as true.
7356
7357 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7358
7359 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7360 (windows_init_abi): Set and use windows_so_ops.
7361
7362 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7363
7364 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7365 when verifying if dealing with a convenience variable.
7366
7367 2020-03-03 Luis Machado <luis.machado@linaro.org>
7368
7369 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7370
7371 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7372
7373 * infrun.c (gdbarch_supports_displaced_stepping): New.
7374 (use_displaced_stepping): Break up conditions in smaller pieces.
7375 Use gdbarch_supports_displaced_stepping.
7376 (displaced_step_prepare_throw): Use
7377 gdbarch_supports_displaced_stepping.
7378
7379 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7380
7381 * NEWS: Mention new behaviour of the history filename.
7382 * top.c (write_history_p): Add comment.
7383 (show_write_history_p): Add header comment, give a different
7384 message when history writing is on, but the history filename is
7385 empty.
7386 (history_filename): Add comment.
7387 (history_filename_empty): New function.
7388 (show_history_filename): Add header comment, give a different
7389 message when the filename is empty.
7390 (init_history): Compare history_filename against nullptr, and only
7391 read history if the filename is not empty.
7392 (set_history_filename): Add header comment, and only make
7393 non-empty filenames absolute.
7394 (init_main): Make the filename argument to 'set history filename'
7395 optional.
7396
7397 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7398
7399 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7400 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7401 (fetch_fp_register): Update.
7402 (fetch_fp_regs): Update.
7403 (store_fp_register): Update.
7404 (store_fp_regs): Update.
7405 (arm_netbsd_nat_target::read_description): New function.
7406 (fetch_elfcore_registers): Update.
7407
7408 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7411 general_thread if the stop reply is missing a thread-id.
7412 (remote_target::process_stop_reply): Use the first non-exited
7413 thread if the target didn't pass a thread-id.
7414 * infrun.c (do_target_wait): Move call to
7415 switch_to_inferior_no_thread to ....
7416 (do_target_wait_1): ... here.
7417
7418 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7419
7420 * debuginfod-support.c: Include defs.h first.
7421
7422 2020-02-28 Tom de Vries <tdevries@suse.de>
7423
7424 * symfile.c (set_initial_language): Use default language for lookup.
7425
7426 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7429 reader variable, pass `this` to read_cutu_die_from_dwo.
7430
7431 2020-02-27 Aaron Merey <amerey@redhat.com>
7432
7433 * source.c (open_source_file): Check for nullptr when computing
7434 srcpath.
7435
7436 2020-02-27 Tom Tromey <tromey@adacore.com>
7437
7438 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7439 member.
7440 (dwarf2_add_field): Don't update nfields.
7441 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7442
7443 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7444
7445 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7446 abs.
7447
7448 2020-02-26 Tom Tromey <tom@tromey.com>
7449
7450 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7451 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7452 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7453 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7454 per_cu_data.
7455
7456 2020-02-26 Tom Tromey <tom@tromey.com>
7457
7458 * dwarf2/index-write.c (psym_index_map): Change type.
7459 (add_address_entry_worker, write_one_signatured_type)
7460 (recursively_count_psymbols, recursively_write_psymbols)
7461 (class debug_names, psyms_seen_size, write_gdbindex)
7462 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7463
7464 2020-02-26 Aaron Merey <amerey@redhat.com>
7465
7466 * Makefile.in: Handle optional debuginfod support.
7467 * NEWS: Update.
7468 * README: Add --with-debuginfod summary.
7469 * config.in: Regenerate.
7470 * configure: Regenerate.
7471 * configure.ac: Handle optional debuginfod support.
7472 * debuginfod-support.c: debuginfod helper functions.
7473 * debuginfod-support.h: Ditto.
7474 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7475 summary.
7476 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7477 when a dwz file cannot be found.
7478 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7479 debuginfo file cannot be found.
7480 * source.c (open_source_file): Query debuginfod servers when a
7481 source file cannot be found.
7482 * top.c (print_gdb_configuration): Include
7483 --{with,without}-debuginfod in the output.
7484
7485 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7486
7487 * thread.c (thr_try_catch_cmd): Print thread name.
7488
7489 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7490
7491 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7492 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7493 dwarf2_fetch_die_type_sect_off): Move to...
7494 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7495 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7496 dwarf2_fetch_die_type_sect_off): ... here.
7497 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7498 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7499 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7500
7501 2020-02-26 Tom de Vries <tdevries@suse.de>
7502
7503 PR gdb/25603
7504 * symfile.c (set_initial_language): Exit-early if
7505 language_mode == language_mode_manual.
7506
7507 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7508
7509 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7510 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7511 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7512
7513 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7514
7515 * gdbtypes.c (create_array_type_with_stride): Handle negative
7516 array strides.
7517 * valarith.c (value_subscripted_rvalue): Likewise.
7518
7519 2020-02-25 Luis Machado <luis.machado@linaro.org>
7520
7521 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7522
7523 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7524
7525 * loc.h (dwarf2_get_die_type): Move to...
7526 * read.h (dwarf2_get_die_type): ... here.
7527 * read.c (dwarf2_get_die_type): Move doc to header.
7528
7529 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7530
7531 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7532 'gnulib/Makefile.in' to the list.
7533
7534 2020-02-24 Tom Tromey <tom@tromey.com>
7535
7536 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7537 Remove.
7538 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7539 XOBNEWVEC.
7540
7541 2020-02-24 Tom Tromey <tom@tromey.com>
7542
7543 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7544 New method.
7545 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7546 (dw2_do_instantiate_symtab, dw2_get_file_names)
7547 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7548
7549 2020-02-24 Tom Tromey <tom@tromey.com>
7550
7551 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7552 make_scoped_restore.
7553 (dwarf2_psymtab::read_symtab): Don't clear
7554 reading_partial_symbols.
7555
7556 2020-02-24 Tom de Vries <tdevries@suse.de>
7557
7558 PR gdb/25592
7559 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7560
7561 2020-02-24 Tom de Vries <tdevries@suse.de>
7562
7563 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7564 commands layout next/prev/regs.
7565
7566 2020-02-22 Tom Tromey <tom@tromey.com>
7567
7568 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7569 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7570
7571 2020-02-22 Tom Tromey <tom@tromey.com>
7572
7573 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7574
7575 2020-02-22 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7578 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7579 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7580 * tui/tui.c (_initialize_tui): Add usage text.
7581
7582 2020-02-22 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-win.c (tui_set_focus_command)
7585 (tui_set_win_height_command): Use error_no_arg.
7586 (_initialize_tui_win): Update help text.
7587 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7588
7589 2020-02-22 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7592 * tui/tui-disasm.h (struct tui_disasm_window)
7593 <display_start_addr>: Declare.
7594 * tui/tui-source.h (struct tui_source_window)
7595 <display_start_addr>: Declare.
7596 * tui/tui-winsource.h (struct tui_source_window_base)
7597 <show_source_line, display_start_addr>: New methods.
7598 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7599 Rename and move to protected section.
7600 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7601 (tui_source_window_base::do_erase_source_content): Update.
7602 (tui_source_window_base::show_source_line): Now a method.
7603 (tui_source_window_base::show_source_content)
7604 (tui_source_window_base::tui_source_window_base)
7605 (tui_source_window_base::rerender)
7606 (tui_source_window_base::refill)
7607 (tui_source_window_base::do_scroll_horizontal)
7608 (tui_source_window_base::set_is_exec_point_at)
7609 (tui_source_window_base::update_breakpoint_info)
7610 (tui_source_window_base::update_exec_info): Update.
7611 * tui/tui-source.c (tui_source_window::set_contents)
7612 (tui_source_window::showing_source_p)
7613 (tui_source_window::do_scroll_vertical)
7614 (tui_source_window::location_matches_p)
7615 (tui_source_window::line_is_displayed): Update.
7616 (tui_source_window::display_start_addr): New method.
7617 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7618 (tui_disasm_window::do_scroll_vertical)
7619 (tui_disasm_window::location_matches_p): Update.
7620 (tui_disasm_window::display_start_addr): New method.
7621
7622 2020-02-22 Tom Tromey <tom@tromey.com>
7623
7624 * NEWS: Add entry for gdb.register_window_type.
7625 * tui/tui-layout.h (window_factory): New typedef.
7626 (tui_register_window): Declare.
7627 * tui/tui-layout.c (saved_tui_windows): New global.
7628 (tui_apply_current_layout): Use it.
7629 (tui_register_window): New function.
7630 * python/python.c (do_start_initialization): Call
7631 gdbpy_initialize_tui.
7632 (python_GdbMethods): Add "register_window_type" function.
7633 * python/python-internal.h (gdbpy_register_tui_window)
7634 (gdbpy_initialize_tui): Declare.
7635 * python/py-tui.c: New file.
7636 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7637
7638 2020-02-22 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7641
7642 2020-02-22 Tom Tromey <tom@tromey.com>
7643
7644 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7645 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7646 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7647 (tui_set_win_focus_to): Move from tui-win.c.
7648
7649 2020-02-22 Tom Tromey <tom@tromey.com>
7650
7651 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7652 functions.
7653 (known_window_types): New global.
7654 (tui_get_window_by_name): Reimplement.
7655 (initialize_known_windows): New function.
7656 (validate_window_name): Rewrite.
7657 (_initialize_tui_layout): Call initialize_known_windows.
7658
7659 2020-02-22 Tom Tromey <tom@tromey.com>
7660
7661 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7662 Remove constants.
7663 * tui/tui-winsource.h (struct tui_source_window_base)
7664 <tui_source_window_base>: Remove parameter.
7665 * tui/tui-winsource.c
7666 (tui_source_window_base::tui_source_window_base): Remove
7667 parameter.
7668 (tui_source_window_base::refill): Update.
7669 * tui/tui-stack.h (struct tui_locator_window)
7670 <tui_locator_window>: Update.
7671 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7672 Default the constructor.
7673 * tui/tui-regs.h (struct tui_data_item_window)
7674 <tui_data_item_window>: Default the constructor.
7675 (struct tui_data_window) <tui_data_window>: Likewise.
7676 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7677 Default the constructor.
7678 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7679 Default the constructor.
7680 <type>: Remove.
7681 (struct tui_win_info) <tui_win_info>: Default the constructor.
7682 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7683 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7684 Default the constructor.
7685
7686 2020-02-22 Tom Tromey <tom@tromey.com>
7687
7688 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7689 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7690 * tui/tui-win.c (tui_resize_all): Don't call
7691 tui_delete_invisible_windows.
7692 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7693 done.
7694 (tui_set_layout): Update.
7695 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7696 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7697 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7698
7699 2020-02-22 Tom Tromey <tom@tromey.com>
7700
7701 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7702 correctly.
7703
7704 2020-02-22 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7707
7708 2020-02-22 Tom Tromey <tom@tromey.com>
7709
7710 * tui/tui-winsource.h (struct tui_source_window_iterator)
7711 <inner_iterator>: New etytypedef.
7712 <tui_source_window_iterator>: Take "end" parameter.
7713 <tui_source_window_iterator>: Take iterator.
7714 <operator*, advance>: Update.
7715 <m_iter>: Change type.
7716 <m_end>: New field.
7717 (struct tui_source_windows) <begin, end>: Update.
7718 * tui/tui-layout.c (tui_windows): New global.
7719 (tui_apply_current_layout): Clear tui_windows.
7720 (tui_layout_window::apply): Update tui_windows.
7721 * tui/tui-data.h (tui_windows): Declare.
7722 (all_tui_windows): Now inline function.
7723 (class tui_window_iterator, struct all_tui_windows): Remove.
7724
7725 2020-02-22 Tom Tromey <tom@tromey.com>
7726
7727 PR tui/17850:
7728 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7729 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7730 "height" argument.
7731 (class tui_layout_window) <get_sizes>: Likewise.
7732 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7733 argument.
7734 <get_sizes>: Add "height" argument.
7735 <m_vertical>: New field.
7736 * tui/tui-layout.c (tui_layout_split::clone): Update.
7737 (tui_layout_split::get_sizes): Add "height" argument.
7738 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7739 (tui_new_layout_command): Parse "-horizontal".
7740 (_initialize_tui_layout): Update help string.
7741 (tui_layout_split::specification): Add "-horizontal" when needed.
7742 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7743 argument.
7744 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7745 New methods.
7746
7747 2020-02-22 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-layout.h (enum tui_adjust_result): New.
7750 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7751 (class tui_layout_window) <adjust_size>: Return
7752 tui_adjust_result. Rewrite.
7753 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7754 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7755
7756 2020-02-22 Tom Tromey <tom@tromey.com>
7757
7758 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7759 parameter and return types.
7760 (class tui_layout_base) <specification>: Add "depth".
7761 (class tui_layout_window) <specification>: Add "depth".
7762 (class tui_layout_split) <specification>: Add "depth".
7763 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7764 and return types.
7765 (tui_new_layout_command): Parse sub-layouts.
7766 (_initialize_tui_layout): Update help string.
7767 (tui_layout_window::specification): Add "depth".
7768 (add_layout_command): Update.
7769
7770 2020-02-22 Tom Tromey <tom@tromey.com>
7771
7772 * NEWS: Add "tui new-layout" item.
7773 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7774 Add new-layout command to help text.
7775 (validate_window_name): New function.
7776 (tui_new_layout_command): New function.
7777 (_initialize_tui_layout): Register "new-layout".
7778 (tui_layout_window::specification): New method.
7779 (tui_layout_window::specification): New method.
7780 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7781 method.
7782 (class tui_layout_window) <specification>: New method.
7783 (class tui_layout_split) <specification>: New method.
7784
7785 2020-02-22 Tom Tromey <tom@tromey.com>
7786
7787 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7788 * tui/tui-win.c (window_name_completer): Update comment.
7789 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7790 Declare method.
7791 (class tui_layout_window) <replace_window>: Likewise.
7792 (class tui_layout_split) <replace_window>: Likewise.
7793 (tui_set_layout): Don't declare.
7794 (tui_set_initial_layout): Declare function.
7795 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7796 (asm_regs_layout): New globals.
7797 (tui_current_layout, show_layout): Remove.
7798 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7799 (find_layout, tui_apply_layout): New function.
7800 (layout_completer): Remove.
7801 (tui_next_layout): Reimplement.
7802 (tui_next_layout_command): New function.
7803 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7804 (tui_regs_layout): Reimplement.
7805 (tui_regs_layout_command): New function.
7806 (extract_display_start_addr): Rewrite.
7807 (next_layout, prev_layout): Remove.
7808 (tui_layout_window::replace_window): New method.
7809 (tui_layout_split::replace_window): New method.
7810 (destroy_layout): New function.
7811 (layout_list): New global.
7812 (add_layout_command): New function.
7813 (initialize_layouts): Update.
7814 (tui_layout_command): New function.
7815 (_initialize_tui_layout): Install "layout" commands.
7816 * tui/tui-data.h (enum tui_layout_type): Remove.
7817 (tui_current_layout): Don't declare.
7818
7819 2020-02-22 Tom Tromey <tom@tromey.com>
7820
7821 * tui/tui-regs.c (tui_reg_layout): Remove.
7822 (tui_reg_command): Use tui_regs_layout.
7823 * tui/tui-layout.h (tui_reg_command): Declare.
7824 * tui/tui-layout.c (tui_reg_command): New function.
7825
7826 2020-02-22 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui.c (tui_rl_delete_other_windows): Call
7829 tui_remove_some_windows.
7830 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7831 Declare method.
7832 (class tui_layout_window) <remove_windows>: New method.
7833 (class tui_layout_split) <remove_windows>: Declare.
7834 (tui_remove_some_windows): Declare.
7835 * tui/tui-layout.c (tui_remove_some_windows): New function.
7836 (tui_layout_split::remove_windows): New method.
7837
7838 2020-02-22 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7841 * tui/tui-layout.h (tui_next_layout): Declare.
7842 * tui/tui-layout.c (tui_next_layout): New function.
7843
7844 2020-02-22 Tom Tromey <tom@tromey.com>
7845
7846 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7847 correct coordinates.
7848
7849 2020-02-22 Tom Tromey <tom@tromey.com>
7850
7851 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7852 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7853 DATA_WIN case.
7854
7855 2020-02-22 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7858 TUI_DISASM_WIN, not tui_win_list.
7859
7860 2020-02-22 Tom Tromey <tom@tromey.com>
7861
7862 * valprint.c (generic_val_print_enum_1)
7863 (val_print_type_code_flags): Style member names.
7864 * rust-lang.c (val_print_struct, rust_print_enum)
7865 (rust_print_struct_def, rust_internal_print_type): Style member
7866 names.
7867 * p-valprint.c (pascal_object_print_value_fields): Style member
7868 names. Only call fprintf_symbol_filtered for static members.
7869 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7870 * f-valprint.c (f_val_print): Style member names.
7871 * f-typeprint.c (f_type_print_base): Style member names.
7872 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7873 call fprintf_symbol_filtered for static members.
7874 (cp_print_class_member): Style member names.
7875 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7876 member names.
7877 * ada-valprint.c (ada_print_scalar): Style enum names.
7878 (ada_val_print_enum): Likewise.
7879 * ada-typeprint.c (print_enum_type): Style enum names.
7880
7881 2020-02-21 Tom Tromey <tom@tromey.com>
7882
7883 * psympriv.h (struct partial_symtab): Update comment.
7884
7885 2020-02-21 Tom Tromey <tromey@adacore.com>
7886
7887 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7888 type is CORE_ADDR.
7889
7890 2020-02-21 Tom de Vries <tdevries@suse.de>
7891
7892 PR gdb/25534
7893 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7894 if dependencies[i]->user != NULL.
7895
7896 2020-02-21 Ali Tamur <tamur@google.com>
7897
7898 * dwarf2/read.c (dwarf2_name): Add null check.
7899
7900 2020-02-20 Tom Tromey <tom@tromey.com>
7901
7902 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7903 ">=", in binary search.
7904 (dwarf2_find_containing_comp_unit): New overload.
7905 (run_test): New self-test.
7906 (_initialize_dwarf2_read): Register new test.
7907
7908 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
7909
7910 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7911 * riscv-tdep.h: Likewise.
7912 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7913 rv32-only CSR.
7914 * features/riscv/64bit-csr.xml: Regenerated.
7915
7916 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7917 Tom Tromey <tom@tromey.com>
7918
7919 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7920 of 'fputc_unfiltered'.
7921 (putchar_unfiltered): Call 'fputc_unfiltered'.
7922 (fputc_unfiltered): Call 'fputs_unfiltered'.
7923
7924 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7925
7926 * config.in: Regenerate.
7927 * configure: Regenerate.
7928 * configure.ac: Add --with-python-libdir option.
7929 * main.c: Use WITH_PYTHON_LIBDIR.
7930
7931 2020-02-19 Tom Tromey <tom@tromey.com>
7932
7933 * symtab.c (general_symbol_info::compute_and_set_names): Use
7934 obstack_strndup. Simplify call to symbol_set_demangled_name.
7935
7936 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
7937
7938 * dwarf2/read.c (allocate_signatured_type_table,
7939 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7940 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7941 Remove objfile parameter, update all callers.
7942
7943 2020-02-19 Doug Evans <dje@google.com>
7944
7945 PR rust/25535
7946 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7947 rust_enum_variant calculation.
7948
7949 2020-02-19 Tom Tromey <tromey@adacore.com>
7950
7951 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7952
7953 2020-02-19 Tom Tromey <tromey@adacore.com>
7954
7955 * ada-lang.c (cache_symbol): Use obstack_strdup.
7956
7957 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * configure: Regenerate.
7960
7961 2020-02-19 Tom Tromey <tromey@adacore.com>
7962
7963 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7964 NULL check.
7965
7966 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
7967
7968 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7969
7970 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7971
7972 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7973 if GDBSERVER is not defined.
7974 (riscv_tdesc_cache): Likewise, also store const target_desc.
7975 (STATIC_IN_GDB): Define.
7976 (riscv_create_target_description): Update declaration with
7977 STATIC_IN_GDB.
7978 (riscv_lookup_target_description): New function, only define if
7979 GDBSERVER is not defined.
7980 * arch/riscv.h (riscv_create_target_description): Declare only
7981 when GDBSERVER is defined.
7982 (riscv_lookup_target_description): New declaration when GDBSERVER
7983 is not defined.
7984 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7985 (riscv_linux_read_features): ...this, and return
7986 riscv_gdbarch_features instead of target_desc.
7987 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7988 (riscv_linux_read_description): Rename to...
7989 (riscv_linux_read_features): ...this.
7990 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7991 Update to use riscv_gdbarch_features and
7992 riscv_lookup_target_description.
7993 * riscv-tdep.c (riscv_find_default_target_description): Use
7994 riscv_lookup_target_description instead of
7995 riscv_create_target_description.
7996
7997 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7998
7999 * valprint.c (generic_val_print_enum_1): When printing a flag
8000 enum with value 0 and there is no enumerator with value 0, print
8001 just "0" instead of "(unknown: 0x0)".
8002
8003 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * valprint.c (generic_val_print_enum_1): Print unknown part of
8006 flag enum in hex.
8007
8008 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8009
8010 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8011 flag enums to contain duplicate enumerators.
8012 * valprint.c (generic_val_print_enum_1): Update comment.
8013
8014 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8015
8016 * dwarf2/read.c: Include "count-one-bits.h".
8017 (update_enumeration_type_from_children): If an enumerator has
8018 multiple bits set, don't treat the enumeration as a "flag enum".
8019 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8020 of flag enums have 0 or 1 bit set.
8021
8022 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8023
8024 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8025 conversion.
8026 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8027 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8028 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8029 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8030 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8031
8032 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8033
8034 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8035
8036 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8039 displaced_step_closure_up.
8040 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8041 (struct displaced_step_closure_up):
8042 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8043 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8044 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8045 Likewise.
8046 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8047 * gdbarch.c, gdbarch.h: Re-generate.
8048 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8049 displaced_step_closure_up.
8050 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8051 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8052 * infrun.h (displaced_step_closure_up): New type alias.
8053 (struct displaced_step_inferior_state) <step_closure>: Change
8054 type to displaced_step_closure_up.
8055 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8056 displaced_step_closure_up.
8057 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8058
8059 2020-02-14 Tom Tromey <tom@tromey.com>
8060
8061 * minidebug.c (gnu_debug_key): New global.
8062 (find_separate_debug_file_in_section): Use it.
8063
8064 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8067 std::unique_ptr.
8068 * gdbarch.c: Re-generate.
8069 * gdbarch.h: Re-generate.
8070 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8071 change.
8072 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8073 type to std::unique_ptr.
8074 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8075 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8076 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8077 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8078 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8079 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8080 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8081 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8082 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8083
8084 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8087 std::unique_ptr.
8088 (displaced_step_clear): Rename to...
8089 (displaced_step_reset): ... this. Just call displaced->reset ().
8090 (displaced_step_clear_cleanup): Rename to...
8091 (displaced_step_reset_cleanup): ... this.
8092 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8093 (displaced_step_fixup): Likewise.
8094 (resume_1): Likewise.
8095 (handle_inferior_event): Restore child's memory before calling
8096 displaced_step_fixup on the parent.
8097 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8098 to std::unique_ptr.
8099 <step_closure>: Change type to std::unique_ptr.
8100
8101 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8102
8103 * arm-tdep.c: Include count-one-bits.h.
8104 (cleanup_block_store_pc): Use count_one_bits.
8105 (cleanup_block_load_pc): Use count_one_bits.
8106 (arm_copy_block_xfer): Use count_one_bits.
8107 (thumb2_copy_block_xfer): Use count_one_bits.
8108 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8109 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8110 (thumb_get_next_pcs_raw): Use count_one_bits.
8111 (arm_get_next_pcs_raw): Use count_one_bits_l.
8112 * arch/arm.c (bitcount): Remove.
8113 * arch/arm.h (bitcount): Remove.
8114
8115 2020-02-14 Tom Tromey <tromey@adacore.com>
8116
8117 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8118 Update.
8119 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8120 * dwarf2/loc.c (call_site_find_chain_1): Return
8121 unique_xmalloc_ptr.
8122 (call_site_find_chain): Likewise.
8123
8124 2020-02-14 Richard Biener <rguenther@suse.de>
8125
8126 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8127 on expression with division operators.
8128
8129 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8130
8131 * MAINTAINERS (Write After Approval): Adding myself.
8132
8133 2020-02-12 Tom Tromey <tom@tromey.com>
8134
8135 * event-loop.c (event_data, gdb_event, event_handler_func):
8136 Remove.
8137
8138 2020-02-12 Tom Tromey <tom@tromey.com>
8139
8140 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8141 (dwarf2_frame_objfile_data): Add comment.
8142 (find_comp_unit, set_comp_unit): New functions.
8143 (dwarf2_frame_find_fde): Use find_comp_unit.
8144 (dwarf2_build_frame_info): Use set_comp_unit.
8145
8146 2020-02-12 Tom Tromey <tom@tromey.com>
8147
8148 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8149 (comp_unit): Don't initialize objfile.
8150 (execute_cfa_program): Add text_offset parameter.
8151 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8152 (dwarf2_frame_cache): Update.
8153 (dwarf2_build_frame_info): Don't set "objfile" member.
8154
8155 2020-02-12 Tom Tromey <tom@tromey.com>
8156
8157 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8158 (decode_frame_entry): Likewise.
8159 (dwarf2_build_frame_info): Update.
8160
8161 2020-02-12 Tom Tromey <tom@tromey.com>
8162
8163 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8164 (decode_frame_entry_1): Use the comp_unit obstack.
8165
8166 2020-02-12 Tom Tromey <tom@tromey.com>
8167
8168 * dwarf2/frame.c (struct comp_unit): Add initializers and
8169 constructor.
8170 (dwarf2_frame_objfile_data): Store a comp_unit.
8171 (dwarf2_frame_find_fde): Update.
8172 (dwarf2_build_frame_info): Use "new".
8173
8174 2020-02-12 Tom Tromey <tom@tromey.com>
8175
8176 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8177 (dwarf2_fde_table): Typedef for std::vector.
8178 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8179 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8180 (decode_frame_entry): Update.
8181 (dwarf2_build_frame_info): Use "new".
8182
8183 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8184
8185 * arm-tdep.c (arm_gdbarch_init): Update.
8186 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8187 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8188 have_neon, is_m>: Change to bool.
8189
8190 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8191
8192 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8193
8194 2020-02-12 Tom Tromey <tom@tromey.com>
8195
8196 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8197
8198 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8199
8200 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8201 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8202
8203 2020-02-11 Tom Tromey <tom@tromey.com>
8204
8205 * psymtab.h: Update comment.
8206
8207 2020-02-11 Tom Tromey <tom@tromey.com>
8208
8209 * gdb_obstack.h (struct auto_obstack): Use
8210 DISABLE_COPY_AND_ASSIGN.
8211
8212 2020-02-11 Tom Tromey <tom@tromey.com>
8213
8214 * dwarf2/frame.h (struct objfile): Don't forward declare.
8215
8216 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8217
8218 * cris-tdep.c (cris_supply_gregset): Change signature to match
8219 what struct regset expects.
8220 (cris_regset): New struct.
8221 (fetch_core_registers): Remove.
8222 (cris_iterate_over_regset_sections): New function.
8223 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8224 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8225
8226 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8227
8228 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8229 registers.
8230
8231 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8232
8233 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8234
8235 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8236
8237 * configure: Re-generate.
8238
8239 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8240
8241 * configure: Re-generate.
8242
8243 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8244
8245 * acinclude: Update warning.m4 path.
8246 * warning.m4: Move to gdbsupport.
8247
8248 2020-02-11 Tom Tromey <tromey@adacore.com>
8249
8250 * remote.c (remote_console_output): Update.
8251 * printcmd.c (printf_command): Update.
8252 * event-loop.c (gdb_wait_for_event): Update.
8253 * linux-nat.c (sigchld_handler): Update.
8254 * remote-sim.c (gdb_os_write_stdout): Update.
8255 (gdb_os_flush_stdout): Update.
8256 (gdb_os_flush_stderr): Update.
8257 (gdb_os_write_stderr): Update.
8258 * exceptions.c (print_exception): Update.
8259 * remote-fileio.c (remote_fileio_func_read): Update.
8260 (remote_fileio_func_write): Update.
8261 * tui/tui.c (tui_enable): Update.
8262 * tui/tui-interp.c (tui_interp::init): Update.
8263 * utils.c (init_page_info): Update.
8264 (putchar_unfiltered, fputc_unfiltered): Update.
8265 (gdb_flush): Update.
8266 (emit_style_escape): Update.
8267 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8268 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8269 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8270 (stderr_file::write): Update.
8271 (stderr_file::puts): Update.
8272 * ui-file.h (ui_file_isatty, ui_file_write)
8273 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8274 (ui_file_puts): Don't declare.
8275
8276 2020-02-10 Tom de Vries <tdevries@suse.de>
8277
8278 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8279 sentinel to char *.
8280
8281 2020-02-09 Tom de Vries <tdevries@suse.de>
8282
8283 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8284 filename if it matches "<artificial>".
8285
8286 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8287
8288 * windows-tdep.c (struct enum_value_name): New struct.
8289 (create_enum): New function.
8290 (windows_get_siginfo_type): Create and use enum types.
8291
8292 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8293
8294 * NEWS: Mention $_siginfo support for Windows.
8295 * windows-nat.c (handle_exception): Set siginfo_er.
8296 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8297 (windows_xfer_siginfo): New function.
8298 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8299 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8300 (init_windows_gdbarch_data): New function.
8301 (get_windows_gdbarch_data): New function.
8302 (windows_get_siginfo_type): New function.
8303 (windows_init_abi): Register windows_get_siginfo_type.
8304 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8305
8306 2020-02-08 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8309 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8310 <keep>: Declare method.
8311 <m_keep>: Remove member.
8312 <~cutu_reader>: Remove.
8313 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8314 (cutu_reader::cutu_reader): Update.
8315 (cutu_reader::keep): Rename from ~cutu_reader.
8316 (process_psymtab_comp_unit, build_type_psymtabs_1)
8317 (process_skeletonless_type_unit, load_partial_comp_unit)
8318 (load_full_comp_unit, dwarf2_read_addr_index)
8319 (read_signatured_type): Update.
8320
8321 2020-02-08 Tom Tromey <tom@tromey.com>
8322
8323 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8324 "want_partial_unit" parameter.
8325 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8326 Inline check for DW_TAG_partial_unit.
8327 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8328
8329 2020-02-08 Tom Tromey <tom@tromey.com>
8330
8331 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8332 read.c.
8333 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8334 read.c.
8335
8336 2020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.c (read_address): Move to comp-unit.c.
8339 (dwarf2_rnglists_process, dwarf2_ranges_process)
8340 (read_attribute_value, dwarf_decode_lines_1)
8341 (var_decode_location, decode_locdesc): Update.
8342 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8343 read.c. Remove "cu" parameter.
8344 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8345 method.
8346
8347 2020-02-08 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8350 (read_indirect_line_string): Update.
8351 * dwarf2/comp-unit.c (read_offset): Remove.
8352 (read_comp_unit_head): Update.
8353 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8354 method.
8355 (read_offset): Don't declare.
8356
8357 2020-02-08 Tom Tromey <tom@tromey.com>
8358
8359 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8360 * dwarf2/read.c (struct comp_unit_head): Move to
8361 dwarf2/comp-unit.h.
8362 (enum class rcuh_kind): Move to comp-unit.h.
8363 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8364 (read_comp_unit_head, error_check_comp_unit_head)
8365 (read_and_check_comp_unit_head): Move to comp-unit.c.
8366 (read_offset, dwarf_unit_type_name): Likewise.
8367 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8368 (cutu_reader::cutu_reader, read_call_site_scope)
8369 (find_partial_die, follow_die_offset): Update.
8370 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8371
8372 2020-02-08 Tom Tromey <tom@tromey.com>
8373
8374 * dwarf2/read.c (read_offset_1): Move to leb.c.
8375 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8376 (dwarf_decode_macro_bytes): Update.
8377 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8378 * dwarf2/leb.h (read_offset): Declare.
8379
8380 2020-02-08 Tom Tromey <tom@tromey.com>
8381
8382 * dwarf2/read.c (dwarf2_section_size): Remove.
8383 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8384 Update.
8385 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8386
8387 2020-02-08 Tom Tromey <tom@tromey.com>
8388
8389 * dwarf2/read.c (read_initial_length): Move to leb.c.
8390 * dwarf2/leb.h (read_initial_length): Declare.
8391 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8392 handle_nonstd parameter.
8393 * dwarf2/frame.c (read_initial_length): Remove.
8394 (decode_frame_entry_1): Update.
8395
8396 2020-02-08 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/loc.c (dwarf2_find_location_expression)
8399 (dwarf_evaluate_loc_desc::get_tls_address)
8400 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8401 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8402 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8403 (dwarf2_compile_property_to_c)
8404 (dwarf2_loc_desc_get_symbol_read_needs)
8405 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8406 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8407 (loclist_describe_location, loclist_tracepoint_var_ref)
8408 (loclist_generate_c_location): Update.
8409 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8410 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8411 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8412 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8413 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8414 (dwarf2_per_cu_data::addr_size)
8415 (dwarf2_per_cu_data::ref_addr_size)
8416 (dwarf2_per_cu_data::text_offset)
8417 (dwarf2_per_cu_data::addr_type): Now methods.
8418 (per_cu_header_read_in): Make per_cu "const".
8419 (dwarf2_version): Remove.
8420 (dwarf2_per_cu_data::int_type): Now a method.
8421 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8422 (set_die_type, read_array_type, read_subrange_index_type)
8423 (read_tag_string_type, read_subrange_type): Update.
8424 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8425 offset_size, ref_addr_size, text_offset, addr_type, version,
8426 objfile, int_type, addr_sized_int_type>: Declare methods.
8427
8428 2020-02-08 Tom Tromey <tom@tromey.com>
8429
8430 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8431 Move earlier.
8432
8433 2020-02-08 Tom Tromey <tom@tromey.com>
8434
8435 * dwarf2/read.h (dwarf_line_debug): Declare.
8436 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8437 * dwarf2/read.c: Move line_header code to new files.
8438 (dwarf_line_debug): No longer static.
8439 * dwarf2/line-header.c: New file.
8440 * dwarf2/line-header.h: New file.
8441
8442 2020-02-08 Tom Tromey <tom@tromey.com>
8443
8444 * dwarf2/read.c (struct line_header) <file_full_name,
8445 file_file_name>: Return unique_xmalloc_ptr.
8446 (line_header::file_file_name): Update.
8447 (line_header::file_full_name): Update.
8448 (dw2_get_file_names_reader): Update.
8449 (macro_start_file): Update.
8450
8451 2020-02-08 Tom Tromey <tom@tromey.com>
8452
8453 * dwarf2/read.c (struct line_header) <file_full_name,
8454 file_file_name>: Declare methods.
8455 (dw2_get_file_names_reader): Update.
8456 (file_file_name): Now a method.
8457 (file_full_name): Likewise.
8458 (macro_start_file): Update.
8459
8460 2020-02-08 Tom Tromey <tom@tromey.com>
8461
8462 * dwarf2/read.c (dwarf_always_disassemble)
8463 (show_dwarf_always_disassemble): Move to loc.c.
8464 (_initialize_dwarf2_read): Move "always-disassemble" registration
8465 to loc.c.
8466 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8467 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8468 static.
8469 (show_dwarf_always_disassemble): Move from read.c.
8470 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8471
8472 2020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8475 (create_quick_file_names_table): Return htab_up.
8476 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8477 Update.
8478 * dwarf2/read.h (struct dwarf2_per_objfile)
8479 <quick_file_names_table>: Now htab_up.
8480
8481 2020-02-08 Tom Tromey <tom@tromey.com>
8482
8483 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8484
8485 2020-02-08 Tom Tromey <tom@tromey.com>
8486
8487 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8488 Rewrite.
8489 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8490 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8491 (abbrev_table::abbrev_table): No longer inline.
8492 (ABBREV_HASH_SIZE): Remove.
8493 (abbrev_table::m_abbrevs): Now an htab_up.
8494
8495 2020-02-08 Tom Tromey <tom@tromey.com>
8496
8497 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8498 (cutu_reader): Update.
8499 (build_type_psymtabs_1): Update.
8500 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8501 (abbrev_table::alloc_abbrev): Update.
8502 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8503 (abbrev_table::read): New static method, renamed from
8504 abbrev_table_read_table.
8505 (abbrev_table::alloc_abbrev)
8506 (abbrev_table::add_abbrev): Now private.
8507 (abbrev_table::abbrev_table): Now private.
8508 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8509
8510 2020-02-08 Tom Tromey <tom@tromey.com>
8511
8512 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8513 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8514 htab_up.
8515
8516 2020-02-08 Tom Tromey <tom@tromey.com>
8517
8518 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8519 htab_up.
8520 (lookup_dwo_unit_in_dwp): Update.
8521 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8522 on obstack.
8523
8524 2020-02-08 Tom Tromey <tom@tromey.com>
8525
8526 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8527 obstack.
8528
8529 2020-02-08 Tom Tromey <tom@tromey.com>
8530
8531 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8532 line_header_hash.
8533 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8534 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8535 Change type to htab_up.
8536
8537 2020-02-08 Tom Tromey <tom@tromey.com>
8538
8539 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8540 htab_up. Don't allocate on obstack.
8541 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8542 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8543 Change type to htab_up.
8544
8545 2020-02-08 Tom Tromey <tom@tromey.com>
8546
8547 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8548 Change type to htab_up.
8549 * dwarf2/read.c (create_signatured_type_table_from_index)
8550 (create_signatured_type_table_from_debug_names)
8551 (create_all_type_units, add_type_unit)
8552 (lookup_dwo_signatured_type, lookup_signatured_type)
8553 (process_skeletonless_type_unit): Update.
8554 (create_debug_type_hash_table, create_debug_types_hash_table):
8555 Change type of types_htab.
8556 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8557 htab_up. Don't allocate on obstack.
8558 (create_cus_hash_table): Change type of cus_htab parameter.
8559 (struct dwo_file) <cus, tus>: Now htab_up.
8560 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8561 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8562 (queue_and_load_all_dwo_tus): Update.
8563 * dwarf2/index-write.c (write_gdbindex): Update.
8564 (write_debug_names): Update.
8565
8566 2020-02-08 Tom Tromey <tom@tromey.com>
8567
8568 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8569 dwarf2/read.c. Remove "next" member. Add constructor ntad
8570 destructor.
8571 (struct dwarf2_per_objfile) <queue>: New member.
8572 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8573 dwarf2/read.h.
8574 (dwarf2_queue, dwarf2_queue_tail): Remove.
8575 (class dwarf2_queue_guard): Add parameter to constructor. Use
8576 DISABLE_COPY_AND_ASSIGN.
8577 <m_per_objfile>: New member.
8578 <~dwarf2_queue_guard>: Rewrite.
8579 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8580 Update.
8581 (~dwarf2_queue_item): New.
8582
8583 2020-02-08 Tom Tromey <tom@tromey.com>
8584
8585 * dwarf2/read.c (struct die_info) <has_children>: New member.
8586 (dw2_get_file_names_reader): Remove has_children.
8587 (dw2_get_file_names): Update.
8588 (read_cutu_die_from_dwo): Remove has_children.
8589 (cutu_reader::init_tu_and_read_dwo_dies)
8590 (cutu_reader::cutu_reader): Update.
8591 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8592 Remove has_children.
8593 (build_type_psymtabs_1, process_skeletonless_type_unit)
8594 (load_partial_comp_unit, load_full_comp_unit): Update.
8595 (create_dwo_cu_reader): Remove has_children.
8596 (create_cus_hash_table, read_die_and_children): Update.
8597 (read_full_die_1,read_full_die): Remove has_children.
8598 (read_signatured_type): Update.
8599 (class cutu_reader) <has_children>: Remove.
8600
8601 2020-02-08 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2/expr.c: Rename from dwarf2expr.c.
8604 * dwarf2/expr.h: Rename from dwarf2expr.h.
8605 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8606 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8607 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8608 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8609 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8610 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8611 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8612 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8613 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8614 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8615 * dwarf2/loc.c: Rename from dwarf2loc.c.
8616 * dwarf2/loc.h: Rename from dwarf2loc.h.
8617 * dwarf2/read.c: Rename from dwarf2read.c.
8618 * dwarf2/read.h: Rename from dwarf2read.h.
8619 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8620 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8621 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8622 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8623 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8624 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8625 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8626 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8627 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8628 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8629 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8630 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8631 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8632 Update.
8633 * Makefile.in (COMMON_SFILES): Update.
8634 (HFILES_NO_SRCDIR): Update.
8635
8636 2020-02-08 Tom Tromey <tom@tromey.com>
8637
8638 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8639 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8640
8641 2020-02-08 Tom Tromey <tom@tromey.com>
8642
8643 * dwarf2read.h (struct die_info): Don't declare.
8644
8645 2020-02-08 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2read.h (die_info_ptr): Remove typedef.
8648
8649 2020-02-08 Tom Tromey <tom@tromey.com>
8650
8651 * dwarf2read.c (read_call_site_scope)
8652 (handle_data_member_location, dwarf2_add_member_fn)
8653 (mark_common_block_symbol_computed, read_common_block)
8654 (attr_to_dynamic_prop, partial_die_info::read)
8655 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8656 (dwarf2_symbol_mark_computed, set_die_type): Update.
8657 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8658 method.
8659 (attr_form_is_block): Don't declare.
8660 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8661
8662 2020-02-08 Tom Tromey <tom@tromey.com>
8663
8664 * dwarf2read.c (dwarf2_find_base_address, )
8665 (read_call_site_scope, rust_containing_type)
8666 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8667 (handle_data_member_location, dwarf2_add_member_fn)
8668 (get_alignment, read_structure_type, process_structure_scope)
8669 (mark_common_block_symbol_computed, read_common_block)
8670 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8671 (partial_die_info::read, read_attribute_value, new_symbol)
8672 (lookup_die_type, dwarf2_get_ref_die_offset)
8673 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8674 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8675 (dwarf2_symbol_mark_computed): Update.
8676 * dwarf2/attribute.h (struct attribute) <value_as_address,
8677 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8678 methods.
8679 (value_as_address, attr_form_is_section_offset)
8680 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8681 * dwarf2/attribute.c (attribute::value_as_address)
8682 (attribute::form_is_section_offset, attribute::form_is_constant)
8683 (attribute::form_is_ref): Now methods.
8684
8685 2020-02-08 Tom Tromey <tom@tromey.com>
8686
8687 * dwarf2read.c (struct attribute, DW_STRING)
8688 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8689 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8690 (attr_form_is_block, attr_form_is_section_offset)
8691 (attr_form_is_constant, attr_form_is_ref): Move.
8692 * dwarf2/attribute.h: New file.
8693 * dwarf2/attribute.c: New file, from dwarf2read.c.
8694 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8695
8696 2020-02-08 Tom Tromey <tom@tromey.com>
8697
8698 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8699 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8700 Move.
8701 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8702 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8703 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8704 abbrev.c.
8705 * dwarf2/abbrev.h: New file.
8706 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8707 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8708
8709 2020-02-08 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8712 (dwarf2_section_size, dwarf2_get_section_info)
8713 (create_signatured_type_table_from_debug_names)
8714 (create_addrmap_from_aranges, read_debug_names_from_section)
8715 (get_gdb_index_contents_from_section, read_comp_unit_head)
8716 (error_check_comp_unit_head, read_abbrev_offset)
8717 (create_debug_type_hash_table, init_cu_die_reader)
8718 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8719 (read_comp_units_from_section, create_cus_hash_table)
8720 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8721 (create_dwp_v2_section, dwarf2_rnglists_process)
8722 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8723 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8724 (read_indirect_string_from_dwz, read_addr_index_1)
8725 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8726 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8727 (fill_in_loclist_baton): Update.
8728 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8729 get_containing_section, get_bfd_owner, get_bfd_section,
8730 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8731 (dwarf2_read_section, get_section_name, get_section_file_name)
8732 (get_containing_section, get_section_bfd_owner)
8733 (get_section_bfd_section, get_section_name, get_section_file_name)
8734 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8735 declare.
8736 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8737 (dwarf2_section_info::get_bfd_owner)
8738 (dwarf2_section_info::get_bfd_section)
8739 (dwarf2_section_info::get_name)
8740 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8741 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8742 (dwarf2_section_info::read): Now methods.
8743 * dwarf-index-write.c (class debug_names): Update.
8744
8745 2020-02-08 Tom Tromey <tom@tromey.com>
8746
8747 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8748 Move to dwarf2/section.h.
8749 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8750 (get_section_bfd_section, get_section_name)
8751 (get_section_file_name, get_section_id, get_section_flags)
8752 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8753 dwarf2/section.c.
8754 * dwarf2/section.h: New file.
8755 * dwarf2/section.c: New file, from dwarf2read.c.
8756 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8757
8758 2020-02-08 Tom Tromey <tom@tromey.com>
8759
8760 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8761 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8762 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8763 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8764 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8765 * dwarf2/leb.h: New file, from dwarf2read.c.
8766 * dwarf2/leb.c: New file, from dwarf2read.c.
8767 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8768 Remove.
8769 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8770 (COMMON_SFILES): Add dwarf2/leb.c.
8771
8772 2020-02-08 Joel Brobecker <brobecker@adacore.com>
8773
8774 GDB 9.1 released.
8775
8776 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8777
8778 PR gdb/25190:
8779 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8780 * gdb/remote.c (remote_console_output): Update.
8781 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8782 (ui_file_puts): ...this.
8783 * gdb/ui-file.h (ui_file_puts): Add declaration.
8784 * gdb/utils.c (emit_style_escape): Update.
8785 (flush_wrap_buffer): Update.
8786 (fputs_maybe_filtered): Update.
8787 (fputs_unfiltered): Add function.
8788
8789 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8790
8791 * gdb/event-loop.c (gdb_wait_for_event): Update.
8792 * gdb/printcmd.c (printf_command): Update.
8793 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8794 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8795 (gdb_os_flush_stderr): Update.
8796 * gdb/remote.c (remote_console_output): Update.
8797 * gdb/ui-file.c (gdb_flush): Rename to...
8798 (ui_file_flush): ...this.
8799 (stderr_file::write): Update.
8800 (stderr_file::puts): Update.
8801 * gdb/ui-file.h (gdb_flush): Rename to...
8802 (ui_file_flush): ...this.
8803 * gdb/utils.c (gdb_flush): Add function.
8804 * gdb/utils.h (gdb_flush): Add declaration.
8805
8806 2020-02-07 Tom Tromey <tromey@adacore.com>
8807
8808 PR breakpoints/24915:
8809 * source.c (find_and_open_source): Do not check basenames_may_differ.
8810
8811 2020-02-07 Tom Tromey <tom@tromey.com>
8812
8813 * README: Update gdbserver documentation.
8814 * gdbserver: Move to top level.
8815 * configure.tgt (build_gdbserver): Remove.
8816 * configure.ac: Remove --enable-gdbserver.
8817 * configure: Rebuild.
8818 * Makefile.in (distclean): Don't mention gdbserver.
8819
8820 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8821
8822 * source-cache.c (source_cache::ensure): Surround
8823 get_plain_source_lines with a try/catch.
8824 (source_cache::get_line_charpos): Get rid of try/catch
8825 and only check for the return value of "ensure".
8826 * tui/tui-source.c (tui_source_window::set_contents):
8827 Simplify "nlines" calculation.
8828
8829 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8830
8831 * MAINTAINERS (Write After Approval): Add myself.
8832
8833 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8834
8835 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8836 function call.
8837
8838 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8839
8840 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8841
8842 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
8843
8844 * nat/riscv-linux-tdesc.h: New file.
8845 * nat/riscv-linux-tdesc.c: New file, taking code from...
8846 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8847 ... here.
8848 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8849 NATDEPFILES.
8850
8851 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8852
8853 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8854 we don't set the fake simulator ptid to the null_ptid.
8855
8856 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
8857
8858 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8859 * gdbthread.h (class thread_info) <resumed>: Likewise.
8860 * infrun.c (resume_1): Likewise.
8861 (proceed): Likewise.
8862 (infrun_thread_stop_requested): Likewise.
8863 (stop_all_threads): Likewise.
8864 (handle_inferior_event): Likewise.
8865 (restart_threads): Likewise.
8866 (finish_step_over): Likewise.
8867 (keep_going_stepped_thread): Likewise.
8868 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8869 (linux_handle_extended_wait): Likewise.
8870 * record-btrace.c (get_thread_current_frame_id): Likewise.
8871 * record-full.c (record_full_wait_1): Likewise.
8872 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8873 * target.c (target_resume): Likewise.
8874 * thread.c (set_running_thread): Likewise.
8875
8876 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8877
8878 * f-valprint.c (f77_print_array_1): Changed datatype of index
8879 variable to LONGEST from int to enable it to contain bound
8880 values correctly.
8881
8882 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
8883
8884 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8885 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8886 offsets according to FLEN determined.
8887 (riscv_linux_nat_target::read_description): Determine FLEN
8888 dynamically.
8889 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8890 according to FLEN determined.
8891 (riscv_linux_nat_target::store_registers): Likewise.
8892
8893 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8894
8895 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8896 when reg->group is empty and reggroup is not.
8897
8898 2020-01-31 Tom Tromey <tromey@adacore.com>
8899
8900 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8901 Call beneath target's mourn_inferior after unpushing.
8902
8903 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8904
8905 PR tui/9765
8906 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8907 have enough lines to fill the screen, still return the lowest
8908 address we found.
8909
8910 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8911
8912 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8913 '-', '<', and '>' commands.
8914
8915 2020-01-29 Pedro Alves <palves@redhat.com>
8916 Sergio Durigan Junior <sergiodj@redhat.com>
8917
8918 * infcmd.c (construct_inferior_arguments): Assert that
8919 'argc' is greater than 0.
8920
8921 2020-01-29 Luis Machado <luis.machado@linaro.org>
8922
8923 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8924 (BRK_INSN_MASK): Define to 0xd4200000.
8925 (aarch64_program_breakpoint_here_p): New function.
8926 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8927 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8928 breakpoint.c.
8929 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8930 breakpoint.h
8931 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8932 call gdbarch_program_breakpoint_here_p.
8933 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8934 default_program_breakpoint_here_p, changed return type to bool and
8935 simplified.
8936 * breakpoint.h (program_breakpoint_here): Moved prototype to
8937 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8938 return type to bool.
8939 * gdbarch.c: Regenerate.
8940 * gdbarch.h: Regenerate.
8941 * gdbarch.sh (program_breakpoint_here_p): New method.
8942 * infrun.c (handle_signal_stop): Call
8943 gdbarch_program_breakpoint_here_p.
8944
8945 2020-01-26 Tom Tromey <tom@tromey.com>
8946
8947 * ctfread.c (struct ctf_fp_info): Reindent.
8948 (_initialize_ctfread): Remove.
8949
8950 2020-01-26 Tom Tromey <tom@tromey.com>
8951
8952 * psymtab.c (partial_map_expand_apply)
8953 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8954 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8955 (psym_print_stats, psym_expand_symtabs_for_function)
8956 (psym_map_symbol_filenames, psym_map_matching_symbols)
8957 (psym_expand_symtabs_matching)
8958 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8959 (maintenance_check_psymtabs): Use new methods.
8960 * psympriv.h (struct partial_symtab) <readin_p,
8961 get_compunit_symtab>: New methods.
8962 <readin, compunit_symtab>: Remove members.
8963 (struct standard_psymtab): New.
8964 (struct legacy_psymtab): Derive from standard_psymtab.
8965 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8966 standard_psymtab.
8967 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8968
8969 2020-01-26 Tom Tromey <tom@tromey.com>
8970
8971 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8972 read_dependencies. Add assert.
8973 * psymtab.c (partial_symtab::read_dependencies): New method.
8974 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8975 method.
8976 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8977 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8978 read_dependencies.
8979 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8980 Add assert.
8981
8982 2020-01-26 Tom Tromey <tom@tromey.com>
8983
8984 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8985 Call expand_psymtab.
8986 (xcoff_read_symtab): Call expand_psymtab.
8987 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8988 legacy_expand_psymtab.
8989 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8990 method.
8991 (struct legacy_psymtab) <expand_psymtab>: Implement.
8992 <legacy_expand_psymtab>: New member.
8993 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8994 (parse_partial_symbols): Set legacy_expand_psymtab.
8995 (psymtab_to_symtab_1): Change argument order. Call
8996 expand_psymtab.
8997 (new_psymtab): Set legacy_expand_psymtab.
8998 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8999 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9000 expand_psymtab.
9001 (dwarf2_psymtab::expand_psymtab): Rename from
9002 psymtab_to_symtab_1. Call expand_psymtab.
9003 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9004 (dbx_end_psymtab): Likewise.
9005 (dbx_psymtab_to_symtab_1): Change argument order. Call
9006 expand_psymtab.
9007 (dbx_read_symtab): Call expand_psymtab.
9008 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9009 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9010 (ctf_psymtab::read_symtab): Call expand_psymtab.
9011
9012 2020-01-26 Tom Tromey <tom@tromey.com>
9013
9014 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9015 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9016 messages.
9017 * mdebugread.c (mdebug_read_symtab): Remove prints.
9018 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9019 assert.
9020 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9021
9022 2020-01-26 Tom Tromey <tom@tromey.com>
9023
9024 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9025 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9026 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9027 legacy_symtab.
9028 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9029 * psymtab.c (psymtab_to_symtab): Call method.
9030 (dump_psymtab): Update.
9031 * psympriv.h (struct partial_symtab): Add virtual destructor.
9032 <read_symtab>: New method.
9033 (struct legacy_symtab): New.
9034 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9035 (struct pst_map) <pst>: Now a legacy_psymtab.
9036 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9037 (new_psymtab): Use legacy_psymtab.
9038 * dwarf2read.h (struct dwarf2_psymtab): New.
9039 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9040 * dwarf2read.c (dwarf2_create_include_psymtab)
9041 (dwarf2_build_include_psymtabs, create_type_unit_group)
9042 (create_partial_symtab, process_psymtab_comp_unit_reader)
9043 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9044 (set_partial_user): Use dwarf2_psymtab.
9045 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9046 (psymtab_to_symtab_1, process_full_comp_unit)
9047 (process_full_type_unit, dwarf2_ranges_read)
9048 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9049 (dwarf_decode_lines): Use dwarf2_psymtab.
9050 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9051 (add_address_entry_worker, write_one_signatured_type)
9052 (recursively_count_psymbols, recursively_write_psymbols)
9053 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9054 (write_debug_names): Likewise.
9055 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9056 <pst>: Now a legacy_psymtab.
9057 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9058 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9059 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9060 * ctfread.c (struct ctf_psymtab): New.
9061 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9062 ctf_psymtab.
9063 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9064 (create_partial_symtab): Return a ctf_psymtab.
9065 (scan_partial_symbols): Update.
9066
9067 2020-01-26 Tom Tromey <tom@tromey.com>
9068
9069 * xcoffread.c (xcoff_start_psymtab): Use new.
9070 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9071 renamed from start_psymtab_common.
9072 * psympriv.h (struct partial_symtab): Add new constructor.
9073 (start_psymtab_common): Don't declare.
9074 * mdebugread.c (parse_partial_symbols): Use new.
9075 * dwarf2read.c (create_partial_symtab): Use new.
9076 * dbxread.c (start_psymtab): Use new.
9077 * ctfread.c (create_partial_symtab): Use new.
9078
9079 2020-01-26 Tom Tromey <tom@tromey.com>
9080
9081 * xcoffread.c (xcoff_end_psymtab): Use new.
9082 * psymtab.c (start_psymtab_common): Use new.
9083 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9084 Update.
9085 * psympriv.h (struct partial_symtab): Add parameters to
9086 constructor. Don't inline.
9087 (allocate_psymtab): Don't declare.
9088 * mdebugread.c (new_psymtab): Use new.
9089 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9090 * dbxread.c (dbx_end_psymtab): Use new.
9091
9092 2020-01-26 Tom Tromey <tom@tromey.com>
9093
9094 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9095 allocate_psymtab. Update documentation.
9096 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9097 allocate_psymtab. Do not use new.
9098 (allocate_psymtab): Use new. Update.
9099
9100 2020-01-26 Tom Tromey <tom@tromey.com>
9101
9102 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9103 * psymtab.c (psym_print_stats): Update.
9104 * psympriv.h (struct partial_symtab) <readin,
9105 psymtabs_addrmap_supported, anonymous>: Now bool.
9106 * mdebugread.c (psymtab_to_symtab_1): Update.
9107 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9108 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9109 (process_full_comp_unit, process_full_type_unit): Update.
9110 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9111 * ctfread.c (psymtab_to_symtab): Update.
9112
9113 2020-01-26 Tom Tromey <tom@tromey.com>
9114
9115 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9116 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9117 * psymtab.c (psymtab_storage): Delete psymtabs.
9118 (psymtab_storage::allocate_psymtab): Use new.
9119 (psymtab_storage::discard_psymtab): Use delete.
9120 * psympriv.h (struct partial_symtab): Add constructor and
9121 initializers.
9122
9123 2020-01-26 Tom Tromey <tom@tromey.com>
9124
9125 * machoread.c: Do not include psympriv.h.
9126
9127 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9128
9129 * NEWS: Mention the new option and the set/show commands.
9130
9131 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9132
9133 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9134 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9135 (validate_exec_file): New variables, enums, functions.
9136 (exec_file_locate_attach, print_section_info): Style the filenames.
9137 (_initialize_exec): Install show_exec_file_mismatch_command and
9138 set_exec_file_mismatch_command.
9139 * gdbcore.h (validate_exec_file): Declare.
9140 * infcmd.c (attach_command): Call validate_exec_file.
9141 * remote.c ( remote_target::remote_add_inferior): Likewise.
9142
9143 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9144
9145 * frame.c (find_frame_sal): Move call to get_next_frame into more
9146 inner scope.
9147 * inline-frame.c (inilne_state) <inline_state>: Update argument
9148 types.
9149 (inilne_state) <skipped_symbol>: Rename to...
9150 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9151 (skip_inline_frames): Build vector of skipped symbols and use this
9152 to reate the inline_state.
9153 (inline_skipped_symbol): Add a comment and some assertions, fetch
9154 skipped symbol from the list.
9155
9156 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9157
9158 * buildsym.c (lte_is_less_than): Delete.
9159 (buildsym_compunit::end_symtab_with_blockvector): Create local
9160 lambda function to sort line table entries, and use
9161 std::stable_sort instead of std::sort.
9162 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9163 markers when looking for a previous line.
9164
9165 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9166
9167 * dwarf2read.c (lnp_state_machine::record_line): Include
9168 end_sequence parameter in debug print out. Record the line if we
9169 are at an end_sequence marker even if it's not the start of a
9170 statement.
9171 * symmisc.c (maintenance_print_one_line_table): Print end of
9172 sequence markers with 'END' not '0'.
9173
9174 2020-01-24 Pedro Alves <palves@redhat.com>
9175
9176 PR gdb/25410
9177 * thread.c (scoped_restore_current_thread::restore): Use
9178 switch_to_inferior_no_thread.
9179 * exec.c: Include "progspace-and-thread.h".
9180 (add_target_sections, remove_target_sections):
9181 scoped_restore_current_pspace_and_thread instead of
9182 scoped_restore_current_thread.
9183 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9184 and aspace to the inferior before calling clone_program_space.
9185 Remove stale comment.
9186
9187 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9188
9189 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9190 (arm_netbsd_nat_target::fetch_registers): ...this.
9191 (arm_nbsd_nat_target::store_registers): Rename to...
9192 (arm_netbsd_nat_target::store_registers): ...this.
9193
9194 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9195
9196 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9197 register_t.
9198
9199 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9200
9201 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9202 Update comment.
9203 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9204 Likewise.
9205 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9206 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9207 the correct replacement (iterate_over_regset_sections).
9208 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9209 Update comment.
9210
9211 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9212
9213 PR gdb/23718
9214 * gdb/python/python.c (execute_gdb_command): Call
9215 async_enable_stdin in catch block.
9216
9217 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9218
9219 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9220 SWITCH_THRU_ALL_UIS.
9221
9222 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9223
9224 PR tui/9765
9225 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9226 comment, add extra parameter, and update to store previous symbol
9227 when appropriate.
9228 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9229 add extra parameter.
9230 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9231 remove unneeded parameter, add try/catch around gdb_print_insn,
9232 rewrite to add items to asm_lines vector.
9233 (tui_find_backward_disassembly_start_address): New function.
9234 (tui_find_disassembly_address): Updated throughout.
9235 (tui_disasm_window::set_contents): Update for changes to
9236 tui_disassemble.
9237 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9238 number of lines to scroll.
9239
9240 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9241
9242 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9243 (SECT_OFF_DATA): Likewise.
9244 (SECT_OFF_RODATA): Likewise.
9245 (SECT_OFF_TEXT): Likewise.
9246 (SECT_OFF_BSS): Likewise.
9247 (struct objfile) <text_section_offset, data_section_offset>: New
9248 methods.
9249 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9250 objfile::text_section_offset.
9251 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9252 * coffread.c (coff_symtab_read): Likewise.
9253 (enter_linenos): Likewise.
9254 (process_coff_symbol): Likewise.
9255 * ctfread.c (get_objfile_text_range): Likewise.
9256 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9257 Use objfile::data_section_offset.
9258 * dwarf2-frame.c (execute_cfa_program): Use
9259 objfile::text_section_offset.
9260 (dwarf2_frame_find_fde): Likewise.
9261 * dwarf2read.c (create_addrmap_from_index): Likewise.
9262 (create_addrmap_from_aranges): Likewise.
9263 (dw2_find_pc_sect_compunit_symtab): Likewise.
9264 (process_psymtab_comp_unit_reader): Likewise.
9265 (add_partial_symbol): Likewise.
9266 (add_partial_subprogram): Likewise.
9267 (process_full_comp_unit): Likewise.
9268 (read_file_scope): Likewise.
9269 (read_func_scope): Likewise.
9270 (read_lexical_block_scope): Likewise.
9271 (read_call_site_scope): Likewise.
9272 (dwarf2_rnglists_process): Likewise.
9273 (dwarf2_ranges_process): Likewise.
9274 (dwarf2_ranges_read): Likewise.
9275 (dwarf_decode_lines_1): Likewise.
9276 (new_symbol): Likewise.
9277 (dwarf2_fetch_die_loc_sect_off): Likewise.
9278 (dwarf2_per_cu_text_offset): Likewise.
9279 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9280 * hppa-tdep.c (read_unwind_info): Likewise.
9281 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9282 * psympriv.h (struct partial_symtab): Likewise.
9283 * psymtab.c (find_pc_sect_psymtab): Likewise.
9284 * solib-svr4.c (enable_break): Likewise.
9285 * stap-probe.c (relocate_address): Use
9286 objfile::data_section_offset.
9287 * xcoffread.c (enter_line_range): Use
9288 objfile::text_section_offset.
9289 (read_xcoff_symtab): Likewise.
9290
9291 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9294 declaration to narrower scopes.
9295
9296 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * darwin-nat.h (struct darwin_exception_msg, enum
9299 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9300 Move up.
9301 (class darwin_nat_target) <wait_1, check_new_threads,
9302 decode_exception_message, decode_message, stop_inferior,
9303 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9304 * darwin-nat.c (darwin_check_new_threads): Rename to...
9305 (darwin_nat_target::check_new_threads): ... this.
9306 (darwin_suspend_inferior_it): Remove.
9307 (darwin_decode_exception_message): Rename to...
9308 (darwin_nat_target::decode_exception_message): ... this.
9309 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9310 (darwin_decode_message): Rename to...
9311 (darwin_nat_target::decode_message): ... this.
9312 (cancel_breakpoint): Rename to...
9313 (darwin_nat_target::cancel_breakpoint): ... this.
9314 (darwin_wait): Rename to...
9315 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9316 instead of iterate_over_inferiors.
9317 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9318 (darwin_stop_inferior): Rename to...
9319 (darwin_nat_target::stop_inferior): ... this.
9320 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9321 (darwin_init_thread_list): Rename to...
9322 (darwin_nat_target::init_thread_list): ... this.
9323 (darwin_ptrace_him): Rename to...
9324 (darwin_nat_target::ptrace_him): ... this.
9325 (darwin_nat_target::create_inferior): Pass lambda function to
9326 fork_inferior.
9327 (darwin_nat_target::detach): Call stop_inferior instead of
9328 darwin_stop_inferior.
9329 * fork-inferior.h (fork_inferior): Change init_trace_fun
9330 parameter to gdb::function_view.
9331 * fork-inferior.c (fork_inferior): Likewise.
9332
9333 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9334
9335 * i386-cygwin-tdep.c (core_process_module_section): Update.
9336 * windows-nat.c (struct lm_info_windows): Add text_offset.
9337 (windows_xfer_shared_libraries): Update.
9338 * windows-tdep.c (windows_xfer_shared_library):
9339 Add text_offset_cached argument.
9340 * windows-tdep.h (windows_xfer_shared_library): Update.
9341
9342 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9345
9346 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9347
9348 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9349 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9350 replace with range-based for.
9351 (gdbsim_interrupt_inferior): Remove.
9352 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9353 with a range-based for. Inline code from
9354 gdbsim_interrupt_inferior.
9355
9356 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9357
9358 * infrun.c (proceed): Fix indentation.
9359
9360 2020-01-21 Tom Tromey <tromey@adacore.com>
9361
9362 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9363 * python/python.c (python_extension_ops): Update.
9364 (gdbpy_colorize): New function.
9365 * python/lib/gdb/__init__.py (colorize): New function.
9366 * extension.h (ext_lang_colorize): Declare.
9367 * extension.c (ext_lang_colorize): New function.
9368 * extension-priv.h (struct extension_language_ops) <colorize>: New
9369 member.
9370 * cli/cli-style.c (_initialize_cli_style): Update help text.
9371
9372 2020-01-21 Luis Machado <luis.machado@linaro.org>
9373
9374 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9375 <cond>: Change type to bool.
9376 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9377 (aarch64_displaced_step_cb): Likewise.
9378 (aarch64_displaced_step_tb): Likewise.
9379
9380 2020-01-21 Luis Machado <luis.machado@linaro.org>
9381
9382 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9383 output.
9384
9385 2020-01-21 Luis Machado <luis.machado@linaro.org>
9386
9387 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9388 <pc_adjust>: Adjust the documentation.
9389 (aarch64_displaced_step_fixup): Check if PC really moved before
9390 adjusting it.
9391
9392 2020-01-19 Tom Tromey <tom@tromey.com>
9393
9394 * disasm.c (~gdb_disassembler): New destructor.
9395 (gdb_buffered_insn_length): Call disassemble_free_target.
9396 * disasm.h (class gdb_disassembler): Declare destructor. Use
9397 DISABLE_COPY_AND_ASSIGN.
9398
9399 2020-01-19 Tom Tromey <tom@tromey.com>
9400
9401 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9402 (die_reader_func_ftype): Remove.
9403 (cutu_reader): New class.
9404 (dw2_get_file_names_reader): Remove "data" parameter.
9405 (dw2_get_file_names): Use cutu_reader.
9406 (create_debug_type_hash_table): Update.
9407 (read_cutu_die_from_dwo): Update comment.
9408 (lookup_dwo_unit): Add dwo_name parameter.
9409 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9410 die_reader_func_ftype and data parameters.
9411 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9412 Remove die_reader_func_ftype and data parameters.
9413 (~cutu_reader): New; from init_cutu_and_read_dies.
9414 (cutu_reader::cutu_reader): Rename from
9415 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9416 and data parameters.
9417 (init_cutu_and_read_dies_simple): Remove.
9418 (struct process_psymtab_comp_unit_data): Remove.
9419 (process_psymtab_comp_unit_reader): Remove data parameter; add
9420 want_partial_unit and pretend_language parameters.
9421 (process_psymtab_comp_unit): Use cutu_reader.
9422 (build_type_psymtabs_reader): Remove data parameter.
9423 (build_type_psymtabs_1): Use cutu_reader.
9424 (process_skeletonless_type_unit): Likewise.
9425 (load_partial_comp_unit_reader): Remove.
9426 (load_partial_comp_unit): Use cutu_reader.
9427 (load_full_comp_unit_reader): Remove.
9428 (load_full_comp_unit): Use cutu_reader.
9429 (struct create_dwo_cu_data): Remove.
9430 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9431 dwo_unit parameters.
9432 (create_cus_hash_table): Use cutu_reader.
9433 (struct dwarf2_read_addr_index_data): Remove.
9434 (dwarf2_read_addr_index_reader): Remove.
9435 (dwarf2_read_addr_index): Use cutu_reader.
9436 (read_signatured_type_reader): Remove.
9437 (read_signatured_type): Use cutu_reader.
9438
9439 2020-01-19 Tom Tromey <tom@tromey.com>
9440
9441 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9442 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9443 (tui_wrefresh): Declare.
9444 * tui/tui-wingeneral.c (suppress_output): New global.
9445 (tui_suppress_output, ~tui_suppress_output): New constructor and
9446 destructor.
9447 (tui_wrefresh): New function.
9448 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9449 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9450 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9451 method.
9452 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9453 tui_wrefresh.
9454 (tui_data_window::no_refresh): New method.
9455 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9456 (tui_reg_command): Use tui_suppress_output
9457 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9458 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9459 method.
9460 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9461
9462 2020-01-19 Tom Tromey <tom@tromey.com>
9463
9464 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9465 Handle case where symtab is null.
9466
9467 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9468
9469 * linux-fork.c (one_fork_p): Simplify.
9470
9471 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9472
9473 * top.c (struct qt_args): Remove.
9474 (kill_or_detach): Change return type to void, replace `void *`
9475 parameter with a proper one.
9476 (print_inferior_quit_action): Likewise.
9477 (quit_confirm): Use range-based for loop to iterate over inferiors.
9478 (quit_force): Likewise.
9479
9480 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9481
9482 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9483 `void *` parameter with proper parameters.
9484 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9485 (print_one_inferior): Change return type to void, replace `void *`
9486 parameter with proper parameters.
9487 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9488 inferiors.
9489 (get_other_inferior): Remove.
9490 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9491 inferiors.
9492
9493 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * mi/mi-interp.c (report_initial_inferior): Remove.
9496 (mi_interp::init): Use range-based for to iterate over inferiors.
9497
9498 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * python/py-inferior.c (build_inferior_list): Remove.
9501 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9502
9503 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9504
9505 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9506 (btrace_stitch_trace): Likewise.
9507 * charset.c (intermediate_encoding): Likewise (vaild).
9508 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9509 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9510 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9511
9512 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9513
9514 * windows-tdep.c (windows_get_tlb_type):
9515 Add rtl_user_process_parameters type.
9516
9517 2020-01-16 Pedro Alves <palves@redhat.com>
9518 Norbert Lange <nolange79@gmail.com>
9519
9520 PR build/24805
9521 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9522 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9523 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9524 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9525 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9526 (ps_plog): Redeclare exported functions with default visibility.
9527
9528 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9529
9530 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9531 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9532
9533 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9534
9535 * infcmd.c (post_create_inferior): Use get_thread_regcache
9536 instead of get_current_regcache.
9537
9538 2020-01-14 Tom Tromey <tom@tromey.com>
9539
9540 PR symtab/12535:
9541 * python/python.c (gdbpy_decode_line): Treat empty string the same
9542 as no argument.
9543
9544 2020-01-14 Tom Tromey <tom@tromey.com>
9545
9546 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9547
9548 2020-01-14 Tom Tromey <tom@tromey.com>
9549
9550 * nat/linux-btrace.c: Don't include <config.h>.
9551 * nat/linux-ptrace.c: Don't include <config.h>.
9552 * nat/x86-linux-dregs.c: Don't include <config.h>.
9553
9554 2020-01-14 Tom Tromey <tom@tromey.com>
9555
9556 * configure: Rebuild.
9557 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9558
9559 2020-01-14 Tom Tromey <tom@tromey.com>
9560
9561 * nat/x86-linux-dregs.c: Include configh.h.
9562 * nat/linux-ptrace.c: Include configh.h.
9563 * nat/linux-btrace.c: Include configh.h.
9564 * defs.h: Include config.h, bfd.h.
9565 * configure.ac: Don't source common.host.
9566 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9567 * configure: Rebuild.
9568 * acinclude.m4: Update path.
9569 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9570 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9571 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9572 (CLIBS): Add LIBSUPPORT.
9573 (CDEPS): Likewise.
9574 (COMMON_SFILES): Remove gdbsupport files.
9575 (HFILES_NO_SRCDIR): Likewise.
9576 (stamp-version): Update path to create-version.sh.
9577 (ALLDEPFILES): Remove gdbsupport files.
9578
9579 2020-01-14 Tom Tromey <tom@tromey.com>
9580
9581 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9582 USE_WIN32API when needed.
9583 * configure.ac (USE_WIN32API): Don't define.
9584 (WIN32LIBS): Use WIN32APILIBS.
9585 * configure: Rebuild.
9586
9587 2020-01-14 Tom Tromey <tom@tromey.com>
9588
9589 * configure: Rebuild.
9590 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9591
9592 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9593
9594 * skip.c (skip_function_command): Make skip w/o arguments use the
9595 name of the inlined function if pc is inside any inlined function.
9596
9597 2020-01-14 Luis Machado <luis.machado@linaro.org>
9598
9599 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9600 * infrun.c (resume_1): Likewise.
9601 (handle_inferior_event): Remove stale comment.
9602 * linux-nat.c (linux_nat_target::resume): Update comments.
9603 (save_stop_reason): Likewise.
9604 (linux_nat_filter_event): Likewise.
9605 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9606
9607 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9608
9609 * elfread.c (record_minimal_symbol): Set section index to 0 for
9610 non-allocatable sections.
9611
9612
9613 2020-01-13 Ali Tamur <tamur@google.com>
9614
9615 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9616 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9617 to gdb::optional. Update comments.
9618 (dwo_file): Update comments.
9619 (read_attribute): Update API to take an additional out parameter,
9620 need_reprocess. This is used to mark attributes that need other
9621 attributes (e.g. str_offsets_base) for correct computation which may not
9622 have been read yet.
9623 (read_attribute_reprocess): New function declaration.
9624 (read_addr_index): Likewise.
9625 (read_dwo_str_index): Likewise.
9626 (read_stub_str_index): Likewise.
9627 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9628 (lookup_addr_base): New function definition.
9629 (lookup_ranges_base): Likewise.
9630 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9631 lookup_ranges_base.
9632 (init_cutu_and_read_dies): Update comments.
9633 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9634 unit. This is used to inherit parent's str_offsets_base and addr_base.
9635 Update comments.
9636 (init_cutu_and_read_dies_simple): Reflect API changes.
9637 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9638 (create_cus_hash_table): Change API to take parent compile unit.
9639 Reflect API changes.
9640 (open_and_init_dwo_file): Reflect API changes.
9641 (dwarf2_get_pc_bounds): Update comments.
9642 (dwarf2_record_block_ranges): Likewise.
9643 (read_full_die_1): Change implementation to reprocess attributes that
9644 need str_offsets_base and addr_base.
9645 (partial_die_info::read): Likewise.
9646 (read_attribute_reprocess): New function definition.
9647 (read_attribute_value): Change API to take an additional out parameter,
9648 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9649 when a non-dwo compile unit has index based attributes.
9650 (read_attribute): Reflect API changes.
9651 (read_addr_index_1): Reflect API changes. Update comments.
9652 (dwarf2_read_addr_index_data): Reflect API changes.
9653 (dwarf2_read_addr_index): Likewise.
9654 (read_str_index): Change API and implementation. This becomes a helper
9655 to be used by the new string index related methods. Update error
9656 message and comments.
9657 (read_dwo_str_index): New function definition.
9658 (read_stub_str_index): Likewise.
9659 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9660 * symfile.h (dwarf2_debug_sections): Likewise.
9661 * xcoffread.c (dwarf2_debug_sections): Likewise.
9662
9663 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9664
9665 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9666 core_reg_sect type to gdb_byte *.
9667 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9668 * cris-tdep.c (fetch_core_registers): Likewise.
9669 * corelow.c (core_target::get_core_register_section): Change
9670 type of `contents` to gdb::byte_vector.
9671
9672 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9673
9674 * tui/tui-wingeneral.c (box_win): Position the title in the center
9675 of the border.
9676
9677 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9678
9679 * corelow.c (core_target::get_core_register_section): Use
9680 std::vector instead of alloca.
9681
9682 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * warning.m4: Add -Wmissing-declarations to build_warnings.
9685 * configure: Re-generate.
9686
9687 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * python/python.c (init__gdb_module): Add declaration.
9690
9691 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9694 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9695 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9696 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9697 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9698 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9699 * ada-exp.y (_initialize_ada_exp): Add declaration.
9700 * ada-lang.c (_initialize_ada_language): Add declaration.
9701 * ada-tasks.c (_initialize_tasks): Add declaration.
9702 * agent.c (_initialize_agent): Add declaration.
9703 * aix-thread.c (_initialize_aix_thread): Add declaration.
9704 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9705 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9706 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9707 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9708 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9709 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9710 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9711 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9712 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9713 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9714 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9715 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9716 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9717 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9718 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9719 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9720 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9721 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9722 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9723 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9724 * annotate.c (_initialize_annotate): Add declaration.
9725 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9726 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9727 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9728 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9729 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9730 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9731 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9732 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9733 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9734 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9735 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9736 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9737 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9738 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9739 * auto-load.c (_initialize_auto_load): Add declaration.
9740 * auxv.c (_initialize_auxv): Add declaration.
9741 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9742 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9743 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9744 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9745 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9746 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9747 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9748 * breakpoint.c (_initialize_breakpoint): Add declaration.
9749 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9750 * btrace.c (_initialize_btrace): Add declaration.
9751 * charset.c (_initialize_charset): Add declaration.
9752 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9753 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9754 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9755 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9756 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9757 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9758 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9759 * coffread.c (_initialize_coffread): Add declaration.
9760 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9761 * compile/compile.c (_initialize_compile): Add declaration.
9762 * complaints.c (_initialize_complaints): Add declaration.
9763 * completer.c (_initialize_completer): Add declaration.
9764 * copying.c (_initialize_copying): Add declaration.
9765 * corefile.c (_initialize_core): Add declaration.
9766 * corelow.c (_initialize_corelow): Add declaration.
9767 * cp-abi.c (_initialize_cp_abi): Add declaration.
9768 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9769 * cp-support.c (_initialize_cp_support): Add declaration.
9770 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9771 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9772 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9773 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9774 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9775 * ctfread.c (_initialize_ctfread): Add declaration.
9776 * d-lang.c (_initialize_d_language): Add declaration.
9777 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9778 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9779 * dbxread.c (_initialize_dbxread): Add declaration.
9780 * dcache.c (_initialize_dcache): Add declaration.
9781 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9782 * disasm.c (_initialize_disasm): Add declaration.
9783 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9784 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9785 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9786 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9787 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9788 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9789 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9790 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9791 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9792 * elfread.c (_initialize_elfread): Add declaration.
9793 * exec.c (_initialize_exec): Add declaration.
9794 * extension.c (_initialize_extension): Add declaration.
9795 * f-lang.c (_initialize_f_language): Add declaration.
9796 * f-valprint.c (_initialize_f_valprint): Add declaration.
9797 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9798 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9799 * filesystem.c (_initialize_filesystem): Add declaration.
9800 * findcmd.c (_initialize_mem_search): Add declaration.
9801 * findvar.c (_initialize_findvar): Add declaration.
9802 * fork-child.c (_initialize_fork_child): Add declaration.
9803 * frame-base.c (_initialize_frame_base): Add declaration.
9804 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9805 * frame.c (_initialize_frame): Add declaration.
9806 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9807 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9808 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9809 * gcore.c (_initialize_gcore): Add declaration.
9810 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9811 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9812 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9813 * gdbarch.c (_initialize_gdbarch): Add declaration.
9814 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9815 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9816 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9817 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9818 * go-lang.c (_initialize_go_language): Add declaration.
9819 * go32-nat.c (_initialize_go32_nat): Add declaration.
9820 * guile/guile.c (_initialize_guile): Add declaration.
9821 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9822 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9823 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9824 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9825 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9826 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9827 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9828 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9829 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9830 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9831 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9832 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9833 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9834 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9835 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9836 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9837 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9838 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9839 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9840 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9841 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9842 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9843 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9844 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9845 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9846 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9847 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9848 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9849 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9850 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9851 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9852 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9853 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9854 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9855 * infcall.c (_initialize_infcall): Add declaration.
9856 * infcmd.c (_initialize_infcmd): Add declaration.
9857 * inflow.c (_initialize_inflow): Add declaration.
9858 * infrun.c (_initialize_infrun): Add declaration.
9859 * interps.c (_initialize_interpreter): Add declaration.
9860 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9861 * jit.c (_initialize_jit): Add declaration.
9862 * language.c (_initialize_language): Add declaration.
9863 * linux-fork.c (_initialize_linux_fork): Add declaration.
9864 * linux-nat.c (_initialize_linux_nat): Add declaration.
9865 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9866 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9867 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9868 * m2-lang.c (_initialize_m2_language): Add declaration.
9869 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9870 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9871 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9872 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9873 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9874 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9875 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9876 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9877 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9878 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9879 * machoread.c (_initialize_machoread): Add declaration.
9880 * macrocmd.c (_initialize_macrocmd): Add declaration.
9881 * macroscope.c (_initialize_macroscope): Add declaration.
9882 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9883 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9884 * maint.c (_initialize_maint_cmds): Add declaration.
9885 * mdebugread.c (_initialize_mdebugread): Add declaration.
9886 * memattr.c (_initialize_mem): Add declaration.
9887 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9888 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9889 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9890 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9891 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9892 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9893 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9894 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9895 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9896 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9897 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9898 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9899 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9900 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9901 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9902 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9903 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9904 * mipsread.c (_initialize_mipsread): Add declaration.
9905 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9906 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9907 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9908 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9909 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9910 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9911 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9912 * nto-procfs.c (_initialize_procfs): Add declaration.
9913 * objc-lang.c (_initialize_objc_language): Add declaration.
9914 * observable.c (_initialize_observer): Add declaration.
9915 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9916 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9917 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9918 * osabi.c (_initialize_gdb_osabi): Add declaration.
9919 * osdata.c (_initialize_osdata): Add declaration.
9920 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9921 * parse.c (_initialize_parse): Add declaration.
9922 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9923 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9924 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9925 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9926 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9927 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9928 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9929 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9930 * printcmd.c (_initialize_printcmd): Add declaration.
9931 * probe.c (_initialize_probe): Add declaration.
9932 * proc-api.c (_initialize_proc_api): Add declaration.
9933 * proc-events.c (_initialize_proc_events): Add declaration.
9934 * proc-service.c (_initialize_proc_service): Add declaration.
9935 * procfs.c (_initialize_procfs): Add declaration.
9936 * producer.c (_initialize_producer): Add declaration.
9937 * psymtab.c (_initialize_psymtab): Add declaration.
9938 * python/python.c (_initialize_python): Add declaration.
9939 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9940 * record-btrace.c (_initialize_record_btrace): Add declaration.
9941 * record-full.c (_initialize_record_full): Add declaration.
9942 * record.c (_initialize_record): Add declaration.
9943 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9944 * regcache.c (_initialize_regcache): Add declaration.
9945 * reggroups.c (_initialize_reggroup): Add declaration.
9946 * remote-notif.c (_initialize_notif): Add declaration.
9947 * remote-sim.c (_initialize_remote_sim): Add declaration.
9948 * remote.c (_initialize_remote): Add declaration.
9949 * reverse.c (_initialize_reverse): Add declaration.
9950 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9951 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9952 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9953 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9954 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9955 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9956 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9957 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9958 Add declaration.
9959 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9960 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9961 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9962 * rust-exp.y (_initialize_rust_exp): Add declaration.
9963 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9964 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9965 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9966 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9967 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9968 * score-tdep.c (_initialize_score_tdep): Add declaration.
9969 * ser-go32.c (_initialize_ser_dos): Add declaration.
9970 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9971 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9972 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9973 * ser-uds.c (_initialize_ser_socket): Add declaration.
9974 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9975 * serial.c (_initialize_serial): Add declaration.
9976 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9977 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9978 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9979 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9980 * skip.c (_initialize_step_skip): Add declaration.
9981 * sol-thread.c (_initialize_sol_thread): Add declaration.
9982 * solib-aix.c (_initialize_solib_aix): Add declaration.
9983 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9984 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9985 * solib-frv.c (_initialize_frv_solib): Add declaration.
9986 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9987 * solib-target.c (_initialize_solib_target): Add declaration.
9988 * solib.c (_initialize_solib): Add declaration.
9989 * source-cache.c (_initialize_source_cache): Add declaration.
9990 * source.c (_initialize_source): Add declaration.
9991 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9992 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9993 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9994 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9995 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9996 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9997 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9998 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9999 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10000 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10001 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10002 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10003 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10004 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10005 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10006 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10007 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10008 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10009 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10010 * stabsread.c (_initialize_stabsread): Add declaration.
10011 * stack.c (_initialize_stack): Add declaration.
10012 * stap-probe.c (_initialize_stap_probe): Add declaration.
10013 * std-regs.c (_initialize_frame_reg): Add declaration.
10014 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10015 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10016 * symfile.c (_initialize_symfile): Add declaration.
10017 * symmisc.c (_initialize_symmisc): Add declaration.
10018 * symtab.c (_initialize_symtab): Add declaration.
10019 * target.c (_initialize_target): Add declaration.
10020 * target-connection.c (_initialize_target_connection): Add
10021 declaration.
10022 * target-dcache.c (_initialize_target_dcache): Add declaration.
10023 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10024 * thread.c (_initialize_thread): Add declaration.
10025 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10026 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10027 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10028 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10029 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10030 * tracectf.c (_initialize_ctf): Add declaration.
10031 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10032 * tracefile.c (_initialize_tracefile): Add declaration.
10033 * tracepoint.c (_initialize_tracepoint): Add declaration.
10034 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10035 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10036 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10037 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10038 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10039 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10040 * tui/tui.c (_initialize_tui): Add declaration.
10041 * typeprint.c (_initialize_typeprint): Add declaration.
10042 * ui-style.c (_initialize_ui_style): Add declaration.
10043 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10044 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10045 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10046 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10047 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10048 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10049 * unittests/filtered_iterator-selftests.c
10050 (_initialize_filtered_iterator_selftests): Add declaration.
10051 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10052 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10053 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10054 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10055 * unittests/main-thread-selftests.c
10056 (_initialize_main_thread_selftests): Add declaration.
10057 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10058 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10059 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10060 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10061 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10062 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10063 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10064 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10065 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10066 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10067 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10068 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10069 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10070 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10071 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10072 declaration.
10073 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10074 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10075 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10076 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10077 * user-regs.c (_initialize_user_regs): Add declaration.
10078 * utils.c (_initialize_utils): Add declaration.
10079 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10080 * valops.c (_initialize_valops): Add declaration.
10081 * valprint.c (_initialize_valprint): Add declaration.
10082 * value.c (_initialize_values): Add declaration.
10083 * varobj.c (_initialize_varobj): Add declaration.
10084 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10085 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10086 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10087 * windows-nat.c (_initialize_windows_nat): Add declaration.
10088 (_initialize_check_for_gdb_ini): Add declaration.
10089 (_initialize_loadable): Add declaration.
10090 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10091 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10092 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10093 * xcoffread.c (_initialize_xcoffread): Add declaration.
10094 * xml-support.c (_initialize_xml_support): Add declaration.
10095 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10096 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10097 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10098 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10099
10100 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10101
10102 * regformats/regdat.sh: Generate declaration for init function.
10103
10104 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10105
10106 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10107 up.
10108 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10109 close_one_inferior>: New methods.
10110 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10111 pass down target to find_inferior_pid.
10112 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10113 Pass down target to find_inferior_ptid.
10114 (gdbsim_target::create_inferior): Pass down target to
10115 add_thread_silent.
10116 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10117 target down to find_inferior_ptid and switch_to_thread.
10118 (gdbsim_target::close): Update to call close_one_inferior.
10119 (struct resume_data): Remove.
10120 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10121 directly, rather than through a void pointer.
10122 (gdbsim_target::resume): Update to call resume_one_inferior.
10123
10124 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10125
10126 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10127
10128 2020-01-12 Pedro Alves <palves@redhat.com>
10129
10130 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10131 directly for the current inferior instead of
10132 discard_all_inferiors.
10133 (discard_all_inferiors): Delete.
10134
10135 2020-01-11 Tom Tromey <tom@tromey.com>
10136
10137 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10138 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10139 deprecated_safe_get_selected_frame.
10140
10141 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10142
10143 * inferior.c (print_inferior): Switch inferior before printing it.
10144
10145 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10146 Pedro Alves <palves@redhat.com>
10147
10148 * progspace-and-thread.c (switch_to_program_space_and_thread):
10149 Assert there's an inferior for PSPACE. Use
10150 switch_to_inferior_no_thread to switch the inferior too.
10151 * progspace.c (program_space::~program_space): Call
10152 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10153 (program_space::free_all_objfiles): Don't call clear_symtab_users
10154 here.
10155 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10156
10157 2020-01-10 Pedro Alves <palves@redhat.com>
10158
10159 * NEWS: Mention multi-target debugging, "info connections", and
10160 "add-inferior -no-connection".
10161
10162 2020-01-10 Pedro Alves <palves@redhat.com>
10163
10164 * infrun.c: Include "target-connection.h".
10165 (check_multi_target_resumption): New.
10166 (proceed): Call it.
10167 * target-connection.c (make_target_connection_string): Make
10168 extern.
10169 * target-connection.h (make_target_connection_string): Declare.
10170
10171 2020-01-10 Pedro Alves <palves@redhat.com>
10172
10173 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10174 * inferior.c (uiout_field_connection): New function.
10175 (print_inferior): Add new "connection-id" column.
10176 (add_inferior_command): Show connection number/string of added
10177 inferior.
10178 * process-stratum-target.h
10179 (process_stratum_target::connection_string): New virtual method.
10180 (process_stratum_target::connection_number): New field.
10181 * remote.c (remote_target::connection_string): New override.
10182 * target-connection.c: New file.
10183 * target-connection.h: New file.
10184 * target.c (decref_target): Remove process_stratum targets from
10185 the connection list.
10186 (target_stack::push): Add process_stratum targets to the
10187 connection list.
10188
10189 2020-01-10 Pedro Alves <palves@redhat.com>
10190
10191 Revert:
10192 2016-04-12 Pedro Alves <palves@redhat.com>
10193 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10194 Remove references to name.
10195 * serial.h (struct serial) <name>: Delete.
10196
10197 2020-01-10 Pedro Alves <palves@redhat.com>
10198
10199 * gdbarch-selftests.c (register_to_value_test): Remove "target
10200 already pushed" check.
10201
10202 2020-01-10 Pedro Alves <palves@redhat.com>
10203 John Baldwin <jhb@FreeBSD.org>
10204
10205 * aarch64-linux-nat.c
10206 (aarch64_linux_nat_target::thread_architecture): Adjust.
10207 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10208 (task_command_1): Likewise.
10209 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10210 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10211 (aix_thread_target::store_registers)
10212 (aix_thread_target::thread_alive): Adjust.
10213 * amd64-fbsd-tdep.c: Include "inferior.h".
10214 (amd64fbsd_get_thread_local_address): Pass down target.
10215 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10216 thread's gdbarch instead of target_gdbarch.
10217 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10218 get_last_target_status.
10219 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10220 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10221 inferiors.
10222 (update_inserted_breakpoint_locations): Skip if inferiors with no
10223 execution.
10224 (update_global_location_list): When handling moribund locations,
10225 find representative inferior for location's pspace, and use thread
10226 count of its process_stratum target.
10227 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10228 * bsd-uthread.c (bsd_uthread_target::wait): Use
10229 as_process_stratum_target and adjust thread_change_ptid and
10230 add_thread calls.
10231 (bsd_uthread_target::update_thread_list): Use
10232 as_process_stratum_target and adjust find_thread_ptid,
10233 thread_change_ptid and add_thread calls.
10234 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10235 find_thread_ptid call.
10236 * corelow.c (add_to_thread_list): Adjust add_thread call.
10237 (core_target_open): Adjust add_thread_silent and thread_count
10238 calls.
10239 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10240 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10241 * event-top.c (async_disconnect): Pop targets from all inferiors.
10242 * exec.c (add_target_sections): Push exec target on all inferiors
10243 sharing the program space.
10244 (remove_target_sections): Remove the exec target from all
10245 inferiors sharing the program space.
10246 (exec_on_vfork): New.
10247 * exec.h (exec_on_vfork): Declare.
10248 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10249 Pass it down.
10250 (fbsd_nat_target::update_thread_list): Adjust.
10251 (fbsd_nat_target::resume): Adjust.
10252 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10253 down.
10254 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10255 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10256 get_thread_arch_regcache call.
10257 * fork-child.c (gdb_startup_inferior): Pass target down to
10258 startup_inferior and set_executing.
10259 * gdbthread.h (struct process_stratum_target): Forward declare.
10260 (add_thread, add_thread_silent, add_thread_with_info)
10261 (in_thread_list): Add process_stratum_target parameter.
10262 (find_thread_ptid(inferior*, ptid_t)): New overload.
10263 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10264 parameter.
10265 (all_threads()): Delete overload.
10266 (all_threads, all_non_exited_threads): Add process_stratum_target
10267 parameter.
10268 (all_threads_safe): Use brace initialization.
10269 (thread_count): Add process_stratum_target parameter.
10270 (set_resumed, set_running, set_stop_requested, set_executing)
10271 (threads_are_executing, finish_thread_state): Add
10272 process_stratum_target parameter.
10273 (switch_to_thread): Use is_current_thread.
10274 * i386-fbsd-tdep.c: Include "inferior.h".
10275 (i386fbsd_get_thread_local_address): Pass down target.
10276 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10277 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10278 have_inferiors check.
10279 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10280 (inf_ptrace_target::attach): Adjust.
10281 * infcall.c (run_inferior_call): Adjust.
10282 * infcmd.c (run_command_1): Pass target to
10283 scoped_finish_thread_state.
10284 (proceed_thread_callback): Skip inferiors with no execution.
10285 (continue_command): Rename 'all_threads' local to avoid hiding
10286 'all_threads' function. Adjust get_last_target_status call.
10287 (prepare_one_step): Adjust set_running call.
10288 (signal_command): Use user_visible_resume_target. Compare thread
10289 pointers instead of inferior_ptid.
10290 (info_program_command): Adjust to pass down target.
10291 (attach_command): Mark target's 'thread_executing' flag.
10292 (stop_current_target_threads_ns): New, factored out from ...
10293 (interrupt_target_1): ... this. Switch inferior before making
10294 target calls.
10295 * inferior-iter.h
10296 (struct all_inferiors_iterator, struct all_inferiors_range)
10297 (struct all_inferiors_safe_range)
10298 (struct all_non_exited_inferiors_range): Filter on
10299 process_stratum_target too. Remove explicit.
10300 * inferior.c (inferior::inferior): Push dummy target on target
10301 stack.
10302 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10303 Add process_stratum_target parameter, and pass it down.
10304 (have_live_inferiors): Adjust.
10305 (switch_to_inferior_and_push_target): New.
10306 (add_inferior_command, clone_inferior_command): Handle
10307 "-no-connection" parameter. Use
10308 switch_to_inferior_and_push_target.
10309 (_initialize_inferior): Mention "-no-connection" option in
10310 the help of "add-inferior" and "clone-inferior" commands.
10311 * inferior.h: Include "process-stratum-target.h".
10312 (interrupt_target_1): Use bool.
10313 (struct inferior) <push_target, unpush_target, target_is_pushed,
10314 find_target_beneath, top_target, process_target, target_at,
10315 m_stack>: New.
10316 (discard_all_inferiors): Delete.
10317 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10318 (all_inferiors, all_non_exited_inferiors): Add
10319 process_stratum_target parameter.
10320 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10321 (target_last_proc_target): New global.
10322 (follow_fork_inferior): Push target on new inferior. Pass target
10323 to add_thread_silent. Call exec_on_vfork. Handle target's
10324 reference count.
10325 (follow_fork): Adjust get_last_target_status call. Also consider
10326 target.
10327 (follow_exec): Push target on new inferior.
10328 (struct execution_control_state) <target>: New field.
10329 (user_visible_resume_target): New.
10330 (do_target_resume): Call target_async.
10331 (resume_1): Set target's threads_executing flag. Consider resume
10332 target.
10333 (commit_resume_all_targets): New.
10334 (proceed): Also consider resume target. Skip threads of inferiors
10335 with no execution. Commit resumtion in all targets.
10336 (start_remote): Pass current inferior to wait_for_inferior.
10337 (infrun_thread_stop_requested): Consider target as well. Pass
10338 thread_info pointer to clear_inline_frame_state instead of ptid.
10339 (infrun_thread_thread_exit): Consider target as well.
10340 (random_pending_event_thread): New inferior parameter. Use it.
10341 (do_target_wait): Rename to ...
10342 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10343 down.
10344 (threads_are_resumed_pending_p, do_target_wait): New.
10345 (prepare_for_detach): Adjust calls.
10346 (wait_for_inferior): New inferior parameter. Handle it. Use
10347 do_target_wait_1 instead of do_target_wait.
10348 (fetch_inferior_event): Adjust. Switch to representative
10349 inferior. Pass target down.
10350 (set_last_target_status): Add process_stratum_target parameter.
10351 Save target in global.
10352 (get_last_target_status): Add process_stratum_target parameter and
10353 handle it.
10354 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10355 (context_switch): Check inferior_ptid == null_ptid before calling
10356 inferior_thread().
10357 (get_inferior_stop_soon): Pass down target.
10358 (wait_one): Rename to ...
10359 (poll_one_curr_target): ... this.
10360 (struct wait_one_event): New.
10361 (wait_one): New.
10362 (stop_all_threads): Adjust.
10363 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10364 event's target.
10365 (switch_back_to_stepped_thread): Also consider target.
10366 (print_stop_event): Update.
10367 (normal_stop): Update. Also consider the resume target.
10368 * infrun.h (wait_for_inferior): Remove declaration.
10369 (user_visible_resume_target): New declaration.
10370 (get_last_target_status, set_last_target_status): New
10371 process_stratum_target parameter.
10372 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10373 process_stratum_target parameter, and use it.
10374 (clear_inline_frame_state (thread_info*)): New.
10375 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10376 process_stratum_target parameter.
10377 (clear_inline_frame_state (thread_info*)): Declare.
10378 * linux-fork.c (delete_checkpoint_command): Pass target down to
10379 find_thread_ptid.
10380 (checkpoint_command): Adjust.
10381 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10382 instead of just tweaking inferior_ptid.
10383 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10384 (exit_lwp): Pass target down to find_thread_ptid.
10385 (attach_proc_task_lwp_callback): Pass target down to
10386 add_thread/set_running/set_executing.
10387 (linux_nat_target::attach): Pass target down to
10388 thread_change_ptid.
10389 (get_detach_signal): Pass target down to find_thread_ptid.
10390 Consider last target status's target.
10391 (linux_resume_one_lwp_throw, resume_lwp)
10392 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10393 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10394 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10395 (linux_nat_target::async_wait_fd): New.
10396 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10397 target down.
10398 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10399 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10400 * linux-thread-db.c (struct thread_db_info::process_target): New
10401 field.
10402 (add_thread_db_info): Save target.
10403 (get_thread_db_info): New process_stratum_target parameter. Also
10404 match target.
10405 (delete_thread_db_info): New process_stratum_target parameter.
10406 Also match target.
10407 (thread_from_lwp): Adjust to pass down target.
10408 (thread_db_notice_clone): Pass down target.
10409 (check_thread_db_callback): Pass down target.
10410 (try_thread_db_load_1): Always push the thread_db target.
10411 (try_thread_db_load, record_thread): Pass target down.
10412 (thread_db_target::detach): Pass target down. Always unpush the
10413 thread_db target.
10414 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10415 target down. Always unpush the thread_db target.
10416 (find_new_threads_callback, thread_db_find_new_threads_2)
10417 (thread_db_target::update_thread_list): Pass target down.
10418 (thread_db_target::pid_to_str): Pass current inferior down.
10419 (thread_db_target::get_thread_local_address): Pass target down.
10420 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10421 target down.
10422 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10423 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10424 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10425 (procfs_init_inferior): Rename to ...
10426 (procfs_target::procfs_init_inferior): ... this and adjust.
10427 (procfs_target::create_inferior, procfs_notice_thread)
10428 (procfs_do_thread_registers): Adjust.
10429 * ppc-fbsd-tdep.c: Include "inferior.h".
10430 (ppcfbsd_get_thread_local_address): Pass down target.
10431 * proc-service.c (ps_xfer_memory): Switch current inferior and
10432 program space as well.
10433 (get_ps_regcache): Pass target down.
10434 * process-stratum-target.c
10435 (process_stratum_target::thread_address_space)
10436 (process_stratum_target::thread_architecture): Pass target down.
10437 * process-stratum-target.h
10438 (process_stratum_target::threads_executing): New field.
10439 (as_process_stratum_target): New.
10440 * ravenscar-thread.c
10441 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10442 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10443 down.
10444 * record-btrace.c (record_btrace_target::info_record): Adjust.
10445 (record_btrace_target::record_method)
10446 (record_btrace_target::record_is_replaying)
10447 (record_btrace_target::fetch_registers)
10448 (get_thread_current_frame_id, record_btrace_target::resume)
10449 (record_btrace_target::wait, record_btrace_target::stop): Pass
10450 target down.
10451 * record-full.c (record_full_wait_1): Switch to event thread.
10452 Pass target down.
10453 * regcache.c (regcache::regcache)
10454 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10455 process_stratum_target parameter and handle it.
10456 (current_thread_target): New global.
10457 (get_thread_regcache): Add process_stratum_target parameter and
10458 handle it. Switch inferior before calling target method.
10459 (get_thread_regcache): Pass target down.
10460 (get_thread_regcache_for_ptid): Pass target down.
10461 (registers_changed_ptid): Add process_stratum_target parameter and
10462 handle it.
10463 (registers_changed_thread, registers_changed): Pass target down.
10464 (test_get_thread_arch_aspace_regcache): New.
10465 (current_regcache_test): Define a couple local test_target_ops
10466 instances and use them for testing.
10467 (readwrite_regcache): Pass process_stratum_target parameter.
10468 (cooked_read_test, cooked_write_test): Pass mock_target down.
10469 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10470 (get_thread_arch_aspace_regcache): Add process_stratum_target
10471 parameter.
10472 (regcache::target): New method.
10473 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10474 (regcache::registers_changed_ptid): Add process_stratum_target
10475 parameter.
10476 (regcache::m_target): New field.
10477 (registers_changed_ptid): Add process_stratum_target parameter.
10478 * remote.c (remote_state::supports_vCont_probed): New field.
10479 (remote_target::async_wait_fd): New method.
10480 (remote_unpush_and_throw): Add remote_target parameter.
10481 (get_current_remote_target): Adjust.
10482 (remote_target::remote_add_inferior): Push target.
10483 (remote_target::remote_add_thread)
10484 (remote_target::remote_notice_new_inferior)
10485 (get_remote_thread_info): Pass target down.
10486 (remote_target::update_thread_list): Skip threads of inferiors
10487 bound to other targets. (remote_target::close): Don't discard
10488 inferiors. (remote_target::add_current_inferior_and_thread)
10489 (remote_target::process_initial_stop_replies)
10490 (remote_target::start_remote)
10491 (remote_target::remote_serial_quit_handler): Pass down target.
10492 (remote_target::remote_unpush_target): New remote_target
10493 parameter. Unpush the target from all inferiors.
10494 (remote_target::remote_unpush_and_throw): New remote_target
10495 parameter. Pass it down.
10496 (remote_target::open_1): Check whether the current inferior has
10497 execution instead of checking whether any inferior is live. Pass
10498 target down.
10499 (remote_target::remote_detach_1): Pass down target. Use
10500 remote_unpush_target.
10501 (extended_remote_target::attach): Pass down target.
10502 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10503 (remote_target::append_resumption): Pass down target.
10504 (remote_target::append_pending_thread_resumptions)
10505 (remote_target::remote_resume_with_hc, remote_target::resume)
10506 (remote_target::commit_resume): Pass down target.
10507 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10508 (remote_target::interrupt_query)
10509 (remote_target::remove_new_fork_children)
10510 (remote_target::check_pending_events_prevent_wildcard_vcont)
10511 (remote_target::remote_parse_stop_reply)
10512 (remote_target::process_stop_reply): Pass down target.
10513 (first_remote_resumed_thread): New remote_target parameter. Pass
10514 it down.
10515 (remote_target::wait_as): Pass down target.
10516 (unpush_and_perror): New remote_target parameter. Pass it down.
10517 (remote_target::readchar, remote_target::remote_serial_write)
10518 (remote_target::getpkt_or_notif_sane_1)
10519 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10520 down target.
10521 (remote_target::mourn_inferior): Pass down target. Use
10522 remote_unpush_target.
10523 (remote_target::core_of_thread)
10524 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10525 (remote_target::pid_to_exec_file)
10526 (remote_target::thread_handle_to_thread_info): Pass down target.
10527 (remote_target::async_wait_fd): New.
10528 * riscv-fbsd-tdep.c: Include "inferior.h".
10529 (riscv_fbsd_get_thread_local_address): Pass down target.
10530 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10531 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10532 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10533 Adjust.
10534 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10535 * solib-svr4.c (enable_break): Pass down target.
10536 * spu-multiarch.c (parse_spufs_run): Pass down target.
10537 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10538 * target-delegates.c: Regenerate.
10539 * target.c (g_target_stack): Delete.
10540 (current_top_target): Return the current inferior's top target.
10541 (target_has_execution_1): Refer to the passed-in inferior's top
10542 target.
10543 (target_supports_terminal_ours): Check whether the initial
10544 inferior was already created.
10545 (decref_target): New.
10546 (target_stack::push): Incref/decref the target.
10547 (push_target, push_target, unpush_target): Adjust.
10548 (target_stack::unpush): Defref target.
10549 (target_is_pushed): Return bool. Adjust to refer to the current
10550 inferior's target stack.
10551 (dispose_inferior): Delete, and inline parts ...
10552 (target_preopen): ... here. Only dispose of the current inferior.
10553 (target_detach): Hold strong target reference while detaching.
10554 Pass target down.
10555 (target_thread_name): Add assertion.
10556 (target_resume): Pass down target.
10557 (target_ops::beneath, find_target_at): Adjust to refer to the
10558 current inferior's target stack.
10559 (get_dummy_target): New.
10560 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10561 has a thread running.
10562 (initialize_targets): Rename to ...
10563 (_initialize_target): ... this.
10564 * target.h: Include "gdbsupport/refcounted-object.h".
10565 (struct target_ops): Inherit refcounted_object.
10566 (target_ops::shortname, target_ops::longname): Make const.
10567 (target_ops::async_wait_fd): New method.
10568 (decref_target): Declare.
10569 (struct target_ops_ref_policy): New.
10570 (target_ops_ref): New typedef.
10571 (get_dummy_target): Declare function.
10572 (target_is_pushed): Return bool.
10573 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10574 (all_matching_threads_iterator::all_matching_threads_iterator):
10575 Handle filter target.
10576 * thread-iter.h (struct all_matching_threads_iterator, struct
10577 all_matching_threads_range, class all_non_exited_threads_range):
10578 Filter by target too. Remove explicit.
10579 * thread.c (threads_executing): Delete.
10580 (inferior_thread): Pass down current inferior.
10581 (clear_thread_inferior_resources): Pass down thread pointer
10582 instead of ptid_t.
10583 (add_thread_silent, add_thread_with_info, add_thread): Add
10584 process_stratum_target parameter. Use it for thread and inferior
10585 searches.
10586 (is_current_thread): New.
10587 (thread_info::deletable): Use it.
10588 (find_thread_ptid, thread_count, in_thread_list)
10589 (thread_change_ptid, set_resumed, set_running): New
10590 process_stratum_target parameter. Pass it down.
10591 (set_executing): New process_stratum_target parameter. Pass it
10592 down. Adjust reference to 'threads_executing'.
10593 (threads_are_executing): New process_stratum_target parameter.
10594 Adjust reference to 'threads_executing'.
10595 (set_stop_requested, finish_thread_state): New
10596 process_stratum_target parameter. Pass it down.
10597 (switch_to_thread): Also match inferior.
10598 (switch_to_thread): New process_stratum_target parameter. Pass it
10599 down.
10600 (update_threads_executing): Reimplement.
10601 * top.c (quit_force): Pop targets from all inferior.
10602 (gdb_init): Don't call initialize_targets.
10603 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10604 Declare.
10605 (windows_add_thread, windows_delete_thread): Adjust.
10606 (get_windows_debug_event): Rename to ...
10607 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10608 * tracefile-tfile.c (tfile_target_open): Pass down target.
10609 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10610 Forward declare.
10611 (switch_to_thread): Add process_stratum_target parameter.
10612 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10613 parameter. Use it.
10614 (mi_on_resume): Pass target down.
10615 * nat/fork-inferior.c (startup_inferior): Add
10616 process_stratum_target parameter. Pass it down.
10617 * nat/fork-inferior.h (startup_inferior): Add
10618 process_stratum_target parameter.
10619 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10620
10621 2020-01-10 Pedro Alves <palves@redhat.com>
10622
10623 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10624 directly. Instead find the first thread in the thread list and
10625 use switch_to_thread.
10626
10627 2020-01-10 Pedro Alves <palves@redhat.com>
10628
10629 * remote.c (remote_target::remote_add_inferior): Don't bind a
10630 process to the current inferior if the current inferior is already
10631 bound to a process.
10632
10633 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10634 Pedro Alves <palves@redhat.com>
10635
10636 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10637 If no process is specified, return null_ptid instead of
10638 inferior_ptid.
10639 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10640 TARGET_WAITKIND_SIGNALLED with no pid.
10641
10642 2020-01-10 Pedro Alves <palves@redhat.com>
10643
10644 * remote.c (first_remote_resumed_thread): New.
10645 (remote_target::wait_as): Use it as default event_ptid instead of
10646 inferior_ptid.
10647
10648 2020-01-10 Pedro Alves <palves@redhat.com>
10649
10650 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10651
10652 2020-01-10 Pedro Alves <palves@redhat.com>
10653
10654 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10655 not -1.
10656
10657 2020-01-10 Pedro Alves <palves@redhat.com>
10658
10659 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10660 ptid to get_last_target_status.
10661 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10662 ptid to get_last_target_status.
10663 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10664 get_last_target_status.
10665 (info_program_command): Don't pass a target_waitstatus to
10666 get_last_target_status.
10667 * infrun.c (init_wait_for_inferior): Use
10668 nullify_last_target_wait_ptid.
10669 (get_last_target_status): Handle nullptr arguments.
10670 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10671 (print_stop_event): Don't pass a ptid to get_last_target_status.
10672 (normal_stop): Don't pass a ptid to get_last_target_status.
10673 * infrun.h (get_last_target_status, set_last_target_status): Move
10674 comments here and update.
10675 (nullify_last_target_wait_ptid): Declare.
10676 * linux-fork.c (fork_load_infrun_state): Remove local extern
10677 declaration of nullify_last_target_wait_ptid.
10678 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10679 to get_last_target_status.
10680
10681 2020-01-10 Pedro Alves <palves@redhat.com>
10682
10683 * gdbthread.h (scoped_restore_current_thread)
10684 <dont_restore, restore, m_dont_restore>: Declare.
10685 * thread.c (thread_alive): Add assertion. Return bool.
10686 (switch_to_thread_if_alive): New.
10687 (prune_threads): Switch inferior/thread.
10688 (print_thread_info_1): Switch thread before calling target methods.
10689 (scoped_restore_current_thread::restore): New, factored out from
10690 ...
10691 (scoped_restore_current_thread::~scoped_restore_current_thread):
10692 ... this.
10693 (scoped_restore_current_thread::scoped_restore_current_thread):
10694 Add assertion.
10695 (thread_apply_all_command, thread_select): Use
10696 switch_to_thread_if_alive.
10697 * infrun.c (proceed, restart_threads, handle_signal_stop)
10698 (switch_back_to_stepped_thread): Switch current thread before
10699 calling target methods.
10700
10701 2020-01-10 Pedro Alves <palves@redhat.com>
10702
10703 * inferior.c (switch_to_inferior_no_thread): New function,
10704 factored out from ...
10705 (inferior_command): ... here.
10706 * inferior.h (switch_to_inferior_no_thread): Declare.
10707 * mi/mi-main.c (run_one_inferior): Use
10708 switch_to_inferior_no_thread.
10709
10710 2020-01-10 Pedro Alves <palves@redhat.com>
10711
10712 * infcmd.c (kill_command): Remove dead code.
10713
10714 2020-01-10 Pedro Alves <palves@redhat.com>
10715
10716 * remote.c (remote_target::mourn_inferior): No longer check
10717 whether the target is running.
10718
10719 2020-01-10 Pedro Alves <palves@redhat.com>
10720
10721 * corelow.c (core_target::has_execution): Change parameter type to
10722 inferior pointer.
10723 * inferior.c (number_of_live_inferiors): Use
10724 inferior::has_execution instead of target_has_execution_1.
10725 * inferior.h (inferior::has_execution): New.
10726 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10727 inferior::has_execution instead of target_has_execution_1.
10728 * process-stratum-target.c
10729 (process_stratum_target::has_execution): Change parameter type to
10730 inferior pointer. Check the inferior's PID instead of
10731 inferior_ptid.
10732 * process-stratum-target.h
10733 (process_stratum_target::has_execution): Change parameter type to
10734 inferior pointer.
10735 * record-full.c (record_full_core_target::has_execution): Change
10736 parameter type to inferior pointer.
10737 * target.c (target_has_execution_1): Change parameter type to
10738 inferior pointer.
10739 (target_has_execution_current): Adjust.
10740 * target.h (target_ops::has_execution): Change parameter type to
10741 inferior pointer.
10742 (target_has_execution_1): Change parameter type to inferior
10743 pointer. Change return type to bool.
10744 * tracefile.h (tracefile_target::has_execution): Change parameter
10745 type to inferior pointer.
10746
10747 2020-01-10 Pedro Alves <palves@redhat.com>
10748
10749 * exceptions.c (print_flush): Remove current_top_target() check.
10750
10751 2020-01-10 Pedro Alves <palves@redhat.com>
10752
10753 * remote.c (show_remote_exec_file): Show the current inferior's
10754 exec-file instead of the command variable's value.
10755
10756 2020-01-10 Pedro Alves <palves@redhat.com>
10757
10758 * record-full.c (record_full_resume_ptid): New global.
10759 (record_full_target::resume): Set it.
10760 (record_full_wait_1): Use record_full_resume_ptid instead of
10761 inferior_ptid.
10762
10763 2020-01-10 Pedro Alves <palves@redhat.com>
10764
10765 * gdbthread.h (scoped_restore_current_thread)
10766 <dont_restore, restore, m_dont_restore>: Declare.
10767 * thread.c (thread_alive): Add assertion. Return bool.
10768 (switch_to_thread_if_alive): New.
10769 (prune_threads): Switch inferior/thread.
10770 (print_thread_info_1): Switch thread before calling target methods.
10771 (scoped_restore_current_thread::restore): New, factored out from
10772 ...
10773 (scoped_restore_current_thread::~scoped_restore_current_thread):
10774 ... this.
10775 (scoped_restore_current_thread::scoped_restore_current_thread):
10776 Add assertion.
10777 (thread_apply_all_command, thread_select): Use
10778 switch_to_thread_if_alive.
10779
10780 2020-01-10 George Barrett <bob@bob131.so>
10781
10782 * stap-probe.c (stap_modify_semaphore): Don't check for null
10783 semaphores.
10784 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10785 for null semaphores.
10786
10787 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10788
10789 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10790 all source windows, and maintain horizontal scroll status while
10791 doing so.
10792
10793 2020-01-09 Tom Tromey <tom@tromey.com>
10794
10795 PR tui/18932:
10796 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10797 update_source_window, not print_source_lines.
10798
10799 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * tui/tui.c (tui_enable): Register tui hooks after calling
10802 tui_display_main.
10803
10804 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10805
10806 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10807
10808 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
10809
10810 * thread.c (print_thread_info_1): Fix indentation.
10811
10812 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10813
10814 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10815 unique_xmalloc_ptr outside the if to always free the demangled name.
10816
10817 2020-01-08 Tom Tromey <tromey@adacore.com>
10818
10819 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10820 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10821 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10822 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10823 Remove.
10824 (section_offsets): New typedef.
10825 * symtab.c (fixup_section, get_msymbol_address): Update.
10826 * symmisc.c (dump_msymbols): Update.
10827 * symfile.h (relative_addr_info_to_section_offsets)
10828 (symfile_map_offsets_to_segments): Update.
10829 * symfile.c (build_section_addr_info_from_objfile)
10830 (init_objfile_sect_indices): Update.
10831 (struct place_section_arg): Change type of "offsets".
10832 (place_section): Update.
10833 (relative_addr_info_to_section_offsets): Change type of
10834 "section_offsets". Remove "num_sections" parameter.
10835 (default_symfile_offsets, syms_from_objfile_1)
10836 (set_objfile_default_section_offset): Update.
10837 (reread_symbols): No need to preserve section offsets by hand.
10838 (symfile_map_offsets_to_segments): Change type of "offsets".
10839 * stap-probe.c (relocate_address): Update.
10840 * stabsread.h (process_one_symbol): Update.
10841 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10842 (solib_target_relocate_section_addresses): Update.
10843 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10844 Update.
10845 * solib-frv.c (frv_relocate_main_executable): Update.
10846 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10847 * solib-aix.c (solib_aix_get_section_offsets): Change return
10848 type.
10849 (solib_aix_solib_create_inferior_hook): Update.
10850 * remote.c (remote_target::get_offsets): Update.
10851 * psymtab.c (find_pc_sect_psymtab): Update.
10852 * psympriv.h (struct partial_symbol) <address, text_low,
10853 text_high>: Update.
10854 * objfiles.h (obj_section_offset): Update.
10855 (struct objfile) <section_offsets>: Change type.
10856 <num_sections>: Remove.
10857 (objfile_relocate): Update.
10858 * objfiles.c (entry_point_address_query): Update
10859 (relocate_one_symbol): Change type of "section_offsets".
10860 (objfile_relocate1, objfile_relocate1): Change type of
10861 "new_offsets".
10862 (objfile_rebase1): Update.
10863 * mipsread.c (mipscoff_symfile_read): Update.
10864 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10865 parameter.
10866 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10867 (parse_external, psymtab_to_symtab_1): Update.
10868 * machoread.c (macho_symfile_offsets): Update.
10869 * ia64-tdep.c (ia64_find_unwind_table): Update.
10870 * hppa-tdep.c (read_unwind_info): Update.
10871 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10872 * dwarf2read.c (create_addrmap_from_index)
10873 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10874 (process_psymtab_comp_unit_reader, add_partial_symbol)
10875 (add_partial_subprogram, process_full_comp_unit)
10876 (read_file_scope, read_func_scope, read_lexical_block_scope)
10877 (read_call_site_scope, dwarf2_rnglists_process)
10878 (dwarf2_ranges_process, dwarf2_ranges_read)
10879 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10880 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10881 Update.
10882 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10883 Update.
10884 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10885 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10886 (process_one_symbol): Change type of "section_offsets".
10887 * ctfread.c (get_objfile_text_range): Update.
10888 * coffread.c (coff_symtab_read, enter_linenos)
10889 (process_coff_symbol): Update.
10890 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10891 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10892
10893 2020-01-08 Tom Tromey <tromey@adacore.com>
10894
10895 * dwarf2read.c (parse_macro_definition): Use std::string.
10896 (parse_macro_definition): Likewise.
10897
10898 2020-01-08 Tom Tromey <tromey@adacore.com>
10899
10900 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10901 (ATTR_ALLOC_CHUNK): Remove.
10902
10903 2020-01-08 Tom Tromey <tromey@adacore.com>
10904
10905 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10906
10907 2020-01-08 Tom Tromey <tromey@adacore.com>
10908
10909 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10910 (dwarf2_compute_name, open_dwo_file): Likewise.
10911 (process_enumeration_scope): Use std::vector.
10912 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10913 (partial_die_info::fixup, dwarf2_start_subfile)
10914 (guess_full_die_structure_name, dwarf2_name): Likewise.
10915 (determine_prefix): Update.
10916 (guess_full_die_structure_name): Make return type const.
10917 (partial_die_full_name): Return unique_xmalloc_ptr.
10918 (DW_FIELD_ALLOC_CHUNK): Remove.
10919
10920 2020-01-07 Tom Tromey <tromey@adacore.com>
10921
10922 PR build/24937:
10923 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10924
10925 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10926
10927 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10928
10929 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10930
10931 * stack.c (print_frame_info): Move disassemble_next_line code
10932 inside source_print block.
10933
10934 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10935
10936 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10937 gdb/signals.h, as we are now using native signal symbols.
10938
10939 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10940
10941 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10942 overflow by an early check of content vs threshold.
10943 * tui/tui-source.c (tui_source_window::line_is_displayed):
10944 Likewise.
10945
10946 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10947
10948 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10949
10950 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10951
10952 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10953 export table if no section contains it's RVA.
10954
10955 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10956
10957 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10958
10959 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
10960
10961 * source.c (print_source_lines_base): Set last_line_listed.
10962
10963 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10964
10965 * tui/tui-disasm.c: Remove trailing spaces.
10966
10967 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10968 Pedro Alves <palves@redhat.com>
10969
10970 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10971 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10972 (windows_gdb_signal_to_target): New function, uses the above
10973 enumeration to convert GDB internal signal codes to equivalent
10974 Windows codes.
10975 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10976 * windows-nat.c: Include "gdb_wait.h".
10977 (get_windows_debug_event): Extract the fatal exception from the
10978 exit status and convert to the equivalent Posix signal number.
10979 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10980 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10981 * gdbsupport/gdb_wait.c: New file, implements
10982 windows_status_to_termsig.
10983 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10984 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10985
10986 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10987
10988 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10989 show_layout.
10990
10991 2020-01-05 Luis Machado <luis.machado@linaro.org>
10992
10993 * aarch64-linux-nat.c
10994 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10995 and bfd_mach_aarch64.
10996
10997 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10998
10999 * ui-file.c (stdio_file::can_emit_style_escape)
11000 (tee_file::can_emit_style_escape): Ensure style is used also on
11001 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11002 to gdb_stdout.
11003 * main.c (set_gdb_data_directory): Use file style to output the
11004 warning that the given pathname is not a directory.
11005 * top.c (show_history_filename, gdb_safe_append_history)
11006 (show_gdb_datadir): Use file style.
11007
11008 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11009
11010 * solib-target.c (struct lm_info_target):
11011 Change offsets to be a unique_xmalloc_ptr.
11012 (solib_target_relocate_section_addresses): Update.
11013
11014 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11015
11016 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11017
11018 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11019
11020 * MAINTAINERS (Write After Approval): Add myself.
11021
11022 2020-01-02 Luis Machado <luis.machado@linaro.org>
11023
11024 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11025 Cell BE architecture.
11026 * target.h (struct target_ops) <thread_architecture>: Likewise.
11027
11028 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11029
11030 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11031
11032 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11033
11034 * MAINTAINERS (Write After Approval): Add myself.
11035
11036 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11037
11038 * gdbarch.sh: Update copyright year range of generated files.
11039
11040 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11041
11042 Update copyright year range in all GDB files.
11043
11044 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11045
11046 * copyright.py: Convert to Python 3.
11047
11048 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11049
11050 * copyright.py: Adapt after move of gnulib directory from gdb
11051 directory to toplevel directory.
11052
11053 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11054
11055 * copyright.py (main): Exit if run from the wrong directory.
11056
11057 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11058
11059 * top.c (print_gdb_version): Change copyright year to 2020.
11060
11061 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11062
11063 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11064
11065 For older changes see ChangeLog-2019.
11066 \f
11067 Local Variables:
11068 mode: change-log
11069 left-margin: 8
11070 fill-column: 74
11071 version-control: never
11072 coding: utf-8
11073 End: