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