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