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