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