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