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