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