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