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