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