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