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