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