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