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