]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Add support for tracking the DWARF line table is-stmt field
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8c95582d
AB
12020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * buildsym-legacy.c (record_line): Pass extra parameter to
4 record_line.
5 * buildsym.c (buildsym_compunit::record_line): Take an extra
6 parameter, reduce duplication in the line table, and record the
7 is_stmt flag in the line table.
8 * buildsym.h (buildsym_compunit::record_line): Add extra
9 parameter.
10 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11 non-statement lines.
12 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13 this to the symtab builder.
14 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
15 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
16 through to dwarf_record_line_1.
17 * infrun.c (process_event_stop_test): When stepping, don't stop at
18 a non-statement instruction, and only refresh the step info when
19 we land in the middle of a line's range. Also add an extra
20 comment.
21 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
22 field.
23 * record-btrace.c (btrace_find_line_range): Only record lines
24 marked as is-statement.
25 * stack.c (frame_show_address): Show the frame address if we are
26 in a non-statement sal.
27 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
28 (maintenance_print_one_line_table): Print a header for the is_stmt
29 column, and include is_stmt information in the output.
30 * symtab.c (find_pc_sect_line): Find lines marked as statements in
31 preference to non-statements.
32 (find_pcs_for_symtab_line): Prefer is-statement entries.
33 (find_line_common): Likewise.
34 * symtab.h (struct linetable_entry): Add is_stmt field.
35 (struct symtab_and_line): Likewise.
36 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
37 arranging the line table.
38
e4003a34
TV
392020-03-07 Tom de Vries <tdevries@suse.de>
40
41 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
42 DIE.
43
e8932576
TT
442020-03-07 Tom Tromey <tom@tromey.com>
45
46 * valops.c (value_literal_complex): Remove obsolete comment.
47 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
48 comment.
49
29734269
SM
502020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * infrun.h: Forward-declare thread_info.
53 (set_step_info): Add thread_info parameter, add doc.
54 * infrun.c (set_step_info): Add thread_info parameter, move doc
55 to header.
56 * infrun.c (process_event_stop_test): Pass thread to
57 set_step_info call.
58 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
59 set_step_info.
60 (prepare_one_step): Add thread_info parameter, pass it to
61 set_step_frame and prepare_one_step (recursive) call.
62 (step_1): Pass thread to prepare_one_step call.
63 (step_command_fsm::should_stop): Pass thread to
64 prepare_one_step.
65 (until_next_fsm): Pass thread to set_step_frame call.
66 (finish_command): Pass thread to set_step_info call.
67
b7d64b29
HD
682020-03-06 Hannes Domani <ssbssa@yahoo.de>
69
70 * windows-tdep.c (windows_solib_create_inferior_hook):
71 Check if inferior is running.
72
09f2921c
TV
732020-03-06 Tom de Vries <tdevries@suse.de>
74
75 * NEWS: Fix "the the".
76 * ctfread.c: Same.
77
fd760e79
TV
782020-03-06 Tom de Vries <tdevries@suse.de>
79
80 * psymtab.c (psymtab_to_symtab): Don't print "done.".
81
20ea4a60
AB
822020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * .dir-locals.el: Add a comment referencing the other copies of
85 this file.
86
0afbabf0
JB
872020-03-05 John Baldwin <jhb@FreeBSD.org>
88
89 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
90 psargs.
91
842806cb
TBA
922020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
93
94 * .gitattributes: New file.
95
be1e3d3e
TT
962020-03-04 Tom Tromey <tom@tromey.com>
97
98 * symmisc.c (print_symbol_bcache_statistics)
99 (print_objfile_statistics): Update.
100 * symfile.c (allocate_symtab): Use intern.
101 * psymtab.c (partial_symtab::partial_symtab): Use intern.
102 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
103 macro_cache>: Remove.
104 <string_cache>: New member.
105 (struct objfile) <intern>: New methods.
106 * elfread.c (elf_symtab_read): Use intern.
107 * dwarf2/read.c (fixup_go_packaging): Intern package name.
108 (dwarf2_compute_name, dwarf2_physname)
109 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
110 names.
111 (guess_partial_die_structure_name): Update.
112 (partial_die_info::fixup): Intern name.
113 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
114 name.
115 (dwarf2_name): Intern name. Update.
116 * buildsym.c (buildsym_compunit::get_macro_table): Use
117 string_cache.
118
4e7625fd
TT
1192020-03-04 Tom Tromey <tom@tromey.com>
120
121 * jit.c (bfd_open_from_target_memory): Make "target" const.
122 * corefile.c (gnutarget): Now const.
123 * gdbcore.h (gnutarget): Now const.
124
46f9f931
HD
1252020-03-04 Hannes Domani <ssbssa@yahoo.de>
126
127 * NEWS: Mention support for WOW64 processes.
128 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
129 (amd64_windows_segment_register_p): Remove static.
130 (_initialize_amd64_windows_nat): Update.
131 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
132 * i386-windows-nat.c (context_offset): Update.
133 (i386_mappings): Rename and remove static.
134 (i386_windows_segment_register_p): Remove static.
135 (_initialize_i386_windows_nat): Update.
136 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
137 (STATUS_WX86_SINGLE_STEP): New macro.
138 (EnumProcessModulesEx): New macro.
139 (Wow64SuspendThread): New macro.
140 (Wow64GetThreadContext): New macro.
141 (Wow64SetThreadContext): New macro.
142 (Wow64GetThreadSelectorEntry): New macro.
143 (windows_set_context_register_offsets): Add static.
144 (windows_set_segment_register_p): Likewise.
145 (windows_add_thread): Adapt for WOW64 processes.
146 (windows_fetch_one_register): Likewise.
147 (windows_nat_target::fetch_registers): Likewise.
148 (windows_store_one_register): Likewise.
149 (display_selector): Likewise.
150 (display_selectors): Likewise.
151 (handle_exception): Likewise.
152 (windows_continue): Likewise.
153 (windows_nat_target::resume): Likewise.
154 (windows_add_all_dlls): Likewise.
155 (do_initial_windows_stuff): Likewise.
156 (windows_nat_target::attach): Likewise.
157 (windows_get_exec_module_filename): Likewise.
158 (windows_nat_target::create_inferior): Likewise.
159 (windows_xfer_siginfo): Likewise.
160 (_initialize_loadable): Initialize Wow64SuspendThread,
161 Wow64GetThreadContext, Wow64SetThreadContext,
162 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
163 * windows-nat.h (windows_set_context_register_offsets):
164 Remove declaration.
165 (windows_set_segment_register_p): Likewise.
166 (i386_windows_segment_register_p): Add declaration.
167 (amd64_windows_segment_register_p): Likewise.
168
440cf44e
LM
1692020-03-04 Luis Machado <luis.machado@linaro.org>
170
171 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
172 in "info registers" for AArch64/ARM.
173
174 The change caused "info registers" to not print GPR's.
175
176 gdb/ChangeLog:
177
178 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
179
180 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
181 when reg->group is empty and reggroup is not.
182
1009d92f
TT
1832020-03-03 Tom Tromey <tromey@adacore.com>
184
185 * dwarf2/frame.c (struct dwarf2_frame_cache)
186 <checked_tailcall_bottom, entry_cfa_sp_offset,
187 entry_cfa_sp_offset_p>: Remove members.
188 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
189 (dwarf2_frame_prev_register): Don't call
190 dwarf2_tailcall_sniffer_first.
191 (dwarf2_append_unwinders): Don't append tailcall unwinder.
192 * frame-unwind.c (add_unwinder): New fuction.
193 (frame_unwind_init): Use it. Add tailcall unwinder.
194
5e5d66b6
AB
1952020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
196 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
197
198 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
199 value should be printed as true.
200
584cf46d
HD
2012020-03-03 Hannes Domani <ssbssa@yahoo.de>
202
203 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
204 (windows_init_abi): Set and use windows_so_ops.
205
7b973adc
SDJ
2062020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
207
208 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
209 when verifying if dealing with a convenience variable.
210
bb7b70ab
LM
2112020-03-03 Luis Machado <luis.machado@linaro.org>
212
213 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
214
9822cb57
SM
2152020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * infrun.c (gdbarch_supports_displaced_stepping): New.
218 (use_displaced_stepping): Break up conditions in smaller pieces.
219 Use gdbarch_supports_displaced_stepping.
220 (displaced_step_prepare_throw): Use
221 gdbarch_supports_displaced_stepping.
222
63e163f2
AB
2232020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * NEWS: Mention new behaviour of the history filename.
226 * top.c (write_history_p): Add comment.
227 (show_write_history_p): Add header comment, give a different
228 message when history writing is on, but the history filename is
229 empty.
230 (history_filename): Add comment.
231 (history_filename_empty): New function.
232 (show_history_filename): Add header comment, give a different
233 message when the filename is empty.
234 (init_history): Compare history_filename against nullptr, and only
235 read history if the filename is not empty.
236 (set_history_filename): Add header comment, and only make
237 non-empty filenames absolute.
238 (init_main): Make the filename argument to 'set history filename'
239 optional.
240
81b86b97
CB
2412020-03-02 Christian Biesinger <cbiesinger@google.com>
242
243 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
244 (arm_supply_vfpregset): ...this, and update to use VFP registers.
245 (fetch_fp_register): Update.
246 (fetch_fp_regs): Update.
247 (store_fp_register): Update.
248 (store_fp_regs): Update.
249 (arm_netbsd_nat_target::read_description): New function.
250 (fetch_elfcore_registers): Update.
251
24ed6739
AB
2522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
255 general_thread if the stop reply is missing a thread-id.
256 (remote_target::process_stop_reply): Use the first non-exited
257 thread if the target didn't pass a thread-id.
258 * infrun.c (do_target_wait): Move call to
259 switch_to_inferior_no_thread to ....
260 (do_target_wait_1): ... here.
261
a84bb2a0
JT
2622020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
263
264 * debuginfod-support.c: Include defs.h first.
265
658dadf0
TV
2662020-02-28 Tom de Vries <tdevries@suse.de>
267
268 * symfile.c (set_initial_language): Use default language for lookup.
269
4ebe4877
SM
2702020-02-28 Simon Marchi <simon.marchi@efficios.com>
271
272 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
273 reader variable, pass `this` to read_cutu_die_from_dwo.
274
e5da1139
AM
2752020-02-27 Aaron Merey <amerey@redhat.com>
276
277 * source.c (open_source_file): Check for nullptr when computing
278 srcpath.
279
317f7127
TT
2802020-02-27 Tom Tromey <tromey@adacore.com>
281
282 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
283 member.
284 (dwarf2_add_field): Don't update nfields.
285 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
286
3104d9ee
AB
2872020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
290 abs.
291
b83470bf
TT
2922020-02-26 Tom Tromey <tom@tromey.com>
293
294 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
295 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
296 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
297 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
298 per_cu_data.
299
edfe0a0c
TT
3002020-02-26 Tom Tromey <tom@tromey.com>
301
302 * dwarf2/index-write.c (psym_index_map): Change type.
303 (add_address_entry_worker, write_one_signatured_type)
304 (recursively_count_psymbols, recursively_write_psymbols)
305 (class debug_names, psyms_seen_size, write_gdbindex)
306 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
307
0d79cdc4
AM
3082020-02-26 Aaron Merey <amerey@redhat.com>
309
310 * Makefile.in: Handle optional debuginfod support.
311 * NEWS: Update.
312 * README: Add --with-debuginfod summary.
313 * config.in: Regenerate.
314 * configure: Regenerate.
315 * configure.ac: Handle optional debuginfod support.
316 * debuginfod-support.c: debuginfod helper functions.
317 * debuginfod-support.h: Ditto.
318 * doc/gdb.texinfo: Add --with-debuginfod to configure options
319 summary.
320 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
321 when a dwz file cannot be found.
322 * elfread.c (elf_symfile_read): Query debuginfod servers when a
323 debuginfo file cannot be found.
324 * source.c (open_source_file): Query debuginfod servers when a
325 source file cannot be found.
326 * top.c (print_gdb_configuration): Include
327 --{with,without}-debuginfod in the output.
328
b65ce565
JG
3292020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
330
331 * thread.c (thr_try_catch_cmd): Print thread name.
332
d4c9a4f8
SM
3332020-02-26 Simon Marchi <simon.marchi@efficios.com>
334
335 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
336 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
337 dwarf2_fetch_die_type_sect_off): Move to...
338 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
339 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
340 dwarf2_fetch_die_type_sect_off): ... here.
341 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
342 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
343 dwarf2_fetch_die_type_sect_off): Move doc to header file.
344
0dce4280
TV
3452020-02-26 Tom de Vries <tdevries@suse.de>
346
347 PR gdb/25603
348 * symfile.c (set_initial_language): Exit-early if
349 language_mode == language_mode_manual.
350
450a1bfc
SM
3512020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
354 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
355 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
356
9e80cfa1
AB
3572020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * gdbtypes.c (create_array_type_with_stride): Handle negative
360 array strides.
361 * valarith.c (value_subscripted_rvalue): Likewise.
362
09624f1f
LM
3632020-02-25 Luis Machado <luis.machado@linaro.org>
364
365 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
366
8cb5117c
SM
3672020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * loc.h (dwarf2_get_die_type): Move to...
370 * read.h (dwarf2_get_die_type): ... here.
371 * read.c (dwarf2_get_die_type): Move doc to header.
372
c325c44e
JB
3732020-02-25 Joel Brobecker <brobecker@adacore.com>
374
375 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
376 'gnulib/Makefile.in' to the list.
377
4ac93832
TT
3782020-02-24 Tom Tromey <tom@tromey.com>
379
380 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
381 Remove.
382 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
383 XOBNEWVEC.
384
197400e8
TT
3852020-02-24 Tom Tromey <tom@tromey.com>
386
387 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
388 New method.
389 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
390 (dw2_do_instantiate_symtab, dw2_get_file_names)
391 (build_type_psymtab_dependencies, load_full_type_unit): Update.
392
76935768
TT
3932020-02-24 Tom Tromey <tom@tromey.com>
394
395 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
396 make_scoped_restore.
397 (dwarf2_psymtab::read_symtab): Don't clear
398 reading_partial_symbols.
399
a88ef40d
TV
4002020-02-24 Tom de Vries <tdevries@suse.de>
401
402 PR gdb/25592
403 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
404
c9af6521
TV
4052020-02-24 Tom de Vries <tdevries@suse.de>
406
407 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
408 commands layout next/prev/regs.
409
5707a07a
TT
4102020-02-22 Tom Tromey <tom@tromey.com>
411
412 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
413 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
414
3b0fb49e
TT
4152020-02-22 Tom Tromey <tom@tromey.com>
416
417 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
418
283be8bf
TT
4192020-02-22 Tom Tromey <tom@tromey.com>
420
421 * tui/tui-win.c (_initialize_tui_win): Add usage text.
422 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
423 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
424 * tui/tui.c (_initialize_tui): Add usage text.
425
ca793b96
TT
4262020-02-22 Tom Tromey <tom@tromey.com>
427
428 * tui/tui-win.c (tui_set_focus_command)
429 (tui_set_win_height_command): Use error_no_arg.
430 (_initialize_tui_win): Update help text.
431 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
432
432b5c40
TT
4332020-02-22 Tom Tromey <tom@tromey.com>
434
435 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
436 * tui/tui-disasm.h (struct tui_disasm_window)
437 <display_start_addr>: Declare.
438 * tui/tui-source.h (struct tui_source_window)
439 <display_start_addr>: Declare.
440 * tui/tui-winsource.h (struct tui_source_window_base)
441 <show_source_line, display_start_addr>: New methods.
442 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
443 Rename and move to protected section.
444 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
445 (tui_source_window_base::do_erase_source_content): Update.
446 (tui_source_window_base::show_source_line): Now a method.
447 (tui_source_window_base::show_source_content)
448 (tui_source_window_base::tui_source_window_base)
449 (tui_source_window_base::rerender)
450 (tui_source_window_base::refill)
451 (tui_source_window_base::do_scroll_horizontal)
452 (tui_source_window_base::set_is_exec_point_at)
453 (tui_source_window_base::update_breakpoint_info)
454 (tui_source_window_base::update_exec_info): Update.
455 * tui/tui-source.c (tui_source_window::set_contents)
456 (tui_source_window::showing_source_p)
457 (tui_source_window::do_scroll_vertical)
458 (tui_source_window::location_matches_p)
459 (tui_source_window::line_is_displayed): Update.
460 (tui_source_window::display_start_addr): New method.
461 * tui/tui-disasm.c (tui_disasm_window::set_contents)
462 (tui_disasm_window::do_scroll_vertical)
463 (tui_disasm_window::location_matches_p): Update.
464 (tui_disasm_window::display_start_addr): New method.
465
01b1af32
TT
4662020-02-22 Tom Tromey <tom@tromey.com>
467
468 * NEWS: Add entry for gdb.register_window_type.
469 * tui/tui-layout.h (window_factory): New typedef.
470 (tui_register_window): Declare.
471 * tui/tui-layout.c (saved_tui_windows): New global.
472 (tui_apply_current_layout): Use it.
473 (tui_register_window): New function.
474 * python/python.c (do_start_initialization): Call
475 gdbpy_initialize_tui.
476 (python_GdbMethods): Add "register_window_type" function.
477 * python/python-internal.h (gdbpy_register_tui_window)
478 (gdbpy_initialize_tui): Declare.
479 * python/py-tui.c: New file.
480 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
481
fc96d20b
TT
4822020-02-22 Tom Tromey <tom@tromey.com>
483
484 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
485
935c78c0
TT
4862020-02-22 Tom Tromey <tom@tromey.com>
487
488 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
489 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
490 * tui/tui-data.c (tui_set_win_with_focus): Remove.
491 (tui_set_win_focus_to): Move from tui-win.c.
492
0240c8f1
TT
4932020-02-22 Tom Tromey <tom@tromey.com>
494
495 * tui/tui-layout.c (make_standard_window, get_locator_window): New
496 functions.
497 (known_window_types): New global.
498 (tui_get_window_by_name): Reimplement.
499 (initialize_known_windows): New function.
500 (validate_window_name): Rewrite.
501 (_initialize_tui_layout): Call initialize_known_windows.
502
fdb01f0c
TT
5032020-02-22 Tom Tromey <tom@tromey.com>
504
505 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
506 Remove constants.
507 * tui/tui-winsource.h (struct tui_source_window_base)
508 <tui_source_window_base>: Remove parameter.
509 * tui/tui-winsource.c
510 (tui_source_window_base::tui_source_window_base): Remove
511 parameter.
512 (tui_source_window_base::refill): Update.
513 * tui/tui-stack.h (struct tui_locator_window)
514 <tui_locator_window>: Update.
515 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
516 Default the constructor.
517 * tui/tui-regs.h (struct tui_data_item_window)
518 <tui_data_item_window>: Default the constructor.
519 (struct tui_data_window) <tui_data_window>: Likewise.
520 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
521 Default the constructor.
522 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
523 Default the constructor.
524 <type>: Remove.
525 (struct tui_win_info) <tui_win_info>: Default the constructor.
526 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
527 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
528 Default the constructor.
529
865a5aec
TT
5302020-02-22 Tom Tromey <tom@tromey.com>
531
532 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
533 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
534 * tui/tui-win.c (tui_resize_all): Don't call
535 tui_delete_invisible_windows.
536 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
537 done.
538 (tui_set_layout): Update.
539 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
540 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
541 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
542
e098d18c
TT
5432020-02-22 Tom Tromey <tom@tromey.com>
544
545 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
546 correctly.
547
eb9c8874
TT
5482020-02-22 Tom Tromey <tom@tromey.com>
549
550 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
551
7eed1a8e
TT
5522020-02-22 Tom Tromey <tom@tromey.com>
553
554 * tui/tui-winsource.h (struct tui_source_window_iterator)
555 <inner_iterator>: New etytypedef.
556 <tui_source_window_iterator>: Take "end" parameter.
557 <tui_source_window_iterator>: Take iterator.
558 <operator*, advance>: Update.
559 <m_iter>: Change type.
560 <m_end>: New field.
561 (struct tui_source_windows) <begin, end>: Update.
562 * tui/tui-layout.c (tui_windows): New global.
563 (tui_apply_current_layout): Clear tui_windows.
564 (tui_layout_window::apply): Update tui_windows.
565 * tui/tui-data.h (tui_windows): Declare.
566 (all_tui_windows): Now inline function.
567 (class tui_window_iterator, struct all_tui_windows): Remove.
568
7c043ba6
TT
5692020-02-22 Tom Tromey <tom@tromey.com>
570
571 PR tui/17850:
572 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
573 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
574 "height" argument.
575 (class tui_layout_window) <get_sizes>: Likewise.
576 (class tui_layout_split) <tui_layout_split>: Add "vertical"
577 argument.
578 <get_sizes>: Add "height" argument.
579 <m_vertical>: New field.
580 * tui/tui-layout.c (tui_layout_split::clone): Update.
581 (tui_layout_split::get_sizes): Add "height" argument.
582 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
583 (tui_new_layout_command): Parse "-horizontal".
584 (_initialize_tui_layout): Update help string.
585 (tui_layout_split::specification): Add "-horizontal" when needed.
586 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
587 argument.
588 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
589 New methods.
590
6bc56648
TT
5912020-02-22 Tom Tromey <tom@tromey.com>
592
593 * tui/tui-layout.h (enum tui_adjust_result): New.
594 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
595 (class tui_layout_window) <adjust_size>: Return
596 tui_adjust_result. Rewrite.
597 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
598 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
599
c22fef7e
TT
6002020-02-22 Tom Tromey <tom@tromey.com>
601
602 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
603 parameter and return types.
604 (class tui_layout_base) <specification>: Add "depth".
605 (class tui_layout_window) <specification>: Add "depth".
606 (class tui_layout_split) <specification>: Add "depth".
607 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
608 and return types.
609 (tui_new_layout_command): Parse sub-layouts.
610 (_initialize_tui_layout): Update help string.
611 (tui_layout_window::specification): Add "depth".
612 (add_layout_command): Update.
613
ee325b61
TT
6142020-02-22 Tom Tromey <tom@tromey.com>
615
616 * NEWS: Add "tui new-layout" item.
617 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
618 Add new-layout command to help text.
619 (validate_window_name): New function.
620 (tui_new_layout_command): New function.
621 (_initialize_tui_layout): Register "new-layout".
622 (tui_layout_window::specification): New method.
623 (tui_layout_window::specification): New method.
624 * tui/tui-layout.h (class tui_layout_base) <specification>: New
625 method.
626 (class tui_layout_window) <specification>: New method.
627 (class tui_layout_split) <specification>: New method.
628
416eb92d
TT
6292020-02-22 Tom Tromey <tom@tromey.com>
630
631 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
632 * tui/tui-win.c (window_name_completer): Update comment.
633 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
634 Declare method.
635 (class tui_layout_window) <replace_window>: Likewise.
636 (class tui_layout_split) <replace_window>: Likewise.
637 (tui_set_layout): Don't declare.
638 (tui_set_initial_layout): Declare function.
639 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
640 (asm_regs_layout): New globals.
641 (tui_current_layout, show_layout): Remove.
642 (tui_set_layout, tui_add_win_to_layout): Rewrite.
643 (find_layout, tui_apply_layout): New function.
644 (layout_completer): Remove.
645 (tui_next_layout): Reimplement.
646 (tui_next_layout_command): New function.
647 (tui_set_initial_layout, tui_prev_layout_command): New functions.
648 (tui_regs_layout): Reimplement.
649 (tui_regs_layout_command): New function.
650 (extract_display_start_addr): Rewrite.
651 (next_layout, prev_layout): Remove.
652 (tui_layout_window::replace_window): New method.
653 (tui_layout_split::replace_window): New method.
654 (destroy_layout): New function.
655 (layout_list): New global.
656 (add_layout_command): New function.
657 (initialize_layouts): Update.
658 (tui_layout_command): New function.
659 (_initialize_tui_layout): Install "layout" commands.
660 * tui/tui-data.h (enum tui_layout_type): Remove.
661 (tui_current_layout): Don't declare.
662
0dbc2fc7
TT
6632020-02-22 Tom Tromey <tom@tromey.com>
664
665 * tui/tui-regs.c (tui_reg_layout): Remove.
666 (tui_reg_command): Use tui_regs_layout.
667 * tui/tui-layout.h (tui_reg_command): Declare.
668 * tui/tui-layout.c (tui_reg_command): New function.
669
5afe342e
TT
6702020-02-22 Tom Tromey <tom@tromey.com>
671
672 * tui/tui.c (tui_rl_delete_other_windows): Call
673 tui_remove_some_windows.
674 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
675 Declare method.
676 (class tui_layout_window) <remove_windows>: New method.
677 (class tui_layout_split) <remove_windows>: Declare.
678 (tui_remove_some_windows): Declare.
679 * tui/tui-layout.c (tui_remove_some_windows): New function.
680 (tui_layout_split::remove_windows): New method.
681
427326a8
TT
6822020-02-22 Tom Tromey <tom@tromey.com>
683
684 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
685 * tui/tui-layout.h (tui_next_layout): Declare.
686 * tui/tui-layout.c (tui_next_layout): New function.
687
3fe12b6d
TT
6882020-02-22 Tom Tromey <tom@tromey.com>
689
690 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
691 correct coordinates.
692
59b8b5d2
TT
6932020-02-22 Tom Tromey <tom@tromey.com>
694
695 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
696 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
697 DATA_WIN case.
698
2a3d458b
TT
6992020-02-22 Tom Tromey <tom@tromey.com>
700
701 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
702 TUI_DISASM_WIN, not tui_win_list.
703
3f0cbb04
TT
7042020-02-22 Tom Tromey <tom@tromey.com>
705
706 * valprint.c (generic_val_print_enum_1)
707 (val_print_type_code_flags): Style member names.
708 * rust-lang.c (val_print_struct, rust_print_enum)
709 (rust_print_struct_def, rust_internal_print_type): Style member
710 names.
711 * p-valprint.c (pascal_object_print_value_fields): Style member
712 names. Only call fprintf_symbol_filtered for static members.
713 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
714 * f-valprint.c (f_val_print): Style member names.
715 * f-typeprint.c (f_type_print_base): Style member names.
716 * cp-valprint.c (cp_print_value_fields): Style member names. Only
717 call fprintf_symbol_filtered for static members.
718 (cp_print_class_member): Style member names.
719 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
720 member names.
721 * ada-valprint.c (ada_print_scalar): Style enum names.
722 (ada_val_print_enum): Likewise.
723 * ada-typeprint.c (print_enum_type): Style enum names.
724
d4d947ae
TT
7252020-02-21 Tom Tromey <tom@tromey.com>
726
727 * psympriv.h (struct partial_symtab): Update comment.
728
e94e944b
TT
7292020-02-21 Tom Tromey <tromey@adacore.com>
730
731 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
732 type is CORE_ADDR.
733
1eb73179
TV
7342020-02-21 Tom de Vries <tdevries@suse.de>
735
736 PR gdb/25534
737 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
738 if dependencies[i]->user != NULL.
739
4f180d53
AT
7402020-02-21 Ali Tamur <tamur@google.com>
741
742 * dwarf2/read.c (dwarf2_name): Add null check.
743
22b6cd70
TT
7442020-02-20 Tom Tromey <tom@tromey.com>
745
746 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
747 ">=", in binary search.
748 (dwarf2_find_containing_comp_unit): New overload.
749 (run_test): New self-test.
750 (_initialize_dwarf2_read): Register new test.
751
bd0cf5a6
NC
7522020-02-20 Nelson Chu <nelson.chu@sifive.com>
753
754 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
755 * riscv-tdep.h: Likewise.
756 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
757 rv32-only CSR.
758 * features/riscv/64bit-csr.xml: Regenerated.
759
3f702acd
SDJ
7602020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
761 Tom Tromey <tom@tromey.com>
762
763 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
764 of 'fputc_unfiltered'.
765 (putchar_unfiltered): Call 'fputc_unfiltered'.
766 (fputc_unfiltered): Call 'fputs_unfiltered'.
767
d13c7322
AB
7682020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * config.in: Regenerate.
771 * configure: Regenerate.
772 * configure.ac: Add --with-python-libdir option.
773 * main.c: Use WITH_PYTHON_LIBDIR.
774
869d8950
TT
7752020-02-19 Tom Tromey <tom@tromey.com>
776
777 * symtab.c (general_symbol_info::compute_and_set_names): Use
778 obstack_strndup. Simplify call to symbol_set_demangled_name.
779
298e9637
SM
7802020-02-19 Simon Marchi <simon.marchi@efficios.com>
781
782 * dwarf2/read.c (allocate_signatured_type_table,
783 allocate_dwo_unit_table, allocate_type_unit_groups_table,
784 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
785 Remove objfile parameter, update all callers.
786
08410482
DE
7872020-02-19 Doug Evans <dje@google.com>
788
789 PR rust/25535
790 * rust-lang.c (rust_print_enum): Apply embedded_offset to
791 rust_enum_variant calculation.
792
dfdeeca1
TT
7932020-02-19 Tom Tromey <tromey@adacore.com>
794
795 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
796
2ef5453b
TT
7972020-02-19 Tom Tromey <tromey@adacore.com>
798
799 * ada-lang.c (cache_symbol): Use obstack_strdup.
800
9f1528a1
AB
8012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * configure: Regenerate.
804
d3c22fa8
TT
8052020-02-19 Tom Tromey <tromey@adacore.com>
806
807 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
808 NULL check.
809
bf84f706
MR
8102020-02-19 Maciej W. Rozycki <macro@wdc.com>
811
812 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
813
d1c9b20f
AB
8142020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
815
816 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
817 if GDBSERVER is not defined.
818 (riscv_tdesc_cache): Likewise, also store const target_desc.
819 (STATIC_IN_GDB): Define.
820 (riscv_create_target_description): Update declaration with
821 STATIC_IN_GDB.
822 (riscv_lookup_target_description): New function, only define if
823 GDBSERVER is not defined.
824 * arch/riscv.h (riscv_create_target_description): Declare only
825 when GDBSERVER is defined.
826 (riscv_lookup_target_description): New declaration when GDBSERVER
827 is not defined.
828 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
829 (riscv_linux_read_features): ...this, and return
830 riscv_gdbarch_features instead of target_desc.
831 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
832 (riscv_linux_read_description): Rename to...
833 (riscv_linux_read_features): ...this.
834 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
835 Update to use riscv_gdbarch_features and
836 riscv_lookup_target_description.
837 * riscv-tdep.c (riscv_find_default_target_description): Use
838 riscv_lookup_target_description instead of
839 riscv_create_target_description.
840
373d7ac0
SM
8412020-02-18 Simon Marchi <simon.marchi@efficios.com>
842
843 * valprint.c (generic_val_print_enum_1): When printing a flag
844 enum with value 0 and there is no enumerator with value 0, print
845 just "0" instead of "(unknown: 0x0)".
846
b29a2df0
SM
8472020-02-18 Simon Marchi <simon.marchi@efficios.com>
848
849 * valprint.c (generic_val_print_enum_1): Print unknown part of
850 flag enum in hex.
851
6740f0cc
SM
8522020-02-18 Simon Marchi <simon.marchi@efficios.com>
853
854 * dwarf2/read.c (update_enumeration_type_from_children): Allow
855 flag enums to contain duplicate enumerators.
856 * valprint.c (generic_val_print_enum_1): Update comment.
857
edd45eb0
SM
8582020-02-18 Simon Marchi <simon.marchi@efficios.com>
859
860 * dwarf2/read.c: Include "count-one-bits.h".
861 (update_enumeration_type_from_children): If an enumerator has
862 multiple bits set, don't treat the enumeration as a "flag enum".
863 * valprint.c (generic_val_print_enum_1): Assert that enumerators
864 of flag enums have 0 or 1 bit set.
865
6d0cf446
BE
8662020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
867
868 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
869 conversion.
870 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
871 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
872 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
873 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
874 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
875
7001c1b7
SM
8762020-02-18 Simon Marchi <simon.marchi@efficios.com>
877
878 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
879
fdb61c6c
SM
8802020-02-14 Simon Marchi <simon.marchi@efficios.com>
881
882 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
883 displaced_step_closure_up.
884 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
885 (struct displaced_step_closure_up):
886 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
887 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
888 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
889 Likewise.
890 * gdbarch.sh (displaced_step_copy_insn): Likewise.
891 * gdbarch.c, gdbarch.h: Re-generate.
892 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
893 displaced_step_closure_up.
894 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
895 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
896 * infrun.h (displaced_step_closure_up): New type alias.
897 (struct displaced_step_inferior_state) <step_closure>: Change
898 type to displaced_step_closure_up.
899 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
900 displaced_step_closure_up.
901 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
902
a4a38eb4
TT
9032020-02-14 Tom Tromey <tom@tromey.com>
904
905 * minidebug.c (gnu_debug_key): New global.
906 (find_separate_debug_file_in_section): Use it.
907
e8217e61
SM
9082020-02-14 Simon Marchi <simon.marchi@efficios.com>
909
910 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
911 std::unique_ptr.
912 * gdbarch.c: Re-generate.
913 * gdbarch.h: Re-generate.
914 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
915 change.
916 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
917 type to std::unique_ptr.
918 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
919 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
920 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
921 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
922 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
923 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
924 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
925 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
926 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
927
d8d83535
SM
9282020-02-14 Simon Marchi <simon.marchi@efficios.com>
929
930 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
931 std::unique_ptr.
932 (displaced_step_clear): Rename to...
933 (displaced_step_reset): ... this. Just call displaced->reset ().
934 (displaced_step_clear_cleanup): Rename to...
935 (displaced_step_reset_cleanup): ... this.
936 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
937 (displaced_step_fixup): Likewise.
938 (resume_1): Likewise.
939 (handle_inferior_event): Restore child's memory before calling
940 displaced_step_fixup on the parent.
941 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
942 to std::unique_ptr.
943 <step_closure>: Change type to std::unique_ptr.
944
5f661e03
SM
9452020-02-14 Simon Marchi <simon.marchi@efficios.com>
946
947 * arm-tdep.c: Include count-one-bits.h.
948 (cleanup_block_store_pc): Use count_one_bits.
949 (cleanup_block_load_pc): Use count_one_bits.
950 (arm_copy_block_xfer): Use count_one_bits.
951 (thumb2_copy_block_xfer): Use count_one_bits.
952 (thumb_copy_pop_pc_16bit): Use count_one_bits.
953 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
954 (thumb_get_next_pcs_raw): Use count_one_bits.
955 (arm_get_next_pcs_raw): Use count_one_bits_l.
956 * arch/arm.c (bitcount): Remove.
957 * arch/arm.h (bitcount): Remove.
958
8084e579
TT
9592020-02-14 Tom Tromey <tromey@adacore.com>
960
961 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
962 Update.
963 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
964 * dwarf2/loc.c (call_site_find_chain_1): Return
965 unique_xmalloc_ptr.
966 (call_site_find_chain): Likewise.
967
258bf0ee
RB
9682020-02-14 Richard Biener <rguenther@suse.de>
969
970 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
971 on expression with division operators.
972
f98a8458
AKS
9732020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
974
975 * MAINTAINERS (Write After Approval): Adding myself.
976
d1437c0e
TT
9772020-02-12 Tom Tromey <tom@tromey.com>
978
979 * event-loop.c (event_data, gdb_event, event_handler_func):
980 Remove.
981
3d4560f7
TT
9822020-02-12 Tom Tromey <tom@tromey.com>
983
984 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
985 (dwarf2_frame_objfile_data): Add comment.
986 (find_comp_unit, set_comp_unit): New functions.
987 (dwarf2_frame_find_fde): Use find_comp_unit.
988 (dwarf2_build_frame_info): Use set_comp_unit.
989
21982304
TT
9902020-02-12 Tom Tromey <tom@tromey.com>
991
992 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
993 (comp_unit): Don't initialize objfile.
994 (execute_cfa_program): Add text_offset parameter.
995 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
996 (dwarf2_frame_cache): Update.
997 (dwarf2_build_frame_info): Don't set "objfile" member.
998
4debb237
TT
9992020-02-12 Tom Tromey <tom@tromey.com>
1000
1001 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
1002 (decode_frame_entry): Likewise.
1003 (dwarf2_build_frame_info): Update.
1004
0d404d44
TT
10052020-02-12 Tom Tromey <tom@tromey.com>
1006
1007 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
1008 (decode_frame_entry_1): Use the comp_unit obstack.
1009
a7a3ae5c
TT
10102020-02-12 Tom Tromey <tom@tromey.com>
1011
1012 * dwarf2/frame.c (struct comp_unit): Add initializers and
1013 constructor.
1014 (dwarf2_frame_objfile_data): Store a comp_unit.
1015 (dwarf2_frame_find_fde): Update.
1016 (dwarf2_build_frame_info): Use "new".
1017
a9d65418
TT
10182020-02-12 Tom Tromey <tom@tromey.com>
1019
1020 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
1021 (dwarf2_fde_table): Typedef for std::vector.
1022 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
1023 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
1024 (decode_frame_entry): Update.
1025 (dwarf2_build_frame_info): Use "new".
1026
7559c217
CB
10272020-02-12 Christian Biesinger <cbiesinger@google.com>
1028
1029 * arm-tdep.c (arm_gdbarch_init): Update.
1030 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
1031 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
1032 have_neon, is_m>: Change to bool.
1033
aeefc73c
CB
10342020-02-12 Christian Biesinger <cbiesinger@google.com>
1035
1036 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
1037
d27b8e5f
TT
10382020-02-12 Tom Tromey <tom@tromey.com>
1039
1040 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
1041
cd5900f3
HD
10422020-02-12 Hannes Domani <ssbssa@yahoo.de>
1043
1044 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
1045 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
1046
f056b22b
TT
10472020-02-11 Tom Tromey <tom@tromey.com>
1048
1049 * psymtab.h: Update comment.
1050
f92ff6b5
TT
10512020-02-11 Tom Tromey <tom@tromey.com>
1052
1053 * gdb_obstack.h (struct auto_obstack): Use
1054 DISABLE_COPY_AND_ASSIGN.
1055
3fd6912b
TT
10562020-02-11 Tom Tromey <tom@tromey.com>
1057
1058 * dwarf2/frame.h (struct objfile): Don't forward declare.
1059
69ed9b74
CB
10602020-02-11 Christian Biesinger <cbiesinger@google.com>
1061
1062 * cris-tdep.c (cris_supply_gregset): Change signature to match
1063 what struct regset expects.
1064 (cris_regset): New struct.
1065 (fetch_core_registers): Remove.
1066 (cris_iterate_over_regset_sections): New function.
1067 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
1068 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
1069
bda874f6
CB
10702020-02-11 Christian Biesinger <cbiesinger@google.com>
1071
1072 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
1073 registers.
1074
754e1564
CB
10752020-02-11 Christian Biesinger <cbiesinger@google.com>
1076
1077 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
1078
8ddd8e0e
SM
10792020-02-11 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * configure: Re-generate.
1082
898e7f60
SM
10832020-02-11 Simon Marchi <simon.marchi@efficios.com>
1084
1085 * configure: Re-generate.
1086
58df732b
SM
10872020-02-11 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * acinclude: Update warning.m4 path.
1090 * warning.m4: Move to gdbsupport.
1091
da5bd37e
TT
10922020-02-11 Tom Tromey <tromey@adacore.com>
1093
1094 * remote.c (remote_console_output): Update.
1095 * printcmd.c (printf_command): Update.
1096 * event-loop.c (gdb_wait_for_event): Update.
1097 * linux-nat.c (sigchld_handler): Update.
1098 * remote-sim.c (gdb_os_write_stdout): Update.
1099 (gdb_os_flush_stdout): Update.
1100 (gdb_os_flush_stderr): Update.
1101 (gdb_os_write_stderr): Update.
1102 * exceptions.c (print_exception): Update.
1103 * remote-fileio.c (remote_fileio_func_read): Update.
1104 (remote_fileio_func_write): Update.
1105 * tui/tui.c (tui_enable): Update.
1106 * tui/tui-interp.c (tui_interp::init): Update.
1107 * utils.c (init_page_info): Update.
1108 (putchar_unfiltered, fputc_unfiltered): Update.
1109 (gdb_flush): Update.
1110 (emit_style_escape): Update.
1111 (flush_wrap_buffer, fputs_maybe_filtered): Update.
1112 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
1113 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
1114 (stderr_file::write): Update.
1115 (stderr_file::puts): Update.
1116 * ui-file.h (ui_file_isatty, ui_file_write)
1117 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
1118 (ui_file_puts): Don't declare.
1119
85f0dd3c
TV
11202020-02-10 Tom de Vries <tdevries@suse.de>
1121
1122 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
1123 sentinel to char *.
1124
2e927613
TV
11252020-02-09 Tom de Vries <tdevries@suse.de>
1126
1127 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
1128 filename if it matches "<artificial>".
1129
6bafc845
HD
11302020-02-09 Hannes Domani <ssbssa@yahoo.de>
1131
1132 * windows-tdep.c (struct enum_value_name): New struct.
1133 (create_enum): New function.
1134 (windows_get_siginfo_type): Create and use enum types.
1135
7928d571
HD
11362020-02-09 Hannes Domani <ssbssa@yahoo.de>
1137
1138 * NEWS: Mention $_siginfo support for Windows.
1139 * windows-nat.c (handle_exception): Set siginfo_er.
1140 (windows_nat_target::mourn_inferior): Reset siginfo_er.
1141 (windows_xfer_siginfo): New function.
1142 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
1143 * windows-tdep.c (struct windows_gdbarch_data): New struct.
1144 (init_windows_gdbarch_data): New function.
1145 (get_windows_gdbarch_data): New function.
1146 (windows_get_siginfo_type): New function.
1147 (windows_init_abi): Register windows_get_siginfo_type.
1148 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
1149
6751ebae
TT
11502020-02-08 Tom Tromey <tom@tromey.com>
1151
1152 * dwarf2/read.c (class cutu_reader) <cutu_reader,
1153 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
1154 <keep>: Declare method.
1155 <m_keep>: Remove member.
1156 <~cutu_reader>: Remove.
1157 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1158 (cutu_reader::cutu_reader): Update.
1159 (cutu_reader::keep): Rename from ~cutu_reader.
1160 (process_psymtab_comp_unit, build_type_psymtabs_1)
1161 (process_skeletonless_type_unit, load_partial_comp_unit)
1162 (load_full_comp_unit, dwarf2_read_addr_index)
1163 (read_signatured_type): Update.
1164
135f5437
TT
11652020-02-08 Tom Tromey <tom@tromey.com>
1166
1167 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
1168 "want_partial_unit" parameter.
1169 (process_psymtab_comp_unit): Change want_partial_unit to bool.
1170 Inline check for DW_TAG_partial_unit.
1171 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
1172
9f66ff1c
TT
11732020-02-08 Tom Tromey <tom@tromey.com>
1174
1175 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
1176 read.c.
1177 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
1178 read.c.
1179
c8a7a66f
TT
11802020-02-08 Tom Tromey <tom@tromey.com>
1181
1182 * dwarf2/read.c (read_address): Move to comp-unit.c.
1183 (dwarf2_rnglists_process, dwarf2_ranges_process)
1184 (read_attribute_value, dwarf_decode_lines_1)
1185 (var_decode_location, decode_locdesc): Update.
1186 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
1187 read.c. Remove "cu" parameter.
1188 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
1189 method.
1190
8266302d
TT
11912020-02-08 Tom Tromey <tom@tromey.com>
1192
1193 * dwarf2/read.c (read_attribute_value, read_indirect_string)
1194 (read_indirect_line_string): Update.
1195 * dwarf2/comp-unit.c (read_offset): Remove.
1196 (read_comp_unit_head): Update.
1197 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
1198 method.
1199 (read_offset): Don't declare.
1200
4057dfde
TT
12012020-02-08 Tom Tromey <tom@tromey.com>
1202
1203 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
1204 * dwarf2/read.c (struct comp_unit_head): Move to
1205 dwarf2/comp-unit.h.
1206 (enum class rcuh_kind): Move to comp-unit.h.
1207 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
1208 (read_comp_unit_head, error_check_comp_unit_head)
1209 (read_and_check_comp_unit_head): Move to comp-unit.c.
1210 (read_offset, dwarf_unit_type_name): Likewise.
1211 (create_debug_type_hash_table, read_cutu_die_from_dwo)
1212 (cutu_reader::cutu_reader, read_call_site_scope)
1213 (find_partial_die, follow_die_offset): Update.
1214 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
1215
24aa364d
TT
12162020-02-08 Tom Tromey <tom@tromey.com>
1217
1218 * dwarf2/read.c (read_offset_1): Move to leb.c.
1219 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
1220 (dwarf_decode_macro_bytes): Update.
1221 * dwarf2/leb.c (read_offset): Rename; move from read.c.
1222 * dwarf2/leb.h (read_offset): Declare.
1223
2c7d5afc
TT
12242020-02-08 Tom Tromey <tom@tromey.com>
1225
1226 * dwarf2/read.c (dwarf2_section_size): Remove.
1227 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
1228 Update.
1229 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
1230
4075cb26
TT
12312020-02-08 Tom Tromey <tom@tromey.com>
1232
1233 * dwarf2/read.c (read_initial_length): Move to leb.c.
1234 * dwarf2/leb.h (read_initial_length): Declare.
1235 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
1236 handle_nonstd parameter.
1237 * dwarf2/frame.c (read_initial_length): Remove.
1238 (decode_frame_entry_1): Update.
1239
09ba997f
TT
12402020-02-08 Tom Tromey <tom@tromey.com>
1241
1242 * dwarf2/loc.c (dwarf2_find_location_expression)
1243 (dwarf_evaluate_loc_desc::get_tls_address)
1244 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
1245 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
1246 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
1247 (dwarf2_compile_property_to_c)
1248 (dwarf2_loc_desc_get_symbol_read_needs)
1249 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
1250 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
1251 (loclist_describe_location, loclist_tracepoint_var_ref)
1252 (loclist_generate_c_location): Update.
1253 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1254 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
1255 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
1256 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
1257 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
1258 (dwarf2_per_cu_data::addr_size)
1259 (dwarf2_per_cu_data::ref_addr_size)
1260 (dwarf2_per_cu_data::text_offset)
1261 (dwarf2_per_cu_data::addr_type): Now methods.
1262 (per_cu_header_read_in): Make per_cu "const".
1263 (dwarf2_version): Remove.
1264 (dwarf2_per_cu_data::int_type): Now a method.
1265 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
1266 (set_die_type, read_array_type, read_subrange_index_type)
1267 (read_tag_string_type, read_subrange_type): Update.
1268 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
1269 offset_size, ref_addr_size, text_offset, addr_type, version,
1270 objfile, int_type, addr_sized_int_type>: Declare methods.
1271
96c738c0
TT
12722020-02-08 Tom Tromey <tom@tromey.com>
1273
1274 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
1275 Move earlier.
1276
8fdd972c
TT
12772020-02-08 Tom Tromey <tom@tromey.com>
1278
1279 * dwarf2/read.h (dwarf_line_debug): Declare.
1280 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
1281 * dwarf2/read.c: Move line_header code to new files.
1282 (dwarf_line_debug): No longer static.
1283 * dwarf2/line-header.c: New file.
1284 * dwarf2/line-header.h: New file.
1285
03075812
TT
12862020-02-08 Tom Tromey <tom@tromey.com>
1287
1288 * dwarf2/read.c (struct line_header) <file_full_name,
1289 file_file_name>: Return unique_xmalloc_ptr.
1290 (line_header::file_file_name): Update.
1291 (line_header::file_full_name): Update.
1292 (dw2_get_file_names_reader): Update.
1293 (macro_start_file): Update.
1294
bb822404
TT
12952020-02-08 Tom Tromey <tom@tromey.com>
1296
1297 * dwarf2/read.c (struct line_header) <file_full_name,
1298 file_file_name>: Declare methods.
1299 (dw2_get_file_names_reader): Update.
1300 (file_file_name): Now a method.
1301 (file_full_name): Likewise.
1302 (macro_start_file): Update.
1303
009b64fc
TT
13042020-02-08 Tom Tromey <tom@tromey.com>
1305
1306 * dwarf2/read.c (dwarf_always_disassemble)
1307 (show_dwarf_always_disassemble): Move to loc.c.
1308 (_initialize_dwarf2_read): Move "always-disassemble" registration
1309 to loc.c.
1310 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
1311 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
1312 static.
1313 (show_dwarf_always_disassemble): Move from read.c.
1314 (_initialize_dwarf2loc): Move always-disassemble from read.c.
1315
5895093f
TT
13162020-02-08 Tom Tromey <tom@tromey.com>
1317
1318 * dwarf2/read.c (~dwarf2_per_objfile): Update.
1319 (create_quick_file_names_table): Return htab_up.
1320 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
1321 Update.
1322 * dwarf2/read.h (struct dwarf2_per_objfile)
1323 <quick_file_names_table>: Now htab_up.
1324
b3b32279
TT
13252020-02-08 Tom Tromey <tom@tromey.com>
1326
1327 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
1328
1d33d811
TT
13292020-02-08 Tom Tromey <tom@tromey.com>
1330
1331 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
1332 Rewrite.
1333 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
1334 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
1335 (abbrev_table::abbrev_table): No longer inline.
1336 (ABBREV_HASH_SIZE): Remove.
1337 (abbrev_table::m_abbrevs): Now an htab_up.
1338
86de1d91
TT
13392020-02-08 Tom Tromey <tom@tromey.com>
1340
1341 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
1342 (cutu_reader): Update.
1343 (build_type_psymtabs_1): Update.
1344 * dwarf2/abbrev.c (abbrev_table::read): Rename.
1345 (abbrev_table::alloc_abbrev): Update.
1346 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
1347 (abbrev_table::read): New static method, renamed from
1348 abbrev_table_read_table.
1349 (abbrev_table::alloc_abbrev)
1350 (abbrev_table::add_abbrev): Now private.
1351 (abbrev_table::abbrev_table): Now private.
1352 (abbrev_table::m_abbrev_obstack): Now private. Rename.
1353
0335378b
TT
13542020-02-08 Tom Tromey <tom@tromey.com>
1355
1356 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
1357 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
1358 htab_up.
1359
48b490f2
TT
13602020-02-08 Tom Tromey <tom@tromey.com>
1361
1362 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
1363 htab_up.
1364 (lookup_dwo_unit_in_dwp): Update.
1365 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
1366 on obstack.
1367
bc68fb19
TT
13682020-02-08 Tom Tromey <tom@tromey.com>
1369
1370 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
1371 obstack.
1372
d15acc42
TT
13732020-02-08 Tom Tromey <tom@tromey.com>
1374
1375 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
1376 line_header_hash.
1377 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
1378 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
1379 Change type to htab_up.
1380
eaa5fa8b
TT
13812020-02-08 Tom Tromey <tom@tromey.com>
1382
1383 * dwarf2/read.c (allocate_type_unit_groups_table): Return
1384 htab_up. Don't allocate on obstack.
1385 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
1386 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
1387 Change type to htab_up.
1388
b0b6a987
TT
13892020-02-08 Tom Tromey <tom@tromey.com>
1390
1391 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
1392 Change type to htab_up.
1393 * dwarf2/read.c (create_signatured_type_table_from_index)
1394 (create_signatured_type_table_from_debug_names)
1395 (create_all_type_units, add_type_unit)
1396 (lookup_dwo_signatured_type, lookup_signatured_type)
1397 (process_skeletonless_type_unit): Update.
1398 (create_debug_type_hash_table, create_debug_types_hash_table):
1399 Change type of types_htab.
1400 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
1401 htab_up. Don't allocate on obstack.
1402 (create_cus_hash_table): Change type of cus_htab parameter.
1403 (struct dwo_file) <cus, tus>: Now htab_up.
1404 (lookup_dwo_signatured_type, lookup_dwo_cutu)
1405 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
1406 (queue_and_load_all_dwo_tus): Update.
1407 * dwarf2/index-write.c (write_gdbindex): Update.
1408 (write_debug_names): Update.
1409
39856def
TT
14102020-02-08 Tom Tromey <tom@tromey.com>
1411
1412 * dwarf2/read.h (struct dwarf2_queue_item): Move from
1413 dwarf2/read.c. Remove "next" member. Add constructor ntad
1414 destructor.
1415 (struct dwarf2_per_objfile) <queue>: New member.
1416 * dwarf2/read.c (struct dwarf2_queue_item): Move to
1417 dwarf2/read.h.
1418 (dwarf2_queue, dwarf2_queue_tail): Remove.
1419 (class dwarf2_queue_guard): Add parameter to constructor. Use
1420 DISABLE_COPY_AND_ASSIGN.
1421 <m_per_objfile>: New member.
1422 <~dwarf2_queue_guard>: Rewrite.
1423 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
1424 Update.
1425 (~dwarf2_queue_item): New.
1426
3e225074
TT
14272020-02-08 Tom Tromey <tom@tromey.com>
1428
1429 * dwarf2/read.c (struct die_info) <has_children>: New member.
1430 (dw2_get_file_names_reader): Remove has_children.
1431 (dw2_get_file_names): Update.
1432 (read_cutu_die_from_dwo): Remove has_children.
1433 (cutu_reader::init_tu_and_read_dwo_dies)
1434 (cutu_reader::cutu_reader): Update.
1435 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
1436 Remove has_children.
1437 (build_type_psymtabs_1, process_skeletonless_type_unit)
1438 (load_partial_comp_unit, load_full_comp_unit): Update.
1439 (create_dwo_cu_reader): Remove has_children.
1440 (create_cus_hash_table, read_die_and_children): Update.
1441 (read_full_die_1,read_full_die): Remove has_children.
1442 (read_signatured_type): Update.
1443 (class cutu_reader) <has_children>: Remove.
1444
82ca8957
TT
14452020-02-08 Tom Tromey <tom@tromey.com>
1446
1447 * dwarf2/expr.c: Rename from dwarf2expr.c.
1448 * dwarf2/expr.h: Rename from dwarf2expr.h.
1449 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
1450 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
1451 * dwarf2/frame.c: Rename from dwarf2-frame.c.
1452 * dwarf2/frame.h: Rename from dwarf2-frame.h.
1453 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
1454 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
1455 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
1456 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
1457 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
1458 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
1459 * dwarf2/loc.c: Rename from dwarf2loc.c.
1460 * dwarf2/loc.h: Rename from dwarf2loc.h.
1461 * dwarf2/read.c: Rename from dwarf2read.c.
1462 * dwarf2/read.h: Rename from dwarf2read.h.
1463 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
1464 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
1465 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
1466 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
1467 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
1468 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
1469 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
1470 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
1471 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
1472 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
1473 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
1474 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
1475 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
1476 Update.
1477 * Makefile.in (COMMON_SFILES): Update.
1478 (HFILES_NO_SRCDIR): Update.
1479
9e35d499
TT
14802020-02-08 Tom Tromey <tom@tromey.com>
1481
1482 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
1483 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
1484
1eba2311
TT
14852020-02-08 Tom Tromey <tom@tromey.com>
1486
1487 * dwarf2read.h (struct die_info): Don't declare.
1488
e41c2da2
TT
14892020-02-08 Tom Tromey <tom@tromey.com>
1490
1491 * dwarf2read.h (die_info_ptr): Remove typedef.
1492
4fc6c0d5
TT
14932020-02-08 Tom Tromey <tom@tromey.com>
1494
1495 * dwarf2read.c (read_call_site_scope)
1496 (handle_data_member_location, dwarf2_add_member_fn)
1497 (mark_common_block_symbol_computed, read_common_block)
1498 (attr_to_dynamic_prop, partial_die_info::read)
1499 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
1500 (dwarf2_symbol_mark_computed, set_die_type): Update.
1501 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
1502 method.
1503 (attr_form_is_block): Don't declare.
1504 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
1505
cd6c91b4
TT
15062020-02-08 Tom Tromey <tom@tromey.com>
1507
1508 * dwarf2read.c (dwarf2_find_base_address, )
1509 (read_call_site_scope, rust_containing_type)
1510 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1511 (handle_data_member_location, dwarf2_add_member_fn)
1512 (get_alignment, read_structure_type, process_structure_scope)
1513 (mark_common_block_symbol_computed, read_common_block)
1514 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
1515 (partial_die_info::read, read_attribute_value, new_symbol)
1516 (lookup_die_type, dwarf2_get_ref_die_offset)
1517 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
1518 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
1519 (dwarf2_symbol_mark_computed): Update.
1520 * dwarf2/attribute.h (struct attribute) <value_as_address,
1521 form_is_section_offset, form_is_constant, form_is_ref>: Declare
1522 methods.
1523 (value_as_address, attr_form_is_section_offset)
1524 (attr_form_is_constant, attr_form_is_ref): Don't declare.
1525 * dwarf2/attribute.c (attribute::value_as_address)
1526 (attribute::form_is_section_offset, attribute::form_is_constant)
1527 (attribute::form_is_ref): Now methods.
1528
162dce55
TT
15292020-02-08 Tom Tromey <tom@tromey.com>
1530
1531 * dwarf2read.c (struct attribute, DW_STRING)
1532 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
1533 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
1534 (attr_form_is_block, attr_form_is_section_offset)
1535 (attr_form_is_constant, attr_form_is_ref): Move.
1536 * dwarf2/attribute.h: New file.
1537 * dwarf2/attribute.c: New file, from dwarf2read.c.
1538 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
1539
3054dd54
TT
15402020-02-08 Tom Tromey <tom@tromey.com>
1541
1542 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
1543 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
1544 Move.
1545 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
1546 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
1547 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
1548 abbrev.c.
1549 * dwarf2/abbrev.h: New file.
1550 * dwarf2/abbrev.c: New file, from dwarf2read.c.
1551 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
1552
96b79293
TT
15532020-02-08 Tom Tromey <tom@tromey.com>
1554
1555 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
1556 (dwarf2_section_size, dwarf2_get_section_info)
1557 (create_signatured_type_table_from_debug_names)
1558 (create_addrmap_from_aranges, read_debug_names_from_section)
1559 (get_gdb_index_contents_from_section, read_comp_unit_head)
1560 (error_check_comp_unit_head, read_abbrev_offset)
1561 (create_debug_type_hash_table, init_cu_die_reader)
1562 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
1563 (read_comp_units_from_section, create_cus_hash_table)
1564 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
1565 (create_dwp_v2_section, dwarf2_rnglists_process)
1566 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
1567 (abbrev_table_read_table, read_indirect_string_at_offset_from)
1568 (read_indirect_string_from_dwz, read_addr_index_1)
1569 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
1570 (dwarf_decode_macro_bytes, dwarf_decode_macros)
1571 (fill_in_loclist_baton): Update.
1572 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
1573 get_containing_section, get_bfd_owner, get_bfd_section,
1574 get_file_name, get_id, get_flags, empty, read>: Declare methods.
1575 (dwarf2_read_section, get_section_name, get_section_file_name)
1576 (get_containing_section, get_section_bfd_owner)
1577 (get_section_bfd_section, get_section_name, get_section_file_name)
1578 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
1579 declare.
1580 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
1581 (dwarf2_section_info::get_bfd_owner)
1582 (dwarf2_section_info::get_bfd_section)
1583 (dwarf2_section_info::get_name)
1584 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
1585 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
1586 (dwarf2_section_info::read): Now methods.
1587 * dwarf-index-write.c (class debug_names): Update.
1588
2c86cff9
TT
15892020-02-08 Tom Tromey <tom@tromey.com>
1590
1591 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
1592 Move to dwarf2/section.h.
1593 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
1594 (get_section_bfd_section, get_section_name)
1595 (get_section_file_name, get_section_id, get_section_flags)
1596 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
1597 dwarf2/section.c.
1598 * dwarf2/section.h: New file.
1599 * dwarf2/section.c: New file, from dwarf2read.c.
1600 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
1601
f4382c45
TT
16022020-02-08 Tom Tromey <tom@tromey.com>
1603
1604 * dwarf2read.h (read_unsigned_leb128): Don't declare.
1605 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
1606 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
1607 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
1608 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
1609 * dwarf2/leb.h: New file, from dwarf2read.c.
1610 * dwarf2/leb.c: New file, from dwarf2read.c.
1611 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
1612 Remove.
1613 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
1614 (COMMON_SFILES): Add dwarf2/leb.c.
1615
01840b7a
JB
16162020-02-08 Joel Brobecker <brobecker@adacore.com>
1617
1618 GDB 9.1 released.
1619
dfcb27e4
IB
16202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
1621
1622 PR gdb/25190:
1623 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
1624 * gdb/remote.c (remote_console_output): Update.
1625 * gdb/ui-file.c (fputs_unfiltered): Rename to...
1626 (ui_file_puts): ...this.
1627 * gdb/ui-file.h (ui_file_puts): Add declaration.
1628 * gdb/utils.c (emit_style_escape): Update.
1629 (flush_wrap_buffer): Update.
1630 (fputs_maybe_filtered): Update.
1631 (fputs_unfiltered): Add function.
1632
faa17681
IB
16332020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
1634
1635 * gdb/event-loop.c (gdb_wait_for_event): Update.
1636 * gdb/printcmd.c (printf_command): Update.
1637 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
1638 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
1639 (gdb_os_flush_stderr): Update.
1640 * gdb/remote.c (remote_console_output): Update.
1641 * gdb/ui-file.c (gdb_flush): Rename to...
1642 (ui_file_flush): ...this.
1643 (stderr_file::write): Update.
1644 (stderr_file::puts): Update.
1645 * gdb/ui-file.h (gdb_flush): Rename to...
1646 (ui_file_flush): ...this.
1647 * gdb/utils.c (gdb_flush): Add function.
1648 * gdb/utils.h (gdb_flush): Add declaration.
1649
5abbbe1d
TT
16502020-02-07 Tom Tromey <tromey@adacore.com>
1651
1652 PR breakpoints/24915:
1653 * source.c (find_and_open_source): Do not check basenames_may_differ.
1654
919adfe8
TT
16552020-02-07 Tom Tromey <tom@tromey.com>
1656
1657 * README: Update gdbserver documentation.
1658 * gdbserver: Move to top level.
1659 * configure.tgt (build_gdbserver): Remove.
1660 * configure.ac: Remove --enable-gdbserver.
1661 * configure: Rebuild.
1662 * Makefile.in (distclean): Don't mention gdbserver.
1663
1d5d29e7
SV
16642020-02-06 Shahab Vahedi <shahab@synopsys.com>
1665
1666 * source-cache.c (source_cache::ensure): Surround
1667 get_plain_source_lines with a try/catch.
1668 (source_cache::get_line_charpos): Get rid of try/catch
1669 and only check for the return value of "ensure".
1670 * tui/tui-source.c (tui_source_window::set_contents):
1671 Simplify "nlines" calculation.
1672
6eb1129c
SV
16732020-02-06 Shahab Vahedi <shahab@synopsys.com>
1674
1675 * MAINTAINERS (Write After Approval): Add myself.
1676
c6a42d11
CB
16772020-02-05 Christian Biesinger <cbiesinger@google.com>
1678
1679 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
1680 function call.
1681
c8ecdda6
CB
16822020-02-05 Christian Biesinger <cbiesinger@google.com>
1683
1684 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
1685
f6480e70
MR
16862020-02-05 Maciej W. Rozycki <macro@wdc.com>
1687
1688 * nat/riscv-linux-tdesc.h: New file.
1689 * nat/riscv-linux-tdesc.c: New file, taking code from...
1690 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
1691 ... here.
1692 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
1693 NATDEPFILES.
1694
dcc9fbc6
AB
16952020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
1696
1697 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
1698 we don't set the fake simulator ptid to the null_ptid.
1699
719546c4
SM
17002020-02-03 Simon Marchi <simon.marchi@efficios.com>
1701
1702 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
1703 * gdbthread.h (class thread_info) <resumed>: Likewise.
1704 * infrun.c (resume_1): Likewise.
1705 (proceed): Likewise.
1706 (infrun_thread_stop_requested): Likewise.
1707 (stop_all_threads): Likewise.
1708 (handle_inferior_event): Likewise.
1709 (restart_threads): Likewise.
1710 (finish_step_over): Likewise.
1711 (keep_going_stepped_thread): Likewise.
1712 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
1713 (linux_handle_extended_wait): Likewise.
1714 * record-btrace.c (get_thread_current_frame_id): Likewise.
1715 * record-full.c (record_full_wait_1): Likewise.
1716 * remote.c (remote_target::process_initial_stop_replies): Likewise.
1717 * target.c (target_resume): Likewise.
1718 * thread.c (set_running_thread): Likewise.
1719
e409c542
AKS
17202020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1721
1722 * f-valprint.c (f77_print_array_1): Changed datatype of index
1723 variable to LONGEST from int to enable it to contain bound
1724 values correctly.
1725
ee98c0da
MR
17262020-02-03 Maciej W. Rozycki <macro@wdc.com>
1727
1728 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
1729 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
1730 offsets according to FLEN determined.
1731 (riscv_linux_nat_target::read_description): Determine FLEN
1732 dynamically.
1733 (riscv_linux_nat_target::fetch_registers): Size regset buffer
1734 according to FLEN determined.
1735 (riscv_linux_nat_target::store_registers): Likewise.
1736
aa66aac4
SV
17372020-02-01 Shahab Vahedi <shahab@synopsys.com>
1738
1739 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1740 when reg->group is empty and reggroup is not.
1741
fd9faca8
TT
17422020-01-31 Tom Tromey <tromey@adacore.com>
1743
1744 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
1745 Call beneath target's mourn_inferior after unpushing.
1746
42330a68
AB
17472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 PR tui/9765
1750 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
1751 have enough lines to fill the screen, still return the lowest
1752 address we found.
1753
7a27a45b
AB
17542020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
1757 '-', '<', and '>' commands.
1758
c47f70e2
PA
17592020-01-29 Pedro Alves <palves@redhat.com>
1760 Sergio Durigan Junior <sergiodj@redhat.com>
1761
1762 * infcmd.c (construct_inferior_arguments): Assert that
1763 'argc' is greater than 0.
1764
5133a315
LM
17652020-01-29 Luis Machado <luis.machado@linaro.org>
1766
1767 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
1768 (BRK_INSN_MASK): Define to 0xd4200000.
1769 (aarch64_program_breakpoint_here_p): New function.
1770 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
1771 * arch-utils.c (default_program_breakpoint_here_p): Moved from
1772 breakpoint.c.
1773 * arch-utils.h (default_program_breakpoint_here_p): Moved from
1774 breakpoint.h
1775 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
1776 call gdbarch_program_breakpoint_here_p.
1777 (program_breakpoint_here): Moved to arch-utils.c, renamed to
1778 default_program_breakpoint_here_p, changed return type to bool and
1779 simplified.
1780 * breakpoint.h (program_breakpoint_here): Moved prototype to
1781 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
1782 return type to bool.
1783 * gdbarch.c: Regenerate.
1784 * gdbarch.h: Regenerate.
1785 * gdbarch.sh (program_breakpoint_here_p): New method.
1786 * infrun.c (handle_signal_stop): Call
1787 gdbarch_program_breakpoint_here_p.
1788
168f8c6b
TT
17892020-01-26 Tom Tromey <tom@tromey.com>
1790
1791 * ctfread.c (struct ctf_fp_info): Reindent.
1792 (_initialize_ctfread): Remove.
1793
128a391f
TT
17942020-01-26 Tom Tromey <tom@tromey.com>
1795
1796 * psymtab.c (partial_map_expand_apply)
1797 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
1798 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
1799 (psym_print_stats, psym_expand_symtabs_for_function)
1800 (psym_map_symbol_filenames, psym_map_matching_symbols)
1801 (psym_expand_symtabs_matching)
1802 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
1803 (maintenance_check_psymtabs): Use new methods.
1804 * psympriv.h (struct partial_symtab) <readin_p,
1805 get_compunit_symtab>: New methods.
1806 <readin, compunit_symtab>: Remove members.
1807 (struct standard_psymtab): New.
1808 (struct legacy_psymtab): Derive from standard_psymtab.
1809 * dwarf2read.h (struct dwarf2_psymtab): Derive from
1810 standard_psymtab.
1811 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
1812
0494dbec
TT
18132020-01-26 Tom Tromey <tom@tromey.com>
1814
1815 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
1816 read_dependencies. Add assert.
1817 * psymtab.c (partial_symtab::read_dependencies): New method.
1818 * psympriv.h (struct partial_symtab) <read_dependencies>: New
1819 method.
1820 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
1821 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
1822 read_dependencies.
1823 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
1824 Add assert.
1825
8566b89b
TT
18262020-01-26 Tom Tromey <tom@tromey.com>
1827
1828 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
1829 Call expand_psymtab.
1830 (xcoff_read_symtab): Call expand_psymtab.
1831 (xcoff_start_psymtab, xcoff_end_psymtab): Set
1832 legacy_expand_psymtab.
1833 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
1834 method.
1835 (struct legacy_psymtab) <expand_psymtab>: Implement.
1836 <legacy_expand_psymtab>: New member.
1837 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
1838 (parse_partial_symbols): Set legacy_expand_psymtab.
1839 (psymtab_to_symtab_1): Change argument order. Call
1840 expand_psymtab.
1841 (new_psymtab): Set legacy_expand_psymtab.
1842 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
1843 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
1844 expand_psymtab.
1845 (dwarf2_psymtab::expand_psymtab): Rename from
1846 psymtab_to_symtab_1. Call expand_psymtab.
1847 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
1848 (dbx_end_psymtab): Likewise.
1849 (dbx_psymtab_to_symtab_1): Change argument order. Call
1850 expand_psymtab.
1851 (dbx_read_symtab): Call expand_psymtab.
1852 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
1853 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
1854 (ctf_psymtab::read_symtab): Call expand_psymtab.
1855
077cbab2
TT
18562020-01-26 Tom Tromey <tom@tromey.com>
1857
1858 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
1859 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
1860 messages.
1861 * mdebugread.c (mdebug_read_symtab): Remove prints.
1862 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
1863 assert.
1864 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
1865
891813be
TT
18662020-01-26 Tom Tromey <tom@tromey.com>
1867
1868 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
1869 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
1870 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
1871 legacy_symtab.
1872 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
1873 * psymtab.c (psymtab_to_symtab): Call method.
1874 (dump_psymtab): Update.
1875 * psympriv.h (struct partial_symtab): Add virtual destructor.
1876 <read_symtab>: New method.
1877 (struct legacy_symtab): New.
1878 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
1879 (struct pst_map) <pst>: Now a legacy_psymtab.
1880 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
1881 (new_psymtab): Use legacy_psymtab.
1882 * dwarf2read.h (struct dwarf2_psymtab): New.
1883 (struct dwarf2_per_cu_data) <psymtab>: Use it.
1884 * dwarf2read.c (dwarf2_create_include_psymtab)
1885 (dwarf2_build_include_psymtabs, create_type_unit_group)
1886 (create_partial_symtab, process_psymtab_comp_unit_reader)
1887 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
1888 (set_partial_user): Use dwarf2_psymtab.
1889 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
1890 (psymtab_to_symtab_1, process_full_comp_unit)
1891 (process_full_type_unit, dwarf2_ranges_read)
1892 (dwarf2_get_pc_bounds, psymtab_include_file_name)
1893 (dwarf_decode_lines): Use dwarf2_psymtab.
1894 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
1895 (add_address_entry_worker, write_one_signatured_type)
1896 (recursively_count_psymbols, recursively_write_psymbols)
1897 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
1898 (write_debug_names): Likewise.
1899 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
1900 <pst>: Now a legacy_psymtab.
1901 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
1902 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
1903 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
1904 * ctfread.c (struct ctf_psymtab): New.
1905 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
1906 ctf_psymtab.
1907 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
1908 (create_partial_symtab): Return a ctf_psymtab.
1909 (scan_partial_symbols): Update.
1910
c3693a1d
TT
19112020-01-26 Tom Tromey <tom@tromey.com>
1912
1913 * xcoffread.c (xcoff_start_psymtab): Use new.
1914 * psymtab.c (partial_symtab::partial_symtab): New constructor,
1915 renamed from start_psymtab_common.
1916 * psympriv.h (struct partial_symtab): Add new constructor.
1917 (start_psymtab_common): Don't declare.
1918 * mdebugread.c (parse_partial_symbols): Use new.
1919 * dwarf2read.c (create_partial_symtab): Use new.
1920 * dbxread.c (start_psymtab): Use new.
1921 * ctfread.c (create_partial_symtab): Use new.
1922
32caafd0
TT
19232020-01-26 Tom Tromey <tom@tromey.com>
1924
1925 * xcoffread.c (xcoff_end_psymtab): Use new.
1926 * psymtab.c (start_psymtab_common): Use new.
1927 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
1928 Update.
1929 * psympriv.h (struct partial_symtab): Add parameters to
1930 constructor. Don't inline.
1931 (allocate_psymtab): Don't declare.
1932 * mdebugread.c (new_psymtab): Use new.
1933 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
1934 * dbxread.c (dbx_end_psymtab): Use new.
1935
abaa2f23
TT
19362020-01-26 Tom Tromey <tom@tromey.com>
1937
1938 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
1939 allocate_psymtab. Update documentation.
1940 * psymtab.c (psymtab_storage::install_psymtab): Rename from
1941 allocate_psymtab. Do not use new.
1942 (allocate_psymtab): Use new. Update.
1943
6d94535f
TT
19442020-01-26 Tom Tromey <tom@tromey.com>
1945
1946 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1947 * psymtab.c (psym_print_stats): Update.
1948 * psympriv.h (struct partial_symtab) <readin,
1949 psymtabs_addrmap_supported, anonymous>: Now bool.
1950 * mdebugread.c (psymtab_to_symtab_1): Update.
1951 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
1952 (build_type_psymtabs_reader, psymtab_to_symtab_1)
1953 (process_full_comp_unit, process_full_type_unit): Update.
1954 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1955 * ctfread.c (psymtab_to_symtab): Update.
1956
6f17252b
TT
19572020-01-26 Tom Tromey <tom@tromey.com>
1958
1959 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
1960 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
1961 * psymtab.c (psymtab_storage): Delete psymtabs.
1962 (psymtab_storage::allocate_psymtab): Use new.
1963 (psymtab_storage::discard_psymtab): Use delete.
1964 * psympriv.h (struct partial_symtab): Add constructor and
1965 initializers.
1966
f6f1cebc
TT
19672020-01-26 Tom Tromey <tom@tromey.com>
1968
1969 * machoread.c: Do not include psympriv.h.
1970
e47e48f6
PW
19712020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1972
1973 * NEWS: Mention the new option and the set/show commands.
1974
a2fedca9
PW
19752020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1976
1977 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
1978 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
1979 (validate_exec_file): New variables, enums, functions.
1980 (exec_file_locate_attach, print_section_info): Style the filenames.
1981 (_initialize_exec): Install show_exec_file_mismatch_command and
1982 set_exec_file_mismatch_command.
1983 * gdbcore.h (validate_exec_file): Declare.
1984 * infcmd.c (attach_command): Call validate_exec_file.
1985 * remote.c ( remote_target::remote_add_inferior): Likewise.
1986
7ffa82e1
AB
19872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * frame.c (find_frame_sal): Move call to get_next_frame into more
1990 inner scope.
1991 * inline-frame.c (inilne_state) <inline_state>: Update argument
1992 types.
1993 (inilne_state) <skipped_symbol>: Rename to...
1994 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
1995 (skip_inline_frames): Build vector of skipped symbols and use this
1996 to reate the inline_state.
1997 (inline_skipped_symbol): Add a comment and some assertions, fetch
1998 skipped symbol from the list.
1999
3d92a3e3
AB
20002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2001
2002 * buildsym.c (lte_is_less_than): Delete.
2003 (buildsym_compunit::end_symtab_with_blockvector): Create local
2004 lambda function to sort line table entries, and use
2005 std::stable_sort instead of std::sort.
2006 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
2007 markers when looking for a previous line.
2008
94a72be7
AB
20092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2010
2011 * dwarf2read.c (lnp_state_machine::record_line): Include
2012 end_sequence parameter in debug print out. Record the line if we
2013 are at an end_sequence marker even if it's not the start of a
2014 statement.
2015 * symmisc.c (maintenance_print_one_line_table): Print end of
2016 sequence markers with 'END' not '0'.
2017
53af73bf
PA
20182020-01-24 Pedro Alves <palves@redhat.com>
2019
2020 PR gdb/25410
2021 * thread.c (scoped_restore_current_thread::restore): Use
2022 switch_to_inferior_no_thread.
2023 * exec.c: Include "progspace-and-thread.h".
2024 (add_target_sections, remove_target_sections):
2025 scoped_restore_current_pspace_and_thread instead of
2026 scoped_restore_current_thread.
2027 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
2028 and aspace to the inferior before calling clone_program_space.
2029 Remove stale comment.
2030
3050c6f4
CB
20312020-01-24 Christian Biesinger <cbiesinger@google.com>
2032
2033 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
2034 (arm_netbsd_nat_target::fetch_registers): ...this.
2035 (arm_nbsd_nat_target::store_registers): Rename to...
2036 (arm_netbsd_nat_target::store_registers): ...this.
2037
73685c7e
CB
20382020-01-24 Christian Biesinger <cbiesinger@google.com>
2039
2040 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2041 register_t.
2042
89203d40
CB
20432020-01-24 Christian Biesinger <cbiesinger@google.com>
2044
2045 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
2046 Update comment.
2047 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
2048 Likewise.
2049 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
2050 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
2051 the correct replacement (iterate_over_regset_sections).
2052 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
2053 Update comment.
2054
1ba1ac88
AB
20552020-01-24 Graham Markall <graham.markall@embecosm.com>
2056
2057 PR gdb/23718
2058 * gdb/python/python.c (execute_gdb_command): Call
2059 async_enable_stdin in catch block.
2060
f3364a6d
AB
20612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
2064 SWITCH_THRU_ALL_UIS.
2065
733d0a67
AB
20662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 PR tui/9765
2069 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
2070 comment, add extra parameter, and update to store previous symbol
2071 when appropriate.
2072 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
2073 add extra parameter.
2074 * tui/tui-disasm.c (tui_disassemble): Update header comment,
2075 remove unneeded parameter, add try/catch around gdb_print_insn,
2076 rewrite to add items to asm_lines vector.
2077 (tui_find_backward_disassembly_start_address): New function.
2078 (tui_find_disassembly_address): Updated throughout.
2079 (tui_disasm_window::set_contents): Update for changes to
2080 tui_disassemble.
2081 (tui_disasm_window::do_scroll_vertical): No need to adjust the
2082 number of lines to scroll.
2083
b3b3bada
SM
20842020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
2087 (SECT_OFF_DATA): Likewise.
2088 (SECT_OFF_RODATA): Likewise.
2089 (SECT_OFF_TEXT): Likewise.
2090 (SECT_OFF_BSS): Likewise.
2091 (struct objfile) <text_section_offset, data_section_offset>: New
2092 methods.
2093 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
2094 objfile::text_section_offset.
2095 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2096 * coffread.c (coff_symtab_read): Likewise.
2097 (enter_linenos): Likewise.
2098 (process_coff_symbol): Likewise.
2099 * ctfread.c (get_objfile_text_range): Likewise.
2100 * dtrace-probe.c (dtrace_probe::get_relocated_address):
2101 Use objfile::data_section_offset.
2102 * dwarf2-frame.c (execute_cfa_program): Use
2103 objfile::text_section_offset.
2104 (dwarf2_frame_find_fde): Likewise.
2105 * dwarf2read.c (create_addrmap_from_index): Likewise.
2106 (create_addrmap_from_aranges): Likewise.
2107 (dw2_find_pc_sect_compunit_symtab): Likewise.
2108 (process_psymtab_comp_unit_reader): Likewise.
2109 (add_partial_symbol): Likewise.
2110 (add_partial_subprogram): Likewise.
2111 (process_full_comp_unit): Likewise.
2112 (read_file_scope): Likewise.
2113 (read_func_scope): Likewise.
2114 (read_lexical_block_scope): Likewise.
2115 (read_call_site_scope): Likewise.
2116 (dwarf2_rnglists_process): Likewise.
2117 (dwarf2_ranges_process): Likewise.
2118 (dwarf2_ranges_read): Likewise.
2119 (dwarf_decode_lines_1): Likewise.
2120 (new_symbol): Likewise.
2121 (dwarf2_fetch_die_loc_sect_off): Likewise.
2122 (dwarf2_per_cu_text_offset): Likewise.
2123 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2124 * hppa-tdep.c (read_unwind_info): Likewise.
2125 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
2126 * psympriv.h (struct partial_symtab): Likewise.
2127 * psymtab.c (find_pc_sect_psymtab): Likewise.
2128 * solib-svr4.c (enable_break): Likewise.
2129 * stap-probe.c (relocate_address): Use
2130 objfile::data_section_offset.
2131 * xcoffread.c (enter_line_range): Use
2132 objfile::text_section_offset.
2133 (read_xcoff_symtab): Likewise.
2134
ab53f382
SM
21352020-01-23 Simon Marchi <simon.marchi@efficios.com>
2136
2137 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
2138 declaration to narrower scopes.
2139
e7eee665
SM
21402020-01-23 Simon Marchi <simon.marchi@efficios.com>
2141
2142 * darwin-nat.h (struct darwin_exception_msg, enum
2143 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
2144 Move up.
2145 (class darwin_nat_target) <wait_1, check_new_threads,
2146 decode_exception_message, decode_message, stop_inferior,
2147 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
2148 * darwin-nat.c (darwin_check_new_threads): Rename to...
2149 (darwin_nat_target::check_new_threads): ... this.
2150 (darwin_suspend_inferior_it): Remove.
2151 (darwin_decode_exception_message): Rename to...
2152 (darwin_nat_target::decode_exception_message): ... this.
2153 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
2154 (darwin_decode_message): Rename to...
2155 (darwin_nat_target::decode_message): ... this.
2156 (cancel_breakpoint): Rename to...
2157 (darwin_nat_target::cancel_breakpoint): ... this.
2158 (darwin_wait): Rename to...
2159 (darwin_nat_target::wait_1): ... this. Use range-based for loop
2160 instead of iterate_over_inferiors.
2161 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
2162 (darwin_stop_inferior): Rename to...
2163 (darwin_nat_target::stop_inferior): ... this.
2164 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
2165 (darwin_init_thread_list): Rename to...
2166 (darwin_nat_target::init_thread_list): ... this.
2167 (darwin_ptrace_him): Rename to...
2168 (darwin_nat_target::ptrace_him): ... this.
2169 (darwin_nat_target::create_inferior): Pass lambda function to
2170 fork_inferior.
2171 (darwin_nat_target::detach): Call stop_inferior instead of
2172 darwin_stop_inferior.
2173 * fork-inferior.h (fork_inferior): Change init_trace_fun
2174 parameter to gdb::function_view.
2175 * fork-inferior.c (fork_inferior): Likewise.
2176
c162ed3e
HD
21772020-01-23 Hannes Domani <ssbssa@yahoo.de>
2178
2179 * i386-cygwin-tdep.c (core_process_module_section): Update.
2180 * windows-nat.c (struct lm_info_windows): Add text_offset.
2181 (windows_xfer_shared_libraries): Update.
2182 * windows-tdep.c (windows_xfer_shared_library):
2183 Add text_offset_cached argument.
2184 * windows-tdep.h (windows_xfer_shared_library): Update.
2185
a1237872
SM
21862020-01-21 Simon Marchi <simon.marchi@efficios.com>
2187
2188 * gdbarch.sh: Add declaration for _initialize_gdbarch.
2189
b3ee6dd9
SM
21902020-01-21 Simon Marchi <simon.marchi@efficios.com>
2191
2192 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
2193 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
2194 replace with range-based for.
2195 (gdbsim_interrupt_inferior): Remove.
2196 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
2197 with a range-based for. Inline code from
2198 gdbsim_interrupt_inferior.
2199
f9fac3c8
SM
22002020-01-21 Simon Marchi <simon.marchi@efficios.com>
2201
2202 * infrun.c (proceed): Fix indentation.
2203
f6474de9
TT
22042020-01-21 Tom Tromey <tromey@adacore.com>
2205
2206 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
2207 * python/python.c (python_extension_ops): Update.
2208 (gdbpy_colorize): New function.
2209 * python/lib/gdb/__init__.py (colorize): New function.
2210 * extension.h (ext_lang_colorize): Declare.
2211 * extension.c (ext_lang_colorize): New function.
2212 * extension-priv.h (struct extension_language_ops) <colorize>: New
2213 member.
2214 * cli/cli-style.c (_initialize_cli_style): Update help text.
2215
f0c702d4
LM
22162020-01-21 Luis Machado <luis.machado@linaro.org>
2217
2218 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
2219 <cond>: Change type to bool.
2220 (aarch64_displaced_step_b_cond): Update cond to use bool type.
2221 (aarch64_displaced_step_cb): Likewise.
2222 (aarch64_displaced_step_tb): Likewise.
2223
1ab139e5
LM
22242020-01-21 Luis Machado <luis.machado@linaro.org>
2225
2226 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
2227 output.
2228
0c271889
LM
22292020-01-21 Luis Machado <luis.machado@linaro.org>
2230
2231 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
2232 <pc_adjust>: Adjust the documentation.
2233 (aarch64_displaced_step_fixup): Check if PC really moved before
2234 adjusting it.
2235
4d89c1c7
TT
22362020-01-19 Tom Tromey <tom@tromey.com>
2237
2238 * disasm.c (~gdb_disassembler): New destructor.
2239 (gdb_buffered_insn_length): Call disassemble_free_target.
2240 * disasm.h (class gdb_disassembler): Declare destructor. Use
2241 DISABLE_COPY_AND_ASSIGN.
2242
c0ab21c2
TT
22432020-01-19 Tom Tromey <tom@tromey.com>
2244
2245 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
2246 (die_reader_func_ftype): Remove.
2247 (cutu_reader): New class.
2248 (dw2_get_file_names_reader): Remove "data" parameter.
2249 (dw2_get_file_names): Use cutu_reader.
2250 (create_debug_type_hash_table): Update.
2251 (read_cutu_die_from_dwo): Update comment.
2252 (lookup_dwo_unit): Add dwo_name parameter.
2253 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
2254 die_reader_func_ftype and data parameters.
2255 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
2256 Remove die_reader_func_ftype and data parameters.
2257 (~cutu_reader): New; from init_cutu_and_read_dies.
2258 (cutu_reader::cutu_reader): Rename from
2259 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
2260 and data parameters.
2261 (init_cutu_and_read_dies_simple): Remove.
2262 (struct process_psymtab_comp_unit_data): Remove.
2263 (process_psymtab_comp_unit_reader): Remove data parameter; add
2264 want_partial_unit and pretend_language parameters.
2265 (process_psymtab_comp_unit): Use cutu_reader.
2266 (build_type_psymtabs_reader): Remove data parameter.
2267 (build_type_psymtabs_1): Use cutu_reader.
2268 (process_skeletonless_type_unit): Likewise.
2269 (load_partial_comp_unit_reader): Remove.
2270 (load_partial_comp_unit): Use cutu_reader.
2271 (load_full_comp_unit_reader): Remove.
2272 (load_full_comp_unit): Use cutu_reader.
2273 (struct create_dwo_cu_data): Remove.
2274 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
2275 dwo_unit parameters.
2276 (create_cus_hash_table): Use cutu_reader.
2277 (struct dwarf2_read_addr_index_data): Remove.
2278 (dwarf2_read_addr_index_reader): Remove.
2279 (dwarf2_read_addr_index): Use cutu_reader.
2280 (read_signatured_type_reader): Remove.
2281 (read_signatured_type): Use cutu_reader.
2282
45bbae5c
TT
22832020-01-19 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
2286 * tui/tui-wingeneral.h (class tui_suppress_output): New.
2287 (tui_wrefresh): Declare.
2288 * tui/tui-wingeneral.c (suppress_output): New global.
2289 (tui_suppress_output, ~tui_suppress_output): New constructor and
2290 destructor.
2291 (tui_wrefresh): New function.
2292 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
2293 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
2294 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
2295 method.
2296 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
2297 tui_wrefresh.
2298 (tui_data_window::no_refresh): New method.
2299 (tui_data_item_window::refresh_window): Call tui_wrefresh.
2300 (tui_reg_command): Use tui_suppress_output
2301 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
2302 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
2303 method.
2304 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
2305
4f13c1c0
TT
23062020-01-19 Tom Tromey <tom@tromey.com>
2307
2308 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2309 Handle case where symtab is null.
2310
fa47e446
SM
23112020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * linux-fork.c (one_fork_p): Simplify.
2314
26f42329
SM
23152020-01-17 Simon Marchi <simon.marchi@efficios.com>
2316
2317 * top.c (struct qt_args): Remove.
2318 (kill_or_detach): Change return type to void, replace `void *`
2319 parameter with a proper one.
2320 (print_inferior_quit_action): Likewise.
2321 (quit_confirm): Use range-based for loop to iterate over inferiors.
2322 (quit_force): Likewise.
2323
a9ac81b1
SM
23242020-01-17 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
2327 `void *` parameter with proper parameters.
2328 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
2329 (print_one_inferior): Change return type to void, replace `void *`
2330 parameter with proper parameters.
2331 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
2332 inferiors.
2333 (get_other_inferior): Remove.
2334 (mi_cmd_remove_inferior): Use range-based loop to iterate over
2335 inferiors.
2336
788eca49
SM
23372020-01-17 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * mi/mi-interp.c (report_initial_inferior): Remove.
2340 (mi_interp::init): Use range-based for to iterate over inferiors.
2341
d9bc85b6
SM
23422020-01-17 Simon Marchi <simon.marchi@efficios.com>
2343
2344 * python/py-inferior.c (build_inferior_list): Remove.
2345 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
2346
40c94099
CB
23472020-01-16 Christian Biesinger <cbiesinger@google.com>
2348
2349 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
2350 (btrace_stitch_trace): Likewise.
2351 * charset.c (intermediate_encoding): Likewise (vaild).
2352 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
2353 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
2354 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
2355
e0cdfe3c
HD
23562020-01-16 Hannes Domani <ssbssa@yahoo.de>
2357
2358 * windows-tdep.c (windows_get_tlb_type):
2359 Add rtl_user_process_parameters type.
2360
790f1718
PA
23612020-01-16 Pedro Alves <palves@redhat.com>
2362 Norbert Lange <nolange79@gmail.com>
2363
2364 PR build/24805
2365 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
2366 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
2367 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
2368 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
2369 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
2370 (ps_plog): Redeclare exported functions with default visibility.
2371
3112ed97
NA
23722020-01-16 Nitika Achra <Nitika.Achra@amd.com>
2373
2374 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
2375 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
2376
8dc3273e
SM
23772020-01-15 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * infcmd.c (post_create_inferior): Use get_thread_regcache
2380 instead of get_current_regcache.
2381
ff47f4f0
TT
23822020-01-14 Tom Tromey <tom@tromey.com>
2383
2384 PR symtab/12535:
2385 * python/python.c (gdbpy_decode_line): Treat empty string the same
2386 as no argument.
2387
975f45b7
TT
23882020-01-14 Tom Tromey <tom@tromey.com>
2389
2390 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
2391
25e57356
TT
23922020-01-14 Tom Tromey <tom@tromey.com>
2393
2394 * nat/linux-btrace.c: Don't include <config.h>.
2395 * nat/linux-ptrace.c: Don't include <config.h>.
2396 * nat/x86-linux-dregs.c: Don't include <config.h>.
2397
05ea2a05
TT
23982020-01-14 Tom Tromey <tom@tromey.com>
2399
2400 * configure: Rebuild.
2401 * configure.ac: Move many checks to ../gdbsupport/common.m4.
2402
01027315
TT
24032020-01-14 Tom Tromey <tom@tromey.com>
2404
2405 * nat/x86-linux-dregs.c: Include configh.h.
2406 * nat/linux-ptrace.c: Include configh.h.
2407 * nat/linux-btrace.c: Include configh.h.
2408 * defs.h: Include config.h, bfd.h.
2409 * configure.ac: Don't source common.host.
2410 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
2411 * configure: Rebuild.
2412 * acinclude.m4: Update path.
2413 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
2414 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
2415 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
2416 (CLIBS): Add LIBSUPPORT.
2417 (CDEPS): Likewise.
2418 (COMMON_SFILES): Remove gdbsupport files.
2419 (HFILES_NO_SRCDIR): Likewise.
2420 (stamp-version): Update path to create-version.sh.
2421 (ALLDEPFILES): Remove gdbsupport files.
2422
b2ceabe8
TT
24232020-01-14 Tom Tromey <tom@tromey.com>
2424
2425 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
2426 USE_WIN32API when needed.
2427 * configure.ac (USE_WIN32API): Don't define.
2428 (WIN32LIBS): Use WIN32APILIBS.
2429 * configure: Rebuild.
2430
25c51f71
TT
24312020-01-14 Tom Tromey <tom@tromey.com>
2432
2433 * configure: Rebuild.
2434 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
2435
717c684d
BE
24362020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2437
2438 * skip.c (skip_function_command): Make skip w/o arguments use the
2439 name of the inlined function if pc is inside any inlined function.
2440
7da6a5b9
LM
24412020-01-14 Luis Machado <luis.machado@linaro.org>
2442
2443 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
2444 * infrun.c (resume_1): Likewise.
2445 (handle_inferior_event): Remove stale comment.
2446 * linux-nat.c (linux_nat_target::resume): Update comments.
2447 (save_stop_reason): Likewise.
2448 (linux_nat_filter_event): Likewise.
2449 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
2450
44e4c775
AB
24512020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2452
2453 * elfread.c (record_minimal_symbol): Set section index to 0 for
2454 non-allocatable sections.
2455
18a8505e
AT
2456
24572020-01-13 Ali Tamur <tamur@google.com>
2458
2459 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
2460 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
2461 to gdb::optional. Update comments.
2462 (dwo_file): Update comments.
2463 (read_attribute): Update API to take an additional out parameter,
2464 need_reprocess. This is used to mark attributes that need other
2465 attributes (e.g. str_offsets_base) for correct computation which may not
2466 have been read yet.
2467 (read_attribute_reprocess): New function declaration.
2468 (read_addr_index): Likewise.
2469 (read_dwo_str_index): Likewise.
2470 (read_stub_str_index): Likewise.
2471 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
2472 (lookup_addr_base): New function definition.
2473 (lookup_ranges_base): Likewise.
2474 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
2475 lookup_ranges_base.
2476 (init_cutu_and_read_dies): Update comments.
2477 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
2478 unit. This is used to inherit parent's str_offsets_base and addr_base.
2479 Update comments.
2480 (init_cutu_and_read_dies_simple): Reflect API changes.
2481 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
2482 (create_cus_hash_table): Change API to take parent compile unit.
2483 Reflect API changes.
2484 (open_and_init_dwo_file): Reflect API changes.
2485 (dwarf2_get_pc_bounds): Update comments.
2486 (dwarf2_record_block_ranges): Likewise.
2487 (read_full_die_1): Change implementation to reprocess attributes that
2488 need str_offsets_base and addr_base.
2489 (partial_die_info::read): Likewise.
2490 (read_attribute_reprocess): New function definition.
2491 (read_attribute_value): Change API to take an additional out parameter,
2492 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
2493 when a non-dwo compile unit has index based attributes.
2494 (read_attribute): Reflect API changes.
2495 (read_addr_index_1): Reflect API changes. Update comments.
2496 (dwarf2_read_addr_index_data): Reflect API changes.
2497 (dwarf2_read_addr_index): Likewise.
2498 (read_str_index): Change API and implementation. This becomes a helper
2499 to be used by the new string index related methods. Update error
2500 message and comments.
2501 (read_dwo_str_index): New function definition.
2502 (read_stub_str_index): Likewise.
2503 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
2504 * symfile.h (dwarf2_debug_sections): Likewise.
2505 * xcoffread.c (dwarf2_debug_sections): Likewise.
2506
0cac9354
SM
25072020-01-13 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * gdbcore.h (struct core_fns) <core_read_registers>: Change
2510 core_reg_sect type to gdb_byte *.
2511 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
2512 * cris-tdep.c (fetch_core_registers): Likewise.
2513 * corelow.c (core_target::get_core_register_section): Change
2514 type of `contents` to gdb::byte_vector.
2515
9a6d629c
AB
25162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * tui/tui-wingeneral.c (box_win): Position the title in the center
2519 of the border.
2520
d8b2f9e3
SM
25212020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * corelow.c (core_target::get_core_register_section): Use
2524 std::vector instead of alloca.
2525
bb564c58
SM
25262020-01-13 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * warning.m4: Add -Wmissing-declarations to build_warnings.
2529 * configure: Re-generate.
2530
6b366111
SM
25312020-01-13 Simon Marchi <simon.marchi@efficios.com>
2532
2533 * python/python.c (init__gdb_module): Add declaration.
2534
6c265988
SM
25352020-01-13 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
2538 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
2539 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
2540 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
2541 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
2542 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
2543 * ada-exp.y (_initialize_ada_exp): Add declaration.
2544 * ada-lang.c (_initialize_ada_language): Add declaration.
2545 * ada-tasks.c (_initialize_tasks): Add declaration.
2546 * agent.c (_initialize_agent): Add declaration.
2547 * aix-thread.c (_initialize_aix_thread): Add declaration.
2548 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
2549 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
2550 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
2551 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
2552 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
2553 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2554 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
2555 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
2556 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
2557 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
2558 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
2559 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
2560 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
2561 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
2562 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
2563 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
2564 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
2565 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
2566 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
2567 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
2568 * annotate.c (_initialize_annotate): Add declaration.
2569 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
2570 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
2571 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
2572 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
2573 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
2574 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
2575 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
2576 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
2577 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
2578 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
2579 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
2580 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
2581 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2582 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
2583 * auto-load.c (_initialize_auto_load): Add declaration.
2584 * auxv.c (_initialize_auxv): Add declaration.
2585 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
2586 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
2587 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
2588 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
2589 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
2590 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
2591 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
2592 * breakpoint.c (_initialize_breakpoint): Add declaration.
2593 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
2594 * btrace.c (_initialize_btrace): Add declaration.
2595 * charset.c (_initialize_charset): Add declaration.
2596 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
2597 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2598 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2599 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
2600 * cli/cli-script.c (_initialize_cli_script): Add declaration.
2601 * cli/cli-style.c (_initialize_cli_style): Add declaration.
2602 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
2603 * coffread.c (_initialize_coffread): Add declaration.
2604 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
2605 * compile/compile.c (_initialize_compile): Add declaration.
2606 * complaints.c (_initialize_complaints): Add declaration.
2607 * completer.c (_initialize_completer): Add declaration.
2608 * copying.c (_initialize_copying): Add declaration.
2609 * corefile.c (_initialize_core): Add declaration.
2610 * corelow.c (_initialize_corelow): Add declaration.
2611 * cp-abi.c (_initialize_cp_abi): Add declaration.
2612 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
2613 * cp-support.c (_initialize_cp_support): Add declaration.
2614 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
2615 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
2616 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
2617 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
2618 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
2619 * ctfread.c (_initialize_ctfread): Add declaration.
2620 * d-lang.c (_initialize_d_language): Add declaration.
2621 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
2622 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
2623 * dbxread.c (_initialize_dbxread): Add declaration.
2624 * dcache.c (_initialize_dcache): Add declaration.
2625 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
2626 * disasm.c (_initialize_disasm): Add declaration.
2627 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
2628 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
2629 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
2630 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
2631 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
2632 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
2633 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
2634 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
2635 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
2636 * elfread.c (_initialize_elfread): Add declaration.
2637 * exec.c (_initialize_exec): Add declaration.
2638 * extension.c (_initialize_extension): Add declaration.
2639 * f-lang.c (_initialize_f_language): Add declaration.
2640 * f-valprint.c (_initialize_f_valprint): Add declaration.
2641 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
2642 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
2643 * filesystem.c (_initialize_filesystem): Add declaration.
2644 * findcmd.c (_initialize_mem_search): Add declaration.
2645 * findvar.c (_initialize_findvar): Add declaration.
2646 * fork-child.c (_initialize_fork_child): Add declaration.
2647 * frame-base.c (_initialize_frame_base): Add declaration.
2648 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2649 * frame.c (_initialize_frame): Add declaration.
2650 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
2651 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
2652 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
2653 * gcore.c (_initialize_gcore): Add declaration.
2654 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
2655 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
2656 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
2657 * gdbarch.c (_initialize_gdbarch): Add declaration.
2658 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
2659 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
2660 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
2661 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
2662 * go-lang.c (_initialize_go_language): Add declaration.
2663 * go32-nat.c (_initialize_go32_nat): Add declaration.
2664 * guile/guile.c (_initialize_guile): Add declaration.
2665 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2666 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
2667 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
2668 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
2669 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
2670 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
2671 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
2672 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
2673 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
2674 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
2675 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
2676 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
2677 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
2678 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
2679 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
2680 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
2681 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
2682 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
2683 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
2684 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
2685 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
2686 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
2687 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
2688 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
2689 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
2690 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
2691 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
2692 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
2693 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
2694 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
2695 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
2696 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
2697 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
2698 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
2699 * infcall.c (_initialize_infcall): Add declaration.
2700 * infcmd.c (_initialize_infcmd): Add declaration.
2701 * inflow.c (_initialize_inflow): Add declaration.
2702 * infrun.c (_initialize_infrun): Add declaration.
2703 * interps.c (_initialize_interpreter): Add declaration.
2704 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
2705 * jit.c (_initialize_jit): Add declaration.
2706 * language.c (_initialize_language): Add declaration.
2707 * linux-fork.c (_initialize_linux_fork): Add declaration.
2708 * linux-nat.c (_initialize_linux_nat): Add declaration.
2709 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
2710 * linux-thread-db.c (_initialize_thread_db): Add declaration.
2711 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
2712 * m2-lang.c (_initialize_m2_language): Add declaration.
2713 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
2714 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
2715 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
2716 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
2717 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2718 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
2719 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
2720 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
2721 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
2722 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2723 * machoread.c (_initialize_machoread): Add declaration.
2724 * macrocmd.c (_initialize_macrocmd): Add declaration.
2725 * macroscope.c (_initialize_macroscope): Add declaration.
2726 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
2727 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
2728 * maint.c (_initialize_maint_cmds): Add declaration.
2729 * mdebugread.c (_initialize_mdebugread): Add declaration.
2730 * memattr.c (_initialize_mem): Add declaration.
2731 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
2732 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
2733 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
2734 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
2735 * mi/mi-main.c (_initialize_mi_main): Add declaration.
2736 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
2737 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
2738 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
2739 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
2740 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
2741 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
2742 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
2743 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
2744 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
2745 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2746 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
2747 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
2748 * mipsread.c (_initialize_mipsread): Add declaration.
2749 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
2750 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
2751 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
2752 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
2753 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
2754 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
2755 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
2756 * nto-procfs.c (_initialize_procfs): Add declaration.
2757 * objc-lang.c (_initialize_objc_language): Add declaration.
2758 * observable.c (_initialize_observer): Add declaration.
2759 * opencl-lang.c (_initialize_opencl_language): Add declaration.
2760 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
2761 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
2762 * osabi.c (_initialize_gdb_osabi): Add declaration.
2763 * osdata.c (_initialize_osdata): Add declaration.
2764 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2765 * parse.c (_initialize_parse): Add declaration.
2766 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
2767 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
2768 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
2769 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
2770 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
2771 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
2772 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
2773 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
2774 * printcmd.c (_initialize_printcmd): Add declaration.
2775 * probe.c (_initialize_probe): Add declaration.
2776 * proc-api.c (_initialize_proc_api): Add declaration.
2777 * proc-events.c (_initialize_proc_events): Add declaration.
2778 * proc-service.c (_initialize_proc_service): Add declaration.
2779 * procfs.c (_initialize_procfs): Add declaration.
2780 * producer.c (_initialize_producer): Add declaration.
2781 * psymtab.c (_initialize_psymtab): Add declaration.
2782 * python/python.c (_initialize_python): Add declaration.
2783 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
2784 * record-btrace.c (_initialize_record_btrace): Add declaration.
2785 * record-full.c (_initialize_record_full): Add declaration.
2786 * record.c (_initialize_record): Add declaration.
2787 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
2788 * regcache.c (_initialize_regcache): Add declaration.
2789 * reggroups.c (_initialize_reggroup): Add declaration.
2790 * remote-notif.c (_initialize_notif): Add declaration.
2791 * remote-sim.c (_initialize_remote_sim): Add declaration.
2792 * remote.c (_initialize_remote): Add declaration.
2793 * reverse.c (_initialize_reverse): Add declaration.
2794 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
2795 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
2796 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
2797 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
2798 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
2799 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
2800 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
2801 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
2802 Add declaration.
2803 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
2804 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
2805 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
2806 * rust-exp.y (_initialize_rust_exp): Add declaration.
2807 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
2808 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
2809 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
2810 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
2811 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
2812 * score-tdep.c (_initialize_score_tdep): Add declaration.
2813 * ser-go32.c (_initialize_ser_dos): Add declaration.
2814 * ser-mingw.c (_initialize_ser_windows): Add declaration.
2815 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
2816 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
2817 * ser-uds.c (_initialize_ser_socket): Add declaration.
2818 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
2819 * serial.c (_initialize_serial): Add declaration.
2820 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
2821 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
2822 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
2823 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
2824 * skip.c (_initialize_step_skip): Add declaration.
2825 * sol-thread.c (_initialize_sol_thread): Add declaration.
2826 * solib-aix.c (_initialize_solib_aix): Add declaration.
2827 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
2828 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
2829 * solib-frv.c (_initialize_frv_solib): Add declaration.
2830 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2831 * solib-target.c (_initialize_solib_target): Add declaration.
2832 * solib.c (_initialize_solib): Add declaration.
2833 * source-cache.c (_initialize_source_cache): Add declaration.
2834 * source.c (_initialize_source): Add declaration.
2835 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
2836 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
2837 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
2838 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
2839 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
2840 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
2841 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
2842 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
2843 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
2844 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
2845 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
2846 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
2847 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
2848 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
2849 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
2850 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
2851 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
2852 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
2853 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
2854 * stabsread.c (_initialize_stabsread): Add declaration.
2855 * stack.c (_initialize_stack): Add declaration.
2856 * stap-probe.c (_initialize_stap_probe): Add declaration.
2857 * std-regs.c (_initialize_frame_reg): Add declaration.
2858 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
2859 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
2860 * symfile.c (_initialize_symfile): Add declaration.
2861 * symmisc.c (_initialize_symmisc): Add declaration.
2862 * symtab.c (_initialize_symtab): Add declaration.
2863 * target.c (_initialize_target): Add declaration.
2864 * target-connection.c (_initialize_target_connection): Add
2865 declaration.
2866 * target-dcache.c (_initialize_target_dcache): Add declaration.
2867 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
2868 * thread.c (_initialize_thread): Add declaration.
2869 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
2870 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
2871 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
2872 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
2873 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
2874 * tracectf.c (_initialize_ctf): Add declaration.
2875 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
2876 * tracefile.c (_initialize_tracefile): Add declaration.
2877 * tracepoint.c (_initialize_tracepoint): Add declaration.
2878 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
2879 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
2880 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
2881 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
2882 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
2883 * tui/tui-win.c (_initialize_tui_win): Add declaration.
2884 * tui/tui.c (_initialize_tui): Add declaration.
2885 * typeprint.c (_initialize_typeprint): Add declaration.
2886 * ui-style.c (_initialize_ui_style): Add declaration.
2887 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
2888 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
2889 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
2890 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
2891 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
2892 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
2893 * unittests/filtered_iterator-selftests.c
2894 (_initialize_filtered_iterator_selftests): Add declaration.
2895 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
2896 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
2897 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
2898 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
2899 * unittests/main-thread-selftests.c
2900 (_initialize_main_thread_selftests): Add declaration.
2901 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
2902 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
2903 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
2904 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
2905 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
2906 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
2907 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
2908 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
2909 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
2910 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
2911 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
2912 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
2913 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
2914 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
2915 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
2916 declaration.
2917 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
2918 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
2919 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
2920 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
2921 * user-regs.c (_initialize_user_regs): Add declaration.
2922 * utils.c (_initialize_utils): Add declaration.
2923 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
2924 * valops.c (_initialize_valops): Add declaration.
2925 * valprint.c (_initialize_valprint): Add declaration.
2926 * value.c (_initialize_values): Add declaration.
2927 * varobj.c (_initialize_varobj): Add declaration.
2928 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
2929 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
2930 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2931 * windows-nat.c (_initialize_windows_nat): Add declaration.
2932 (_initialize_check_for_gdb_ini): Add declaration.
2933 (_initialize_loadable): Add declaration.
2934 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
2935 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
2936 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
2937 * xcoffread.c (_initialize_xcoffread): Add declaration.
2938 * xml-support.c (_initialize_xml_support): Add declaration.
2939 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
2940 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
2941 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
2942 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
2943
e2de1eec
SM
29442020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * regformats/regdat.sh: Generate declaration for init function.
2947
e0037b4c
SM
29482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2949
2950 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
2951 up.
2952 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
2953 close_one_inferior>: New methods.
2954 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
2955 pass down target to find_inferior_pid.
2956 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
2957 Pass down target to find_inferior_ptid.
2958 (gdbsim_target::create_inferior): Pass down target to
2959 add_thread_silent.
2960 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
2961 target down to find_inferior_ptid and switch_to_thread.
2962 (gdbsim_target::close): Update to call close_one_inferior.
2963 (struct resume_data): Remove.
2964 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
2965 directly, rather than through a void pointer.
2966 (gdbsim_target::resume): Update to call resume_one_inferior.
2967
58920b5b
SM
29682020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
2971
4ec89149
PA
29722020-01-12 Pedro Alves <palves@redhat.com>
2973
2974 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
2975 directly for the current inferior instead of
2976 discard_all_inferiors.
2977 (discard_all_inferiors): Delete.
2978
7c392d1d
TT
29792020-01-11 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-wingeneral.c (box_win): Check cli_styling.
2982 * tui/tui-winsource.c (tui_source_window_base::refill): Use
2983 deprecated_safe_get_selected_frame.
2984
d9ebdab7
TBA
29852020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2986
2987 * inferior.c (print_inferior): Switch inferior before printing it.
2988
f3c469b9
PA
29892020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
2990 Pedro Alves <palves@redhat.com>
2991
2992 * progspace-and-thread.c (switch_to_program_space_and_thread):
2993 Assert there's an inferior for PSPACE. Use
2994 switch_to_inferior_no_thread to switch the inferior too.
2995 * progspace.c (program_space::~program_space): Call
2996 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
2997 (program_space::free_all_objfiles): Don't call clear_symtab_users
2998 here.
2999 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
3000
65c574f6
PA
30012020-01-10 Pedro Alves <palves@redhat.com>
3002
3003 * NEWS: Mention multi-target debugging, "info connections", and
3004 "add-inferior -no-connection".
3005
2f4fcf00
PA
30062020-01-10 Pedro Alves <palves@redhat.com>
3007
3008 * infrun.c: Include "target-connection.h".
3009 (check_multi_target_resumption): New.
3010 (proceed): Call it.
3011 * target-connection.c (make_target_connection_string): Make
3012 extern.
3013 * target-connection.h (make_target_connection_string): Declare.
3014
121b3efd
PA
30152020-01-10 Pedro Alves <palves@redhat.com>
3016
3017 * Makefile.in (COMMON_SFILES): Add target-connection.c.
3018 * inferior.c (uiout_field_connection): New function.
3019 (print_inferior): Add new "connection-id" column.
3020 (add_inferior_command): Show connection number/string of added
3021 inferior.
3022 * process-stratum-target.h
3023 (process_stratum_target::connection_string): New virtual method.
3024 (process_stratum_target::connection_number): New field.
3025 * remote.c (remote_target::connection_string): New override.
3026 * target-connection.c: New file.
3027 * target-connection.h: New file.
3028 * target.c (decref_target): Remove process_stratum targets from
3029 the connection list.
3030 (target_stack::push): Add process_stratum targets to the
3031 connection list.
3032
4f837581
PA
30332020-01-10 Pedro Alves <palves@redhat.com>
3034
3035 Revert:
3036 2016-04-12 Pedro Alves <palves@redhat.com>
3037 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
3038 Remove references to name.
3039 * serial.h (struct serial) <name>: Delete.
3040
f4ec508e
PA
30412020-01-10 Pedro Alves <palves@redhat.com>
3042
3043 * gdbarch-selftests.c (register_to_value_test): Remove "target
3044 already pushed" check.
3045
5b6d1e4f
PA
30462020-01-10 Pedro Alves <palves@redhat.com>
3047 John Baldwin <jhb@FreeBSD.org>
3048
3049 * aarch64-linux-nat.c
3050 (aarch64_linux_nat_target::thread_architecture): Adjust.
3051 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
3052 (task_command_1): Likewise.
3053 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
3054 (aix_thread_target::wait, aix_thread_target::fetch_registers)
3055 (aix_thread_target::store_registers)
3056 (aix_thread_target::thread_alive): Adjust.
3057 * amd64-fbsd-tdep.c: Include "inferior.h".
3058 (amd64fbsd_get_thread_local_address): Pass down target.
3059 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
3060 thread's gdbarch instead of target_gdbarch.
3061 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
3062 get_last_target_status.
3063 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
3064 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
3065 inferiors.
3066 (update_inserted_breakpoint_locations): Skip if inferiors with no
3067 execution.
3068 (update_global_location_list): When handling moribund locations,
3069 find representative inferior for location's pspace, and use thread
3070 count of its process_stratum target.
3071 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
3072 * bsd-uthread.c (bsd_uthread_target::wait): Use
3073 as_process_stratum_target and adjust thread_change_ptid and
3074 add_thread calls.
3075 (bsd_uthread_target::update_thread_list): Use
3076 as_process_stratum_target and adjust find_thread_ptid,
3077 thread_change_ptid and add_thread calls.
3078 * btrace.c (maint_btrace_packet_history_cmd): Adjust
3079 find_thread_ptid call.
3080 * corelow.c (add_to_thread_list): Adjust add_thread call.
3081 (core_target_open): Adjust add_thread_silent and thread_count
3082 calls.
3083 (core_target::pid_to_str): Adjust find_inferior_ptid call.
3084 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
3085 * event-top.c (async_disconnect): Pop targets from all inferiors.
3086 * exec.c (add_target_sections): Push exec target on all inferiors
3087 sharing the program space.
3088 (remove_target_sections): Remove the exec target from all
3089 inferiors sharing the program space.
3090 (exec_on_vfork): New.
3091 * exec.h (exec_on_vfork): Declare.
3092 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
3093 Pass it down.
3094 (fbsd_nat_target::update_thread_list): Adjust.
3095 (fbsd_nat_target::resume): Adjust.
3096 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
3097 down.
3098 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
3099 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
3100 get_thread_arch_regcache call.
3101 * fork-child.c (gdb_startup_inferior): Pass target down to
3102 startup_inferior and set_executing.
3103 * gdbthread.h (struct process_stratum_target): Forward declare.
3104 (add_thread, add_thread_silent, add_thread_with_info)
3105 (in_thread_list): Add process_stratum_target parameter.
3106 (find_thread_ptid(inferior*, ptid_t)): New overload.
3107 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
3108 parameter.
3109 (all_threads()): Delete overload.
3110 (all_threads, all_non_exited_threads): Add process_stratum_target
3111 parameter.
3112 (all_threads_safe): Use brace initialization.
3113 (thread_count): Add process_stratum_target parameter.
3114 (set_resumed, set_running, set_stop_requested, set_executing)
3115 (threads_are_executing, finish_thread_state): Add
3116 process_stratum_target parameter.
3117 (switch_to_thread): Use is_current_thread.
3118 * i386-fbsd-tdep.c: Include "inferior.h".
3119 (i386fbsd_get_thread_local_address): Pass down target.
3120 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
3121 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
3122 have_inferiors check.
3123 * inf-ptrace.c (inf_ptrace_target::create_inferior)
3124 (inf_ptrace_target::attach): Adjust.
3125 * infcall.c (run_inferior_call): Adjust.
3126 * infcmd.c (run_command_1): Pass target to
3127 scoped_finish_thread_state.
3128 (proceed_thread_callback): Skip inferiors with no execution.
3129 (continue_command): Rename 'all_threads' local to avoid hiding
3130 'all_threads' function. Adjust get_last_target_status call.
3131 (prepare_one_step): Adjust set_running call.
3132 (signal_command): Use user_visible_resume_target. Compare thread
3133 pointers instead of inferior_ptid.
3134 (info_program_command): Adjust to pass down target.
3135 (attach_command): Mark target's 'thread_executing' flag.
3136 (stop_current_target_threads_ns): New, factored out from ...
3137 (interrupt_target_1): ... this. Switch inferior before making
3138 target calls.
3139 * inferior-iter.h
3140 (struct all_inferiors_iterator, struct all_inferiors_range)
3141 (struct all_inferiors_safe_range)
3142 (struct all_non_exited_inferiors_range): Filter on
3143 process_stratum_target too. Remove explicit.
3144 * inferior.c (inferior::inferior): Push dummy target on target
3145 stack.
3146 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
3147 Add process_stratum_target parameter, and pass it down.
3148 (have_live_inferiors): Adjust.
3149 (switch_to_inferior_and_push_target): New.
3150 (add_inferior_command, clone_inferior_command): Handle
3151 "-no-connection" parameter. Use
3152 switch_to_inferior_and_push_target.
3153 (_initialize_inferior): Mention "-no-connection" option in
3154 the help of "add-inferior" and "clone-inferior" commands.
3155 * inferior.h: Include "process-stratum-target.h".
3156 (interrupt_target_1): Use bool.
3157 (struct inferior) <push_target, unpush_target, target_is_pushed,
3158 find_target_beneath, top_target, process_target, target_at,
3159 m_stack>: New.
3160 (discard_all_inferiors): Delete.
3161 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
3162 (all_inferiors, all_non_exited_inferiors): Add
3163 process_stratum_target parameter.
3164 * infrun.c: Include "gdb_select.h" and <unordered_map>.
3165 (target_last_proc_target): New global.
3166 (follow_fork_inferior): Push target on new inferior. Pass target
3167 to add_thread_silent. Call exec_on_vfork. Handle target's
3168 reference count.
3169 (follow_fork): Adjust get_last_target_status call. Also consider
3170 target.
3171 (follow_exec): Push target on new inferior.
3172 (struct execution_control_state) <target>: New field.
3173 (user_visible_resume_target): New.
3174 (do_target_resume): Call target_async.
3175 (resume_1): Set target's threads_executing flag. Consider resume
3176 target.
3177 (commit_resume_all_targets): New.
3178 (proceed): Also consider resume target. Skip threads of inferiors
3179 with no execution. Commit resumtion in all targets.
3180 (start_remote): Pass current inferior to wait_for_inferior.
3181 (infrun_thread_stop_requested): Consider target as well. Pass
3182 thread_info pointer to clear_inline_frame_state instead of ptid.
3183 (infrun_thread_thread_exit): Consider target as well.
3184 (random_pending_event_thread): New inferior parameter. Use it.
3185 (do_target_wait): Rename to ...
3186 (do_target_wait_1): ... this. Add inferior parameter, and pass it
3187 down.
3188 (threads_are_resumed_pending_p, do_target_wait): New.
3189 (prepare_for_detach): Adjust calls.
3190 (wait_for_inferior): New inferior parameter. Handle it. Use
3191 do_target_wait_1 instead of do_target_wait.
3192 (fetch_inferior_event): Adjust. Switch to representative
3193 inferior. Pass target down.
3194 (set_last_target_status): Add process_stratum_target parameter.
3195 Save target in global.
3196 (get_last_target_status): Add process_stratum_target parameter and
3197 handle it.
3198 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
3199 (context_switch): Check inferior_ptid == null_ptid before calling
3200 inferior_thread().
3201 (get_inferior_stop_soon): Pass down target.
3202 (wait_one): Rename to ...
3203 (poll_one_curr_target): ... this.
3204 (struct wait_one_event): New.
3205 (wait_one): New.
3206 (stop_all_threads): Adjust.
3207 (handle_no_resumed, handle_inferior_event): Adjust to consider the
3208 event's target.
3209 (switch_back_to_stepped_thread): Also consider target.
3210 (print_stop_event): Update.
3211 (normal_stop): Update. Also consider the resume target.
3212 * infrun.h (wait_for_inferior): Remove declaration.
3213 (user_visible_resume_target): New declaration.
3214 (get_last_target_status, set_last_target_status): New
3215 process_stratum_target parameter.
3216 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3217 process_stratum_target parameter, and use it.
3218 (clear_inline_frame_state (thread_info*)): New.
3219 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3220 process_stratum_target parameter.
3221 (clear_inline_frame_state (thread_info*)): Declare.
3222 * linux-fork.c (delete_checkpoint_command): Pass target down to
3223 find_thread_ptid.
3224 (checkpoint_command): Adjust.
3225 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
3226 instead of just tweaking inferior_ptid.
3227 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
3228 (exit_lwp): Pass target down to find_thread_ptid.
3229 (attach_proc_task_lwp_callback): Pass target down to
3230 add_thread/set_running/set_executing.
3231 (linux_nat_target::attach): Pass target down to
3232 thread_change_ptid.
3233 (get_detach_signal): Pass target down to find_thread_ptid.
3234 Consider last target status's target.
3235 (linux_resume_one_lwp_throw, resume_lwp)
3236 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
3237 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
3238 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
3239 (linux_nat_target::async_wait_fd): New.
3240 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
3241 target down.
3242 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
3243 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
3244 * linux-thread-db.c (struct thread_db_info::process_target): New
3245 field.
3246 (add_thread_db_info): Save target.
3247 (get_thread_db_info): New process_stratum_target parameter. Also
3248 match target.
3249 (delete_thread_db_info): New process_stratum_target parameter.
3250 Also match target.
3251 (thread_from_lwp): Adjust to pass down target.
3252 (thread_db_notice_clone): Pass down target.
3253 (check_thread_db_callback): Pass down target.
3254 (try_thread_db_load_1): Always push the thread_db target.
3255 (try_thread_db_load, record_thread): Pass target down.
3256 (thread_db_target::detach): Pass target down. Always unpush the
3257 thread_db target.
3258 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
3259 target down. Always unpush the thread_db target.
3260 (find_new_threads_callback, thread_db_find_new_threads_2)
3261 (thread_db_target::update_thread_list): Pass target down.
3262 (thread_db_target::pid_to_str): Pass current inferior down.
3263 (thread_db_target::get_thread_local_address): Pass target down.
3264 (thread_db_target::resume, maintenance_check_libthread_db): Pass
3265 target down.
3266 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
3267 * procfs.c (procfs_target::procfs_init_inferior): Declare.
3268 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
3269 (procfs_init_inferior): Rename to ...
3270 (procfs_target::procfs_init_inferior): ... this and adjust.
3271 (procfs_target::create_inferior, procfs_notice_thread)
3272 (procfs_do_thread_registers): Adjust.
3273 * ppc-fbsd-tdep.c: Include "inferior.h".
3274 (ppcfbsd_get_thread_local_address): Pass down target.
3275 * proc-service.c (ps_xfer_memory): Switch current inferior and
3276 program space as well.
3277 (get_ps_regcache): Pass target down.
3278 * process-stratum-target.c
3279 (process_stratum_target::thread_address_space)
3280 (process_stratum_target::thread_architecture): Pass target down.
3281 * process-stratum-target.h
3282 (process_stratum_target::threads_executing): New field.
3283 (as_process_stratum_target): New.
3284 * ravenscar-thread.c
3285 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
3286 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
3287 down.
3288 * record-btrace.c (record_btrace_target::info_record): Adjust.
3289 (record_btrace_target::record_method)
3290 (record_btrace_target::record_is_replaying)
3291 (record_btrace_target::fetch_registers)
3292 (get_thread_current_frame_id, record_btrace_target::resume)
3293 (record_btrace_target::wait, record_btrace_target::stop): Pass
3294 target down.
3295 * record-full.c (record_full_wait_1): Switch to event thread.
3296 Pass target down.
3297 * regcache.c (regcache::regcache)
3298 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
3299 process_stratum_target parameter and handle it.
3300 (current_thread_target): New global.
3301 (get_thread_regcache): Add process_stratum_target parameter and
3302 handle it. Switch inferior before calling target method.
3303 (get_thread_regcache): Pass target down.
3304 (get_thread_regcache_for_ptid): Pass target down.
3305 (registers_changed_ptid): Add process_stratum_target parameter and
3306 handle it.
3307 (registers_changed_thread, registers_changed): Pass target down.
3308 (test_get_thread_arch_aspace_regcache): New.
3309 (current_regcache_test): Define a couple local test_target_ops
3310 instances and use them for testing.
3311 (readwrite_regcache): Pass process_stratum_target parameter.
3312 (cooked_read_test, cooked_write_test): Pass mock_target down.
3313 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
3314 (get_thread_arch_aspace_regcache): Add process_stratum_target
3315 parameter.
3316 (regcache::target): New method.
3317 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
3318 (regcache::registers_changed_ptid): Add process_stratum_target
3319 parameter.
3320 (regcache::m_target): New field.
3321 (registers_changed_ptid): Add process_stratum_target parameter.
3322 * remote.c (remote_state::supports_vCont_probed): New field.
3323 (remote_target::async_wait_fd): New method.
3324 (remote_unpush_and_throw): Add remote_target parameter.
3325 (get_current_remote_target): Adjust.
3326 (remote_target::remote_add_inferior): Push target.
3327 (remote_target::remote_add_thread)
3328 (remote_target::remote_notice_new_inferior)
3329 (get_remote_thread_info): Pass target down.
3330 (remote_target::update_thread_list): Skip threads of inferiors
3331 bound to other targets. (remote_target::close): Don't discard
3332 inferiors. (remote_target::add_current_inferior_and_thread)
3333 (remote_target::process_initial_stop_replies)
3334 (remote_target::start_remote)
3335 (remote_target::remote_serial_quit_handler): Pass down target.
3336 (remote_target::remote_unpush_target): New remote_target
3337 parameter. Unpush the target from all inferiors.
3338 (remote_target::remote_unpush_and_throw): New remote_target
3339 parameter. Pass it down.
3340 (remote_target::open_1): Check whether the current inferior has
3341 execution instead of checking whether any inferior is live. Pass
3342 target down.
3343 (remote_target::remote_detach_1): Pass down target. Use
3344 remote_unpush_target.
3345 (extended_remote_target::attach): Pass down target.
3346 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
3347 (remote_target::append_resumption): Pass down target.
3348 (remote_target::append_pending_thread_resumptions)
3349 (remote_target::remote_resume_with_hc, remote_target::resume)
3350 (remote_target::commit_resume): Pass down target.
3351 (remote_target::remote_stop_ns): Check supports_vCont_probed.
3352 (remote_target::interrupt_query)
3353 (remote_target::remove_new_fork_children)
3354 (remote_target::check_pending_events_prevent_wildcard_vcont)
3355 (remote_target::remote_parse_stop_reply)
3356 (remote_target::process_stop_reply): Pass down target.
3357 (first_remote_resumed_thread): New remote_target parameter. Pass
3358 it down.
3359 (remote_target::wait_as): Pass down target.
3360 (unpush_and_perror): New remote_target parameter. Pass it down.
3361 (remote_target::readchar, remote_target::remote_serial_write)
3362 (remote_target::getpkt_or_notif_sane_1)
3363 (remote_target::kill_new_fork_children, remote_target::kill): Pass
3364 down target.
3365 (remote_target::mourn_inferior): Pass down target. Use
3366 remote_unpush_target.
3367 (remote_target::core_of_thread)
3368 (remote_target::remote_btrace_maybe_reopen): Pass down target.
3369 (remote_target::pid_to_exec_file)
3370 (remote_target::thread_handle_to_thread_info): Pass down target.
3371 (remote_target::async_wait_fd): New.
3372 * riscv-fbsd-tdep.c: Include "inferior.h".
3373 (riscv_fbsd_get_thread_local_address): Pass down target.
3374 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
3375 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
3376 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
3377 Adjust.
3378 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
3379 * solib-svr4.c (enable_break): Pass down target.
3380 * spu-multiarch.c (parse_spufs_run): Pass down target.
3381 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
3382 * target-delegates.c: Regenerate.
3383 * target.c (g_target_stack): Delete.
3384 (current_top_target): Return the current inferior's top target.
3385 (target_has_execution_1): Refer to the passed-in inferior's top
3386 target.
3387 (target_supports_terminal_ours): Check whether the initial
3388 inferior was already created.
3389 (decref_target): New.
3390 (target_stack::push): Incref/decref the target.
3391 (push_target, push_target, unpush_target): Adjust.
3392 (target_stack::unpush): Defref target.
3393 (target_is_pushed): Return bool. Adjust to refer to the current
3394 inferior's target stack.
3395 (dispose_inferior): Delete, and inline parts ...
3396 (target_preopen): ... here. Only dispose of the current inferior.
3397 (target_detach): Hold strong target reference while detaching.
3398 Pass target down.
3399 (target_thread_name): Add assertion.
3400 (target_resume): Pass down target.
3401 (target_ops::beneath, find_target_at): Adjust to refer to the
3402 current inferior's target stack.
3403 (get_dummy_target): New.
3404 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
3405 has a thread running.
3406 (initialize_targets): Rename to ...
3407 (_initialize_target): ... this.
3408 * target.h: Include "gdbsupport/refcounted-object.h".
3409 (struct target_ops): Inherit refcounted_object.
3410 (target_ops::shortname, target_ops::longname): Make const.
3411 (target_ops::async_wait_fd): New method.
3412 (decref_target): Declare.
3413 (struct target_ops_ref_policy): New.
3414 (target_ops_ref): New typedef.
3415 (get_dummy_target): Declare function.
3416 (target_is_pushed): Return bool.
3417 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
3418 (all_matching_threads_iterator::all_matching_threads_iterator):
3419 Handle filter target.
3420 * thread-iter.h (struct all_matching_threads_iterator, struct
3421 all_matching_threads_range, class all_non_exited_threads_range):
3422 Filter by target too. Remove explicit.
3423 * thread.c (threads_executing): Delete.
3424 (inferior_thread): Pass down current inferior.
3425 (clear_thread_inferior_resources): Pass down thread pointer
3426 instead of ptid_t.
3427 (add_thread_silent, add_thread_with_info, add_thread): Add
3428 process_stratum_target parameter. Use it for thread and inferior
3429 searches.
3430 (is_current_thread): New.
3431 (thread_info::deletable): Use it.
3432 (find_thread_ptid, thread_count, in_thread_list)
3433 (thread_change_ptid, set_resumed, set_running): New
3434 process_stratum_target parameter. Pass it down.
3435 (set_executing): New process_stratum_target parameter. Pass it
3436 down. Adjust reference to 'threads_executing'.
3437 (threads_are_executing): New process_stratum_target parameter.
3438 Adjust reference to 'threads_executing'.
3439 (set_stop_requested, finish_thread_state): New
3440 process_stratum_target parameter. Pass it down.
3441 (switch_to_thread): Also match inferior.
3442 (switch_to_thread): New process_stratum_target parameter. Pass it
3443 down.
3444 (update_threads_executing): Reimplement.
3445 * top.c (quit_force): Pop targets from all inferior.
3446 (gdb_init): Don't call initialize_targets.
3447 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
3448 Declare.
3449 (windows_add_thread, windows_delete_thread): Adjust.
3450 (get_windows_debug_event): Rename to ...
3451 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
3452 * tracefile-tfile.c (tfile_target_open): Pass down target.
3453 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
3454 Forward declare.
3455 (switch_to_thread): Add process_stratum_target parameter.
3456 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
3457 parameter. Use it.
3458 (mi_on_resume): Pass target down.
3459 * nat/fork-inferior.c (startup_inferior): Add
3460 process_stratum_target parameter. Pass it down.
3461 * nat/fork-inferior.h (startup_inferior): Add
3462 process_stratum_target parameter.
3463 * python/py-threadevent.c (py_get_event_thread): Pass target down.
3464
75c6c844
PA
34652020-01-10 Pedro Alves <palves@redhat.com>
3466
3467 * remote.c (remote_target::start_remote): Don't set inferior_ptid
3468 directly. Instead find the first thread in the thread list and
3469 use switch_to_thread.
3470
78f2c40a
PA
34712020-01-10 Pedro Alves <palves@redhat.com>
3472
3473 * remote.c (remote_target::remote_add_inferior): Don't bind a
3474 process to the current inferior if the current inferior is already
3475 bound to a process.
3476
e7af6c70
TBA
34772020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478 Pedro Alves <palves@redhat.com>
3479
3480 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
3481 If no process is specified, return null_ptid instead of
3482 inferior_ptid.
3483 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
3484 TARGET_WAITKIND_SIGNALLED with no pid.
3485
31ba933e
PA
34862020-01-10 Pedro Alves <palves@redhat.com>
3487
3488 * remote.c (first_remote_resumed_thread): New.
3489 (remote_target::wait_as): Use it as default event_ptid instead of
3490 inferior_ptid.
3491
735fc2ca
PA
34922020-01-10 Pedro Alves <palves@redhat.com>
3493
3494 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
3495
c17e02e1
PA
34962020-01-10 Pedro Alves <palves@redhat.com>
3497
3498 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
3499 not -1.
3500
ab1ddbcf
PA
35012020-01-10 Pedro Alves <palves@redhat.com>
3502
3503 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
3504 ptid to get_last_target_status.
3505 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
3506 ptid to get_last_target_status.
3507 * infcmd.c (continue_command): Don't pass a target_waitstatus to
3508 get_last_target_status.
3509 (info_program_command): Don't pass a target_waitstatus to
3510 get_last_target_status.
3511 * infrun.c (init_wait_for_inferior): Use
3512 nullify_last_target_wait_ptid.
3513 (get_last_target_status): Handle nullptr arguments.
3514 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
3515 (print_stop_event): Don't pass a ptid to get_last_target_status.
3516 (normal_stop): Don't pass a ptid to get_last_target_status.
3517 * infrun.h (get_last_target_status, set_last_target_status): Move
3518 comments here and update.
3519 (nullify_last_target_wait_ptid): Declare.
3520 * linux-fork.c (fork_load_infrun_state): Remove local extern
3521 declaration of nullify_last_target_wait_ptid.
3522 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
3523 to get_last_target_status.
3524
f3f8ece4
PA
35252020-01-10 Pedro Alves <palves@redhat.com>
3526
3527 * gdbthread.h (scoped_restore_current_thread)
3528 <dont_restore, restore, m_dont_restore>: Declare.
3529 * thread.c (thread_alive): Add assertion. Return bool.
3530 (switch_to_thread_if_alive): New.
3531 (prune_threads): Switch inferior/thread.
3532 (print_thread_info_1): Switch thread before calling target methods.
3533 (scoped_restore_current_thread::restore): New, factored out from
3534 ...
3535 (scoped_restore_current_thread::~scoped_restore_current_thread):
3536 ... this.
3537 (scoped_restore_current_thread::scoped_restore_current_thread):
3538 Add assertion.
3539 (thread_apply_all_command, thread_select): Use
3540 switch_to_thread_if_alive.
3541 * infrun.c (proceed, restart_threads, handle_signal_stop)
3542 (switch_back_to_stepped_thread): Switch current thread before
3543 calling target methods.
3544
db2d40f7
PA
35452020-01-10 Pedro Alves <palves@redhat.com>
3546
3547 * inferior.c (switch_to_inferior_no_thread): New function,
3548 factored out from ...
3549 (inferior_command): ... here.
3550 * inferior.h (switch_to_inferior_no_thread): Declare.
3551 * mi/mi-main.c (run_one_inferior): Use
3552 switch_to_inferior_no_thread.
3553
bd420a2d
PA
35542020-01-10 Pedro Alves <palves@redhat.com>
3555
3556 * infcmd.c (kill_command): Remove dead code.
3557
ddf5db90
PA
35582020-01-10 Pedro Alves <palves@redhat.com>
3559
3560 * remote.c (remote_target::mourn_inferior): No longer check
3561 whether the target is running.
3562
5018ce90
PA
35632020-01-10 Pedro Alves <palves@redhat.com>
3564
3565 * corelow.c (core_target::has_execution): Change parameter type to
3566 inferior pointer.
3567 * inferior.c (number_of_live_inferiors): Use
3568 inferior::has_execution instead of target_has_execution_1.
3569 * inferior.h (inferior::has_execution): New.
3570 * linux-thread-db.c (thread_db_target::update_thread_list): Use
3571 inferior::has_execution instead of target_has_execution_1.
3572 * process-stratum-target.c
3573 (process_stratum_target::has_execution): Change parameter type to
3574 inferior pointer. Check the inferior's PID instead of
3575 inferior_ptid.
3576 * process-stratum-target.h
3577 (process_stratum_target::has_execution): Change parameter type to
3578 inferior pointer.
3579 * record-full.c (record_full_core_target::has_execution): Change
3580 parameter type to inferior pointer.
3581 * target.c (target_has_execution_1): Change parameter type to
3582 inferior pointer.
3583 (target_has_execution_current): Adjust.
3584 * target.h (target_ops::has_execution): Change parameter type to
3585 inferior pointer.
3586 (target_has_execution_1): Change parameter type to inferior
3587 pointer. Change return type to bool.
3588 * tracefile.h (tracefile_target::has_execution): Change parameter
3589 type to inferior pointer.
3590
74375d18
PA
35912020-01-10 Pedro Alves <palves@redhat.com>
3592
3593 * exceptions.c (print_flush): Remove current_top_target() check.
3594
acdf84a6
PA
35952020-01-10 Pedro Alves <palves@redhat.com>
3596
3597 * remote.c (show_remote_exec_file): Show the current inferior's
3598 exec-file instead of the command variable's value.
3599
ec506636
PA
36002020-01-10 Pedro Alves <palves@redhat.com>
3601
3602 * record-full.c (record_full_resume_ptid): New global.
3603 (record_full_target::resume): Set it.
3604 (record_full_wait_1): Use record_full_resume_ptid instead of
3605 inferior_ptid.
3606
873657b9
PA
36072020-01-10 Pedro Alves <palves@redhat.com>
3608
3609 * gdbthread.h (scoped_restore_current_thread)
3610 <dont_restore, restore, m_dont_restore>: Declare.
3611 * thread.c (thread_alive): Add assertion. Return bool.
3612 (switch_to_thread_if_alive): New.
3613 (prune_threads): Switch inferior/thread.
3614 (print_thread_info_1): Switch thread before calling target methods.
3615 (scoped_restore_current_thread::restore): New, factored out from
3616 ...
3617 (scoped_restore_current_thread::~scoped_restore_current_thread):
3618 ... this.
3619 (scoped_restore_current_thread::scoped_restore_current_thread):
3620 Add assertion.
3621 (thread_apply_all_command, thread_select): Use
3622 switch_to_thread_if_alive.
3623
7f0ae84c
GB
36242020-01-10 George Barrett <bob@bob131.so>
3625
3626 * stap-probe.c (stap_modify_semaphore): Don't check for null
3627 semaphores.
3628 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
3629 for null semaphores.
3630
f5a7c406
AB
36312020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
3632
3633 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
3634 all source windows, and maintain horizontal scroll status while
3635 doing so.
3636
9ae6bf64
TT
36372020-01-09 Tom Tromey <tom@tromey.com>
3638
3639 PR tui/18932:
3640 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
3641 update_source_window, not print_source_lines.
3642
b2efe70c
AB
36432020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * tui/tui.c (tui_enable): Register tui hooks after calling
3646 tui_display_main.
3647
5f23a082
CB
36482020-01-09 Christian Biesinger <cbiesinger@google.com>
3649
3650 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
3651
3061113b
SM
36522020-01-08 Simon Marchi <simon.marchi@efficios.com>
3653
3654 * thread.c (print_thread_info_1): Fix indentation.
3655
57d75002
CB
36562020-01-09 Christian Biesinger <cbiesinger@google.com>
3657
3658 * symtab.c (general_symbol_info::compute_and_set_names): Move the
3659 unique_xmalloc_ptr outside the if to always free the demangled name.
3660
6a053cb1
TT
36612020-01-08 Tom Tromey <tromey@adacore.com>
3662
3663 * xcoffread.c (enter_line_range, read_xcoff_symtab)
3664 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
3665 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
3666 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
3667 Remove.
3668 (section_offsets): New typedef.
3669 * symtab.c (fixup_section, get_msymbol_address): Update.
3670 * symmisc.c (dump_msymbols): Update.
3671 * symfile.h (relative_addr_info_to_section_offsets)
3672 (symfile_map_offsets_to_segments): Update.
3673 * symfile.c (build_section_addr_info_from_objfile)
3674 (init_objfile_sect_indices): Update.
3675 (struct place_section_arg): Change type of "offsets".
3676 (place_section): Update.
3677 (relative_addr_info_to_section_offsets): Change type of
3678 "section_offsets". Remove "num_sections" parameter.
3679 (default_symfile_offsets, syms_from_objfile_1)
3680 (set_objfile_default_section_offset): Update.
3681 (reread_symbols): No need to preserve section offsets by hand.
3682 (symfile_map_offsets_to_segments): Change type of "offsets".
3683 * stap-probe.c (relocate_address): Update.
3684 * stabsread.h (process_one_symbol): Update.
3685 * solib-target.c (struct lm_info_target) <offsets>: Change type.
3686 (solib_target_relocate_section_addresses): Update.
3687 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
3688 Update.
3689 * solib-frv.c (frv_relocate_main_executable): Update.
3690 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3691 * solib-aix.c (solib_aix_get_section_offsets): Change return
3692 type.
3693 (solib_aix_solib_create_inferior_hook): Update.
3694 * remote.c (remote_target::get_offsets): Update.
3695 * psymtab.c (find_pc_sect_psymtab): Update.
3696 * psympriv.h (struct partial_symbol) <address, text_low,
3697 text_high>: Update.
3698 * objfiles.h (obj_section_offset): Update.
3699 (struct objfile) <section_offsets>: Change type.
3700 <num_sections>: Remove.
3701 (objfile_relocate): Update.
3702 * objfiles.c (entry_point_address_query): Update
3703 (relocate_one_symbol): Change type of "section_offsets".
3704 (objfile_relocate1, objfile_relocate1): Change type of
3705 "new_offsets".
3706 (objfile_rebase1): Update.
3707 * mipsread.c (mipscoff_symfile_read): Update.
3708 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
3709 parameter.
3710 * mdebugread.c (parse_symbol): Change type of "section_offsets".
3711 (parse_external, psymtab_to_symtab_1): Update.
3712 * machoread.c (macho_symfile_offsets): Update.
3713 * ia64-tdep.c (ia64_find_unwind_table): Update.
3714 * hppa-tdep.c (read_unwind_info): Update.
3715 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
3716 * dwarf2read.c (create_addrmap_from_index)
3717 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3718 (process_psymtab_comp_unit_reader, add_partial_symbol)
3719 (add_partial_subprogram, process_full_comp_unit)
3720 (read_file_scope, read_func_scope, read_lexical_block_scope)
3721 (read_call_site_scope, dwarf2_rnglists_process)
3722 (dwarf2_ranges_process, dwarf2_ranges_read)
3723 (dwarf_decode_lines_1, var_decode_location, new_symbol)
3724 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
3725 Update.
3726 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
3727 Update.
3728 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
3729 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
3730 (process_one_symbol): Change type of "section_offsets".
3731 * ctfread.c (get_objfile_text_range): Update.
3732 * coffread.c (coff_symtab_read, enter_linenos)
3733 (process_coff_symbol): Update.
3734 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3735 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
3736
456e800a
TT
37372020-01-08 Tom Tromey <tromey@adacore.com>
3738
3739 * dwarf2read.c (parse_macro_definition): Use std::string.
3740 (parse_macro_definition): Likewise.
3741
6dfa2fc2
TT
37422020-01-08 Tom Tromey <tromey@adacore.com>
3743
3744 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
3745 (ATTR_ALLOC_CHUNK): Remove.
3746
421d1616
TT
37472020-01-08 Tom Tromey <tromey@adacore.com>
3748
3749 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
3750
43816ebc
TT
37512020-01-08 Tom Tromey <tromey@adacore.com>
3752
3753 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
3754 (dwarf2_compute_name, open_dwo_file): Likewise.
3755 (process_enumeration_scope): Use std::vector.
3756 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
3757 (partial_die_info::fixup, dwarf2_start_subfile)
3758 (guess_full_die_structure_name, dwarf2_name): Likewise.
3759 (determine_prefix): Update.
3760 (guess_full_die_structure_name): Make return type const.
3761 (partial_die_full_name): Return unique_xmalloc_ptr.
3762 (DW_FIELD_ALLOC_CHUNK): Remove.
3763
4212d509
TT
37642020-01-07 Tom Tromey <tromey@adacore.com>
3765
3766 PR build/24937:
3767 * stap-probe.c (class stap_static_probe_ops): Add constructor.
3768
06a6207a
JT
37692020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
3770
3771 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
3772
153d79c4
AB
37732020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * stack.c (print_frame_info): Move disassemble_next_line code
3776 inside source_print block.
3777
66182876
EZ
37782020-01-06 Eli Zaretskii <eliz@gnu.org>
3779
3780 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
3781 gdb/signals.h, as we are now using native signal symbols.
3782
cbfa8581
SV
37832020-01-06 Shahab Vahedi <shahab@synopsys.com>
3784
3785 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
3786 overflow by an early check of content vs threshold.
3787 * tui/tui-source.c (tui_source_window::line_is_displayed):
3788 Likewise.
3789
3f602821
EZ
37902020-01-06 Eli Zaretskii <eliz@gnu.org>
3791
3792 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
3793
a08c904d
JT
37942020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
3795
3796 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
3797 export table if no section contains it's RVA.
3798
89a65580
EZ
37992020-01-06 Eli Zaretskii <eliz@gnu.org>
3800
3801 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
3802
8b7fcda2
HD
38032020-01-06 Hannes Domani <ssbssa@yahoo.de>
3804
3805 * source.c (print_source_lines_base): Set last_line_listed.
3806
a61b4f69
SV
38072020-01-06 Shahab Vahedi <shahab@synopsys.com>
3808
3809 * tui/tui-disasm.c: Remove trailing spaces.
3810
559e7e50
EZ
38112020-01-06 Eli Zaretskii <eliz@gnu.org>
3812 Pedro Alves <palves@redhat.com>
3813
3814 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
3815 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
3816 (windows_gdb_signal_to_target): New function, uses the above
3817 enumeration to convert GDB internal signal codes to equivalent
3818 Windows codes.
3819 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
3820 * windows-nat.c: Include "gdb_wait.h".
3821 (get_windows_debug_event): Extract the fatal exception from the
3822 exit status and convert to the equivalent Posix signal number.
3823 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
3824 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
3825 * gdbsupport/gdb_wait.c: New file, implements
3826 windows_status_to_termsig.
3827 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
3828 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
3829
f2302a34
AB
38302020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
3833 show_layout.
3834
6a5206eb
LM
38352020-01-05 Luis Machado <luis.machado@linaro.org>
3836
3837 * aarch64-linux-nat.c
3838 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
3839 and bfd_mach_aarch64.
3840
6ec1d75e
PW
38412020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3842
3843 * ui-file.c (stdio_file::can_emit_style_escape)
3844 (tee_file::can_emit_style_escape): Ensure style is used also on
3845 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
3846 to gdb_stdout.
3847 * main.c (set_gdb_data_directory): Use file style to output the
3848 warning that the given pathname is not a directory.
3849 * top.c (show_history_filename, gdb_safe_append_history)
3850 (show_gdb_datadir): Use file style.
3851
44f81a76
HD
38522020-01-03 Hannes Domani <ssbssa@yahoo.de>
3853
3854 * solib-target.c (struct lm_info_target):
3855 Change offsets to be a unique_xmalloc_ptr.
3856 (solib_target_relocate_section_addresses): Update.
3857
25057eb0
HD
38582020-01-03 Hannes Domani <ssbssa@yahoo.de>
3859
3860 * windows-nat.c (windows_clear_solib): Free so_list linked list.
3861
6e2118f5
BE
38622020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3863
3864 * MAINTAINERS (Write After Approval): Add myself.
3865
8133c7dc
LM
38662020-01-02 Luis Machado <luis.machado@linaro.org>
3867
3868 * proc-service.c (get_ps_regcache): Remove reference to obsolete
3869 Cell BE architecture.
3870 * target.h (struct target_ops) <thread_architecture>: Likewise.
3871
48189bec
HD
38722020-01-01 Hannes Domani <ssbssa@yahoo.de>
3873
3874 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3875
ead1063b
HD
38762020-01-01 Hannes Domani <ssbssa@yahoo.de>
3877
3878 * MAINTAINERS (Write After Approval): Add myself.
3879
e5d78223
JB
38802020-01-01 Joel Brobecker <brobecker@adacore.com>
3881
3882 * gdbarch.sh: Update copyright year range of generated files.
3883
b811d2c2
JB
38842020-01-01 Joel Brobecker <brobecker@adacore.com>
3885
3886 Update copyright year range in all GDB files.
3887
5f4def5c
JB
38882020-01-01 Joel Brobecker <brobecker@adacore.com>
3889
3890 * copyright.py: Convert to Python 3.
3891
51fd4002
JB
38922020-01-01 Joel Brobecker <brobecker@adacore.com>
3893
3894 * copyright.py: Adapt after move of gnulib directory from gdb
3895 directory to toplevel directory.
3896
5fb651f2
JB
38972020-01-01 Joel Brobecker <brobecker@adacore.com>
3898
3899 * copyright.py (main): Exit if run from the wrong directory.
3900
5dd8bf88
JB
39012020-01-01 Joel Brobecker <brobecker@adacore.com>
3902
3903 * top.c (print_gdb_version): Change copyright year to 2020.
3904
9f71dacb 39052020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 3906
9f71dacb 3907 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 3908
9f71dacb 3909For older changes see ChangeLog-2019.
c906108c
SS
3910\f
3911Local Variables:
3912mode: change-log
3913left-margin: 8
3914fill-column: 74
3915version-control: never
57da7796 3916coding: utf-8
c906108c 3917End: