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