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