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