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