]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Don't derive tui_data_item_window from tui_gen_win_info
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7134f2eb
TT
12020-07-01 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-regs.c (tui_data_window::display_registers_from)
4 (tui_data_window::display_registers_from)
5 (tui_data_window::first_data_item_displayed)
6 (tui_data_window::delete_data_content_windows): Update.
7 (tui_data_window::refresh_window, tui_data_window::no_refresh):
8 Remove.
9 (tui_data_window::check_register_values): Update.
10 (tui_data_item_window::rerender): Add parameters. Update.
11 (tui_data_item_window::refresh_window): Remove.
12 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
13 virtual.
14 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
15 tui_gen_win_info.
16 <refresh_window, max_height, min_height>: Remove.
17 <rerender>: Add parameters.
18 <x, y, visible>: New members.
19 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
20 <m_item_width>: New member.
21
22b7b041
TT
222020-07-01 Tom Tromey <tom@tromey.com>
23
24 * tui/tui-regs.c (tui_data_window::show_register_group)
25 (tui_data_window::check_register_values): Update.
26 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
27 from item_no.
28
c9753adb
TT
292020-07-01 Tom Tromey <tom@tromey.com>
30
31 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
32 useless "if".
33
9ab26b4a
TT
342020-07-01 Tom Tromey <tom@tromey.com>
35
36 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
37 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
38
e555083f
TT
392020-07-01 Tom Tromey <tom@tromey.com>
40
41 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
42 * tui/tui-winsource.h (enum tui_line_or_address_kind)
43 (struct tui_line_or_address): Move from tui-data.h.
44 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
45 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
46 (tui_cmd_window, tui_source_window_base, tui_source_window)
47 (tui_disasm_window): Don't declare.
48 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
49 to tui-winsource.h.
50 (SINGLE_KEY): Move to tui-stack.c.
51
7a02bab7
TT
522020-07-01 Tom Tromey <tom@tromey.com>
53
54 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
55 std::string.
56 * tui/tui-regs.c (class tab_expansion_file): New.
57 (tab_expansion_file::write): New method.
58 (tui_register_format): Change return type. Use
59 tab_expansion_file.
60 (tui_get_register, tui_data_window::display_registers_from)
61 (tui_data_item_window::rerender): Update.
62 * tui/tui-io.h (tui_expand_tabs): Don't declare.
63 * tui/tui-io.c (tui_expand_tabs): Remove.
64
ea68593b
TT
652020-07-01 Tom Tromey <tom@tromey.com>
66
67 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
68
a8caed5d
FS
692020-07-01 Fangrui Song <maskray@google.com>
70
71 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
72
9cdf9820
AKS
732020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
74
75 * dwarf2/read.c (set_die_type): Removed conditions to restrict
76 forms for DW_AT_associated and DW_AT_allocated attributes,
77 which is already checked in function attr_to_dynamic_prop.
78
a1520ad8
TT
792020-06-30 Tom Tromey <tromey@adacore.com>
80
81 * dwarf2/read.c (quirk_rust_enum): Correctly call
82 alloc_rust_variant for default-less enum.
83
5ac58899
TT
842020-06-30 Tom Tromey <tromey@adacore.com>
85
86 PR build/26183:
87 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
88 gdb::to_string.
89
19b187a9
SM
902020-06-29 Simon Marchi <simon.marchi@efficios.com>
91
92 * gdbarch.sh (displaced_step_copy_insn): Update doc.
93 * gdbarch.h: Re-generate.
94
cd4c4c07
TT
952020-06-28 Tom Tromey <tom@tromey.com>
96
97 * command.h (cmd_types): Remove.
98 (cmd_type): Don't declare.
99 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
100 typedef.
101 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
102 * cli/cli-decode.c (cmd_type): Remove.
103
05779d57
PA
1042020-06-27 Pedro Alves <palves@redhat.com>
105
106 * fork-child.c (prefork_hook): Adjust.
107 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
108 Delete.
109 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
110 * inferior.c (inferior::set_tty, inferior::tty): New methods.
111 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
112 Remove declarations.
113 (struct inferior) <set_tty, tty>: New methods.
114 (struct inferior) <terminal>: Rename to ...
115 (struct inferior) <m_terminal>: ... this and make private.
116 * main.c (captured_main_1): Adjust.
117 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
118 (mi_cmd_inferior_tty_show): Adjust.
119 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
120 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
121
1776e3e5
NA
1222020-06-26 Nick Alcock <nick.alcock@oracle.com>
123
124 * configure.ac: Add --enable-libctf: handle --disable-static
125 properly.
126 * acinclude.m4: sinclude ../config/enable.m4.
127 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
128 (LIBCTF): Substitute in.
129 (CTF_DEPS): New, likewise.
130 (CLIBS): libctf needs symbols from libbfd: move earlier.
131 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
132 flags.
133 * ctfread.c: Surround in ENABLE_LIBCTF.
134 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
135 * configure: Regenerate.
136 * config.in: Likewise.
137
58373b80
SM
1382020-06-25 Simon Marchi <simon.marchi@efficios.com>
139
140 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
141
277474ee
SM
1422020-06-25 Simon Marchi <simon.marchi@efficios.com>
143
144 * inferior.h (struct inferior) <terminal>: Change type to
145 gdb::unique_xmalloc_ptr<char>.
146 * inferior.c (inferior::~inferior): Don't free inf->terminal.
147 * infcmd.c (set_inferior_io_terminal): Don't free terminal
148 field, adjust to unique pointer.
149 (get_inferior_io_terminal): Adjust to unique pointer.
150
6d74da72
AB
1512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * riscv-tdep.c (riscv_print_registers_info): Loop over all
154 registers, not just the known core set of registers.
155
2e52d038
AB
1562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
159 fflags, frm, and fcsr registers.
160 (riscv_register_reggroup_p): Remove unknown CSRs from save and
161 restore groups.
162 (riscv_tdesc_unknown_reg): New function.
163 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
164 tdesc_use_registers.
165 * riscv-tdep.h (struct gdbarch_tdep): Add
166 unknown_csrs_first_regnum, unknown_csrs_count,
167 duplicate_fflags_regnum, duplicate_frm_regnum, and
168 duplicate_fcsr_regnum fields.
169
be64fd07
AB
1702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
171
172 * target-descriptions.c (tdesc_use_registers): Add new parameter a
173 callback, use the callback (when not null) to help number unknown
174 registers.
175 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
176 (tdesc_use_registers): Add extra parameter to declaration.
177
3b9fce96
AB
1782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
181 in the file.
182 (class riscv_pending_register_alias): Likewise.
183 (riscv_register_feature::register_info): Change 'required_p' field
184 to 'required', and change its type. Add 'check' member function.
185 (riscv_register_feature::register_info::check): Define new member
186 function.
187 (riscv_xreg_feature): Change initialisation of 'required' field.
188 (riscv_freg_feature): Likewise.
189 (riscv_virtual_feature): Likewise.
190 (riscv_csr_feature): Likewise.
191 (riscv_check_tdesc_feature): Take extra parameter, the csr
192 tdesc_feature, rewrite the function to use the new
193 riscv_register_feature::register_info::check function.
194 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
195
865bad26
AB
1962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
197
198 * features/Makefile: Remove all references to the deleted files
199 below.
200 * features/riscv/32bit-csr.c: Deleted.
201 * features/riscv/32bit-csr.xml: Deleted.
202 * features/riscv/64bit-csr.c: Deleted.
203 * features/riscv/64bit-csr.xml: Deleted.
204 * features/riscv/rebuild-csr-xml.sh: Deleted.
205
ed69cbc8
AB
2062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
209 whitespace error for declaration of names member variable.
210 (struct riscv_register_feature): Add new prefer_first_name member
211 variable, and fix whitespace error in declaration of registers.
212 (riscv_xreg_feature): Initialize prefer_first_name field.
213 (riscv_freg_feature): Likewise.
214 (riscv_virtual_feature): Likewise.
215 (riscv_csr_feature): Likewise.
216 (riscv_register_name): Expand on comments. Remove register name
217 modifications for CSR and virtual registers.
218
4445e8f5
AB
2192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
222 errors.
223
767a879e
AB
2242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
225
226 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
227 riscv-opc.h.
228 (class riscv_pending_register_alias): New class.
229 (riscv_check_tdesc_feature): Take vector of pending aliases and
230 populate it as appropriate.
231 (riscv_setup_register_aliases): Delete.
232 (riscv_gdbarch_init): Create vector of pending aliases and pass it
233 to riscv_check_tdesc_feature in all cases. Use the vector to
234 create the register aliases.
235
bb6e55f3
RO
2362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237
238 * sol2-tdep.c (sol2_static_transform_name): Remove.
239 (sol2_init_abi): Don't register it.
240 * gdbarch.sh (static_transform_name): Remove.
241 * gdbarch.c, gdbarch.h: Regenerate.
242
243 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
244 gdbarch_static_transform_name.
245 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
246 * stabsread.c (define_symbol) <'X'>: Remove.
247 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
248 handling.
249 <'V'>: Likewise.
250 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
251 <'S'>: Remove call to gdbarch_static_transform_name.
252
c6d36836
RO
2532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
254
255 * procfs.c (procfs_pre_trace): New function.
256 (procfs_target::create_inferior): Pass it to fork_inferior.
257
a7e6196b
RO
2582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
259
260 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
261 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
262 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
263 sol2-tdep.o, sparc-sol2-tdep.o.
264 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
265 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
266 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
267 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
268
d412e696
RO
2692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
270
271 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
272 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
273 Call sol2_init_abi.
274 Remove calls to set_gdbarch_skip_solib_resolver,
275 set_gdbarch_core_pid_to_str.
276 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
277 (i386_sol2_static_transform_name): Remove.
278 (i386_sol2_init_abi): Call sol2_init_abi.
279 Remove calls to set_gdbarch_sofun_address_maybe_missing,
280 set_gdbarch_static_transform_name,
281 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
282 Use sol2_sigtramp_p.
283 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
284 (sol2_sigtramp_p): New function.
285 (sol2_static_transform_name): New function.
286 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
287 (sol2_init_abi): New function.
288 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
289 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
290 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
291 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
292 (sparc_sol2_static_transform_name): Remove.
293 (sparc32_sol2_init_abi): Call sol2_init_abi.
294 Remove calls to set_gdbarch_sofun_address_maybe_missing,
295 set_gdbarch_static_transform_name,
296 set_gdbarch_skip_solib_resolver,
297 set_gdbarch_core_pid_to_str.
298 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
299 (sparc_sol2_static_transform_name): Remove
300 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
301 call sol2_sigtramp_p.
302 (sparc64_sol2_init_abi): Call sol2_init_abi.
303 Remove calls to set_gdbarch_sofun_address_maybe_missing,
304 set_gdbarch_static_transform_name,
305 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
306
a8654e7d
PW
3072020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
308
309 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
310 * exec.c (validate_exec_file): If from_tty, set both
311 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
312 * symfile.c (symbol_file_add_with_addrs): if always_confirm
313 and from_tty, unconditionally ask a confirmation.
314
caa7fd04
AB
3152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * target-descriptions.c (tdesc_architecture_name): Protect against
318 NULL pointer dereference.
319 (maint_print_xml_tdesc_cmd): New function.
320 (_initialize_target_descriptions): Register new 'maint print
321 xml-tdesc' command and give it the filename completer.
322 * NEWS: Mention new 'maint print xml-tdesc' command.
323
fbf42f4e
AB
3242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 * target-descriptions.c (class tdesc_compatible_info): New class.
327 (struct target_desc): Change type of compatible vector.
328 (tdesc_compatible_p): Update for change in type of
329 target_desc::compatible.
330 (tdesc_compatible_info_list): New function.
331 (tdesc_compatible_info_arch_name): New function.
332 (tdesc_add_compatible): Update for change in type of
333 target_desc::compatible.
334 (print_c_tdesc::visit_pre): Likewise.
335
20821f4e
AB
3362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
339 whitespace to underscore.
340 (maint_print_c_tdesc_cmd): Use fake filename for target
341 descriptions that came from the target.
342 (_initialize_target_descriptions): Add filename command completion
343 for 'maint print c-tdesc'.
344
1fb5ee62
SM
3452020-06-23 Simon Marchi <simon.marchi@efficios.com>
346
347 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
348 lines.
349
fc3ecb3e
SM
3502020-06-23 Simon Marchi <simon.marchi@efficios.com>
351
352 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
353 lines.
354 (dwarf2_find_location_expression): Likewise.
355 (call_site_parameter_matches): Likewise.
356 (dwarf2_compile_expr_to_ax): Likewise.
357 (disassemble_dwarf_expression): Likewise.
358 (loclist_describe_location): Likewise.
359
236ef034
PA
3602020-06-23 Pedro Alves <palves@redhat.com>
361
362 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
363 progspace-and-thread.h. Include scoped-mock-context.h instead.
364 (register_to_value_test): Use scoped_mock_context.
365 * regcache.c: Include "scoped-mock-context.h".
366 (cooked_read_test): Don't error out if a target is already pushed.
367 Use scoped_mock_context. Adjust.
368 * scoped-mock-context.h: New file.
369
39e7ecca
AB
3702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
373 initializer.
374 (ada_language::is_string_type_p): New member function.
375 * c-lang.c (c_language_data): Delete la_is_string_type_p
376 initializer.
377 (cplus_language_data): Likewise.
378 (asm_language_data): Likewise.
379 (minimal_language_data): Likewise.
380 * d-lang.c (d_language_data): Likewise.
381 * f-lang.c (f_is_string_type_p): Delete function, implementation
382 moved to f_language::is_string_type_p.
383 (f_language_data): Delete la_is_string_type_p initializer.
384 (f_language::is_string_type_p): New member function,
385 implementation from f_is_string_type_p.
386 * go-lang.c (go_is_string_type_p): Delete function, implementation
387 moved to go_language::is_string_type_p.
388 (go_language_data): Delete la_is_string_type_p initializer.
389 (go_language::is_string_type_p): New member function,
390 implementation from go_is_string_type_p.
391 * language.c (language_defn::is_string_type_p): Define new member
392 function.
393 (default_is_string_type_p): Make static, add comment copied from
394 header file.
395 (unknown_language_data): Delete la_is_string_type_p initializer.
396 (unknown_language::is_string_type_p): New member function.
397 (auto_language_data): Delete la_is_string_type_p initializer.
398 (auto_language::is_string_type_p): New member function.
399 * language.h (language_data): Delete la_is_string_type_p field.
400 (language_defn::is_string_type_p): Declare new function.
401 (default_is_string_type_p): Delete desclaration, move comment to
402 definition.
403 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
404 moved to m2_language::is_string_type_p.
405 (m2_language_data): Delete la_is_string_type_p initializer.
406 (m2_language::is_string_type_p): New member function,
407 implementation from m2_is_string_type_p.
408 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
409 initializer.
410 * opencl-lang.c (opencl_language_data): Likewise.
411 * p-lang.c (pascal_is_string_type_p): Delete function,
412 implementation moved to pascal_language::is_string_type_p.
413 (pascal_language_data): Delete la_is_string_type_p initializer.
414 (pascal_language::is_string_type_p): New member function,
415 implementation from pascal_is_string_type_p.
416 * rust-lang.c (rust_is_string_type_p): Delete function,
417 implementation moved to rust_language::is_string_type_p.
418 (rust_language_data): Delete la_is_string_type_p initializer.
419 (rust_language::is_string_type_p): New member function,
420 implementation from rust_is_string_type_p.
421 * valprint.c (val_print_scalar_or_string_type_p): Update call to
422 is_string_type_p.
423
4ffc13fb
AB
4242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * ada-lang.c (ada_language_data): Delete la_print_typedef
427 initializer.
428 (ada_language::print_typedef): New member function.
429 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
430 (cplus_language_data): Likewise.
431 (asm_language_data): Likewise.
432 (minimal_language_data): Likewise.
433 * d-lang.c (d_language_data): Likewise.
434 * f-lang.c (f_language_data): Likewise.
435 (f_language::print_typedef): New member function.
436 * go-lang.c (go_language_data): Delete la_print_typedef
437 initializer.
438 * language.c (language_defn::print_typedef): Define member
439 function.
440 (unknown_language_data): Delete la_print_typedef initializer.
441 (unknown_language::print_typedef): New member function.
442 (auto_language_data): Delete la_print_typedef initializer.
443 (auto_language::print_typedef): New member function.
444 * language.h (language_data): Delete la_print_typedef field.
445 (language_defn::print_typedef): Declare new member function.
446 (LA_PRINT_TYPEDEF): Update call to print_typedef.
447 (default_print_typedef): Delete declaration.
448 * m2-lang.c (m2_language_data): Delete la_print_typedef
449 initializer.
450 (m2_language::print_typedef): New member function.
451 * objc-lang.c (objc_language_data): Delete la_print_typedef
452 initializer.
453 * opencl-lang.c (opencl_language_data): Likewise.
454 * p-lang.c (pascal_language_data): Likewise.
455 (pascal_language::print_typedef): New member function.
456 * rust-lang.c (rust_print_typedef): Delete function,
457 implementation moved to rust_language::print_typedef.
458 (rust_language): Delete la_print_typedef initializer.
459 (rust_language::print_typedef): New member function,
460 implementation from rust_print_typedef.
461 * typeprint.c (default_print_typedef): Delete.
462
d711ee67
AB
4632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
466 (ada_language::printstr): New member function.
467 * c-lang.c (c_language_data): Delete la_printstr initializer.
468 (cplus_language_data): Likewise.
469 (asm_language_data): Likewise.
470 (minimal_language_data): Likewise.
471 * d-lang.c (d_language_data): Likewise.
472 * f-lang.c (f_printstr): Rename to f_language::printstr.
473 (f_language_data): Delete la_printstr initializer.
474 (f_language::printstr): New member function, implementation from
475 f_printstr.
476 * go-lang.c (go_language_data): Delete la_printstr initializer.
477 * language.c (language_defn::printstr): Define new member
478 function.
479 (unk_lang_printstr): Delete.
480 (unknown_language_data): Delete la_printstr initializer.
481 (unknown_language::printstr): New member function.
482 (auto_language_data): Delete la_printstr initializer.
483 (auto_language::printstr): New member function.
484 * language.h (language_data): Delete la_printstr field.
485 (language_defn::printstr): Declare new member function.
486 (LA_PRINT_STRING): Update call to printstr.
487 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
488 (m2_language_data): Delete la_printstr initializer.
489 (m2_language::printstr): New member function, implementation from
490 m2_printstr.
491 * objc-lang.c (objc_language_data): Delete la_printstr
492 initializer.
493 * opencl-lang.c (opencl_language_data): Likewise.
494 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
495 (pascal_language_data): Delete la_printstr initializer.
496 (pascal_language::printstr): New member function, implementation
497 from pascal_printstr.
498 * p-lang.h (pascal_printstr): Delete declaration.
499 * rust-lang.c (rust_printstr): Update header comment.
500 (rust_language_data): Delete la_printstr initializer.
501 (rust_language::printstr): New member function.
502
52b50f2c
AB
5032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
506 (ada_language::printchar): New member function.
507 * c-lang.c (c_language_data): Delete la_printchar initializer.
508 (cplus_language_data): Likewise.
509 (asm_language_data): Likewise.
510 (minimal_language_data): Likewise.
511 * d-lang.c (d_language_data): Likewise.
512 * f-lang.c (f_printchar): Rename to f_language::printchar.
513 (f_language_data): Delete la_printchar initializer.
514 (f_language::printchar): New member function, implementation from
515 f_printchar.
516 * go-lang.c (go_language_data): Delete la_printchar initializer.
517 * language.c (unk_lang_printchar): Delete.
518 (language_defn::printchar): Define new member function.
519 (unknown_language_data): Delete la_printchar initializer.
520 (unknown_language::printchar): New member function.
521 (auto_language_data): Delete la_printchar initializer.
522 (auto_language::printchar): New member function.
523 * language.h (language_data): Delete la_printchar field.
524 (language_defn::printchar): Declare new member function.
525 (LA_PRINT_CHAR): Update call to printchar.
526 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
527 (m2_language::printchar): New member function.
528 * objc-lang.c (objc_language_data): Delete la_printchar
529 initializer.
530 * opencl-lang.c (opencl_language_data): Likewise.
531 * p-lang.c (pascal_language_data): Delete la_printchar
532 initializer.
533 (pascal_language::printchar): New member function.
534 * rust-lang.c (rust_printchar): Rename to
535 rust_language::printchar.
536 (rust_language_data): Delete la_printchar initializer.
537 (rust_language::printchar): New member function, implementation
538 from rust_printchar.
539
ec8cec5b
AB
5402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
543 (ada_language_data): Delete la_emitchar initializer.
544 (ada_language::emitchar): New member function, implementation from
545 emit_char.
546 * c-lang.c (c_language_data): Delete la_emitchar initializer.
547 (cplus_language_data): Likewise.
548 (asm_language_data): Likewise.
549 (minimal_language_data): Likewise.
550 * d-lang.c (d_language_data): Likewise.
551 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
552 (f_language_data): Delete la_emitchar initializer.
553 (f_language::emitchar): New member function, implementation from
554 f_emit_char.
555 * go-lang.c (go_language_data): Delete la_emitchar initializer.
556 * language.c (unk_lang_emit_char): Delete.
557 (language_defn::emitchar): New member function definition.
558 (unknown_language_data): Delete la_emitchar initializer.
559 (unknown_language::emitchar): New member function.
560 (auto_language_data): Delete la_emitchar initializer.
561 (auto_language::emitchar): New member function.
562 * language.h (language_data): Delete la_emitchar field.
563 (language_defn::emitchar): New member field declaration.
564 (LA_EMIT_CHAR): Update call to emitchar.
565 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
566 (m2_language_data): Delete la_emitchar initializer.
567 (m2_language::emitchar): New member function, implementation from
568 m2_emit_char.
569 * objc-lang.c (objc_language_data): Delete la_emitchar
570 initializer.
571 * opencl-lang.c (opencl_language_data): Likewise.
572 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
573 (pascal_language_data): Delete la_emitchar initializer.
574 (pascal_language::emitchar): New member function, implementation
575 from pascal_emit_char.
576 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
577 (rust_language_data): Delete la_emitchar initializer.
578 (rust_language::emitchar): New member function, implementation
579 from rust_emitchar.
580
1bf9c363
AB
5812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * ada-lang.c (resolve): Rename to ada_language::post_parser.
584 (ada_language_data): Delete la_post_parser initializer.
585 (ada_language::post_parser): New member function.
586 * c-lang.c (c_language_data): Delete la_post_parser initializer.
587 (cplus_language_data): Likewise.
588 (asm_language_data): Likewise.
589 (minimal_language_data): Likewise.
590 * d-lang.c (d_language_data): Likewise.
591 * f-lang.c (f_language_data): Likewise.
592 * go-lang.c (go_language_data): Likewise.
593 * language.c (unknown_language_data): Likewise.
594 (auto_language_data): Likewise.
595 * language.h (language_data): Delete la_post_parser field.
596 (language_defn::post_parser): New member function.
597 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
598 * objc-lang.c (objc_language_data): Likewise.
599 * opencl-lang.c (opencl_language_data): Likewise.
600 * p-lang.c (pascal_language_data): Likewise.
601 * parse.c (parse_exp_in_context): Update call to post_parser.
602 (null_post_parser): Delete definition.
603 * parser-defs.h (null_post_parser): Delete declaration.
604 * rust-lang.c (rust_language_data): Delete la_post_parser
605 initializer.
606
87afa652
AB
6072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * ada-lang.c (parse): Rename to ada_language::parser.
610 (ada_language_data): Delete la_parser initializer.
611 (ada_language::parser): New member function, implementation from
612 parse.
613 * c-lang.c (c_language_data): Delete la_parser initializer.
614 (cplus_language_data): Likewise.
615 (asm_language_data): Likewise.
616 (minimal_language_data): Likewise.
617 * d-lang.c (d_language_data): Likewise.
618 (d_language::parser): New member function.
619 * f-lang.c (f_language_data): Delete la_parser initializer.
620 (f_language::parser): New member function.
621 * go-lang.c (go_language_data): Delete la_parser initializer.
622 (go_language::parser): New member function.
623 * language.c (unk_lang_parser): Delete.
624 (language_defn::parser): Define new member function.
625 (unknown_language_data): Delete la_parser initializer.
626 (unknown_language::parser): New member function.
627 (auto_language_data): Delete la_parser initializer.
628 (auto_language::parser): New member function.
629 * language.h (language_data): Delete la_parser field.
630 (language_defn::parser): Declare new member function.
631 * m2-lang.c (m2_language_data): Delete la_parser initializer.
632 (m2_language::parser): New member function.
633 * objc-lang.c (objc_language_data): Delete la_parser initializer.
634 * opencl-lang.c (opencl_language_data): Likewise.
635 * p-lang.c (pascal_language_data): Likewise.
636 (pascal_language::parser): New member function.
637 * parse.c (parse_exp_in_context): Update call to parser.
638 * rust-lang.c (rust_language_data): Delete la_parser initializer.
639 (rust_language::parser): New member function.
640
37825800
AB
6412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * top.c (print_gdb_configuration): Print --with-python-libdir
644 configuration value.
645
5b860c93
PW
6462020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
647
648 * NEWS: Mention change to the alias command.
649
cf00cd6f
PW
6502020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
651
652 * cli/cli-cmds.c (lookup_cmd_for_default_args)
653 (alias_command_completer)
654 (make_alias_options_def_group): New functions.
655 (alias_opts, alias_option_defs): New struct and array.
656 (alias_usage_error): Update usage.
657 (alias_command): Handles optional DEFAULT-ARGS... arguments.
658 Use option framework.
659 (_initialize_cli_cmds): Update alias command help.
660 Update aliases command help.
661 (show_user):
662 Add NULL for new default_args lookup_cmd argument.
663 (valid_command_p): Rename to validate_aliased_command.
664 Add NULL for new default_args lookup_cmd argument. Verify that the
665 aliased_command has no default args.
666 * cli/cli-decode.c (help_cmd): Show aliases definitions.
667 (lookup_cmd_1, lookup_cmd): New argument default_args.
668 (add_alias_cmd):
669 Add NULL for new default_args lookup_cmd argument.
670 (print_help_for_command): Show default args under the layout
671 alias some_alias = some_aliased_cmd some_alias_default_arg.
672 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
673 xfree default_args in destructor.
674 * cli/cli-script.c (process_next_line, do_define_command):
675 Add NULL for new default_args lookup_cmd argument.
676 * command.h: Declare new default_args argument in lookup_cmd
677 and lookup_cmd_1.
678 * completer.c (complete_line_internal_1):
679 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
680 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
681 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
682 Likewise.
683 * infcmd.c (_initialize_infcmd): Likewise.
684 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
685 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
686 * python/py-param.c (add_setshow_generic): Likewise.
687 * remote.c (_initialize_remote): Likewise.
688 * top.c (execute_command): Prepend default_args if command has some.
689 (set_verbose):
690 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
691 * tracepoint.c (validate_actionline, encode_actions_1):
692 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
693
bd920864
TBA
6942020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
695
696 * jit.c (jit_read_descriptor): Use bool as the return type.
697 (jit_breakpoint_re_set_internal): Use bool as the return type.
698 Invert the return value logic; return true if the jit breakpoint
699 has been successfully initialized.
700 (jit_inferior_init): Update the call to
701 jit_breakpoint_re_set_internal.
702
f8098322
PA
7032020-06-22 Pedro Alves <palves@redhat.com>
704
705 PR gdb/25939
706 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
707 Use the current inferior instead. Don't return
708 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
709 wait again.
710 * sol-thread.c (sol_thread_target::wait): Don't reference
711 inferior_ptid.
712 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
713 (sol_update_thread_list_callback): Use the current inferior's pid
714 instead of inferior_ptid.
715
196535a6
RO
7162020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
717
718 * procfs.c: Cleanup many comments.
719
720 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
721 (AFTER_WATCHFLAG): Replace by value.
722
723 (MAIN_PROC_NAME_FORMAT): Inline ...
724 (create_procinfo): ... here.
725
726 (procfs_debug_inferior): Remove SYS_exec handling.
727 (syscall_is_exec): Likewise.
728 (procfs_set_exec_trap): Likewise.
729
730 (syscall_is_lwp_exit): Inline in callers.
731 (syscall_is_exit): Likewise.
732 (syscall_is_exec): Likewise.
733 (syscall_is_lwp_create): Likewise.
734
735 (invalidate_cache): Remove #if 0 code.
736
737 (make_signal_thread_runnable): Remove.
738 (procfs_target::resume): Remove #if 0 code.
739
cf6f3e86
RO
7402020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
741
742 PR gdb/25939
743 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
744 call ...
745 (procfs_target::create_inferior): ... here.
746
48e9cc84
PW
7472020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
748
749 * exec.c (validate_exec_file): Ensure the build-id is up to
750 date by calling reopen_exec_file (that checks file timestamp
751 to decide to re-read the file).
752
3922b302
PA
7532020-06-18 Pedro Alves <palves@redhat.com>
754
755 PR gdb/25412
756 * gdbthread.h (delete_thread, delete_thread_silent)
757 (find_thread_ptid): Update comments.
758 * thread.c (current_thread_): New global.
759 (is_current_thread): Move higher, and reimplement.
760 (inferior_thread): Reimplement.
761 (set_thread_exited): Use bool. Add assertions.
762 (add_thread_silent): Simplify thread-reuse handling by always
763 calling delete_thread.
764 (delete_thread): Remove intro comment.
765 (find_thread_ptid): Skip exited threads.
766 (switch_to_thread_no_regs): Write to current_thread_.
767 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
768 INFERIOR_PTID. Clear current_thread_.
769
6dbdab44
PA
7702020-06-18 Pedro Alves <palves@redhat.com>
771
772 * aix-thread.c (pd_update): Use switch_to_thread.
773
2da4b788
PA
7742020-06-18 Pedro Alves <palves@redhat.com>
775
776 * ravenscar-thread.c (ravenscar_thread_target): Update.
777 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
778 (ravenscar_thread_target::add_active_thread): ... this. Don't
779 set m_base_ptid here. Update to avoid referencing inferior_ptid.
780 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
781
50838d1b
PA
7822020-06-18 Pedro Alves <palves@redhat.com>
783
784 * nat/windows-nat.c (current_windows_thread): Remove.
785 * nat/windows-nat.h (current_windows_thread): Remove.
786 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
787 Adjust.
788 (display_selectors): Adjust to fetch the current
789 windows_thread_info based on inferior_ptid.
790 (fake_create_process): No longer write to current_windows_thread.
791 (windows_nat_target::get_windows_debug_event):
792 Don't set inferior_ptid or current_windows_thread.
793 (windows_nat_target::wait): Adjust to not rely on
794 current_windows_thread.
795 (do_initial_windows_stuff): Now a method of windows_nat_target.
796 Switch to the last_ptid thread.
797 (windows_nat_target::attach): Adjust.
798 (windows_nat_target::detach): Use switch_to_no_thread instead of
799 writing to inferior_ptid directly.
800 (windows_nat_target::create_inferior): Adjust.
801
31ce04e9
PA
8022020-06-18 Pedro Alves <palves@redhat.com>
803
804 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
805
1ee1a363
PA
8062020-06-18 Pedro Alves <palves@redhat.com>
807
808 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
809 after creating it, instead of writing to inferior_ptid. Don't
810 write to inferior_ptid.
811
6d350754
PA
8122020-06-18 Pedro Alves <palves@redhat.com>
813
814 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
815
5d971d48
PA
8162020-06-18 Pedro Alves <palves@redhat.com>
817
818 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
819 it, instead of writing to inferior_ptid.
820
86e57d1b
PA
8212020-06-18 Pedro Alves <palves@redhat.com>
822
823 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
824 to inferior_ptid.
825
f2e1c129
PA
8262020-06-18 Pedro Alves <palves@redhat.com>
827
828 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
829 instead of writing to inferior_ptid directly.
830
60db1b85
PA
8312020-06-18 Pedro Alves <palves@redhat.com>
832
833 * corelow.c (core_target::close): Use switch_to_no_thread instead
834 of writing to inferior_ptid directly.
835 (add_to_thread_list, core_target_open): Use switch_to_thread
836 instead of writing to inferior_ptid directly.
837
fe7d6a8d
PA
8382020-06-18 Pedro Alves <palves@redhat.com>
839
840 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
841 inferior_ptid.
842 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
843 inferior_ptid.
844 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
845 inferior_ptid directly.
846 (darwin_nat_target::init_thread_list): Switch to thread, instead
847 of writing to inferior_ptid.
848 (darwin_nat_target::attach): Don't write to inferior_ptid.
849 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
850
975f8708
PA
8512020-06-18 Pedro Alves <palves@redhat.com>
852
853 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
854 thread.
855 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
856 Instead use switch_to_thread.
857 (gnu_nat_target::detach): Use switch_to_no_thread
858 instead of writing to inferior_ptid directly. Used passed-in
859 inferior instead of looking up the inferior by pid.
860
1a204730
PA
8612020-06-18 Pedro Alves <palves@redhat.com>
862
863 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
864 inferior_ptid.
865
ebe84f23
PA
8662020-06-18 Pedro Alves <palves@redhat.com>
867
868 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
869 inferior_ptid.
870 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
871 thread.
872 (nto_procfs_target::detach): Avoid referencing
873 inferior_ptid. Use switch_to_no_thread instead of writing to
874 inferior_ptid directly.
875 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
876 instead of writing to inferior_ptid directly.
877 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
878 to thread.
879
191f02e5
PA
8802020-06-18 Pedro Alves <palves@redhat.com>
881
882 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
883 after creating it, instead of writing to inferior_ptid.
884 (gdbsim_target_open): Use switch_to_no_thread instead of writing
885 to inferior_ptid directly.
886 (gdbsim_target::wait): Don't write to inferior_ptid.
887
0ac55310
PA
8882020-06-18 Pedro Alves <palves@redhat.com>
889
890 * remote.c (remote_target::remote_notice_new_inferior): Use
891 switch_to_thread instead of writing to inferior_ptid directly.
892 (remote_target::add_current_inferior_and_thread): Use
893 switch_to_no_thread instead of writing to inferior_ptid directly.
894 (extended_remote_target::attach): Use switch_to_inferior_no_thread
895 and switch_to_thread instead of using set_current_inferior or
896 writing to inferior_ptid directly.
897
5233f39b
PA
8982020-06-18 Pedro Alves <palves@redhat.com>
899
900 * tracectf.c (ctf_target_open): Switch to added thread instead of
901 writing to inferior_ptid directly.
902 (ctf_target::close): Use switch_to_no_thread instead of writing to
903 inferior_ptid directly.
904
087e161b
PA
9052020-06-18 Pedro Alves <palves@redhat.com>
906
907 * tracefile-tfile.c (tfile_target_open): Don't write to
908 inferior_ptid directly, instead switch to added thread.
909 (tfile_target::close): Use switch_to_no_thread instead of writing
910 to inferior_ptid directly.
911
7fb43e53
PA
9122020-06-18 Pedro Alves <palves@redhat.com>
913
914 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
915 (procfs_target::detach): Use switch_to_no_thread
916 instead of writing to inferior_ptid directly.
917 (do_attach): Change return type to void. Switch to the added
918 thread.
919 (procfs_target::create_inferior): Switch to the added thread.
920 (procfs_do_thread_registers): Don't write to inferior_ptid.
921
18493a00
PA
9222020-06-18 Pedro Alves <palves@redhat.com>
923
924 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
925 of writing to inferior_ptid.
926 (scoped_restore_exited_inferior): Delete.
927 (handle_vfork_child_exec_or_exit): Simplify using
928 scoped_restore_current_pspace_and_thread. Use switch_to_thread
929 instead of writing to inferior_ptid.
930 (THREAD_STOPPED_BY): Delete.
931 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
932 (thread_stopped_by_hw_breakpoint): Delete.
933 (save_waitstatus): Use
934 scoped_restore_current_thread+switch_to_thread, and call
935 target_stopped_by_watchpoint instead of
936 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
937 instead of thread_stopped_by_sw_breakpoint, and
938 target_stopped_by_hw_breakpoint instead of
939 thread_stopped_by_hw_breakpoint.
940 (handle_inferior_event)
941 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
942 inferior_ptid directly, nor
943 set_current_inferior/set_current_program_space. Use
944 switch_to_thread / switch_to_inferior_no_thread instead.
945
a0776b13
PA
9462020-06-18 Pedro Alves <palves@redhat.com>
947
948 * target.c (generic_mourn_inferior): Use switch_to_no_thread
949 instead of writing to inferior_ptid.
950
6155c136
PA
9512020-06-18 Pedro Alves <palves@redhat.com>
952
953 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
954 added thread.
955 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
956 to the added thread.
957 (inf_ptrace_target::detach_success): Use switch_to_no_thread
958 instead of writing to inferior_ptid.
959
c5316fc6
PA
9602020-06-18 Pedro Alves <palves@redhat.com>
961
962 * gdbarch-selftests.c: Include "progspace-and-thread.h".
963 (register_to_value_test): Mock a program_space too. Heap-allocate
964 the address space. Don't write to inferior_ptid. Use
965 switch_to_thread instead.
966
8df01799
PA
9672020-06-18 Pedro Alves <palves@redhat.com>
968
969 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
970 Delete.
971 (find_signalled_thread()): New, factored out from
972 linux_make_corefile_notes and adjusted to handle exited threads.
973 (linux_make_corefile_notes): Adjust to use the new
974 find_signalled_thread.
975
41792d68
PA
9762020-06-18 Pedro Alves <palves@redhat.com>
977
978 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
979 of saving/restoring inferior_ptid.
980
612f258a
TT
9812020-06-17 Tom Tromey <tom@tromey.com>
982
983 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
984 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
985 declare.
986 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
987
efb763a5
SM
9882020-06-15 Simon Marchi <simon.marchi@efficios.com>
989
990 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
991 of partial symtabs.
992
2951f6c0
SM
9932020-06-17 Simon Marchi <simon.marchi@efficios.com>
994
995 * regformats/reg-arm.dat: Remove.
996 * regformats/reg-bfin.dat: Remove.
997 * regformats/reg-cris.dat: Remove.
998 * regformats/reg-crisv32.dat: Remove.
999 * regformats/reg-m32r.dat: Remove.
1000 * regformats/reg-tilegx.dat: Remove.
1001 * regformats/reg-tilegx32.dat: Remove.
1002
7d458ea5
SM
10032020-06-17 Simon Marchi <simon.marchi@efficios.com>
1004
1005 * features/Makefile (WHICH): Remove arm files.
1006 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1007 * regformats/arm/arm-with-neon.dat: Remove.
1008 * regformats/arm/arm-with-vfpv2.dat: Remove.
1009 * regformats/arm/arm-with-vfpv3.dat: Remove.
1010
3af96c0d
SM
10112020-06-17 Simon Marchi <simon.marchi@efficios.com>
1012
1013 * features/Makefile (XMLTOC): Remove rx.xml.
1014
b25e22fd
PA
10152020-06-17 Pedro Alves <palves@redhat.com>
1016
1017 * gdbthread.h (thread_control_state) <trap_expected> Update
1018 comments.
1019
a78a19b1
AB
10202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1023 ada_language::lookup_symbol_nonlocal.
1024 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1025 (ada_language::lookup_symbol_nonlocal): New member function,
1026 implementation from ada_lookup_symbol_nonlocal.
1027 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1028 initializer.
1029 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1030 initializer.
1031 (cplus_language::lookup_symbol_nonlocal): New member function.
1032 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1033 (minimal_language_data) Likewise.
1034 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1035 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1036 initializer.
1037 (d_language::lookup_symbol_nonlocal): New member function.
1038 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1039 initializer.
1040 (f_language::lookup_symbol_nonlocal): New member function.
1041 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1042 initializer.
1043 * language.c (unknown_language_data): Likewise.
1044 (auto_language_data): Likewise.
1045 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1046 field.
1047 (language_defn::lookup_symbol_nonlocal): New member function.
1048 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1049 initializer.
1050 * objc-lang.c (objc_language_data): Likewise.
1051 * opencl-lang.c (opencl_language_data): Likewise.
1052 * p-lang.c (pascal_language_data): Likewise.
1053 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1054 rust_language::lookup_symbol_nonlocal.
1055 (rust_language_data): Delete la_lookup_symbol_nonlocal
1056 initializer.
1057 (rust_language::lookup_symbol_nonlocal): New member function,
1058 implementation from rust_lookup_symbol_nonlocal.
1059 * symtab.c (lookup_symbol_aux): Update call to
1060 lookup_symbol_nonlocal.
1061 (basic_lookup_symbol_nonlocal): Rename to...
1062 (language_defn::lookup_symbol_nonlocal): ...this, and update
1063 header comment. Remove language_defn parameter, and replace with
1064 uses of `this'.
1065 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1066
ebe2334e
AB
10672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1070 initializer.
1071 (ada_language::value_print_inner): New member function.
1072 * c-lang.c (c_language_data): Delete la_value_print_inner
1073 initializer.
1074 (cplus_language_data): Likewise.
1075 (asm_language_data): Likewise.
1076 (minimal_language_data): Likewise.
1077 * d-lang.c (d_language_data): Likewise.
1078 (d_language::value_print_inner): New member function.
1079 * f-lang.c (f_language_data): Delete la_value_print_inner
1080 initializer.
1081 (f_language::value_print_inner): New member function.
1082 * f-lang.h (f_value_print_innner): Rename to...
1083 (f_value_print_inner): ...this (note spelling of 'inner').
1084 * f-valprint.c (f_value_print_innner): Rename to...
1085 (f_value_print_inner): ...this (note spelling of 'inner').
1086 * go-lang.c (go_language_data): Delete la_value_print_inner
1087 initializer.
1088 (go_language::value_print_inner): New member function.
1089 * language.c (language_defn::value_print_inner): Define new member
1090 function.
1091 (unk_lang_value_print_inner): Delete.
1092 (unknown_language_data): Delete la_value_print_inner initializer.
1093 (unknown_language::value_print_inner): New member function.
1094 (auto_language_data): Delete la_value_print_inner initializer.
1095 (auto_language::value_print_inner): New member function.
1096 * language.h (language_data): Delete la_value_print_inner field.
1097 (language_defn::value_print_inner): Delcare new member function.
1098 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1099 initializer.
1100 (m2_language::value_print_inner): New member function.
1101 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1102 initializer.
1103 * opencl-lang.c (opencl_language_data): Likewise.
1104 * p-lang.c (pascal_language_data): Likewise.
1105 (pascal_language::value_print_inner): New member function.
1106 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1107 initializer.
1108 (rust_language::value_print_inner): New member function.
1109 * valprint.c (do_val_print): Update call to value_print_inner.
1110
a1d1fa3e
AB
11112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * ada-lang.c (ada_language_data): Delete la_value_print
1114 initializer.
1115 (ada_language::value_print): New member function.
1116 * c-lang.c (c_language_data): Delete la_value_print initializer.
1117 (cplus_language_data): Likewise.
1118 (asm_language_data): Likewise.
1119 (minimal_language_data): Likewise.
1120 * d-lang.c (d_language_data): Likewise.
1121 * f-lang.c (f_language_data): Likewise.
1122 * go-lang.c (go_language_data): Likewise.
1123 * language.c (unk_lang_value_print): Delete.
1124 (language_defn::value_print): Define new member function.
1125 (unknown_language_data): Delete la_value_print initializer.
1126 (unknown_language::value_print): New member function.
1127 (auto_language_data): Delete la_value_print initializer.
1128 (auto_language::value_print): New member function.
1129 * language.h (language_data): Delete la_value_print field.
1130 (language_defn::value_print): Declare new member function.
1131 (LA_VALUE_PRINT): Update call to value_print.
1132 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1133 * objc-lang.c (objc_language_data): Likewise.
1134 * opencl-lang.c (opencl_language_data): Likewise.
1135 * p-lang.c (pascal_language_data): Likewise.
1136 (pascal_language::value_print): New member function.
1137 * rust-lang.c (rust_language_data): Delete la_value_print
1138 initializer.
1139
f16a9f57
AB
11402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * ada-lang.c (ada_watch_location_expression): Rename to
1143 ada_language::watch_location_expression.
1144 (ada_language_data): Delete la_watch_location_expression
1145 initializer.
1146 (ada_language::watch_location_expression): New member function,
1147 implementation from ada_watch_location_expression.
1148 * breakpoint.c (watch_command_1): Update call to
1149 watch_location_expression.
1150 * c-lang.c (c_watch_location_expression): Rename to
1151 language_defn::watch_location_expression.
1152 (c_language_data): Delete la_watch_location_expression
1153 initializer.
1154 (cplus_language_data): Likewise.
1155 (asm_language_data): Likewise.
1156 (minimal_language_data): Likewise.
1157 * c-lang.h (c_watch_location_expression): Delete declaration.
1158 * d-lang.c (d_language_data): Delete la_watch_location_expression
1159 initializer.
1160 * f-lang.c (f_language_data): Likewise.
1161 * go-lang.c (go_language_data): Likewise.
1162 * language.c (language_defn::watch_location_expression): Member
1163 function implementation from c_watch_location_expression.
1164 (unknown_language_data): Delete la_watch_location_expression
1165 initializer.
1166 (auto_language_data): Likewise.
1167 * language.h (language_data): Delete la_watch_location_expression
1168 field.
1169 (language_defn::watch_location_expression): Declare new member
1170 function.
1171 * m2-lang.c (m2_language_data): Delete
1172 la_watch_location_expression initializer.
1173 * objc-lang.c (objc_language_data): Likewise.
1174 * opencl-lang.c (opencl_language_data): Likewise.
1175 * p-lang.c (pascal_language_data): Likewise.
1176 * rust-lang.c (rust_watch_location_expression): Rename to
1177 rust_language::watch_location_expression.
1178 (rust_language_data): Delete la_watch_location_expression
1179 initializer.
1180 (rust_language::watch_location_expression): New member function,
1181 implementation from rust_watch_location_expression.
1182
7e56227d
AB
11832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1186 ada_language::collect_symbol_completion_matches.
1187 (ada_language_data): Delete la_collect_symbol_completion_matches
1188 initializer.
1189 (ada_language::collect_symbol_completion_matches): New member
1190 function, implementation from
1191 ada_collect_symbol_completion_matches.
1192 * c-lang.c (c_language_data): Delete
1193 la_collect_symbol_completion_matches initializer.
1194 (cplus_language_data): Likewise.
1195 (asm_language_data): Likewise.
1196 (minimal_language_data): Likewise.
1197 * d-lang.c (d_language_data): Likewise.
1198 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1199 f_language::collect_symbol_completion_matches.
1200 (f_language_data): Delete la_collect_symbol_completion_matches
1201 initializer.
1202 (f_language::collect_symbol_completion_matches) New member
1203 function, implementation from f_collect_symbol_completion_matches.
1204 * go-lang.c (go_language_data): Delete
1205 la_collect_symbol_completion_matches initializer.
1206 * language.c (unknown_language_data): Likewise.
1207 (auto_language_data): Likewise.
1208 * language.h (language_data): Delete
1209 la_collect_symbol_completion_matches field.
1210 (language_defn::collect_symbol_completion_matches): New member
1211 function.
1212 * m2-lang.c (m2_language_data): Delete
1213 la_collect_symbol_completion_matches initializer.
1214 * objc-lang.c (objc_language_data): Likewise.
1215 * opencl-lang.c (opencl_language_data): Likewise.
1216 * p-lang.c (pascal_language_data): Likewise.
1217 * rust-lang.c (rust_language_data): Likewise.
1218 * symtab.c (default_collect_symbol_completion_matches): Delete.
1219 (collect_symbol_completion_matches): Update call to
1220 collect_symbol_completion_matches.
1221 (collect_symbol_completion_matches_type): Likewise.
1222 * symtab.h (default_collect_symbol_completion_matches): Delete
1223 declaration.
1224
53fc67f8
AB
12252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1228 (ada_language_data): Delete la_word_break_characters initializer.
1229 (ada_language::word_break_characters): New member function.
1230 * c-lang.c (c_language_data): Delete la_word_break_characters
1231 initializer.
1232 (cplus_language_data): Likewise.
1233 (asm_language_data): Likewise.
1234 (minimal_language_data): Likewise.
1235 * completer.c: Update global comment.
1236 (advance_to_expression_complete_word_point): Update call to
1237 word_break_characters.
1238 (complete_files_symbols): Likewise.
1239 (complete_line_internal_1): Likewise.
1240 (default_completer_handle_brkchars): Likewise.
1241 (skip_quoted_chars): Likewise.
1242 * d-lang.c (d_language_data): Delete la_word_break_characters
1243 initializer.
1244 * f-lang.c (f_word_break_characters): Delete.
1245 (f_language_data): Delete la_word_break_characters initializer.
1246 (f_language::word_break_characters): New member function.
1247 * go-lang.c (go_language_data): Delete la_word_break_characters
1248 initializer.
1249 * language.c (unknown_language_data): Likewise.
1250 (auto_language_data): Likewise.
1251 * language.h (default_word_break_characters): Move declaration to
1252 earlier in the file.
1253 (language_data): Delete la_word_break_characters field.
1254 (language_defn::word_break_characters): New member function.
1255 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1256 initializer.
1257 * objc-lang.c (objc_language_data): Likewise.
1258 * opencl-lang.c (opencl_language_data): Likewise.
1259 * p-lang.c (pascal_language_data): Likewise.
1260 * rust-lang.c (rust_language_data): Likewise.
1261
c9debfb9
AB
12622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1265 (ada_language_data): Delete la_get_symbol_name_matcher
1266 initializer.
1267 (language_defn::get_symbol_name_matcher_inner): New member
1268 function.
1269 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1270 initializer.
1271 (cplus_language_data): Likewise.
1272 (cplus_language::get_symbol_name_matcher_inner): New member
1273 function.
1274 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1275 (minimal_language_data): Likewise.
1276 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1277 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1278 initializer.
1279 * dictionary.c (iter_match_first_hashed): Update call to
1280 get_symbol_name_matcher.
1281 (iter_match_next_hashed): Likewise.
1282 (iter_match_next_linear): Likewise.
1283 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1284 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1285 initializer.
1286 (f_language::get_symbol_name_matcher_inner): New member function.
1287 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1288 initializer.
1289 * language.c (default_symbol_name_matcher): Update header comment,
1290 make static.
1291 (language_defn::get_symbol_name_matcher): New definition.
1292 (language_defn::get_symbol_name_matcher_inner): Likewise.
1293 (get_symbol_name_matcher): Delete.
1294 (unknown_language_data): Delete la_get_symbol_name_matcher
1295 initializer.
1296 (auto_language_data): Likewise.
1297 * language.h (language_data): Delete la_get_symbol_name_matcher
1298 field.
1299 (language_defn::get_symbol_name_matcher): New member function.
1300 (language_defn::get_symbol_name_matcher_inner): Likewise.
1301 (default_symbol_name_matcher): Delete declaration.
1302 * linespec.c (find_methods): Update call to
1303 get_symbol_name_matcher.
1304 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1305 initializer.
1306 * minsyms.c (lookup_minimal_symbol): Update call to
1307 get_symbol_name_matcher.
1308 (iterate_over_minimal_symbols): Likewise.
1309 * objc-lang.c (objc_language_data): Delete
1310 la_get_symbol_name_matcher initializer.
1311 * opencl-lang.c (opencl_language_data): Likewise.
1312 * p-lang.c (pascal_language_data): Likewise.
1313 * psymtab.c (psymbol_name_matches): Update call to
1314 get_symbol_name_matcher.
1315 * rust-lang.c (rust_language_data): Delete
1316 la_get_symbol_name_matcher initializer.
1317 * symtab.c (symbol_matches_search_name): Update call to
1318 get_symbol_name_matcher.
1319 (compare_symbol_name): Likewise.
1320
9a49ad8c
AB
13212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * ada-lang.c (ada_language_data): Delete la_compute_program
1324 initializer.
1325 * c-lang.c (c_language_data): Likewise.
1326 (c_language::compute_program): New member function.
1327 (cplus_language_data): Delete la_compute_program initializer.
1328 (cplus_language::compute_program): New member function.
1329 (asm_language_data): Delete la_compute_program initializer.
1330 (minimal_language_data): Likewise.
1331 * c-lang.h (c_compute_program): Update comment.
1332 (cplus_compute_program): Likewise.
1333 * compile/compile-c-support.c (c_compute_program): Likewise.
1334 (cplus_compute_program): Likewise.
1335 * compile/compile.c (compile_to_object): Update call to
1336 la_compute_program.
1337 * d-lang.c (d_language_data): Delete la_compute_program
1338 initializer.
1339 * f-lang.c (f_language_data): Likewise.
1340 * go-lang.c (go_language_data): Likewise.
1341 * language.c (unknown_language_data): Likewise.
1342 (auto_language_data): Likewise.
1343 * language.h (language_data): Delete la_compute_program field.
1344 (language_defn::compute_program): New member function.
1345 * m2-lang.c (m2_language_data): Delete la_compute_program
1346 initializer.
1347 * objc-lang.c (objc_language_data): Likewise.
1348 * opencl-lang.c (opencl_language_data): Likewise.
1349 * p-lang.c (pascal_language_data): Likewise.
1350 * rust-lang.c (rust_language_data): Likewise.
1351
eff93b4d
AB
13522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * ada-lang.c (ada_language_data) Delete
1355 la_class_name_from_physname initializer.
1356 * c-lang.c (c_language_data): Likewise.
1357 (cplus_language_data): Likewise.
1358 (cplus_language::class_name_from_physname): New member function.
1359 (asm_language_data): Delete la_class_name_from_physname
1360 initializer.
1361 (minimal_language_data): Likewise.
1362 * d-lang.c (d_language_data): Likewise.
1363 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1364 method on language_defn class.
1365 (guess_full_die_structure_name): Likewise.
1366 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1367 initializer.
1368 * go-lang.c (go_language_data): Likewise.
1369 * language.c (language_class_name_from_physname): Delete.
1370 (unk_lang_class_name): Delete.
1371 (unknown_language_data): Delete la_class_name_from_physname
1372 initializer.
1373 (auto_language_data): Likewise.
1374 * language.h (language_data): Delete la_class_name_from_physname
1375 field.
1376 (language_defn::class_name_from_physname): New function.
1377 (language_class_name_from_physname): Delete declaration.
1378 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1379 initializer.
1380 * objc-lang.c (objc_language_data): Likewise.
1381 * opencl-lang.c (opencl_language_data): Likewise.
1382 * p-lang.c (pascal_language_data): Likewise.
1383 * rust-lang.c (rust_language_data): Likewise.
1384
de543742
TT
13852020-06-16 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-data.h (STATUS_NAME): New macro.
1388 * tui/tui-layout.c (tui_remove_some_windows)
1389 (initialize_known_windows, tui_register_window)
1390 (tui_layout_split::remove_windows, initialize_layouts)
1391 (tui_new_layout_command): Don't use hard-coded window names.
1392
a350efd4
TT
13932020-06-16 Tom Tromey <tom@tromey.com>
1394
1395 PR tui/25348:
1396 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1397 tui_initialize_readline. Only run once. Call rl_initialize.
1398 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1399 tui_initialize_readline.
1400 * tui/tui-io.c (tui_setup_io): Call
1401 tui_ensure_readline_initialized.
1402 * tui/tui-interp.c (tui_interp::init): Update.
1403
39ec0490
TT
14042020-06-16 Tom Tromey <tom@tromey.com>
1405
1406 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1407 Also preserve the status window.
1408
d2d1ea20
TT
14092020-06-16 Tom Tromey <tom@tromey.com>
1410
1411 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1412 where m_window==nullptr.
1413
66920317
TT
14142020-06-15 Tom Tromey <tromey@adacore.com>
1415
1416 * windows-nat.c (windows_nat::handle_output_debug_string):
1417 Update.
1418 (windows_nat::handle_ms_vc_exception): Update.
1419 * target.h (target_read_string): Change API.
1420 * target.c (target_read_string): Change API.
1421 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1422 Update.
1423 * solib-frv.c (frv_current_sos): Update.
1424 * solib-dsbt.c (dsbt_current_sos): Update.
1425 * solib-darwin.c (darwin_current_sos): Update.
1426 * linux-thread-db.c (inferior_has_bug): Update.
1427 * expprint.c (print_subexp_standard): Update.
1428 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1429 (ada_exception_message_1): Update.
1430
a5d871dd
TT
14312020-06-15 Tom Tromey <tromey@adacore.com>
1432
1433 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1434
670e35fa
TT
14352020-06-15 Tom Tromey <tromey@adacore.com>
1436
1437 * valprint.c (read_string): Update comment.
1438 * target.c (MIN): Remove.
1439 (target_read_string): Rewrite.
1440
f5272a3b
TT
14412020-06-15 Tom Tromey <tromey@adacore.com>
1442
1443 * corefile.c (read_memory_string): Remove.
1444 * ada-valprint.c (ada_value_print_ptr): Update.
1445 * ada-lang.h (ada_tag_name): Change return type.
1446 * ada-lang.c (type_from_tag): Update.
1447 (ada_tag_name_from_tsd): Change return type. Use
1448 target_read_string.
1449 (ada_tag_name): Likewise.
1450 * gdbcore.h (read_memory_string): Don't declare.
1451
2c074f49
HD
14522020-06-14 Hannes Domani <ssbssa@yahoo.de>
1453
1454 * symtab.c (rbreak_command): Ignore Windows drive colon.
1455
6a17d503
SM
14562020-06-12 Simon Marchi <simon.marchi@efficios.com>
1457
1458 * NEWS: Mention removed GDBserver host support.
1459
453c733f
NC
14602020-06-12 Nelson Chu <nelson.chu@sifive.com>
1461
1462 * features/riscv/rebuild-csr-xml.sh: Updated.
1463
2b4e6a3f
TT
14642020-06-11 Tom Tromey <tom@tromey.com>
1465
1466 PR gdb/18318:
1467 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1468
4412332f
JG
14692020-06-09 Jonny Grant <jg@jguk.org>
14702020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1471
1472 * main.c (captured_main_1): Don't print new line after help.
1473 (print_gdb_help): add mailing list and IRC channel information
1474 to --help. Add new lines between items in the footer. Remove
1475 quotes around bug url.
1476
2f33032a
KS
14772020-06-11 Keith Seitz <keiths@redhat.com>
1478
1479 PR gdb/21356
1480 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1481 Resolve typedefs for type length calculations.
1482
7ab96794
TV
14832020-06-10 Tom de Vries <tdevries@suse.de>
1484
1485 PR ada/24713
1486 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1487 (write_psymbols): Enable .gdb_index for ada.
1488 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1489 ada.
1490
e5f3ece2
TV
14912020-06-10 Tom de Vries <tdevries@suse.de>
1492
1493 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1494 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1495 namei" instead of "const char *name" argument.
1496 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1497 dw2_symtab_iter_init.
1498
940da03e
SM
14992020-06-08 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1502 to use type::field and field::type instead.
1503
b6cdac4b
SM
15042020-06-08 Simon Marchi <simon.marchi@efficios.com>
1505
1506 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1507 to use field::type instead.
1508
5d14b6e5
SM
15092020-06-08 Simon Marchi <simon.marchi@efficios.com>
1510
1511 * gdbtypes.h (struct field) <type, set_type>: New methods.
1512 Rename `type` field to...
1513 <m_type>: ... this. Change references throughout to use type or
1514 set_type methods.
1515 (FIELD_TYPE): Use field::type. Change call sites that modify
1516 the field's type to use field::set_type instead.
1517
3d967001
SM
15182020-06-08 Simon Marchi <simon.marchi@efficios.com>
1519
1520 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1521 to use type::index_type instead.
1522
262abc0d
SM
15232020-06-08 Simon Marchi <simon.marchi@efficios.com>
1524
1525 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1526 methods.
1527 (TYPE_INDEX_TYPE): Use type::index_type.
1528 * gdbtypes.c (create_array_type_with_stride): Likewise.
1529
82836c92
TT
15302020-06-07 Tom Tromey <tom@tromey.com>
1531
1532 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1533 parameter.
1534 (generic_value_print): Update.
1535
940dace9
AB
15362020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1537
1538 Revert commit 982a38f60b0.
1539 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1540
982a38f6
AB
15412020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1542
1543 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1544 avoid use after free.
1545
82f06518
TV
15462020-06-05 Tom de Vries <tdevries@suse.de>
1547
1548 * NEWS: Fix typos.
1549
f8c41851
SM
15502020-06-04 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1553 the per_bfd object.
1554 (dwarf2_read_debug_names): Likewise.
1555 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1556 object when re-using a per_bfd object with an index.
1557
f9b5d5ea
TV
15582020-06-03 Tom de Vries <tdevries@suse.de>
1559
1560 PR symtab/26046
1561 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1562 children for C++.
1563 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1564 DW_TAG_subprogram.
1565
f6eee2d0
AB
15662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * ada-lang.c (ada_language_data): Delete skip_trampoline
1569 initializer.
1570 * c-lang.c (c_language_data): Likewise.
1571 (cplus_language_data): Likewise.
1572 (cplus_language::skip_trampoline): New member function.
1573 (asm_language_data): Delete skip_trampoline initializer.
1574 (minimal_language_data): Likewise.
1575 * d-lang.c (d_language_data): Likewise.
1576 * f-lang.c (f_language_data): Likewise.
1577 * go-lang.c (go_language_data): Likewise.
1578 * language.c (unk_lang_trampoline): Delete function.
1579 (skip_language_trampoline): Update.
1580 (unknown_language_data): Delete skip_trampoline initializer.
1581 (auto_language_data): Likewise.
1582 * language.h (language_data): Delete skip_trampoline field.
1583 (language_defn::skip_trampoline): New function.
1584 * m2-lang.c (m2_language_data): Delete skip_trampoline
1585 initializer.
1586 * objc-lang.c (objc_skip_trampoline): Delete function, move
1587 implementation to objc_language::skip_trampoline.
1588 (objc_language_data): Delete skip_trampoline initializer.
1589 (objc_language::skip_trampoline): New member function with
1590 implementation from objc_skip_trampoline.
1591 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1592 initializer.
1593 * p-lang.c (pascal_language_data): Likewise.
1594 * rust-lang.c (rust_language_data): Likewise.
1595
0a50df5d
AB
15962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1599 (ada_language::demangle): New member function.
1600 * c-lang.c (c_language_data): Delete la_demangle initializer.
1601 (cplus_language_data): Delete la_demangle initializer.
1602 (cplus_language::demangle): New member function.
1603 (asm_language_data): Delete la_demangle initializer.
1604 (minimal_language_data): Delete la_demangle initializer.
1605 * d-lang.c (d_language_data): Delete la_demangle initializer.
1606 (d_language::demangle): New member function.
1607 * f-lang.c (f_language_data): Delete la_demangle initializer.
1608 (f_language::demangle): New member function.
1609 * go-lang.c (go_language_data): Delete la_demangle initializer.
1610 (go_language::demangle): New member function.
1611 * language.c (language_demangle): Update.
1612 (unk_lang_demangle): Delete.
1613 (unknown_language_data): Delete la_demangle initializer.
1614 (unknown_language::demangle): New member function.
1615 (auto_language_data): Delete la_demangle initializer.
1616 (auto_language::demangle): New member function.
1617 * language.h (language_data): Delete la_demangle field.
1618 (language_defn::demangle): New function.
1619 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1620 * objc-lang.c (objc_language_data): Delete la_demangle
1621 initializer.
1622 (objc_language::demangle): New member function.
1623 * opencl-lang.c (opencl_language_data): Delete la_demangle
1624 initializer.
1625 * p-lang.c (pascal_language_data): Likewise.
1626 * rust-lang.c (rust_language_data): Likewise.
1627 (rust_language::demangle): New member function.
1628
fbfb0a46
AB
16292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * ada-lang.c (ada_language_data): Delete la_print_type
1632 initializer.
1633 (ada_language::print_type): New member function.
1634 * c-lang.c (c_language_data): Delete la_print_type initializer.
1635 (c_language::print_type): New member function.
1636 (cplus_language_data): Delete la_print_type initializer.
1637 (cplus_language::print_type): New member function.
1638 (asm_language_data): Delete la_print_type initializer.
1639 (asm_language::print_type): New member function.
1640 (minimal_language_data): Delete la_print_type initializer.
1641 (minimal_language::print_type): New member function.
1642 * d-lang.c (d_language_data): Delete la_print_type initializer.
1643 (d_language::print_type): New member function.
1644 * f-lang.c (f_language_data): Delete la_print_type initializer.
1645 (f_language::print_type): New member function.
1646 * go-lang.c (go_language_data): Delete la_print_type initializer.
1647 (go_language::print_type): New member function.
1648 * language.c (unk_lang_print_type): Delete.
1649 (unknown_language_data): Delete la_print_type initializer.
1650 (unknown_language::print_type): New member function.
1651 (auto_language_data): Delete la_print_type initializer.
1652 (auto_language::print_type): New member function.
1653 * language.h (language_data): Delete la_print_type field.
1654 (language_defn::print_type): New function.
1655 (LA_PRINT_TYPE): Update.
1656 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1657 (m2_language::print_type): New member function.
1658 * objc-lang.c (objc_language_data): Delete la_print_type
1659 initializer.
1660 (objc_language::print_type): New member function.
1661 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1662 to opencl_language::print_type.
1663 (opencl_language_data): Delete la_print_type initializer.
1664 (opencl_language::print_type): New member function, implementation
1665 from opencl_print_type.
1666 * p-lang.c (pascal_language_data): Delete la_print_type
1667 initializer.
1668 (pascal_language::print_type): New member function.
1669 * rust-lang.c (rust_print_type): Delete, implementation moved to
1670 rust_language::print_type.
1671 (rust_language_data): Delete la_print_type initializer.
1672 (rust_language::print_type): New member function, implementation
1673 from rust_print_type.
1674
6f827019
AB
16752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1678 implementation moves to...
1679 (ada_language::sniff_from_mangled_name): ...here. Update return
1680 type.
1681 (ada_language_data): Delete la_sniff_from_mangled_name
1682 initializer.
1683 * c-lang.c (c_language_data): Likewise.
1684 (cplus_language_data): Likewise.
1685 (cplus_language::sniff_from_mangled_name): New member function,
1686 implementation taken from gdb_sniff_from_mangled_name.
1687 (asm_language_data): Delete la_sniff_from_mangled_name
1688 initializer.
1689 (minimal_language_data): Likewise.
1690 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1691 implementation moves to cplus_language::sniff_from_mangled_name.
1692 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1693 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1694 moves to...
1695 (d_language::sniff_from_mangled_name): ...here.
1696 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1697 * f-lang.c (f_language_data): Likewise.
1698 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1699 moves to...
1700 (go_language::sniff_from_mangled_name): ...here.
1701 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1702 * language.c (language_sniff_from_mangled_name): Delete.
1703 (unknown_language_data): Delete la_sniff_from_mangled_name
1704 initializer.
1705 (auto_language_data): Likewise.
1706 * language.h (language_data): Delete la_sniff_from_mangled_name
1707 field.
1708 (language_defn::sniff_from_mangled_name): New function.
1709 (language_sniff_from_mangled_name): Delete declaration.
1710 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1711 field.
1712 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1713 implementation moves to...
1714 (objc_language::sniff_from_mangled_name): ...here.
1715 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1716 * opencl-lang.c (opencl_language_data): Likewise.
1717 * p-lang.c (pascal_language_data): Likewise.
1718 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1719 implementation moves to...
1720 (rust_language::sniff_from_mangled_name): ...here.
1721 (rust_language_data): Delete la_sniff_from_mangled_name
1722 initializer.
1723 * symtab.c (symbol_find_demangled_name): Call
1724 sniff_from_mangled_name member function.
1725
fb8006fd
AB
17262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1729 initializer.
1730 * c-lang.c (c_language_data): Likewise.
1731 (cplus_language_data): Likewise.
1732 (cplus_language::search_name_hash): New member function.
1733 (asm_language_data): Delete la_search_name_hash initializer.
1734 (minimal_language_data): Likewise.
1735 * d-lang.c (d_language_data): Likewise.
1736 * dictionary.c (default_search_name_hash): Rename to...
1737 (language_defn::search_name_hash): ...this.
1738 * f-lang.c (f_language_data): Likewise.
1739 (f_language::search_name_hash): New member function.
1740 * go-lang.c (go_language_data): Delete la_search_name_hash
1741 initializer.
1742 * language.c (unknown_language_data): Likewise.
1743 (auto_language_data): Likewise.
1744 * language.h (struct language_data): Delete la_search_name_hash
1745 field.
1746 (language_defn::search_name_hash): Declare new member function.
1747 (default_search_name_hash): Delete declaration.
1748 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1749 initializer.
1750 * objc-lang.c (objc_language_data): Likewise.
1751 * opencl-lang.c (opencl_language_data): Likewise.
1752 * p-lang.c (pascal_language_data): Likewise.
1753 * rust-lang.c (rust_language_data): Likewise.
1754 * symtab.c (search_name_hash): Update call.
1755
8e25bafe
AB
17562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1759 initializer.
1760 * c-lang.c (class compile_instance): Declare.
1761 (c_language_data): Delete la_get_compile_instance initializer.
1762 (c_language::get_compile_instance): New member function.
1763 (cplus_language_data): Delete la_get_compile_instance initializer.
1764 (cplus_language::get_compile_instance): New member function.
1765 (asm_language_data): Delete la_get_compile_instance initializer.
1766 (minimal_language_data): Likewise.
1767 * c-lang.h (c_get_compile_context): Update comment.
1768 (cplus_get_compile_context): Update comment.
1769 * compile/compile.c (compile_to_object): Update calls, don't rely
1770 on function pointer being NULL.
1771 * d-lang.c (d_language_data): Delete la_get_compile_instance
1772 initializer.
1773 * f-lang.c (f_language_data): Likewise.
1774 * go-lang.c (go_language_data): Likewise.
1775 * language.c (unknown_language_data): Likewise.
1776 (auto_language_data): Likewise.
1777 * language.h (language_data): Delete la_get_compile_instance field.
1778 (language_defn::get_compile_instance): New member function.
1779 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1780 initializer.
1781 * objc-lang.c (objc_language_data): Likewise.
1782 * opencl-lang.c (opencl_language_data): Likewise.
1783 * p-lang.c (pascal_language_data): Likewise.
1784 * rust-lang.c (rust_language_data): Likewise.
1785
4009ee92
AB
17862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * ada-lang.c (ada_add_all_symbols): Update comment.
1789 (ada_iterate_over_symbols): Delete, move implementation to...
1790 (ada_language::iterate_over_symbols): ...here, a new member
1791 function, rewrite to use range based for loop.
1792 (ada_language_data): Delete la_iterate_over_symbols initializer.
1793 * c-lang.c (c_language_data): Likewise.
1794 (cplus_language_data): Likewise.
1795 (asm_language_data): Likewise.
1796 (minimal_language_data): Likewise.
1797 * d-lang.c (d_language_data): Likewise.
1798 * f-lang.c (f_language_data): Likewise.
1799 * go-lang.c (go_language_data): Likewise.
1800 * language.c (unknown_language_data): Likewise.
1801 (auto_language_data): Likewise.
1802 * language.h (language_data): Delete la_iterate_over_symbols field.
1803 (language_defn::iterate_over_symbols): New member function.
1804 (LA_ITERATE_OVER_SYMBOLS): Update.
1805 * linespec.c (iterate_over_all_matching_symtabs): Update.
1806 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1807 initializer.
1808 * objc-lang.c (objc_language_data): Likewise.
1809 * opencl-lang.c (opencl_language_data): Likewise.
1810 * p-lang.c (pascal_language_data): Likewise.
1811 * rust-lang.c (rust_language_data): Likewise.
1812
54f4ca46
AB
18132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * ada-lang.c (ada_language_data): Delete
1816 la_lookup_transparent_type initializer.
1817 * c-lang.c (c_language_data): Likewise.
1818 (cplus_language_data): Likewise.
1819 (cplus_language::lookup_transparent_type): New member function.
1820 (asm_language_data): Delete la_lookup_transparent_type
1821 initializer.
1822 (minimal_language_data): Likewise.
1823 * d-lang.c (d_language_data): Likewise.
1824 * f-lang.c (f_language_data): Likewise.
1825 * go-lang.c (go_language_data): Likewise.
1826 * language.c (unknown_language_data): Likewise.
1827 (auto_language_data): Likewise.
1828 * language.h (struct language_data): Delete
1829 la_lookup_transparent_type field.
1830 (language_defn::lookup_transparent_type): New member function.
1831 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1832 initializer.
1833 * objc-lang.c (objc_language_data): Likewise.
1834 * opencl-lang.c (opencl_language_data): Likewise.
1835 * p-lang.c (pascal_language_data): Likewise.
1836 * rust-lang.c (rust_language_data): Likewise.
1837 * symtab.c (symbol_matches_domain): Update call.
1838
1fb314aa
AB
18392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * ada-lang.c (ada_language_arch_info): Delete function, move
1842 implementation to...
1843 (ada_language::language_arch_info): ...here, a new member
1844 function.
1845 (ada_language_data): Delete la_language_arch_info.
1846 * c-lang.c (c_language_data): Likewise.
1847 (c_language::language_arch_info): New member function.
1848 (cplus_language_arch_info): Delete function, move
1849 implementation to...
1850 (cplus_language::language_arch_info): ...here, a new member
1851 function.
1852 (cplus_language_data): Delete la_language_arch_info.
1853 (asm_language_data): Likewise.
1854 (asm_language::language_arch_info): New member function.
1855 (minimal_language_data): Delete la_language_arch_info.
1856 (minimal_language::language_arch_info): New member function.
1857 * d-lang.c (d_language_arch_info): Delete function, move
1858 implementation to...
1859 (d_language::language_arch_info): ...here, a new member
1860 function.
1861 (d_language_data): Delete la_language_arch_info.
1862 * f-lang.c (f_language_arch_info): Delete function, move
1863 implementation to...
1864 (f_language::language_arch_info): ...here, a new member
1865 function.
1866 (f_language_data): Delete la_language_arch_info.
1867 * go-lang.c (go_language_arch_info): Delete function, move
1868 implementation to...
1869 (go_language::language_arch_info): ...here, a new member
1870 function.
1871 (go_language_data): Delete la_language_arch_info.
1872 * language.c (unknown_language_data): Likewise.
1873 (unknown_language::language_arch_info): New member function.
1874 (auto_language_data): Delete la_language_arch_info.
1875 (auto_language::language_arch_info): New member function.
1876 (language_gdbarch_post_init): Update call to
1877 la_language_arch_info.
1878 * language.h (language_data): Delete la_language_arch_info
1879 function pointer.
1880 (language_defn::language_arch_info): New function.
1881 * m2-lang.c (m2_language_arch_info): Delete function, move
1882 implementation to...
1883 (m2_language::language_arch_info): ...here, a new member
1884 function.
1885 (m2_language_data): Delete la_language_arch_info.
1886 * objc-lang.c (objc_language_arch_info): Delete function, move
1887 implementation to...
1888 (objc_language::language_arch_info): ...here, a new member
1889 function.
1890 (objc_language_data): Delete la_language_arch_info.
1891 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1892 implementation to...
1893 (opencl_language::language_arch_info): ...here, a new member
1894 function.
1895 (opencl_language_data): Delete la_language_arch_info.
1896 * p-lang.c (pascal_language_arch_info): Delete function, move
1897 implementation to...
1898 (pascal_language::language_arch_info): ...here, a new member
1899 function.
1900 (pascal_language_data): Delete la_language_arch_info.
1901 * rust-lang.c (rust_language_arch_info): Delete function, move
1902 implementation to...
1903 (rust_language::language_arch_info): ...here, a new member
1904 function.
1905 (rust_language_data): Delete la_language_arch_info.
1906
48448202
AB
19072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1910 initializer.
1911 * c-lang.c (c_language_data): Likewise.
1912 (cplus_language_data): Likewise.
1913 (cplus_language::pass_by_reference_info): New method.
1914 (asm_language_data): Delete la_pass_by_reference initializer.
1915 (minimal_language_data): Likewise.
1916 * cp-abi.c (cp_pass_by_reference): Remove use of
1917 default_pass_by_reference.
1918 * d-lang.c (d_language_data): Likewise.
1919 * f-lang.c (f_language_data): Likewise.
1920 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1921 default_pass_by_reference.
1922 * go-lang.c (go_language_data): Likewise.
1923 * language.c (language_pass_by_reference): Update.
1924 (default_pass_by_reference): Delete.
1925 (unknown_language_data): Delete la_pass_by_reference
1926 initializer.
1927 (auto_language_data): Likewise.
1928 * language.h (struct language_data): Delete la_pass_by_reference
1929 field.
1930 (language_defn::pass_by_reference_info): New member function.
1931 (default_pass_by_reference): Delete declaration.
1932 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1933 initializer.
1934 * objc-lang.c (objc_language_data): Likewise.
1935 * opencl-lang.c (opencl_language_data): Likewise.
1936 * p-lang.c (pascal_language_data): Likewise.
1937 * rust-lang.c (rust_language_data): Likewise.
1938
15e5fd35
AB
19392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1940
1941 * ada-lang.c (ada_read_var_value): Delete function, move
1942 implementation to...
1943 (ada_language::read_var_value): ...here.
1944 (ada_language_data): Delete la_read_var_value initializer.
1945 * c-lang.c (c_language_data): Likewise.
1946 (cplus_language_data): Likewise.
1947 (minimal_language_data): Likewise.
1948 * d-lang.c (d_language_data): Likewise.
1949 * f-lang.c (f_language_data): Likewise.
1950 * findvar.c (default_read_var_value): Rename to...
1951 (language_defn::read_var_value): ...this.
1952 * findvar.c (read_var_value): Update header comment, and change to
1953 call member function instead of function pointer.
1954 * go-lang.c (go_language_data): Likewise.
1955 * language.c (unknown_language_data): Delete la_read_var_value
1956 initializer.
1957 (auto_language_data): Likewise.
1958 * language.h (struct language_data): Delete la_read_var_value
1959 field.
1960 (language_defn::read_var_value): New member function.
1961 (default_read_var_value): Delete declaration.
1962 * m2-lang.c (m2_language_data): Delete la_read_var_value
1963 initializer.
1964 * objc-lang.c (objc_language_data): Likewise.
1965 * opencl-lang.c (opencl_language_data): Likewise.
1966 * p-lang.c (pascal_language_data): Likewise.
1967 * rust-lang.c (rust_language_data): Likewise.
1968 * value.h (default_read_var_value): Delete declaration.
1969
5bd40f2a
AB
19702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * ada-lang.c (ada_print_array_index): Delete function, move
1973 implementation to...
1974 (ada_language::print_array_index): ...here.
1975 (ada_language_data): Delete la_print_array_index initializer.
1976 * c-lang.c (c_language_data): Likewise.
1977 (cplus_language_data): Likewise.
1978 (minimal_language_data): Likewise.
1979 * d-lang.c (d_language_data): Likewise.
1980 * f-lang.c (f_language_data): Likewise.
1981 * go-lang.c (go_language_data): Likewise.
1982 * language.c (default_print_array_index): Delete function, move
1983 implementation to...
1984 (language_defn::print_array_index): ...here.
1985 (unknown_language_data): Delete la_print_array_index initializer.
1986 (auto_language_data): Likewise.
1987 * language.h (struct language_data): Delete la_print_array_index
1988 field.
1989 (language_defn::print_array_index): New member function.
1990 (LA_PRINT_ARRAY_INDEX): Update.
1991 (default_print_array_index): Delete declaration.
1992 * m2-lang.c (m2_language_data): Delete la_print_array_index
1993 initializer.
1994 * objc-lang.c (objc_language_data): Likewise.
1995 * opencl-lang.c (opencl_language_data): Likewise.
1996 * p-lang.c (pascal_language_data): Likewise.
1997 * rust-lang.c (rust_language_data): Likewise.
1998
0874fd07
AB
19992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * gdb/ada-lang.c (ada_language_defn): Convert to...
2002 (ada_language_data): ...this.
2003 (class ada_language): New class.
2004 (ada_language_defn): New static global.
2005 * gdb/c-lang.c (c_language_defn): Convert to...
2006 (c_language_data): ...this.
2007 (class c_language): New class.
2008 (c_language_defn): New static global.
2009 (cplus_language_defn): Convert to...
2010 (cplus_language_data): ...this.
2011 (class cplus_language): New class.
2012 (cplus_language_defn): New static global.
2013 (asm_language_defn): Convert to...
2014 (asm_language_data): ...this.
2015 (class asm_language): New class.
2016 (asm_language_defn): New static global.
2017 (minimal_language_defn): Convert to...
2018 (minimal_language_data): ...this.
2019 (class minimal_language): New class.
2020 (minimal_language_defn): New static global.
2021 * gdb/d-lang.c (d_language_defn): Convert to...
2022 (d_language_data): ...this.
2023 (class d_language): New class.
2024 (d_language_defn): New static global.
2025 * gdb/f-lang.c (f_language_defn): Convert to...
2026 (f_language_data): ...this.
2027 (class f_language): New class.
2028 (f_language_defn): New static global.
2029 * gdb/go-lang.c (go_language_defn): Convert to...
2030 (go_language_data): ...this.
2031 (class go_language): New class.
2032 (go_language_defn): New static global.
2033 * gdb/language.c (unknown_language_defn): Remove declaration.
2034 (current_language): Initialize to nullptr, real initialization is
2035 moved to _initialize_language.
2036 (languages): Delete global.
2037 (language_defn::languages): Define.
2038 (set_language_command): Use language_defn::languages.
2039 (set_language): Likewise.
2040 (range_error): Likewise.
2041 (language_enum): Likewise.
2042 (language_def): Likewise.
2043 (add_set_language_command): Use language_def::languages for the
2044 language list, and language_def to lookup language pointers.
2045 (skip_language_trampoline): Use language_defn::languages.
2046 (unknown_language_defn): Convert to...
2047 (unknown_language_data): ...this.
2048 (class unknown_language): New class.
2049 (unknown_language_defn): New static global.
2050 (auto_language_defn): Convert to...
2051 (auto_language_data): ...this.
2052 (class auto_language): New class.
2053 (auto_language_defn): New static global.
2054 (language_gdbarch_post_init): Use language_defn::languages.
2055 (_initialize_language): Initialize current_language.
2056 * gdb/language.h (struct language_defn): Rename to...
2057 (struct language_data): ...this.
2058 (struct language_defn): New.
2059 (auto_language_defn): Delete.
2060 (unknown_language_defn): Delete.
2061 (minimal_language_defn): Delete.
2062 (ada_language_defn): Delete.
2063 (asm_language_defn): Delete.
2064 (c_language_defn): Delete.
2065 (cplus_language_defn): Delete.
2066 (d_language_defn): Delete.
2067 (f_language_defn): Delete.
2068 (go_language_defn): Delete.
2069 (m2_language_defn): Delete.
2070 (objc_language_defn): Delete.
2071 (opencl_language_defn): Delete.
2072 (pascal_language_defn): Delete.
2073 (rust_language_defn): Delete.
2074 * gdb/m2-lang.c (m2_language_defn): Convert to...
2075 (m2_language_data): ...this.
2076 (class m2_language): New class.
2077 (m2_language_defn): New static global.
2078 * gdb/objc-lang.c (objc_language_defn): Convert to...
2079 (objc_language_data): ...this.
2080 (class objc_language): New class.
2081 (objc_language_defn): New static global.
2082 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2083 (opencl_language_data): ...this.
2084 (class opencl_language): New class.
2085 (opencl_language_defn): New static global.
2086 * gdb/p-lang.c (pascal_language_defn): Convert to...
2087 (pascal_language_data): ...this.
2088 (class pascal_language): New class.
2089 (pascal_language_defn): New static global.
2090 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2091 language pointer, update comment format.
2092 * gdb/rust-lang.c (rust_language_defn): Convert to...
2093 (rust_language_data): ...this.
2094 (class rust_language): New class.
2095 (rust_language_defn): New static global.
2096
1313c56e
AB
20972020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2100 member variable.
2101 <m_stmt_at_address>: New member variable.
2102 (lnp_state_machine::record_line): Don't record some lines, update
2103 tracking of is_stmt at the same address.
2104 (lnp_state_machine::lnp_state_machine): Initialise new member
2105 variables.
2106
b7ed9f3d
ST
21072020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2108
2109 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2110 "-include gnu-nat-mig.h".
2111 * gnu-nat-mig.h: New file.
2112 * gnu-nat.c: Include "gnu-nat-mig.h".
2113 (exc_server, msg_reply_server, notify_server,
2114 process_reply_server): Remove declarations.
2115
14a8ad62
ST
21162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2117
2118 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2119 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2120 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2121 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2122 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2123 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2124 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2125 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2126 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2127 to gnu_nat_target class.
2128 * gnu-nat.c: Likewise.
2129 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2130 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2131 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2132 object.
2133 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2134 instead of `gnu_target'.
2135
0af5e106
ST
21362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2137
2138 * i386-gnu-tdep.c: Include "gdbcore.h"
2139 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2140 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2141 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2142 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2143 i386_gnu_sigcontext_addr): New functions
2144 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2145 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2146 tdep.
2147
078f2fc9
ST
21482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2149
2150 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2151 before fork_inferior call. Avoid calling it if target_is_pushed returns
2152 true.
2153
53dff92c
ST
21542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2155
2156 * gnu-nat.h (gnu_target): New variable declaration.
2157 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2158 gnu_target.
2159 * gnu-nat.c (gnu_target): New variable.
2160 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2161 add_thread_silent, and add_thread calls.
2162 (gnu_nat_target::create_inferior): Pass gnu_target to
2163 add_thread_silent, thread_change_ptid call.
2164 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2165 call.
2166
5a8b8627
ST
21672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2168
2169 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2170 (gnu_nat_target::find_memory_regions): Remove unused
2171 `old_address' variable.
2172
366f550a
ST
21732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2174
2175 * gnu-nat.c: Include "gdbarch.h".
2176
f14871bf
ST
21772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2178
2179 * reply_mig_hack.awk (Error return): Cast function through
2180 void *, to bypass compiler function call check.
2181
c6887cfb
ST
21822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2183
2184 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2185 $(srcdir)/reply_mig_hack.awk.
2186
6930bffe
ST
21872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2188
2189 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2190
112c22ed
JG
21912020-05-30 Jonny Grant <jg@jguk.org>
2192
2193 * configure.ac (ACX_BUGURL): change bug URL to https.
2194
f68f85b5
PA
21952020-05-30 Pedro Alves <palves@redhat.com>
2196
2197 * cp-support.c (replace_typedefs_template): New.
2198 (replace_typedefs_qualified_name): Handle
2199 DEMANGLE_COMPONENT_TEMPLATE.
2200
976ca316
SM
22012020-05-29 Simon Marchi <simon.marchi@efficios.com>
2202
2203 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2204 dwarf2/index-cache.h, dwarf2/index-write.c,
2205 dwarf2/index-write.h, dwarf2/line-header.c,
2206 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2207 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2208 variables and fields from `dwarf2_per_objfile` to just
2209 `per_objfile` throughout.
2210
989ade05
SM
22112020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2212
2213 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2214 <push_dwarf_reg_entry_value>: Add comment.
2215
c47bae85
KB
22162020-05-28 Kevin Buettner <kevinb@redhat.com>
2217 Keith Seitz <keiths@redhat.com>
2218
2219 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2220 instead of PyEval_ReleaseLock.
2221 (class gdbpy_gil): Move to earlier in file.
2222 (finalize_python): Set gdb_python_initialized.
2223 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2224 when not initialized.
2225
44486dcf
SM
22262020-05-28 Simon Marchi <simon.marchi@efficios.com>
2227
2228 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2229 <push_dwarf_reg_entry_value>: Remove assert. Override
2230 per_objfile with caller_per_objfile.
2231
f030440d
TV
22322020-05-28 Tom de Vries <tdevries@suse.de>
2233
2234 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2235 PR gold/15646 workaround to symbol kind "type".
2236
f0fbb768
TT
22372020-05-27 Tom Tromey <tromey@adacore.com>
2238
2239 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2240
af0b2a3e
TT
22412020-05-27 Tom Tromey <tromey@adacore.com>
2242
2243 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2244 Use htab_find_with_hash.
2245 <add_abbrev>: Remove "abbrev_number" parameter.
2246 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2247 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2248 (hash_abbrev): Add comment.
2249 (abbrev_table::lookup_abbrev): Move to header file.
2250 (abbrev_table::read): Update.
2251
7d00ffec
TT
22522020-05-27 Tom Tromey <tromey@adacore.com>
2253
2254 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2255 method.
2256 <canonical_name>: New member.
2257 <raw_name>: Rename from "name".
2258 (partial_die_info): Initialize canonical_name.
2259 (scan_partial_symbols): Check raw_name.
2260 (partial_die_parent_scope, partial_die_full_name)
2261 (add_partial_symbol, add_partial_subprogram)
2262 (add_partial_enumeration, load_partial_dies): Use "name" method.
2263 (partial_die_info::name): New method.
2264 (partial_die_info::read, guess_partial_die_structure_name)
2265 (partial_die_info::fixup): Update.
2266
697bba18
TT
22672020-05-27 Tom Tromey <tromey@adacore.com>
2268
2269 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2270 <get_ref_die_offset>: Inline.
2271 <get_ref_die_offset_complaint>: New method.
2272 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2273 (attribute::get_ref_die_offset_complaint): Rename from
2274 get_ref_die_offset. Just issue complaint.
2275
c17ace43
HD
22762020-05-27 Hannes Domani <ssbssa@yahoo.de>
2277
2278 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2279
96445f0b
HD
22802020-05-27 Hannes Domani <ssbssa@yahoo.de>
2281
2282 * exec.c (exec_file_attach): Use errno value of first openp failure.
2283
ac637ec3
HD
22842020-05-27 Hannes Domani <ssbssa@yahoo.de>
2285
2286 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2287 Don't close thread handle.
2288
17ee85fc
TT
22892020-05-27 Tom Tromey <tom@tromey.com>
2290 Simon Marchi <simon.marchi@efficios.com>
2291
2292 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2293 shared_ptr.
2294 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2295 member.
2296 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2297 dwarf2_per_bfd_objfile_data_key>: New globals.
2298 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2299 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2300 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2301 shared.
2302 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2303 short-circuit when sharing.
2304 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2305 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2306
39b16f87
SM
23072020-05-27 Simon Marchi <simon.marchi@efficios.com>
2308
2309 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2310 to...
2311 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2312 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2313
fcf23d5b
SM
23142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2317 build_name_components, find_name_components_bounds>:
2318 Add per_objfile parameter.
2319 (struct mapped_index) <symbol_name_at>: Likewise.
2320 (struct mapped_debug_names): Remove constructor.
2321 <dwarf2_per_objfile>: Remove field.
2322 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2323 (mapped_index_base::find_name_components_bounds,
2324 mapped_index_base::build_name_components,
2325 dw2_expand_symtabs_matching_symbol): Likewise.
2326 (class mock_mapped_index) <symbol_name_at>: Likewise.
2327 (check_match): Likewise.
2328 (check_find_bounds_finds): Likewise.
2329 (test_mapped_index_find_name_component_bounds): Update.
2330 (CHECK_MATCH): Update.
2331 (dw2_expand_symtabs_matching): Update.
2332 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2333 per_objfile parameter.
2334 <find_vec_in_debug_names>: Likewise.
2335 <m_per_objfile>: New field.
2336 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2337 parameter.
2338 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2339 (dw2_debug_names_iterator::next): Update.
2340 (dw2_debug_names_lookup_symbol): Update.
2341 (dw2_debug_names_expand_symtabs_for_function): Update.
2342 (dw2_debug_names_map_matching_symbols): Update.
2343 (dw2_debug_names_expand_symtabs_matching): Update.
2344 (dwarf2_read_debug_names): Update.
2345
7188ed02
SM
23462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2347
2348 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2349 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2350 move to dwarf2_per_objfile.
2351 <read_in_chain>: Remove.
2352 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2353 remove_all_cus, age_comp_units>: New methods.
2354 <m_dwarf2_cus>: New member.
2355 (struct dwarf2_per_cu_data) <cu>: Remove.
2356 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2357 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2358 moved to methods of dwarf2_per_objfile.
2359 (dwarf2_clear_marks): Remove.
2360 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2361 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2362 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2363 (dwarf2_per_objfile::remove_all_cus): New.
2364 (class free_cached_comp_units) <~free_cached_comp_units>:
2365 Update.
2366 (load_cu): Update.
2367 (dw2_do_instantiate_symtab): Adjust.
2368 (fill_in_sig_entry_from_dwo_entry): Adjust.
2369 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2370 (cutu_reader::cutu_reader): Likewise.
2371 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2372 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2373 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2374 and dwarf2_per_objfile::age_comp_units.
2375 (load_partial_comp_unit): Update.
2376 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2377 (process_queue): Likewise.
2378 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2379 backlink.
2380 (dwarf2_read_addr_index): Likewise.
2381 (follow_die_offset): Likewise.
2382 (dwarf2_fetch_die_loc_sect_off): Likewise.
2383 (dwarf2_fetch_constant_bytes): Likewise.
2384 (dwarf2_fetch_die_type_sect_off): Likewise.
2385 (follow_die_sig_1): Likewise.
2386 (load_full_type_unit): Likewise.
2387 (read_signatured_type): Likewise.
2388 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2389 (dwarf2_cu::~dwarf2_cu): Remove.
2390 (dwarf2_per_objfile::get_cu): New.
2391 (dwarf2_per_objfile::set_cu): New.
2392 (age_cached_comp_units): Rename to...
2393 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2394 to std::unordered_map.
2395 (free_one_cached_comp_unit): Rename to...
2396 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2397 to std::unordered_map.
2398 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2399 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2400 a dwarf2_per_objfile in data.
2401 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2402 (dwarf2_clear_marks): Remove.
2403
2e671100
SM
24042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2407 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2408 (init_tu_and_read_dwo_dies): Likewise.
2409 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2410 (cutu_reader::cutu_reader): Likewise.
2411 (load_partial_comp_unit): Likewise.
2412 (process_psymtab_comp_unit): Update.
2413 (build_type_psymtabs_1): Update.
2414 (process_skeletonless_type_unit): Update.
2415 (load_full_comp_unit): Update.
2416 (find_partial_die): Update.
2417 (dwarf2_read_addr_index): Update.
2418 (read_signatured_type): Update.
2419
2e6a9f79
SM
24202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2421
2422 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2423 m_header_read_in>: New fields.
2424 <get_header>: New method.
2425 * dwarf2/read.c (per_cu_header_read_in): Remove.
2426 (dwarf2_per_cu_data::get_header): New.
2427 (dwarf2_per_cu_data::addr_size): Update.
2428 (dwarf2_per_cu_data::offset_size): Update.
2429 (dwarf2_per_cu_data::ref_addr_size): Update.
2430
1b555f17
SM
24312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2434 (dw2_do_instantiate_symtab): Update.
2435 (queue_and_load_all_dwo_tus): Change parameter from
2436 dwarf2_per_cu_data to dwarf2_cu.
2437 (dwarf2_fetch_die_loc_sect_off): Update.
2438 (dwarf2_fetch_constant_bytes): Update.
2439 (dwarf2_fetch_die_type_sect_off): Update.
2440
8fc0b21d
SM
24412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2442
2443 * dwarf2/read.c (process_full_comp_unit,
2444 process_full_type_unit): Remove per_cu, per_objfile paramters.
2445 Add dwarf2_cu parameter.
2446 (process_queue): Update.
2447
168c9250
SM
24482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * dwarf2/read.c (create_cu_from_index_list): Replace
2451 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2452 (create_cus_from_index_list): Likewise.
2453 (create_cus_from_index): Likewise.
2454 (create_signatured_type_table_from_index): Likewise.
2455 (create_cus_from_debug_names_list): Likewise.
2456 (create_cus_from_debug_names): Likewise.
2457 (dwarf2_read_gdb_index): Update.
2458 (dwarf2_read_debug_names): Update.
2459
e286671b
TT
24602020-05-27 Tom Tromey <tom@tromey.com>
2461 Simon Marchi <simon.marchi@efficios.com>
2462
2463 * dwarf2/read.h (struct dwarf2_per_objfile)
2464 <get_type_for_signatured_type, set_type_for_signatured_type>:
2465 New methods.
2466 <m_type_map>: New member.
2467 (struct signatured_type) <type>: Remove.
2468 * dwarf2/read.c
2469 (dwarf2_per_objfile::get_type_for_signatured_type,
2470 dwarf2_per_objfile::set_type_for_signatured_type): New.
2471 (get_signatured_type): Use new methods.
2472
8adb8487
TT
24732020-05-27 Tom Tromey <tom@tromey.com>
2474 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2477 (struct dwarf2_per_objfile) <type_units>: New member.
2478 <get_type_unit_group_unshareable>: New method.
2479 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2480 num_symtabs, symtabs>: Remove; move to
2481 type_unit_group_unshareable.
2482 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2483 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2484 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2485
127bbf4b
SM
24862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2487
2488 * dwarf2/read.h (struct dwarf2_per_cu_data):
2489 <dwarf2_per_objfile>: Remove.
2490 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2491 dwarf2_per_objfile.
2492 (create_signatured_type_table_from_index): Likewise.
2493 (create_signatured_type_table_from_debug_names): Likewise.
2494 (create_debug_type_hash_table): Likewise.
2495 (fill_in_sig_entry_from_dwo_entry): Likewise.
2496 (create_type_unit_group): Likewise.
2497 (read_comp_units_from_section): Likewise.
2498 (create_cus_hash_table): Likewise.
2499
f6e649dd
SM
25002020-05-27 Simon Marchi <simon.marchi@efficios.com>
2501
2502 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2503 dwarf2_per_cu_data::dwarf2_per_objfile.
2504 (compute_compunit_symtab_includes): Likewise.
2505 (dwarf2_cu::start_symtab): Likewise.
2506
aa66c379
SM
25072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2508
2509 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2510 parameter.
2511 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2512 (read_namespace_alias): Update.
2513 (lookup_die_type): Update.
2514 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2515 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2516 Update.
2517 (disassemble_dwarf_expression): Update.
2518
120ce1b5
SM
25192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2520
2521 * dwarf2/read.h (struct dwarf2_queue_item): Add
2522 dwarf2_per_objfile parameter, assign new parameter.
2523 <per_objfile>: New field.
2524 * dwarf2/read.c (free_one_cached_comp_unit): Add
2525 dwarf2_per_objfile parameter.
2526 (queue_comp_unit): Likewise.
2527 (dw2_do_instantiate_symtab): Update.
2528 (process_psymtab_comp_unit): Update.
2529 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2530 (process_imported_unit_die): Update.
2531 (queue_and_load_dwo_tu): Update.
2532 (follow_die_offset): Update.
2533 (follow_die_sig_1): Update.
2534
9f47c707
SM
25352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2538 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2539 (read_call_site_scope): Assign per_objfile.
2540 (dwarf2_per_cu_data::objfile): Remove.
2541 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2542 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2543 dwarf2_per_objfile parameter.
2544 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2545 dwarf2_per_objfile parameter.
2546 (dwarf_expr_reg_to_entry_parameter): Add output
2547 dwarf2_per_objfile parameter.
2548 (locexpr_get_frame_base): Update.
2549 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2550 <push_dwarf_reg_entry_value>: Update.
2551 <call_site_to_target_addr>: Update.
2552 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2553 parameter.
2554 (value_of_dwarf_reg_entry): Update.
2555 (rw_pieced_value): Update.
2556 (indirect_synthetic_pointer): Update.
2557 (dwarf2_evaluate_property): Update.
2558 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2559 parameter.
2560 (locexpr_read_variable): Update.
2561 (locexpr_get_symbol_read_needs): Update.
2562 (loclist_read_variable): Update.
2563
14095eb3
SM
25642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2567 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2568 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2569 parameter.
2570 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2571 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2572 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2573 parameter.
2574 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2575 sect_variable_value): Add dwarf2_per_objfile parameter.
2576 (class dwarf_evaluate_loc_desc) <dwarf_call,
2577 dwarf_variable_value>: Update.
2578 (fetch_const_value_from_synthetic_pointer): Add
2579 dwarf2_per_objfile parameter.
2580 (fetch_const_value_from_synthetic_pointer): Update.
2581 (coerced_pieced_ref): Update.
2582 (class symbol_needs_eval_context) <dwarf_call,
2583 dwarf_variable_value>: Update.
2584 (dwarf2_compile_expr_to_ax): Update.
2585
3c3cd3d4
SM
25862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2587
2588 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2589 parameter.
2590 (dwarf2_evaluate_loc_desc_full): Update.
2591
82ca3f51
SM
25922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2593
2594 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2595 parameter.
2596 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2597 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2598 dwarf2_per_objfile parameter.
2599 (decode_debug_loc_dwo_addresses): Likewise.
2600 (dwarf2_find_location_expression): Update.
2601 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2602 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2603 parameter.
2604 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2605 parameter.
2606 (locexpr_describe_location_1): Likewise.
2607 (locexpr_describe_location): Update.
2608
4b167ea1
SM
26092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2610
2611 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2612 Remove.
2613 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2614 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2615 (dwarf2_compile_property_to_c): Update.
2616 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2617 use text offset from objfile.
2618 (locexpr_tracepoint_var_ref): Update.
2619 (locexpr_generate_c_location): Update.
2620 (loclist_describe_location): Update.
2621 (loclist_tracepoint_var_ref): Update.
2622 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2623 dwarf2_per_objfile parameter.
2624 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2625 use text offset from objfile.
2626 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2627
89b07335
SM
26282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * dwarf2/expr.h (struct dwarf_expr_context)
2631 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2632 <offset>: Remove.
2633 <per_objfile>: New member.
2634 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2635 dwarf2_per_objfile parameter. Don't set offset, set
2636 per_objfile.
2637 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2638 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2639 a dwarf2_per_objfile object instead of an offset.
2640 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2641 constructor.
2642 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2643 to dwarf2_expr_executor constructor. Don't set offset.
2644 (dwarf2_fetch_cfa_info): Update.
2645 (struct dwarf2_frame_cache) <text_offset>: Remove.
2646 <per_objfile>: New field.
2647 (dwarf2_frame_cache): Update.
2648 (dwarf2_frame_prev_register): Update.
2649 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2650 <dwarf_evaluate_loc_desc>: Add constructor.
2651 (dwarf2_evaluate_loc_desc_full): Update.
2652 (dwarf2_locexpr_baton_eval): Update.
2653 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2654 Add constructor.
2655 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2656
293e7e51
SM
26572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2658
2659 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2660 addr_sized_int_type>: Move to dwarf2_cu.
2661 <int_type>: Move to dwarf2_per_objfile.
2662 (struct dwarf2_per_objfile) <int_type>: Move here.
2663 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2664 addr_sized_int_type>: Move here.
2665 (read_func_scope): Update.
2666 (read_array_type): Update.
2667 (read_tag_string_type): Update.
2668 (attr_to_dynamic_prop): Update.
2669 (dwarf2_per_cu_data::int_type): Rename to...
2670 (dwarf2_per_objfile::int_type): ... this.
2671 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2672 (dwarf2_cu::addr_sized_int_type): ... this.
2673 (read_subrange_type): Update.
2674 (dwarf2_per_cu_data::addr_type): Rename to...
2675 (dwarf2_cu::addr_type): ... this.
2676 (set_die_type): Update.
2677
64874a40
SM
26782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2681 data through per_cu->cu.
2682
4ab09049
SM
26832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2684
2685 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2686 dwarf2_per_cu_data parameter fo dwarf2_cu.
2687 (lookup_dwo_type_unit): Likewise.
2688 (read_cutu_die_from_dwo): Likewise.
2689 (lookup_dwo_unit): Likewise.
2690 (open_and_init_dwo_file): Likewise.
2691 (lookup_dwo_cutu): Likewise.
2692 (lookup_dwo_comp_unit): Likewise.
2693 (lookup_dwo_type_unit): Likewise.
2694 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2695 (cutu_reader::cutu_reader): Update.
2696
47b14e86
SM
26972020-05-27 Simon Marchi <simon.marchi@efficios.com>
2698
2699 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2700 parameter.
2701 (process_full_type_unit): Likewise.
2702 (process_queue): Update.
2703
43182c09
SM
27042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2705
2706 * dwarf2/read.c (recursively_compute_inclusions): Add
2707 dwarf2_per_objfile parameter.
2708 (compute_compunit_symtab_includes): Likewise.
2709 (process_cu_includes): Update.
2710
7aa104c4
SM
27112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2712
2713 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2714 parameter.
2715 (create_type_unit_group): Update.
2716 (process_psymtab_comp_unit_reader): Update.
2717 (build_type_psymtabs_reader): Update.
2718
e3beb21d
SM
27192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2720
2721 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2722 object through m_this_cu->cu.
2723
d460f660
SM
27242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2725
2726 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2727 the info parameter.
2728 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2729
ab432490
SM
27302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2733 per_objfile parameter.
2734 (load_full_type_unit): Add per_objfile parameter.
2735 (read_signatured_type): Likewise.
2736 (load_full_comp_unit): Likewise.
2737 (load_cu): Likewise.
2738 (dw2_do_instantiate_symtab): Likewise.
2739 (dw2_get_file_names): Likewise.
2740 (dw2_map_symtabs_matching_filename): Update.
2741 (dw_expand_symtabs_matching_file_matcher): Update.
2742 (dw2_map_symbol_filenames): Update.
2743 (process_psymtab_comp_unit): Add per_objfile parameter.
2744 (build_type_psymtabs_1): Update.
2745 (process_skeletonless_type_unit): Update.
2746 (dwarf2_build_psymtabs_hard): Update.
2747 (load_partial_comp_unit): Add per_objfile parameter.
2748 (scan_partial_symbols): Update.
2749 (load_full_comp_unit): Add per_objfile parameter.
2750 (process_imported_unit_die): Update.
2751 (create_cus_hash_table): Update.
2752 (find_partial_die): Update.
2753 (dwarf2_read_addr_index): Update.
2754 (follow_die_offset): Update.
2755 (dwarf2_fetch_die_loc_sect_off): Update.
2756 (dwarf2_fetch_constant_bytes): Update.
2757 (dwarf2_fetch_die_type_sect_off): Update.
2758 (follow_die_sig_1): Update.
2759 (load_full_type_unit): Add per_objfile parameter.
2760 (read_signatured_type): Likewise.
2761
313bad1b
SM
27622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2763
2764 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2765 of objfile_name.
2766
c3699833
SM
27672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2768
2769 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2770 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2771 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2772 field.
2773 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2774 (create_cus_from_index): Update.
2775 (dwarf2_read_gdb_index): Update.
2776 (create_cus_from_debug_names): Update.
2777 (dwarf2_read_debug_names): Update.
2778 (get_abbrev_section_for_cu): Update.
2779 (create_all_comp_units): Update.
2780 (read_attribute_value): Update.
2781 (get_debug_line_section): Update.
2782 * dwarf2/index-cache.c (index_cache::store): Update.
2783 * dwarf2/index-write.c (save_gdb_index_command): Update.
2784 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2785
1859c670
SM
27862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2789 member.
2790 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2791 dwarf2_per_cu_data::per_bfd.
2792 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2793 (create_type_unit_group): Likewise.
2794 (queue_comp_unit): Remove reference to
2795 per_cu->dwarf2_per_objfile.
2796 (maybe_queue_comp_unit): Likewise.
2797 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2798 (create_cus_hash_table): Assign new field.
2799
5e22e966
SM
28002020-05-27 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * dwarf2/read.c: Replace
2803 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2804 dwarf2_cu->per_objfile throughout.
2805
97a1449a
SM
28062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2809 parameter, don't use per_cu->dwarf2_per_objfile.
2810 (dw2_instantiate_symtab): Likewise.
2811 (dw2_find_last_source_symtab): Update.
2812 (dw2_map_expand_apply): Update.
2813 (dw2_lookup_symbol): Update.
2814 (dw2_expand_symtabs_for_function): Update.
2815 (dw2_expand_all_symtabs): Update.
2816 (dw2_expand_symtabs_with_fullname): Update.
2817 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2818 don't use per_cu->dwarf2_per_objfile.
2819 (dw2_expand_marked_cus): Update.
2820 (dw2_find_pc_sect_compunit_symtab): Update.
2821 (dw2_debug_names_lookup_symbol): Update.
2822 (dw2_debug_names_expand_symtabs_for_function): Update.
2823 (dw2_debug_names_map_matching_symbols): Update.
2824 (dwarf2_psymtab::expand_psymtab): Update.
2825
9e021579
SM
28262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2829 <per_objfile>: New member.
2830 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2831 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2832 call to dwarf2_cu.
2833 (cutu_reader::cutu_reader): Update.
2834 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2835
ae090bdb
SM
28362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2837
2838 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2839 struct dwarf2_per_objfile.
2840 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2841 dwarf2_per_bfd.
2842 * dwarf2/read.c (set_die_type): Update.
2843 (get_die_type_at_offset): Update.
2844
af758d11
SM
28452020-05-27 Tom Tromey <tom@tromey.com>
2846 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2849 method.
2850 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2851 get_symtab, set_symtab>: New methods.
2852 <m_symtabs>: New field.
2853 (struct dwarf2_psymtab): Derive from partial_symtab.
2854 <readin_p, get_compunit_symtab>: Declare methods.
2855 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2856 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2857 New methods.
2858 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2859 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2860 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2861 (dw2_symtab_iter_next, dw2_print_stats)
2862 (dw2_expand_symtabs_with_fullname)
2863 (dw2_expand_symtabs_matching_one)
2864 (dw_expand_symtabs_matching_file_matcher)
2865 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2866 (dw2_debug_names_iterator::next)
2867 (dw2_debug_names_map_matching_symbols)
2868 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2869 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2870 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2871 New methods.
2872 (get_compunit_symtab, process_full_comp_unit)
2873 (process_full_type_unit): Update.
2874 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2875
5989a64e
SM
28762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2877
2878 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2879 then introduce a new dwarf2_per_objfile type.
2880 <read_line_string>: Move to the new dwarf2_per_objfile type.
2881 <objfile>: Likewise.
2882 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2883 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2884 dwarf2_per_objfile->per_bfd.
2885 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2886 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2887 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2888 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2889 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2890 (dwarf2_per_objfile::locate_sections): Rename to...
2891 (dwarf2_per_bfd::locate_sections): ... this.
2892 (dwarf2_per_objfile::get_cutu): Rename to...
2893 (dwarf2_per_bfd::get_cutu): ... this.
2894 (dwarf2_per_objfile::get_cu): Rename to...
2895 (dwarf2_per_bfd::get_cu): ... this.
2896 (dwarf2_per_objfile::get_tu): Rename to...
2897 (dwarf2_per_bfd::get_tu): ... this.
2898 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2899 (dwarf2_per_bfd::allocate_per_cu): ... this.
2900 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2901 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2902 (get_gdb_index_contents_ftype): Change parameter from
2903 dwarf2_per_objfile to dwarf2_per_bfd.
2904 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2905 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2906
a50264ba
TT
29072020-05-27 Tom Tromey <tom@tromey.com>
2908 Simon Marchi <simon.marchi@efficios.com>
2909
2910 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2911 (allocate_piece_closure): Set "per_objfile" member.
2912 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2913 (locexpr_describe_location, loclist_describe_location): Use new
2914 member.
2915 * dwarf2/read.c (read_call_site_scope)
2916 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2917 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2918 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2919 handle_data_member_location): Set per_objfile member.
2920 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2921 member.
2922 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2923
d3473f0c
TT
29242020-05-27 Tom Tromey <tom@tromey.com>
2925
2926 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2927 allocate_signatured_type>: Declare new methods.
2928 <m_num_psymtabs>: New member.
2929 (struct dwarf2_per_cu_data) <index>: New member.
2930 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2931 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2932 (create_cu_from_index_list): Use allocate_per_cu.
2933 (create_signatured_type_table_from_index)
2934 (create_signatured_type_table_from_debug_names)
2935 (create_debug_type_hash_table, add_type_unit)
2936 (read_comp_units_from_section): Use allocate_signatured_type.
2937
5717c425
TT
29382020-05-27 Tom Tromey <tom@tromey.com>
2939
2940 * psymtab.c (partial_map_expand_apply)
2941 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2942 (psym_lookup_global_symbol_language)
2943 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2944 (psym_print_stats, psym_expand_symtabs_for_function)
2945 (psym_map_symbol_filenames, psym_map_matching_symbols)
2946 (psym_expand_symtabs_matching)
2947 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2948 (maintenance_check_psymtabs): Update.
2949 * psympriv.h (struct partial_symtab) <readin_p,
2950 get_compunit_symtab>: Add objfile parameter.
2951 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2952 Likewise.
2953 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2954 get_compunit_symtab>: Likewise.
2955 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2956
45940949
TT
29572020-05-27 Tom Tromey <tom@tromey.com>
2958
2959 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2960 member.
2961 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2962 (create_cu_from_index_list)
2963 (create_signatured_type_table_from_index)
2964 (create_signatured_type_table_from_debug_names)
2965 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2966 (dwarf2_create_include_psymtab)
2967 (create_debug_type_hash_table, add_type_unit)
2968 (create_type_unit_group, read_comp_units_from_section)
2969 (dwarf2_compute_name, create_cus_hash_table)
2970 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2971 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2972 obstack.
2973 (dw2_get_real_path): Likewise. Change argument to
2974 dwarf2_per_objfile.
2975
f8c6d152
LM
29762020-05-27 Luis Machado <luis.machado@linaro.org>
2977
2978 PR tdep/26000
2979 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2980 for ldrd (immediate).
2981
e98d2e6d
PW
29822020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2983
2984 * command.h: Add comment giving the name of class_tui.
2985 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2986 create the fake command for the help for class_tui.
2987
53a47a3e
TT
29882020-05-26 Tom Tromey <tromey@adacore.com>
2989
2990 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2991 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2992 (val_atr): New function.
2993 (value_val_atr): Use it.
2994 * ada-valprint.c (print_optional_low_bound): Change low bound
2995 handling for enums.
2996 (val_print_packed_array_elements): Don't call discrete_position.
2997 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2998 discrete_position for enum types.
2999 * language.c (default_print_array_index): Change type.
3000 * language.h (struct language_defn) <la_print_array_index>: Add
3001 index_type parameter, change type of index_value.
3002 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3003 (default_print_array_index): Update.
3004 * valprint.c (maybe_print_array_index): Don't call
3005 value_from_longest. Update.
3006 (value_print_array_elements): Don't call discrete_position.
3007
0bc2354b
TT
30082020-05-26 Tom Tromey <tromey@adacore.com>
3009
3010 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3011 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3012
1218a4bf
CDA
30132020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3014
3015 PR gdb/13519
3016 * avr-tdep.c (avr_integer_to_address): Return data or code
3017 address accordingly to the second 'type' argument of the
3018 function.
3019
92651b1d
MW
30202020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3021
3022 * infcmd.c, inferior.h: (construct_inferior_arguments):
3023 Moved function from here to gdbsupport/common-inferior.{h,cc}
3024
0a4f5f8c
TT
30252020-05-23 Tom Tromey <tom@tromey.com>
3026
3027 Revert commit eca1f90c:
3028 * NEWS: Remove entry for completion styling.
3029 * completer.c (_rl_completion_prefix_display_length): Move
3030 declaration later.
3031 (gdb_fnprint): Revert.
3032 (gdb_display_match_list_1): Likewise.
3033 * cli/cli-style.c (completion_prefix_style)
3034 (completion_difference_style, completion_suffix_style): Remove.
3035 (_initialize_cli_style): Revert.
3036 * cli/cli-style.h (completion_prefix_style)
3037 (completion_difference_style, completion_suffix_style): Don't
3038 declare.
3039
e08bd6c5
PA
30402020-05-24 Pedro Alves <palves@redhat.com>
3041
3042 * symtab.c (completion_list_add_name): Return boolean indication
3043 of whether the symbol matched.
3044 (completion_list_add_symbol): Don't try to remove C++ aliases if
3045 the symbol didn't match in the first place.
3046 * symtab.h (completion_list_add_name): Return bool.
3047
ceacbf6e
SM
30482020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3049
3050 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3051 type::field.
3052
26f16254
JB
30532020-05-23 Joel Brobecker <brobecker@adacore.com>
3054
3055 GDB 9.2 released.
3056
eca1f90c
TT
30572020-05-23 Tom Tromey <tom@tromey.com>
3058
3059 * NEWS: Add entry for completion styling.
3060 * completer.c (_rl_completion_prefix_display_length): Move
3061 declaration earlier.
3062 (gdb_fnprint): Use completion_style.
3063 (gdb_display_match_list_1): Likewise.
3064 * cli/cli-style.c (completion_prefix_style)
3065 (completion_difference_style, completion_suffix_style): New
3066 globals.
3067 (_initialize_cli_style): Register new globals.
3068 * cli/cli-style.h (completion_prefix_style)
3069 (completion_difference_style, completion_suffix_style): Declare.
3070
51e2cfa2
PA
30712020-05-23 Pedro Alves <palves@redhat.com>
3072
3073 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3074 (parse_escape): Use ISDIGIT instead of isdigit.
3075 (puts_debug): Use gdb_isprint instead of isprint.
3076 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3077 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3078 ISSPACE instead of isspace.
3079 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3080 instead of isspace.
3081 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3082 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3083 instead of isxdigit and ISDIGIT instead of isdigit.
3084
80fc5e77
SM
30852020-05-22 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * gdbtypes.h (struct type) <field>: New method.
3088 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3089 or type::field.
3090
3cabb6b0
SM
30912020-05-22 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3094 (TYPE_FIELDS): Use type::fields. Change all call sites that
3095 modify the propery to use type::set_fields instead.
3096
1f704f76
SM
30972020-05-22 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3100 type::num_fields instead.
3101
5e33d5f4
SM
31022020-05-22 Simon Marchi <simon.marchi@efficios.com>
3103
3104 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3105 methods.
3106 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3107 that modify the number of fields to use type::set_num_fields
3108 instead.
3109
9392ebb3
TT
31102020-05-22 Tom Tromey <tromey@adacore.com>
3111
3112 * compile/compile-object-load.h (munmap_list_free): Don't
3113 declare.
3114
7c13f4e8
AB
31152020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * annotate.c (annotate_source_line): Update return type, add call
3118 to update current symtab and line.
3119 * annotate.h (annotate_source_line): Update return type, and
3120 extend header comment.
3121 * source.c (info_line_command): Check annotation_level before
3122 calling annotate_source_line.
3123 * stack.c (print_frame_info): If calling annotate_source_line
3124 returns true, then don't print any other source line information.
3125
aa370940
SM
31262020-05-21 Simon Marchi <simon.marchi@efficios.com>
3127
3128 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3129
84d53fa9
SM
31302020-05-21 Simon Marchi <simon.marchi@efficios.com>
3131
3132 * coffread.c (patch_type): Remove NULL check before xfree.
3133 * corefile.c (set_gnutarget): Likewise.
3134 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3135 * exec.c (build_section_table): Likewise.
3136 * remote.c (remote_target::pass_signals): Likewise.
3137 * utils.c (n_spaces): Likewise.
3138 * cli/cli-script.c (document_command): Likewise.
3139 * i386-windows-tdep.c (core_process_module_section): Likewise.
3140 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3141
9d428aae
SM
31422020-05-20 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * symfile.c (reread_symbols): Clear objfile's section_offsets
3145 vector and section indices, re-compute them by calling
3146 sym_offsets.
3147
250106a7
TT
31482020-05-20 Tom Tromey <tromey@adacore.com>
3149
3150 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3151 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3152
9a0bacfb
TV
31532020-05-20 Tom de Vries <tdevries@suse.de>
3154
3155 PR symtab/25833
3156 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3157
7b958a48
AM
31582020-05-20 Alan Modra <amodra@gmail.com>
3159
3160 PR 25993
3161 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3162 bfd_set_filename.
3163 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3164 passed to bfd_set_filename.
3165 * symfile-mem.c (add_vsyscall_page): Likewise for string
3166 passed to symbol_file_add_from_memory.
3167 (symbol_file_add_from_memory): Make name param a const char* and
3168 don't strdup.
3169
c7e97679
AM
31702020-05-20 Alan Modra <amodra@gmail.com>
3171
3172 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3173 rather than accessing bfd->filename directly.
3174 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3175 and use bfd_section_name.
3176 * dwarf2/frame.c (decode_frame_entry): Likewise.
3177 * exec.c (exec_set_section_address): Likewise.
3178 * solib-aix.c (solib_aix_bfd_open): Likewise.
3179 * stap-probe.c (get_stap_base_address): Likewise.
3180 * symfile.c (reread_symbols): Likewise.
3181
563c591b
TT
31822020-05-19 Tom Tromey <tromey@adacore.com>
3183
3184 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3185
f408d82c
SM
31862020-05-19 Simon Marchi <simon.marchi@efficios.com>
3187
3188 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3189
98c59b52
PA
31902020-05-19 Pedro Alves <palves@redhat.com>
3191
3192 * NEWS (set exec-file-mismatch): Adjust entry.
3193 * exec.c: Include "build-id.h".
3194 (validate_exec_file): Try to match build IDs instead of filenames.
3195 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3196 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3197 and pass down 'warn_if_slow'.
3198 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3199 gdb_bfd_open_closure to pass it down.
3200 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3201
4111f652
PA
32022020-05-19 Pedro Alves <palves@redhat.com>
3203
3204 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3205 * target.c (target_fileio_open_1): Rename to target_fileio_open
3206 and make extern. Use bool.
3207 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3208 (target_fileio_read_alloc_1): Adjust.
3209 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3210 (target_fileio_open_warn_if_slow): Delete declaration.
3211
ad80db5b
PA
32122020-05-19 Pedro Alves <palves@redhat.com>
3213
3214 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3215 Adjust all callers.
3216
1d6ce4d3
YS
32172020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3218
3219 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3220 whether disp is negative.
3221
9005fbbb
SM
32222020-05-19 Simon Marchi <simon.marchi@efficios.com>
3223
3224 * symfile.h (struct symfile_segment_data)
3225 <~symfile_segment_data>: Remove.
3226 <segment_info>: Change to std::vector.
3227 * symfile.c (default_symfile_segments): Update.
3228 * elfread.c (elf_symfile_segments): Update.
3229
68b888ff
SM
32302020-05-19 Simon Marchi <simon.marchi@efficios.com>
3231
3232 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3233 <segments>: New.
3234 <segment_bases, segment_sizes>: Remove.
3235 * symfile.c (default_symfile_segments): Update.
3236 * elfread.c (elf_symfile_segments): Update.
3237 * remote.c (remote_target::get_offsets): Update.
3238 * solib-target.c (solib_target_relocate_section_addresses):
3239 Update.
3240
62982abd
SM
32412020-05-19 Simon Marchi <simon.marchi@efficios.com>
3242
3243 * symfile.h (struct symfile_segment_data): Initialize fields.
3244 <~symfile_segment_data>: Add.
3245 (symfile_segment_data_up): New.
3246 (struct sym_fns) <sym_segments>: Return a
3247 symfile_segment_data_up.
3248 (default_symfile_segments): Return a symfile_segment_data_up.
3249 (free_symfile_segment_data): Remove.
3250 (get_symfile_segment_data): Return a symfile_segment_data_up.
3251 * symfile.c (default_symfile_segments): Likewise.
3252 (get_symfile_segment_data): Likewise.
3253 (free_symfile_segment_data): Remove.
3254 (symfile_find_segment_sections): Update.
3255 * elfread.c (elf_symfile_segments): Return a
3256 symfile_segment_data_up.
3257 * remote.c (remote_target::get_offsets): Update.
3258 * solib-target.c (solib_target_relocate_section_addresses):
3259 Update.
3260 * symfile-debug.c (debug_sym_segments): Return a
3261 symfile_segment_data_up.
3262
7f204339
RO
32632020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3264
e52a0f1b
RO
3265 PR build/25981
3266 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3267 Hardcode register numbers.
3268
7f204339
RO
3269 PR build/25981
3270 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3271 procfs_find_LDT_entry): Remove.
3272 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3273 procfs_find_LDT_entry): Remove.
3274 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3275 Remove.
3276
7f32a4d5
PA
32772020-05-17 Pedro Alves <palves@redhat.com>
3278 Andrew Burgess <andrew.burgess@embecosm.com>
3279 Keno Fischer <keno@juliacomputing.com>
3280
3281 PR gdb/25741
3282 * breakpoint.c (build_target_condition_list): Update comments.
3283 (build_target_command_list): Update comments and skip matching
3284 locations.
3285 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3286 a separate function. Simplify "set breakpoint auto-hw off"
3287 handling.
3288 (insert_breakpoints): Update comment.
3289 (tracepoint_locations_match): New parameter. For breakpoints,
3290 compare location types too, if the caller wants to.
3291 (handle_automatic_hardware_breakpoints): New functions.
3292 (bp_location_is_less_than): Also sort by location type and
3293 hardware breakpoint length.
3294 (update_global_location_list): Handle "set breakpoint auto-hw on"
3295 here.
3296 (update_breakpoint_locations): Ask breakpoint_locations_match to
3297 ignore location types.
3298
7d93a1e0
SM
32992020-05-16 Simon Marchi <simon.marchi@efficios.com>
3300
3301 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3302 type::name instead.
3303
d0e39ea2
SM
33042020-05-16 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * gdbtypes.h (struct type) <name, set_name>: New methods.
3307 (TYPE_CODE): Use type::name. Change all call sites used to set
3308 the name to use type::set_name instead.
3309
2dab0c7b
TT
33102020-05-16 Tom Tromey <tom@tromey.com>
3311
3312 * top.c (quit_force): Update.
3313 * infrun.c (handle_no_resumed): Update.
3314 * top.h (all_uis): New function.
3315 (ALL_UIS): Remove.
3316
59f7bd8d
SM
33172020-05-16 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3320
9bf058f0
PA
33212020-05-16 Pedro Alves <palves@redhat.com>
3322
3323 * ia64-linux-nat.c
3324 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3325 Declare method.
3326 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3327
8f86ae1a
SM
33282020-05-15 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3331 (sparc64_adi_info): Likewise.
3332
d6bc0792
TT
33332020-05-15 Tom Tromey <tom@tromey.com>
3334
3335 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3336 block_objfile.
3337 (lookup_objfile_from_block): Remove.
3338 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3339 (lookup_global_symbol): Use block_objfile.
3340 * symtab.h (lookup_objfile_from_block): Don't declare.
3341 * printcmd.c (clear_dangling_display_expressions): Use
3342 block_objfile.
3343 * parse.c (operator_check_standard): Use block_objfile.
3344
8c14c3a3
TT
33452020-05-15 Tom Tromey <tom@tromey.com>
3346
3347 * language.c (language_alloc_type_symbol): Set
3348 SYMBOL_SECTION.
3349 * symtab.c (initialize_objfile_symbol): Remove.
3350 (allocate_symbol): Remove.
3351 (allocate_template_symbol): Remove.
3352 * dwarf2/read.c (fixup_go_packaging): Use "new".
3353 (new_symbol): Use "new".
3354 (read_variable): Don't call initialize_objfile_symbol. Use
3355 "new".
3356 (read_func_scope): Use "new".
3357 * xcoffread.c (process_xcoff_symbol): Don't call
3358 initialize_objfile_symbol.
3359 (SYMBOL_DUP): Remove.
3360 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3361 "new".
3362 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3363 (allocate_template_symbol): Don't declare.
3364 (struct symbol): Add copy constructor. Change defaults.
3365 * jit.c (finalize_symtab): Use "new".
3366 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3367 Use "new".
3368 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3369 (common_block_end): Use "new".
3370 * mdebugread.c (parse_symbol): Use "new".
3371 (new_symbol): Likewise.
3372
5b4a1a8d
PW
33732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3374
3375 * NEWS: Mention changes to help and apropos.
3376
57b4f16e
PW
33772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3378
3379 * command.h (enum command_class): Improve comments, document
3380 that class_alias is for user-defined aliases, give the class
3381 name for each class, remove unused class_xdb.
3382 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3383 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3384 by a precise class.
3385 * infcmd.c (_initialize_infcmd): Likewise.
3386 * reverse.c (_initialize_reverse): Likewise.
3387 * stack.c (_initialize_stack): Likewise.
3388 * symfile.c (_initialize_symfile): Likewise.
3389 * tracepoint.c (_initialize_tracepoint): Likewise.
3390
7c05caf7
PW
33912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3392
3393 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3394 when their aliased command is traversed.
3395 (help_cmd): Add fput_command_names_styled call to
3396 output command name and aliases when command has an alias.
3397
3b3aaacb
PW
33982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3399
3400 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3401 * cli/cli-decode.c (help_cmd_list): Declare as static,
3402 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3403 a command together with the command.
3404 (fput_command_name_styled, fput_command_names_styled): New functions.
3405 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3406 fput_command_name_styled.
3407 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3408 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3409
7aa1b46f
PW
34102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3411
3412 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3413 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3414 * command.h (cmd_show_list): Likewise.
3415 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3416 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3417
89bcba74
PW
34182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3419
3420 * unittests/command-def-selftests.c (traverse_command_structure):
3421 Verify all commands of a list have the same prefix command and
3422 that only the top cmdlist commands have a null prefix.
3423
3f4d92eb
PW
34242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3425
3426 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3427 as prefix, not one of its aliases.
3428 (set_cmd_prefix): Remove.
3429 (do_add_cmd): Centralize the setting of the prefix of a command, when
3430 command is defined after its full chain of prefix commands.
3431 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3432 (add_setshow_cmd_full): Likewise.
3433 (update_prefix_field_of_prefixed_commands): New function.
3434 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3435 update_prefix_field_of_prefixed_commands.
3436 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3437 addresses of remote_set_cmdlist and remote_show_cmdlist given
3438 as argument, not the address of an argument.
3439 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3440 * gdb/remote.c (_initialize_remote): Likewise.
3441
0605465f
PW
34422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3443
3444 * cli/cli-cmds.c (alias_command): Check for an existing alias
3445 using lookup_cmd_composition, as valid_command_p is too strict
3446 and forbids aliases that are the prefix of an existing alias
3447 or command.
3448 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3449 command is properly recognised as a valid command.
3450
58e6ac70
PW
34512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3452
3453 * unittests/help-doc-selftests.c: Rename to
3454 unittests/command-def-selftests.c
3455 * unittests/command-def-selftests.c (help_doc_tests): Update some
3456 comments.
3457 (command_structure_tests, traverse_command_structure): New namespace
3458 and function.
3459 (command_structure_invariants_tests): New function.
3460 (_initialize_command_def_selftests) Renamed from
3461 _initialize_help_doc_selftests, register command_structure_invariants
3462 selftest.
3463
a7b9ceb8
PW
34642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3465
3466 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3467 an alias of 'show'.
3468
b2188a06
JB
34692020-05-15 Joel Brobecker <brobecker@adacore.com>
3470
3471 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3472 ada_is_fixed_point_type. Update all callers.
3473 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3474 all callers.
3475 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3476 Update all callers.
3477 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3478 print_fixed_point_type. Update all callers.
3479 * ada-valprint.c (ada_value_print_num): Replace call to
3480 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3481
a51951c2
KB
34822020-05-14 Kevin Buettner <kevinb@redhat.com>
3483
3484 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3485 processors.
3486 (cpu_supports_bts): Add CV_AMD case.
3487
29d6859f
LM
34882020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3489 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * infrun.c (stop_all_threads): Collect multiple wait events at
3492 each pass.
3493
78134374
SM
34942020-05-14 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3497 type::code instead.
3498
67607e24
SM
34992020-05-14 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * gdbtypes.h (struct type) <code, set_code>: New methods.
3502 (TYPE_CODE): Use type::code. Change all call sites used to set
3503 the code to use type::set_code instead.
3504
a05575d3
TBA
35052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3506 Tom de Vries <tdevries@suse.de>
3507 Pedro Alves <palves@redhat.com>
3508
3509 PR threads/25478
3510 * infrun.c (stop_all_threads): Do NOT ignore
3511 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3512 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3513 received.
3514 (handle_no_resumed): Remove code handling a live inferior with no
3515 threads.
3516 * remote.c (has_single_non_exited_thread): New.
3517 (remote_target::update_thread_list): Do not delete a thread if is
3518 the last thread of the process.
3519 * thread.c (thread_select): Call delete_exited_threads instead of
3520 prune_threads.
3521
6ad82919
TBA
35222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523
3524 * infrun.c (stop_all_threads): Enable/disable thread events of all
3525 targets. Move a debug message denoting the end of the function
3526 into the SCOPED_EXIT block.
3527
d890404b
TBA
35282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3529
3530 * process-stratum-target.h: Include <set>.
3531 (all_non_exited_process_targets, switch_to_target_no_thread): New
3532 function declarations.
3533 * process-stratum-target.c (all_non_exited_process_targets)
3534 (switch_to_target_no_thread): New function implementations.
3535
293b3ebc
TBA
35362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3537
3538 * infrun.c (handle_inferior_event): Extract out a piece of code
3539 into...
3540 (mark_non_executing_threads): ...this new function.
3541
7ca9b62a
TBA
35422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543
3544 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3545 use.
3546
fc75c28b
TBA
35472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3548
3549 * regcache.c (regcache_read_pc_protected): New function
3550 implementation that returns 0 if the PC cannot read via
3551 'regcache_read_pc'.
3552 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3553 instead of 'regcache_read_pc'.
3554 (keep_going_pass_signal): Ditto.
3555
a89febbd
TT
35562020-05-13 Tom Tromey <tromey@adacore.com>
3557
3558 * ada-lang.c (align_value): Remove.
3559 (ada_template_to_fixed_record_type_1): Use align_up.
3560
f7e23710
TBA
35612020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3562
3563 * async-event.c: Update the copyright year.
3564 * async-event.h: Update the copyright year.
3565
02ff80c2
SM
35662020-05-12 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * objfiles.h (is_addr_in_objfile,
3569 shared_objfile_contains_address_p): Return bool.
3570 * objfile.c (is_addr_in_objfile,
3571 shared_objfile_contains_address_p): Return bool.
3572
4fd6c7e8
TT
35732020-05-11 Tom Tromey <tromey@adacore.com>
3574
3575 * cli/cli-cmds.c (info_command): Restore.
3576 (_initialize_cli_cmds): Use add_prefix_command for "info".
3577 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3578
5eb68a39
TT
35792020-05-11 Tom Tromey <tromey@adacore.com>
3580
3581 * ada-lang.c (ada_value_primitive_field): Now public.
3582 * ada-lang.h (ada_value_primitive_field): Declare.
3583 * ada-valprint.c (print_field_values): Use
3584 ada_value_primitive_field for wrapper fields.
3585
7666722f
TV
35862020-05-11 Tom de Vries <tdevries@suse.de>
3587
3588 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3589 MODULE_DOMAIN.
3590
3ee6bb11
TV
35912020-05-11 Tom de Vries <tdevries@suse.de>
3592
3593 PR symtab/25941
3594 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3595 with length 0, if not gdb-produced.
3596 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3597
43434996
TV
35982020-05-09 Tom de Vries <tdevries@suse.de>
3599
3600 PR gdb/25955
3601 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3602 calculation.
3603
2f78cffc
TT
36042020-05-09 Tom Tromey <tom@tromey.com>
3605
3606 * top.c (server_command): Now bool.
3607 * top.h (server_command): Now bool.
3608
4f7bc5ed
TT
36092020-05-08 Tom Tromey <tromey@adacore.com>
3610
3611 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3612 already being processed.
3613
8be4b118
TT
36142020-05-08 Tom Tromey <tom@tromey.com>
3615
3616 * printcmd.c (struct display) <next>: Remove.
3617 <display>: New constructor.
3618 <exp_string>: Now a std::string.
3619 <enabled_p>: Now a bool.
3620 (display_number): Move definition earlier.
3621 (displays): Rename from display_chain. Now a std::vector.
3622 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3623 (display_command): Update.
3624 (do_one_display, disable_display)
3625 (enable_disable_display_command, do_enable_disable_display):
3626 Update.
3627 (free_display): Remove.
3628 (clear_displays): Rewrite.
3629 (delete_display): Update.
3630 (map_display_numbers): Use function_view. Remove "data"
3631 parameter. Update.
3632 (do_delete_display): Remove.
3633 (undisplay_command): Update.
3634 (do_one_display, do_displays, disable_display)
3635 (info_display_command): Update.
3636 (do_enable_disable_display): Remove.
3637 (enable_disable_display_command)
3638 (clear_dangling_display_expressions): Update.
3639
94c93c35
TT
36402020-05-08 Tom Tromey <tom@tromey.com>
3641
3642 * symtab.c (set_symbol_cache_size)
3643 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3644 (maintenance_print_symbol_cache_statistics): Update.
3645 * symmisc.c (print_symbol_bcache_statistics)
3646 (print_objfile_statistics, maintenance_print_objfiles)
3647 (maintenance_info_symtabs, maintenance_check_symtabs)
3648 (maintenance_expand_symtabs, maintenance_info_line_tables):
3649 Update.
3650 * symfile-debug.c (set_debug_symfile): Update.
3651 * source.c (forget_cached_source_info): Update.
3652 * python/python.c (gdbpy_progspaces): Update.
3653 * psymtab.c (maintenance_info_psymtabs): Update.
3654 * probe.c (parse_probes): Update.
3655 * linespec.c (iterate_over_all_matching_symtabs)
3656 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3657 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3658 * exec.c (exec_target::close): Update.
3659 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3660 * breakpoint.c (print_one_breakpoint_location)
3661 (create_longjmp_master_breakpoint)
3662 (create_std_terminate_master_breakpoint): Update.
3663 * progspace.c (program_spaces): Now a std::vector.
3664 (maybe_new_address_space): Update.
3665 (add_program_space): Remove.
3666 (program_space::program_space): Update.
3667 (remove_program_space): Update.
3668 (number_of_program_spaces): Remove.
3669 (print_program_space, update_address_spaces): Update.
3670 * progspace.h (program_spaces): Change type.
3671 (ALL_PSPACES): Remove.
3672 (number_of_program_spaces): Don't declare.
3673 (struct program_space) <next>: Remove.
3674
a1fd1ac9
TT
36752020-05-08 Tom Tromey <tom@tromey.com>
3676
3677 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3678 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3679 (enable_break): Update.
3680 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3681 (frv_fdpic_find_canonical_descriptor): Update.
3682 (frv_fetch_objfile_link_map): Update.
3683 * progspace.c (program_space::free_all_objfiles): Update.
3684 (program_space::solibs): New method.
3685 * progspace.h (struct program_space) <solibs>: New method.
3686 * solist.h (master_so_list): Don't declare.
3687 (ALL_SO_LIBS): Remove.
3688 * solib.h (so_list_head): Remove.
3689 (update_solib_list): Update comment.
3690 * solib.c (master_so_list): Remove.
3691 (solib_used, update_solib_list, solib_add)
3692 (info_sharedlibrary_command, clear_solib)
3693 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3694
38eae084
TT
36952020-05-08 Tom Tromey <tom@tromey.com>
3696
3697 * extension.c (extension_languages): Now a std::array.
3698 (ALL_EXTENSION_LANGUAGES): Remove.
3699 (get_ext_lang_defn, get_ext_lang_of_file)
3700 (eval_ext_lang_from_control_command): Update.
3701 (finish_ext_lang_initialization)
3702 (auto_load_ext_lang_scripts_for_objfile)
3703 (ext_lang_type_printers::ext_lang_type_printers)
3704 (apply_ext_lang_type_printers)
3705 (ext_lang_type_printers::~ext_lang_type_printers)
3706 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3707 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3708 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3709 (get_matching_xmethod_workers, ext_lang_colorize)
3710 (ext_lang_before_prompt): Update.
3711 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3712
596dc4ad
TT
37132020-05-08 Tom Tromey <tom@tromey.com>
3714
3715 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3716 overload.
3717 <swap_string, m_string>: Remove.
3718 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3719 Update.
3720 * stabsread.c (define_symbol, read_type): Update.
3721 * linespec.c (find_linespec_symbols): Update.
3722 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3723 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3724 * dbxread.c (read_dbx_symtab): Update.
3725 * cp-support.h (cp_canonicalize_string_full)
3726 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3727 Return unique_xmalloc_ptr.
3728 * cp-support.c (inspect_type): Update.
3729 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3730 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3731 Likewise.
3732 * c-typeprint.c (print_name_maybe_canonical): Update.
3733 * break-catch-throw.c (check_status_exception_catchpoint):
3734 Update.
3735
bf4cb9be
TV
37362020-05-08 Tom de Vries <tdevries@suse.de>
3737
3738 * infrun.c (follow_fork): Copy current_line and current_symtab to
3739 child thread.
3740
a1b68f28
SM
37412020-05-07 Simon Marchi <simon.marchi@efficios.com>
3742
3743 * async-event.c (struct async_signal_handler, struct
3744 async_event_handler): Reformat, remove typedef.
3745
98d48915
SM
37462020-05-07 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3749 access thistype->main_type->dyn_prop_list directly.
3750
7aa91313
SM
37512020-05-07 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3754 (remove_dyn_prop): Remove. Update all users to use
3755 type::remove_dyn_prop.
3756 * gdbtypes.c (remove_dyn_prop): Rename to...
3757 (type::remove_dyn_prop): ... this.
3758
5c54719c
SM
37592020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3760
3761 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3762 (add_dyn_prop): Remove. Update all users to use
3763 type::add_dyn_prop.
3764 * gdbtypes.c (add_dyn_prop): Rename to...
3765 (type::add_dyn_prop): ... this.
3766
24e99c6c
SM
37672020-05-07 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3770 (get_dyn_prop): Remove. Update all users to use
3771 type::dyn_prop.
3772 * gdbtypes.c (get_dyn_prop): Rename to...
3773 (type::dyn_prop): ... this.
3774
0d4bf016
SM
37752020-05-06 Simon Marchi <simon.marchi@efficios.com>
3776
3777 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3778
ac4a4f1c
SM
37792020-05-06 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3782 instruction, skip it if it's there.
3783
a3bbacc1
SM
37842020-05-05 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3787
c3236f84
SM
37882020-05-04 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3791 * gdbtypes.c (recursive_dump_type): Remove use of
3792 TYPE_INCOMPLETE.
3793
3b6acaee
TT
37942020-05-03 Tom Tromey <tom@tromey.com>
3795
3796 * breakpoint.c (catch_command, tcatch_command): Remove.
3797 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3798 add_show_prefix_cmd.
3799 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3800 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3801 Remove.
3802 (add_internal_problem_command): Use add_basic_prefix_cmd,
3803 add_show_prefix_cmd.
3804 * mips-tdep.c (set_mipsfpu_command): Remove.
3805 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3806 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3807 (_initialize_index_cache): Use add_basic_prefix_cmd.
3808 * memattr.c (dummy_cmd): Remove.
3809 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3810 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3811 (_initialize_tui_win): Use add_basic_prefix_cmd,
3812 add_show_prefix_cmd.
3813 * cli/cli-logging.c (set_logging_command): Remove.
3814 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3815 add_show_prefix_cmd.
3816 (show_logging_command): Remove.
3817 * target.c (target_command): Remove.
3818 (add_target): Use add_basic_prefix_cmd.
3819
a51119cd
HD
38202020-05-02 Hannes Domani <ssbssa@yahoo.de>
3821
3822 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3823
652fc23a 38242020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3825
652fc23a
PW
3826 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3827 info_command.
3828
117539e6
KR
38292020-04-30 Kamil Rytarowski <n54@gmx.com>
3830
3831 * nbsd-nat.c (nbsd_enable_proc_events)
3832 (nbsd_nat_target::post_startup_inferior): Add.
3833 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3834 (nbsd_nat_target::update_thread_list): Rewrite.
3835 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3836 "PTRACE_LWP_CREATE".
3837 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3838
102e38eb 38392020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3840
102e38eb
PW
3841 * stack.c (_initialize_stack): Remove duplicated creation
3842 of "frame" command and "f" alias.
3843
ee9d1e5f
HD
38442020-04-30 Hannes Domani <ssbssa@yahoo.de>
3845
3846 PR gdb/18706
3847 * gdbtypes.c (check_typedef): Calculate size of array of
3848 stubbed type.
3849
627c7fb8
HD
38502020-04-30 Hannes Domani <ssbssa@yahoo.de>
3851
3852 PR gdb/15559
3853 * i386-tdep.c (i386_push_dummy_call): Call
3854 i386_thiscall_push_dummy_call.
3855 (i386_thiscall_push_dummy_call): New function.
3856 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3857 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3858 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3859
ffc2844e
SM
38602020-04-29 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * gdbarch.sh (do_read): Add shellcheck disable directive for
3863 warning SC2162.
3864
1207375d
SM
38652020-04-29 Simon Marchi <simon.marchi@efficios.com>
3866
3867 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3868 "referenced but not assigned" warning.
3869
9fdb2916
SM
38702020-04-29 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * gdbarch.sh: Remove code that sets fallbackdefault.
3873
759cea5e
SM
38742020-04-29 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * gdbarch.sh: Use shell operators && and || instead of
3877 -a and -o.
3878
cb02ab24
SM
38792020-04-29 Simon Marchi <simon.marchi@efficios.com>
3880
3881 * gdbarch.sh: Use $(...) instead of `...`.
3882
a6fc5ffc
SM
38832020-04-29 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * gdbarch.sh: Use double quotes around variables.
3886
8d113d13
SM
38872020-04-29 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * gdbarch.sh: Use %s with printf, instead of variables in the
3890 format string.
3891
ed6acedd
TT
38922020-04-29 Tom Tromey <tromey@adacore.com>
3893
3894 PR ada/25875:
3895 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3896 type fields here.
3897 (read_enumeration_type): Call
3898 update_enumeration_type_from_children later. Update comments.
3899 (process_enumeration_scope): Don't create type fields.
3900
b68b1b58
KR
39012020-04-29 Kamil Rytarowski <n54@gmx.com>
3902
3903 * nbsd-tdep.c: Include "xml-syscall.h".
3904 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3905
f94b2e03
KR
39062020-04-29 Kamil Rytarowski <n54@gmx.com>
3907
3908 * nbsd-nat.c: Include "sys/wait.h".
3909 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3910 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3911 (nbsd_nat_target::remove_exec_catchpoint)
3912 (nbsd_nat_target::set_syscall_catchpoint): Add.
3913 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3914 (nbsd_nat_target::insert_exec_catchpoint)
3915 (nbsd_nat_target::remove_exec_catchpoint)
3916 (nbsd_nat_target::set_syscall_catchpoint): Add.
3917 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3918 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3919 `nbsd_get_syscall_number'.
3920
fc49bc72
TT
39212020-04-29 Tom Tromey <tom@tromey.com>
3922
3923 * stack.c (print_block_frame_labels): Remove.
3924
d642b692
HD
39252020-04-29 Hannes Domani <ssbssa@yahoo.de>
3926
3927 PR gdb/17320
3928 * ada-valprint.c (val_print_packed_array_elements): Move array
3929 end bracket to new line.
3930 (ada_val_print_string): Remove extra spaces before first array
3931 element.
3932 * c-valprint.c (c_value_print_array): Likewise.
3933 * m2-valprint.c (m2_print_array_contents): Likewise.
3934 (m2_value_print_inner): Likewise.
3935 * p-valprint.c (pascal_value_print_inner): Likewise.
3936 * valprint.c (generic_val_print_array): Likewise.
3937 (value_print_array_elements): Move first array element and array
3938 end bracket to new line.
3939
ea90f227
TV
39402020-04-29 Tom de Vries <tdevries@suse.de>
3941
3942 PR symtab/25889
3943 * linespec.c (find_method): Fix ix calculation.
3944
4498ef4f
KR
39452020-04-28 Kamil Rytarowski <n54@gmx.com>
3946
3947 * syscalls/update-netbsd.sh: New file.
3948 * syscalls/netbsd.xml: Regenerate.
3949 * data-directory/Makefile.in: Register `netbsd.xml' in
3950 `SYSCALLS_FILES'.
3951
a55e30b5
SM
39522020-04-28 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * syscalls/update-freebsd.sh: Add double quotes.
3955
2b2fbab8
TT
39562020-04-28 Tom Tromey <tom@tromey.com>
3957
3958 * NEWS: Update.
3959 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3960 (cmdpy_init): Allow class_tui.
3961
a65189c9
TV
39622020-04-28 Mark Williams <mark@myosotissp.com>
3963
3964 PR gdb/24480
3965 * dwarf2read.c: Add missing assingments to list_in_scope when
3966 start_symtab was already called.
3967
1b95cdb7
SM
39682020-04-28 Simon Marchi <simon.marchi@efficios.com>
3969
3970 PR gdb/25881
3971 * dwarf2/read.c (offset_map_type): Use
3972 gdb:hash_enum<sect_offset> as hash function.
3973
15cd93d0
TV
39742020-04-28 Tom de Vries <tdevries@suse.de>
3975
3976 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3977 with DW_AT_signature.
3978
1eb39914
SM
39792020-04-27 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * configure.ac: Remove check for fs_base/gs_base in
3982 user_regs_struct.
3983 * configure: Re-generate.
3984 * config.in: Re-generate.
3985 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3986 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3987 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3988
991a3e2e
LM
39892020-04-27 Luis Machado <luis.machado@linaro.org>
3990
3991 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3992 problematic inline frame unwinding situation.
3993 * frame.c (frame_id_computed_p): New function.
3994 * frame.h (frame_id_computed_p): New prototype.
3995
361ba0e8
TT
39962020-04-26 Tom Tromey <tom@tromey.com>
3997
3998 * command.h (enum command_class) <class_pseudo>: Remove.
3999
bc3609fd
PW
40002020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4001
4002 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4003 and whitespace.
4004
b9771db7
KR
40052020-04-25 Kamil Rytarowski <n54@gmx.com>
4006
ec16513e
SM
4007 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4008 `PT_GET_PROCESS_STATE' block.
b9771db7 4009
7151c1af
TT
40102020-04-24 Tom Tromey <tom@tromey.com>
4011
4012 * symtab.h (symbol_get_demangled_name): Don't declare.
4013 * symtab.c (symbol_get_demangled_name): Remove.
4014 (general_symbol_info::natural_name)
4015 (general_symbol_info::demangled_name): Update.
4016
906bb4c5
TT
40172020-04-24 Tom Tromey <tom@tromey.com>
4018
4019 PR rust/25025:
4020 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4021
bcfe6157
TT
40222020-04-24 Tom Tromey <tom@tromey.com>
4023
4024 PR symtab/12707:
4025 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4026 exists.
4027 (new_symbol): Likewise.
4028 * compile/compile-object-load.c (get_out_value_type): Use
4029 symbol_matches_search_name.
4030
f049a313
TT
40312020-04-24 Tom Tromey <tom@tromey.com>
4032
4033 * dwarf2/read.c (add_partial_symbol): Do not call
4034 compute_and_set_names.
4035
76e288d1
TT
40362020-04-24 Tom Tromey <tom@tromey.com>
4037
4038 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4039 overload.
4040
2467f4f6
TT
40412020-04-24 Tom Tromey <tom@tromey.com>
4042
4043 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4044 (add_psymbol_to_list): New overload. Make old overload call new
4045 one.
4046 * psympriv.h (add_psymbol_to_list): New overload.
4047
e61108c9
TT
40482020-04-24 Tom Tromey <tom@tromey.com>
4049
4050 * dwarf2/read.c (partial_die_info::read) <case
4051 DW_AT_linkage_name>: Use value_as_string.
4052 (dwarf2_string_attr): Use value_as_string.
4053 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4054 method.
4055 * dwarf2/attribute.c (attribute::value_as_string): New method.
4056
8c87a452
TT
40572020-04-24 Tom Tromey <tom@tromey.com>
4058
4059 * symtab.c (general_symbol_info::natural_name)
4060 (general_symbol_info::demangled_name): Check for language_rust.
4061
787de330
TT
40622020-04-24 Tom Tromey <tom@tromey.com>
4063
4064 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4065 (dwarf2_physname): ... from here.
4066 (partial_die_info::read): Add Rust "{" hack.
4067
ff985671
TT
40682020-04-24 Tom Tromey <tom@tromey.com>
4069
4070 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4071 method.
4072 (symbol_set_demangled_name): Don't declare.
4073 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4074 symbol_set_demangled_name.
4075 (general_symbol_info::set_language)
4076 (general_symbol_info::compute_and_set_names): Update.
4077 * minsyms.c (minimal_symbol_reader::install): Update.
4078 * dwarf2/read.c (new_symbol): Update.
4079
1acda803
TT
40802020-04-24 Tom Tromey <tromey@adacore.com>
4081
4082 PR python/23662:
4083 * python/py-type.c (convert_field): Handle
4084 FIELD_LOC_KIND_DWARF_BLOCK.
4085 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4086 (typy_get_dynamic): Nw function.
4087 (type_object_getset): Add "dynamic".
4088 * NEWS: Add entry.
4089
d656f129
TT
40902020-04-24 Tom Tromey <tromey@adacore.com>
4091
4092 * ada-typeprint.c (print_choices, print_variant_part)
4093 (print_record_field_types_dynamic): New functions.
4094 (print_record_field_types): Use print_record_field_types_dynamic.
4095
7d79de9a
TT
40962020-04-24 Tom Tromey <tromey@adacore.com>
4097
4098 * dwarf2/read.c (handle_data_member_location): New overload.
4099 (dwarf2_add_field): Use it.
4100 (decode_locdesc): Add "computed" parameter. Update comment.
4101 * gdbtypes.c (is_dynamic_type_internal): Also look for
4102 FIELD_LOC_KIND_DWARF_BLOCK.
4103 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4104 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4105 virtual base classes.
4106 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4107 FIELD_LOC_KIND_DWARF_BLOCK.
4108
f8e89861
TT
41092020-04-24 Tom Tromey <tromey@adacore.com>
4110
4111 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4112 * gdbtypes.c (is_dynamic_type_internal): Check
4113 TYPE_HAS_DYNAMIC_LENGTH.
4114 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4115 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4116 New macros.
4117 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4118 constant.
4119
9c6a1327
TT
41202020-04-24 Tom Tromey <tromey@adacore.com>
4121
4122 * dwarf2/read.c (struct variant_field): Rewrite.
4123 (struct variant_part_builder): New.
4124 (struct nextfield): Remove "variant" field. Add "offset".
4125 (struct field_info): Add "current_variant_part" and
4126 "variant_parts".
4127 (alloc_discriminant_info): Remove.
4128 (alloc_rust_variant): New function.
4129 (quirk_rust_enum): Update.
4130 (dwarf2_add_field): Set "offset" member. Don't handle
4131 DW_TAG_variant_part.
4132 (offset_map_type): New typedef.
4133 (convert_variant_range, create_one_variant)
4134 (create_one_variant_part, create_variant_parts)
4135 (add_variant_property): New functions.
4136 (dwarf2_attach_fields_to_type): Call add_variant_property.
4137 (read_structure_type): Don't handle DW_TAG_variant_part.
4138 (handle_variant_part, handle_variant): New functions.
4139 (handle_struct_member_die): Use them.
4140 (process_structure_scope): Don't handle variant parts.
4141 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4142 (struct discriminant_info): Remove.
4143 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4144 (struct main_type) <flag_discriminated_union>: Remove.
4145 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4146 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4147 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4148 Update.
4149 * valops.c (value_union_variant): Remove.
4150 * value.h (value_union_variant): Don't declare.
4151
b249d2c2
TT
41522020-04-24 Tom Tromey <tromey@adacore.com>
4153
4154 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4155 (ada_value_primitive_packed_val): Update.
4156 * ada-valprint.c (ada_value_print_1): Update.
4157 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4158 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4159 just an address. Use evaluate_for_locexpr_baton.
4160 (dwarf2_evaluate_property): Update.
4161 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4162 array_view.
4163 * findvar.c (default_read_var_value): Update.
4164 * gdbtypes.c (compute_variant_fields_inner)
4165 (resolve_dynamic_type_internal): Update.
4166 (resolve_dynamic_type): Change type of valaddr parameter.
4167 * gdbtypes.h (resolve_dynamic_type): Update.
4168 * valarith.c (value_subscripted_rvalue): Update.
4169 * value.c (value_from_contents_and_address): Update.
4170
61122aa9
TT
41712020-04-24 Tom Tromey <tromey@adacore.com>
4172
4173 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4174 "push_initial_value" parameter.
4175 (dwarf2_evaluate_property): Likewise.
4176 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4177
ef83a141
TT
41782020-04-24 Tom Tromey <tromey@adacore.com>
4179
4180 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4181 (variant::matches, compute_variant_fields_recurse)
4182 (compute_variant_fields_inner, compute_variant_fields): New
4183 functions.
4184 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4185 Use resolved_type after type is made.
4186 (operator==): Add new cases.
4187 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4188 (struct discriminant_range, struct variant, struct variant_part):
4189 New.
4190 (union dynamic_prop_data) <variant_parts, original_type>: New
4191 members.
4192 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4193 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4194 constants.
4195 * value.c (unpack_bits_as_long): Now public.
4196 * value.h (unpack_bits_as_long): Declare.
4197
675127ec
TT
41982020-04-24 Tom Tromey <tromey@adacore.com>
4199
4200 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4201 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4202
9852ceef
HD
42032020-04-24 Hannes Domani <ssbssa@yahoo.de>
4204
4205 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4206
7632c6ce
KR
42072020-04-24 Kamil Rytarowski <n54@gmx.com>
4208
4209 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4210 (remove_fork_catchpoint, post_startup_inferior)
4211 (post_attach): Move...
4212 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4213 (remove_fork_catchpoint, post_startup_inferior)
4214 (post_attach): ...here.
4215 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4216 (remove_fork_catchpoint, post_startup_inferior)
4217 (post_attach): Move...
4218 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4219 (remove_fork_catchpoint, post_startup_inferior)
4220 (post_attach): ...here.
4221
7be2bb4f
TT
42222020-04-24 Tom Tromey <tromey@adacore.com>
4223
4224 * nat/windows-nat.h (struct windows_thread_info)
4225 <pc_adjusted>: New member.
4226 * windows-nat.c (windows_fetch_one_register): Check
4227 pc_adjusted.
4228 (windows_nat_target::get_windows_debug_event)
4229 (windows_nat_target::wait): Set pc_adjusted.
4230
f80cb3b4
TV
42312020-04-24 Tom de Vries <tdevries@suse.de>
4232
4233 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4234 Run gdb-add-index inside temp dir.
4235
29514b87
TT
42362020-04-23 Tom Tromey <tromey@adacore.com>
4237
4238 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4239 in loop.
4240
5939967b
LM
42412020-04-23 Luis Machado <luis.machado@linaro.org>
4242
4243 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4244 get_frame_register instead of gdbarch_unwind_pc.
4245
70bc38f5
TV
42462020-04-23 Tom de Vries <tdevries@suse.de>
4247
4248 * symtab.c (lookup_global_symbol): Prefer def over decl.
4249
de82891c
TV
42502020-04-23 Tom de Vries <tdevries@suse.de>
4251
4252 PR symtab/25807
4253 * block.c (best_symbol, better_symbol): Promote to external.
4254 * block.h (best_symbol, better_symbol): Declare.
4255 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4256 decl.
4257
ecc6c606
TT
42582020-04-23 Tom Tromey <tromey@adacore.com>
4259
4260 PR ada/25837:
4261 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4262 "const char *", not a "const std::string &".
4263 <name_and_matcher::operator==>: Update.
4264 * unittests/lookup_name_info-selftests.c: Change type of
4265 "result".
4266
740480b8
TT
42672020-04-23 Tom Tromey <tom@tromey.com>
4268
4269 * inferior.h (iterate_over_inferiors): Don't declare.
4270 * inferior.c (iterate_over_inferiors): Remove.
4271 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4272 Remove.
4273 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4274 use iterate_over_inferiors.
4275 (darwin_resume_inferior_it)
4276 (struct resume_inferior_threads_param)
4277 (darwin_resume_inferior_threads_it): Remove.
4278 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4279
ae3ab1f0
TV
42802020-04-23 Tom de Vries <tdevries@suse.de>
4281
4282 * blockframe.c (find_pc_partial_function): Use
4283 find_pc_sect_compunit_symtab rather than
4284 objfile->sf->qf->find_pc_sect_compunit_symtab.
4285
317d2668
TV
42862020-04-22 Tom de Vries <tdevries@suse.de>
4287
4288 PR symtab/25764
4289 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4290 in psymtabs.
4291
eea9e357
TV
42922020-04-22 Tom de Vries <tdevries@suse.de>
4293
4294 PR symtab/25801
4295 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4296 symtabs.
4297
3d5afab3
TV
42982020-04-22 Tom de Vries <tdevries@suse.de>
4299
4300 PR symtab/25700
4301 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4302 CU if already created.
4303
d43b7a2d
TBA
43042020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4305
4306 * infrun.c (displaced_step_fixup): Switch to the event_thread
4307 before calling displaced_step_restore, not after.
4308
d89edf9b
MM
43092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4310
4311 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4312 its inferior is not recorded by us.
4313 (record_btrace_target_open): Replace call to
4314 all_non_exited_threads () with call to current_inferior
4315 ()->non_exited_threads ().
4316 (record_btrace_target::stop_recording): Likewise.
4317 (record_btrace_target::close): Likewise.
4318 (record_btrace_target::wait): Likewise.
4319 (record_btrace_target::record_stop_replaying): Likewise.
4320
5897fd49
MM
43212020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4322
4323 * btrace.c (btrace_enable): Throw an error on double enables and
4324 when enabling recording fails.
4325 (btrace_disable): Throw an error if the thread is not recorded.
4326
1a476b6d
MM
43272020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4328
4329 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4330 request if we do not have a thread_info.
4331
4778a5f8
TV
43322020-04-21 Tom de Vries <tdevries@suse.de>
4333
4334 PR gdb/25471
4335 * thread.c
4336 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4337 exception in get_frame_id.
4338
0fa7617d
TT
43392020-04-20 Tom Tromey <tromey@adacore.com>
4340
4341 * python/python.c (struct gdbpy_event): Mark move constructor as
4342 noexcept.
4343 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4344 constructor as noexcept.
4345 * completer.h (struct completion_result): Mark move constructor as
4346 noexcept.
4347 * completer.c (completion_result::completion_result): Use
4348 initialization style. Don't call reset_match_list.
4349
ad23bda0
MS
43502020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4351
4352 * MAINTAINERS (Write After Approval): Add myself.
4353
45e1f031
TT
43542020-04-18 Tom Tromey <tom@tromey.com>
4355
4356 * windows-tdep.c (init_w32_command_list)
4357 (w32_prefix_command_valid): Restore.
4358 (_initialize_windows_tdep): Call init_w32_command_list.
4359
08feed99
TT
43602020-04-18 Tom Tromey <tom@tromey.com>
4361
4362 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4363 * value.c (value_fn_field): Update.
4364 * valops.c (find_function_in_inferior)
4365 (value_allocate_space_in_inferior): Update.
4366 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4367 Update.
4368 * tui/tui-source.c (tui_source_window::set_contents): Update.
4369 * symtab.c (lookup_global_or_static_symbol)
4370 (find_function_start_sal_1, skip_prologue_sal)
4371 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4372 * symmisc.c (dump_msymbols, dump_symtab_1)
4373 (maintenance_print_one_line_table): Update.
4374 * symfile.c (init_entry_point_info, section_is_mapped)
4375 (list_overlays_command, simple_read_overlay_table)
4376 (simple_overlay_update_1): Update.
4377 * stap-probe.c (handle_stap_probe): Update.
4378 * stabsread.c (dbx_init_float_type, define_symbol)
4379 (read_one_struct_field, read_enum_type, read_range_type): Update.
4380 * source.c (info_line_command): Update.
4381 * python/python.c (gdbpy_source_objfile_script)
4382 (gdbpy_execute_objfile_script): Update.
4383 * python/py-type.c (save_objfile_types): Update.
4384 * python/py-objfile.c (py_free_objfile): Update.
4385 * python/py-inferior.c (python_new_objfile): Update.
4386 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4387 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4388 (maintenance_check_psymtabs): Update.
4389 * printcmd.c (info_address_command): Update.
4390 * objfiles.h (struct objfile) <arch>: New method, from
4391 get_objfile_arch.
4392 (get_objfile_arch): Don't declare.
4393 * objfiles.c (get_objfile_arch): Remove.
4394 (filter_overlapping_sections): Update.
4395 * minsyms.c (msymbol_is_function): Update.
4396 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4397 (output_nondebug_symbol): Update.
4398 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4399 (mdebug_expand_psymtab): Update.
4400 * machoread.c (macho_add_oso_symfile): Update.
4401 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4402 Update.
4403 * linux-fork.c (checkpoint_command): Update.
4404 * linespec.c (convert_linespec_to_sals): Update.
4405 * jit.c (finalize_symtab): Update.
4406 * infrun.c (insert_exception_resume_from_probe): Update.
4407 * ia64-tdep.c (ia64_find_unwind_table): Update.
4408 * hppa-tdep.c (internalize_unwinds): Update.
4409 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4410 Update.
4411 * gcore.c (call_target_sbrk): Update.
4412 * elfread.c (record_minimal_symbol, elf_symtab_read)
4413 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4414 (elf_gnu_ifunc_resolve_by_got): Update.
4415 * dwarf2/read.c (create_addrmap_from_index)
4416 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4417 (read_debug_names_from_section)
4418 (process_psymtab_comp_unit_reader, add_partial_symbol)
4419 (add_partial_subprogram, process_full_comp_unit)
4420 (read_file_scope, read_func_scope, read_lexical_block_scope)
4421 (read_call_site_scope, dwarf2_ranges_read)
4422 (dwarf2_record_block_ranges, dwarf2_add_field)
4423 (mark_common_block_symbol_computed, read_tag_pointer_type)
4424 (read_tag_string_type, dwarf2_init_float_type)
4425 (dwarf2_init_complex_target_type, read_base_type)
4426 (partial_die_info::read, partial_die_info::read)
4427 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4428 (dwarf2_fetch_die_loc_sect_off): Update.
4429 * dwarf2/loc.c (dwarf2_find_location_expression)
4430 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4431 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4432 (dwarf2_loc_desc_get_symbol_read_needs)
4433 (locexpr_describe_location_piece, locexpr_describe_location_1)
4434 (loclist_describe_location): Update.
4435 * dwarf2/index-write.c (write_debug_names): Update.
4436 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4437 * dtrace-probe.c (dtrace_process_dof): Update.
4438 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4439 (process_one_symbol): Update.
4440 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4441 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4442 (coff_read_enum_type): Update.
4443 * cli/cli-cmds.c (edit_command, list_command): Update.
4444 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4445 * breakpoint.c (create_overlay_event_breakpoint)
4446 (create_longjmp_master_breakpoint)
4447 (create_std_terminate_master_breakpoint)
4448 (create_exception_master_breakpoint, get_sal_arch): Update.
4449 * block.c (block_gdbarch): Update.
4450 * annotate.c (annotate_source_line): Update.
4451
0743fc83
TT
44522020-04-17 Tom Tromey <tromey@adacore.com>
4453
4454 * auto-load.c (show_auto_load_cmd): Remove.
4455 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4456 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4457 (maintenance_print_arc_command): Remove.
4458 * tui/tui-win.c (tui_command): Remove.
4459 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4460 * tui/tui-layout.c (tui_layout_command): Remove.
4461 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4462 * python/python.c (user_set_python, user_show_python): Remove.
4463 (_initialize_python): Use add_basic_prefix_cmd,
4464 add_show_prefix_cmd.
4465 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4466 (install_gdb_commands): Use add_basic_prefix_cmd,
4467 add_show_prefix_cmd.
4468 (info_guile_command): Remove.
4469 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4470 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4471 add_show_prefix_cmd.
4472 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4473 Remove do_set and do_show parameters.
4474 * cli/cli-style.c (set_style, show_style): Remove.
4475 (_initialize_cli_style): Use add_basic_prefix_cmd,
4476 add_show_prefix_cmd.
4477 (cli_style_option::add_setshow_commands): Remove do_set and
4478 do_show parameters.
4479 (cli_style_option::add_setshow_commands): Use
4480 add_basic_prefix_cmd, add_show_prefix_cmd.
4481 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4482 (set_style_name): Remove.
4483 * cli/cli-dump.c (dump_command, append_command): Remove.
4484 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4485 (tekhex_dump_command, binary_dump_command)
4486 (binary_append_command): Remove.
4487 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4488 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4489 (init_w32_command_list): Remove; move into ...
4490 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4491 * valprint.c (set_print, show_print, set_print_raw)
4492 (show_print_raw): Remove.
4493 (_initialize_valprint): Use add_basic_prefix_cmd,
4494 add_show_prefix_cmd.
4495 * typeprint.c (set_print_type, show_print_type): Remove.
4496 (_initialize_typeprint): Use add_basic_prefix_cmd,
4497 add_show_prefix_cmd.
4498 * record.c (set_record_command, show_record_command): Remove.
4499 (_initialize_record): Use add_basic_prefix_cmd,
4500 add_show_prefix_cmd.
4501 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4502 add_show_prefix_cmd.
4503 (info_command, show_command, set_debug, show_debug): Remove.
4504 * top.h (set_history, show_history): Don't declare.
4505 * top.c (set_history, show_history): Remove.
4506 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4507 (unset_tdesc_cmd): Remove.
4508 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4509 add_show_prefix_cmd.
4510 * symtab.c (info_module_command): Remove.
4511 (_initialize_symtab): Use add_basic_prefix_cmd.
4512 * symfile.c (overlay_command): Remove.
4513 (_initialize_symfile): Use add_basic_prefix_cmd.
4514 * sparc64-tdep.c (info_adi_command): Remove.
4515 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4516 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4517 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4518 add_show_prefix_cmd.
4519 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4520 (_initialize_serial): Use add_basic_prefix_cmd,
4521 add_show_prefix_cmd.
4522 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4523 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4524 add_show_prefix_cmd.
4525 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4526 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4527 add_show_prefix_cmd.
4528 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4529 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4530 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4531 add_show_prefix_cmd.
4532 * remote.c (remote_command, set_remote_cmd): Remove.
4533 (_initialize_remote): Use add_basic_prefix_cmd.
4534 * record-full.c (set_record_full_command)
4535 (show_record_full_command): Remove.
4536 (_initialize_record_full): Use add_basic_prefix_cmd,
4537 add_show_prefix_cmd.
4538 * record-btrace.c (cmd_set_record_btrace)
4539 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4540 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4541 (cmd_show_record_btrace_pt): Remove.
4542 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4543 add_show_prefix_cmd.
4544 * ravenscar-thread.c (set_ravenscar_command)
4545 (show_ravenscar_command): Remove.
4546 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4547 add_show_prefix_cmd.
4548 * mips-tdep.c (show_mips_command, set_mips_command)
4549 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4550 add_show_prefix_cmd.
4551 * maint.c (maintenance_command, maintenance_info_command)
4552 (maintenance_check_command, maintenance_print_command)
4553 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4554 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4555 add_show_prefix_cmd.
4556 (show_per_command_cmd): Remove.
4557 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4558 Remove.
4559 (maintenance_show_test_settings_cmd): Remove.
4560 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4561 add_show_prefix_cmd.
4562 * maint-test-options.c (maintenance_test_options_command):
4563 Remove.
4564 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4565 * macrocmd.c (macro_command): Remove
4566 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4567 * language.c (set_check, show_check): Remove.
4568 (_initialize_language): Use add_basic_prefix_cmd,
4569 add_show_prefix_cmd.
4570 * infcmd.c (unset_command): Remove.
4571 (_initialize_infcmd): Use add_basic_prefix_cmd.
4572 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4573 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4574 add_show_prefix_cmd.
4575 * go32-nat.c (go32_info_dos_command): Remove.
4576 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4577 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4578 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4579 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4580 (_initialize_frame): Use add_basic_prefix_cmd,
4581 add_show_prefix_cmd.
4582 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4583 (_initialize_dcache): Use add_basic_prefix_cmd,
4584 add_show_prefix_cmd.
4585 * cp-support.c (maint_cplus_command): Remove.
4586 (_initialize_cp_support): Use add_basic_prefix_cmd.
4587 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4588 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4589 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4590 add_basic_prefix_cmd, add_show_prefix_cmd.
4591 * breakpoint.c (save_command): Remove.
4592 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4593 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4594 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4595 add_show_prefix_cmd.
4596 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4597 (set_ada_command, show_ada_command): Remove.
4598 (_initialize_ada_language): Use add_basic_prefix_cmd,
4599 add_show_prefix_cmd.
4600 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4601
3557f442
KR
46022020-04-16 Kamil Rytarowski <n54@gmx.com>
4603
4604 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4605 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4606
16197208
SM
46072020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4608
4609 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4610 warning messages.
4611
00ac85d3
SM
46122020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4613
4614 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4615 import table is not at beginning of .idata section.
4616
381ce63f
PA
46172020-04-16 Pedro Alves <palves@redhat.com>
4618
4619 * inferior.c (delete_inferior): Use delete operator directly
4620 instead of delete_program_space.
4621 * progspace.c (add_program_space): New, factored out from
4622 program_space::program_space.
4623 (remove_program_space): New, factored out from
4624 delete_program_space.
4625 (program_space::program_space): Remove intro comment. Rewrite.
4626 (program_space::~program_space): Remove intro comment. Call
4627 remove_program_space.
4628 (delete_program_space): Delete.
4629 * progspace.h (program_space::program_space): Make explicit. Move
4630 intro comment here, adjusted.
4631 (program_space::~program_space): Move intro comment here,
4632 adjusted.
4633 (delete_program_space): Remove.
4634
a010605f
TT
46352020-04-16 Tom Tromey <tromey@adacore.com>
4636
4637 * windows-nat.c (windows_nat::handle_access_violation): New
4638 function.
4639 * nat/windows-nat.h (handle_access_violation): Declare.
4640 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4641 windows-nat.c. Call handle_access_violation.
4642
efba5c23
TV
46432020-04-16 Tom de Vries <tdevries@suse.de>
4644
4645 PR symtab/25791
4646 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4647 CUs without psymtab.
4648
97ed802d
KB
46492020-04-16 Kevin Buettner <kevinb@redhat.com>
4650
4651 * python/python.c (do_start_initialization): Don't call
4652 PyEval_InitThreads for Python 3.9 and beyond.
4653
c7d64809
KR
46542020-04-15 Kamil Rytarowski <n54@gmx.com>
4655
4656 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4657 thread functions.
4658 (obsd_nat_target::wait): Likewise.
4659
ce127a96
TT
46602020-04-15 Tom Tromey <tromey@adacore.com>
4661
4662 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4663 (DEBUG_EXCEPT): Use debug_printf.
4664
99f1bc6a
AB
46652020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * completer.c (class completion_tracker::completion_hash_entry)
4668 <hash_name>: New member function.
4669 (completion_tracker::discard_completions): New callback to hash a
4670 completion_hash_entry, pass this to htab_create_alloc.
4671
a0e9b532
JT
46722016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4673
4674 * windows-nat.c (windows_make_so): Warn rather than stopping with
4675 an error if realpath() fails.
4676
06ca5dd4
KR
46772020-04-14 Kamil Rytarowski <n54@gmx.com>
4678
4679 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4680 (nbsd_nat_target::info_proc): Add do_status.
4681
194d088f
TV
46822020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4683 Tom de Vries <tdevries@suse.de>
4684
4685 PR symtab/25718
4686 * psympriv.h (struct partial_symtab::read_symtab)
4687 (struct partial_symtab::expand_psymtab)
4688 (struct partial_symtab::read_dependencies): Update comments.
4689 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4690 read_symtab for includer.
4691 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4692 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4693 (struct dwarf2_include_psymtab::m_readin): Remove.
4694 (struct dwarf2_include_psymtab::includer): New member function.
4695 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4696
c1a66c06
TV
46972020-04-14 Tom de Vries <tdevries@suse.de>
4698
4699 PR symtab/25720
4700 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4701 with NULL symbol_matcher and lookup_name.
4702 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4703 and lookup_name.
4704 * dwarf2/read.c (dw2_expand_symtabs_matching)
4705 (dw2_debug_names_expand_symtabs_matching): Same.
4706 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4707 Make lookup_name a pointer. Update comment.
4708 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4709 lookup_name being a pointer.
4710 * symfile.c (expand_symtabs_matching): Same.
4711 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4712 * linespec.c (iterate_over_all_matching_symtabs): Same.
4713
400b5eca
TT
47142020-04-13 Tom Tromey <tom@tromey.com>
4715
4716 * run-on-main-thread.c: Update include.
4717 * unittests/main-thread-selftests.c: Update include.
4718 * tui/tui-win.c: Update include.
4719 * tui/tui-io.c: Update include.
4720 * tui/tui-interp.c: Update include.
4721 * tui/tui-hooks.c: Update include.
4722 * top.h: Update include.
4723 * top.c: Update include.
4724 * ser-base.c: Update include.
4725 * remote.c: Update include.
4726 * remote-notif.c: Update include.
4727 * remote-fileio.c: Update include.
4728 * record-full.c: Update include.
4729 * record-btrace.c: Update include.
4730 * python/python.c: Update include.
4731 * posix-hdep.c: Update include.
4732 * mingw-hdep.c: Update include.
4733 * mi/mi-main.c: Update include.
4734 * mi/mi-interp.c: Update include.
4735 * main.c: Update include.
4736 * linux-nat.c: Update include.
4737 * interps.c: Update include.
4738 * infrun.c: Update include.
4739 * inf-loop.c: Update include.
4740 * event-top.c: Update include.
4741 * event-loop.c: Move to ../gdbsupport/.
4742 * event-loop.h: Move to ../gdbsupport/.
4743 * async-event.h: Update include.
4744 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4745
93b54c8e
TT
47462020-04-13 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-win.c: Include async-event.h.
4749 * remote.c: Include async-event.h.
4750 * remote-notif.c: Include async-event.h.
4751 * record-full.c: Include async-event.h.
4752 * record-btrace.c: Include async-event.h.
4753 * infrun.c: Include async-event.h.
4754 * event-top.c: Include async-event.h.
4755 * event-loop.h: Move some declarations to async-event.h.
4756 * event-loop.c: Don't include ser-event.h or top.h. Move some
4757 code to async-event.c.
4758 * async-event.h: New file.
4759 * async-event.c: New file.
4760 * Makefile.in (COMMON_SFILES): Add async-event.c.
4761 (HFILES_NO_SRCDIR): Add async-event.h.
4762
c1cd3163
TT
47632020-04-13 Tom Tromey <tom@tromey.com>
4764
4765 * utils.c (flush_streams): New function.
4766 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4767
29f2bf4f
TT
47682020-04-13 Tom Tromey <tom@tromey.com>
4769
4770 * event-loop.c (handle_file_event): Use warning, not
4771 printf_unfiltered.
4772
98029d02
TT
47732020-04-13 Tom Tromey <tom@tromey.com>
4774
4775 * event-loop.c: Include <chrono>.
4776
06cc9596
TT
47772020-04-13 Tom Tromey <tom@tromey.com>
4778
4779 * gdb_select.h: Move to ../gdbsupport/.
4780 * event-loop.c: Update include path.
4781 * top.c: Update include path.
4782 * ser-base.c: Update include path.
4783 * ui-file.c: Update include path.
4784 * ser-tcp.c: Update include path.
4785 * guile/scm-ports.c: Update include path.
4786 * posix-hdep.c: Update include path.
4787 * ser-unix.c: Update include path.
4788 * gdb_usleep.c: Update include path.
4789 * mingw-hdep.c: Update include path.
4790 * inflow.c: Update include path.
4791 * infrun.c: Update include path.
4792 * event-top.c: Update include path.
4793
8ae8e197
TT
47942020-04-13 Tom Tromey <tom@tromey.com>
4795
4796 * configure: Rebuild.
4797 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4798
58cf28e8
TT
47992020-04-13 Tom Tromey <tom@tromey.com>
4800
4801 * event-loop.h (start_event_loop): Don't declare.
4802 * event-loop.c (start_event_loop): Move...
4803 * main.c (start_event_loop): ...here. Now static.
4804
b7f999ae
SDJ
48052020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4806
4807 * MAINTAINERS: Update my email address.
4808
1085dfd4
KR
48092020-04-12 Kamil Rytarowski <n54@gmx.com>
4810
4811 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4812 IP_ALL.
4813
49d1d1f5
KR
48142020-04-12 Kamil Rytarowski <n54@gmx.com>
4815
4816 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4817 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4818
b4848d2a
KR
48192020-04-12 Kamil Rytarowski <n54@gmx.com>
4820
4821 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4822 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4823
51c133d5
KR
48242020-04-12 Kamil Rytarowski <n54@gmx.com>
4825
4826 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4827
54b8cbd0
KR
48282020-04-11 Kamil Rytarowski <n54@gmx.com>
4829
4830 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4831 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4832 (nbsd_nat_target::info_proc): New functions.
4833 * nbsd-nat.c (kinfo_get_vmmap): New function.
4834 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4835 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4836 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4837 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4838 functions.
4839 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4840 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4841 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4842 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4843 (KINFO_VME_FLAG_GROWS_DOWN): New.
4844
cf83625d
AS
48452020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4846
4847 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4848 bit shift.
4849
0c4311ab
TT
48502020-04-10 Tom Tromey <tromey@adacore.com>
4851
4852 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4853
3e65b3e9
TT
48542020-04-10 Tom Tromey <tromey@adacore.com>
4855
4856 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4857 separate debug files.
4858
13302e95
HD
48592020-04-10 Hannes Domani <ssbssa@yahoo.de>
4860
4861 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4862 Move to...
4863 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4864 ... here.
4865 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4866 Check for STATUS_WX86_BREAKPOINT.
4867 (windows_nat_target::wait): Same.
4868
bdfc1e8a
TV
48692020-04-10 Tom de Vries <tdevries@suse.de>
4870
4871 PR cli/25808
4872 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4873
f4460aec
SM
48742020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4875
4876 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4877 (Write After Approval): Remove Tom de Vries.
4878
a25198bb
BE
48792020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4880
4881 revert partially:
4882 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4883
aac66a4c
SM
4884 * buildsym.c (record_line): Fix undefined behavior and preserve
4885 lines at eof.
a25198bb 4886
206c98a6
KR
48872020-04-09 Kamil Rytarowski <n54@gmx.com>
4888
4889 * auxv.h (svr4_auxv_parse): New.
4890 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4891 and generic_auxv_parse.
4892 (svr4_auxv_parse): Add.
4893 * obsd-tdep.c: Include "auxv.h".
4894 (obsd_auxv_parse): Remove.
4895 (obsd_init_abi): Remove comment.
4896 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4897 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4898 * nbsd-tdep.c: Include "auxv.h".
4899 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4900
71fbdbaf
TT
49012020-04-08 Tom Tromey <tromey@adacore.com>
4902
4903 * nat/windows-nat.h (last_wait_event): Don't declare.
4904 (wait_for_debug_event): Update comment.
4905 * nat/windows-nat.c (last_wait_event): Now static.
4906
2c1d95e8
TT
49072020-04-08 Tom Tromey <tromey@adacore.com>
4908
4909 * windows-nat.c (wait_for_debug_event): Move to
4910 nat/windows-nat.c.
4911 * nat/windows-nat.h (wait_for_debug_event): Declare.
4912 * nat/windows-nat.c (wait_for_debug_event): Move from
4913 windows-nat.c. No longer static.
4914
d2977bc4
TT
49152020-04-08 Tom Tromey <tromey@adacore.com>
4916
4917 * windows-nat.c (get_windows_debug_event): Use
4918 fetch_pending_stop.
4919 * nat/windows-nat.h (fetch_pending_stop): Declare.
4920 * nat/windows-nat.c (fetch_pending_stop): New function.
4921
e758e19c
TT
49222020-04-08 Tom Tromey <tromey@adacore.com>
4923
4924 * windows-nat.c (windows_continue): Use matching_pending_stop and
4925 continue_last_debug_event.
4926 * nat/windows-nat.h (matching_pending_stop)
4927 (continue_last_debug_event): Declare.
4928 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4929 (matching_pending_stop, continue_last_debug_event): New
4930 functions.
4931
8d30e395
TT
49322020-04-08 Tom Tromey <tromey@adacore.com>
4933
4934 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4935 (handle_exception_result): Move to nat/windows-nat.h.
4936 (DEBUG_EXCEPTION_SIMPLE): Remove.
4937 (windows_nat::handle_ms_vc_exception): New function.
4938 (handle_exception): Move to nat/windows-nat.c.
4939 (get_windows_debug_event): Update.
4940 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4941 nat/windows-nat.c.
4942 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4943 (handle_exception_result): Move from windows-nat.c.
4944 (handle_exception): Declare.
4945 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4946 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4947 windows-nat.c.
4948
29de418d
TT
49492020-04-08 Tom Tromey <tromey@adacore.com>
4950
4951 * windows-nat.c (exception_count, event_count): Remove.
4952 (handle_exception, get_windows_debug_event)
4953 (do_initial_windows_stuff): Update.
4954
a816ba18
TT
49552020-04-08 Tom Tromey <tromey@adacore.com>
4956
4957 * windows-nat.c (windows_nat::handle_load_dll)
4958 (windows_nat::handle_unload_dll): Rename. No longer static.
4959 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4960 Declare.
4961
a00caa12
TT
49622020-04-08 Tom Tromey <tromey@adacore.com>
4963
4964 * complaints.h (stop_whining): Declare at top-level.
4965 (complaint): Don't declare stop_whining.
4966
d41b524f
TT
49672020-04-08 Tom Tromey <tromey@adacore.com>
4968
4969 * windows-nat.c (windows_nat::handle_output_debug_string):
4970 Rename. No longer static.
4971 * nat/windows-nat.h (handle_output_debug_string): Declare.
4972
3c76026d
TT
49732020-04-08 Tom Tromey <tromey@adacore.com>
4974
4975 * windows-nat.c (current_process_handle, current_process_id)
4976 (main_thread_id, last_sig, current_event, last_wait_event)
4977 (current_windows_thread, desired_stop_thread_id, pending_stops)
4978 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4979 (display_selectors, fake_create_process)
4980 (get_windows_debug_event): Update.
4981 * nat/windows-nat.h (current_process_handle, current_process_id)
4982 (main_thread_id, last_sig, current_event, last_wait_event)
4983 (current_windows_thread, desired_stop_thread_id, pending_stops)
4984 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4985 * nat/windows-nat.c (current_process_handle, current_process_id)
4986 (main_thread_id, last_sig, current_event, last_wait_event)
4987 (current_windows_thread, desired_stop_thread_id, pending_stops)
4988 (siginfo_er): New globals. Move from windows-nat.c.
4989
9d8679cc
TT
49902020-04-08 Tom Tromey <tromey@adacore.com>
4991
4992 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4993 (handle_load_dll): Update.
4994 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4995
28688adf
TT
49962020-04-08 Tom Tromey <tromey@adacore.com>
4997
4998 * windows-nat.c (enum thread_disposition_type): Move to
4999 nat/windows-nat.h.
5000 (windows_nat::thread_rec): Rename from thread_rec. No longer
5001 static.
5002 (windows_add_thread, windows_nat_target::fetch_registers)
5003 (windows_nat_target::store_registers, handle_exception)
5004 (windows_nat_target::resume, get_windows_debug_event)
5005 (windows_nat_target::get_tib_address)
5006 (windows_nat_target::thread_name)
5007 (windows_nat_target::thread_alive): Update.
5008 * nat/windows-nat.h (enum thread_disposition_type): Move from
5009 windows-nat.c.
5010 (thread_rec): Declare.
5011
4834dad0
TT
50122020-04-08 Tom Tromey <tromey@adacore.com>
5013
5014 * windows-nat.c: Add "using namespace".
5015 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5016 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5017
65bafd5b
TT
50182020-04-08 Tom Tromey <tromey@adacore.com>
5019
5020 * nat/windows-nat.h (struct windows_thread_info): Declare
5021 destructor.
5022 * nat/windows-nat.c (~windows_thread_info): New.
5023
0a4afda3
TT
50242020-04-08 Tom Tromey <tromey@adacore.com>
5025
5026 PR gdb/22992
5027 * windows-nat.c (current_event): Update comment.
5028 (last_wait_event, desired_stop_thread_id): New globals.
5029 (struct pending_stop): New.
5030 (pending_stops): New global.
5031 (windows_nat_target) <stopped_by_sw_breakpoint>
5032 <supports_stopped_by_sw_breakpoint>: New methods.
5033 (windows_fetch_one_register): Add assertions. Adjust PC.
5034 (windows_continue): Handle pending stops. Suspend other threads
5035 when stepping. Use last_wait_event
5036 (wait_for_debug_event): New function.
5037 (get_windows_debug_event): Use wait_for_debug_event. Handle
5038 pending stops. Queue spurious stops.
5039 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5040 (windows_nat_target::kill): Use wait_for_debug_event.
5041 * nat/windows-nat.h (struct windows_thread_info)
5042 <stopped_at_software_breakpoint>: New field.
5043 * nat/windows-nat.c (windows_thread_info::resume): Clear
5044 stopped_at_software_breakpoint.
5045
8e61ebec
TT
50462020-04-08 Tom Tromey <tromey@adacore.com>
5047
5048 * windows-nat.c (enum thread_disposition_type): New.
5049 (thread_rec): Replace "get_context" parameter with "disposition";
5050 change type.
5051 (windows_add_thread, windows_nat_target::fetch_registers)
5052 (windows_nat_target::store_registers, handle_exception)
5053 (windows_nat_target::resume, get_windows_debug_event)
5054 (windows_nat_target::get_tib_address)
5055 (windows_nat_target::thread_name)
5056 (windows_nat_target::thread_alive): Update.
5057
98a03287
TT
50582020-04-08 Tom Tromey <tromey@adacore.com>
5059
5060 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5061 (windows_continue): Use windows_continue::resume.
5062 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5063 resume>: Declare new methods.
5064 * nat/windows-nat.c: New file.
5065 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5066
7c7411bc
TT
50672020-04-08 Tom Tromey <tromey@adacore.com>
5068
5069 * windows-nat.c (windows_add_thread, windows_delete_thread)
5070 (windows_nat_target::fetch_registers)
5071 (windows_nat_target::store_registers, fake_create_process)
5072 (windows_nat_target::resume, windows_nat_target::resume)
5073 (get_windows_debug_event, windows_nat_target::wait)
5074 (windows_nat_target::pid_to_str)
5075 (windows_nat_target::get_tib_address)
5076 (windows_nat_target::get_ada_task_ptid)
5077 (windows_nat_target::thread_name)
5078 (windows_nat_target::thread_alive): Use lwp, not tid.
5079
2950fdf7
TT
50802020-04-08 Tom Tromey <tromey@adacore.com>
5081
5082 * windows-nat.c (handle_exception)
5083 (windows_nat_target::thread_name): Update.
5084 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5085 <name>: Now unique_xmalloc_ptr.
5086
62fe396b
TT
50872020-04-08 Tom Tromey <tromey@adacore.com>
5088
5089 * windows-nat.c (thread_rec)
5090 (windows_nat_target::fetch_registers): Update.
5091 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5092 Update comment.
5093 <debug_registers_changed, reload_context>: Now bool.
5094
e9534bd2
TT
50952020-04-08 Tom Tromey <tromey@adacore.com>
5096
5097 * windows-nat.c (windows_add_thread): Use new.
5098 (windows_init_thread_list, windows_delete_thread): Use delete.
5099 (get_windows_debug_event): Update.
5100 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5101 destructor, and initializers.
5102
ae1f8880
TT
51032020-04-08 Tom Tromey <tromey@adacore.com>
5104
5105 * windows-nat.c (struct windows_thread_info): Remove.
5106 * nat/windows-nat.h: New file.
5107
55a1e039
TT
51082020-04-08 Tom Tromey <tromey@adacore.com>
5109
5110 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5111 (thread_rec, windows_add_thread, windows_delete_thread)
5112 (windows_continue): Update.
5113
93366324
TT
51142020-04-08 Tom Tromey <tromey@adacore.com>
5115
5116 * windows-nat.c (struct windows_thread_info): Remove typedef.
5117 (thread_head): Remove.
5118 (thread_list): New global.
5119 (thread_rec, windows_add_thread, windows_init_thread_list)
5120 (windows_delete_thread, windows_continue): Update.
5121
0f2265e2
SM
51222020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * windows-tdep.h (windows_init_abi): Add comment.
5125 (cygwin_init_abi): New declaration.
5126 * windows-tdep.c: Split signal enumeration in two, one for
5127 Windows and one for Cygwin.
5128 (windows_gdb_signal_to_target): Only deal with signal of the
5129 Windows OS ABI.
5130 (cygwin_gdb_signal_to_target): New function.
5131 (windows_init_abi): Rename to windows_init_abi_common, don't set
5132 gdb_signal_to_target gdbarch method. Add new new function with
5133 this name.
5134 (cygwin_init_abi): New function.
5135 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5136 comment. Don't call windows_init_abi.
5137 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5138 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5139 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5140 i386_windows_init_abi_common, don't call windows_init_abi. Add
5141 a new function of this name.
5142 (i386_cygwin_init_abi): New function.
5143 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5144 OS ABI Cygwin.
5145
3810f182
SM
51462020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5147
5148 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5149 parameter.c.
5150 (dwarf2_read_gdb_index): Update.
5151
063f8e80
KR
51522020-04-07 Kamil Rytarowski <n54@gmx.com>
5153
5154 * nbsd-tdep.c: Include "objfiles.h".
5155 (nbsd_skip_solib_resolver): New.
5156 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5157
85a9510c 51582020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5159
5160 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5161 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5162 with DW_LLE_base_addressx are being emitted in DWARFv5.
5163 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5164 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5165 unsigned integer.
5166
9fc3eaae 51672020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5168
5169 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5170 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5171 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5172 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5173 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5174 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5175 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5176
5177
41144253 51782020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5179
5180 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5181 (read_loclist_index): New function definition.
5182 (lookup_loclist_base): New function definition.
5183 (read_loclist_header): New function definition.
5184 (dwarf2_cu): Add loclist_base and loclist_header field.
5185 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5186 (read_full_die_1): Read the value of DW_AT_loclists_base.
5187 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5188 (read_attribute_value): Handle DW_FORM_loclistx.
5189 (skip_one_die): Handle DW_FORM_loclistx.
5190 (loclist_header): New structure declaration.
5191 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5192
9f4e76a4
SM
51932020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5194
5195 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5196 constructor. Remove `addr` parameter from other constructor and
5197 add `per_cu` parameter.
5198 * dwarf2/read.c (create_partial_symtab): Update.
5199
25c11aca
TV
52002020-04-07 Tom de Vries <tdevries@suse.de>
5201
5202 PR symtab/25796
5203 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5204 (partial_die_info::fixup): Inherit has_const_value.
5205
5707e24b
TV
52062020-04-07 Tom de Vries <tdevries@suse.de>
5207
5208 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5209 symbols without address.
5210
05f00e22
KR
52112020-04-06 Kamil Rytarowski <n54@gmx.com>
5212
5213 * nbsd-nat.h (struct thread_info): Add forward declaration.
5214 (nbsd_nat_target::thread_alive): Add.
5215 (nbsd_nat_target::thread_name): Likewise.
5216 (nbsd_nat_target::update_thread_list): Likewise.
5217 (update_thread_list::post_attach): Likewise.
5218 (post_attach::pid_to_str): Likewise.
5219 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5220 (nbsd_thread_lister): Add.
5221 (nbsd_nat_target::thread_alive): Likewise.
5222 (nbsd_nat_target::thread_name): Likewise.
5223 (nbsd_add_threads): Likewise.
5224 (update_thread_list::post_attach): Likewise.
5225 (nbsd_nat_target::update_thread_list): Likewise.
5226 (post_attach::pid_to_str): Likewise.
5227
6ee448cc
TT
52282020-04-06 Tom Tromey <tromey@adacore.com>
5229
5230 * ada-valprint.c (print_variant_part): Extract the variant field.
5231 (print_field_values): Use the field as the outer value when
5232 recursing.
5233
dea34e8c
TT
52342020-04-06 Tom Tromey <tromey@adacore.com>
5235
5236 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5237 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5238 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5239 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5240 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5241
93689ce9
TT
52422020-04-06 Tom Tromey <tromey@adacore.com>
5243
5244 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5245 TYPE_CODE_ERROR.
5246
79743962
KR
52472020-04-06 Kamil Rytarowski <n54@gmx.com>
5248
5249 * nbsd-tdep.c: Include "gdbarch.h".
5250 Define enum with NetBSD signal numbers.
5251 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5252 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5253 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5254 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5255 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5256 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5257 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5258 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5259 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5260 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5261 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5262 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5263
9e7c9a03
HD
52642020-04-03 Hannes Domani <ssbssa@yahoo.de>
5265
5266 PR gdb/25325
5267 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5268
d9e49b61
TT
52692020-04-03 Tom Tromey <tromey@adacore.com>
5270
5271 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5272 Read constant block.
5273
e0fc5c3f
SM
52742020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5277 (gdb_bfd_get_full_section_contents): New declaration.
5278 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5279 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5280 gdb_bfd_get_full_section_contents.
5281
e2ff18a0
SM
52822020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * exec.c (build_section_table): Replace internal_error with
5285 gdb_assert.
5286 (section_table_xfer_memory_partial): Likewise.
5287 * mdebugread.c (parse_partial_symbols): Likewise.
5288 * psymtab.c (lookup_partial_symbol): Likewise.
5289 * utils.c (wrap_here): Likewise.
5290
0830d301
TT
52912020-04-02 Tom Tromey <tromey@adacore.com>
5292
5293 * f-lang.c (build_fortran_types): Use arch_type to initialize
5294 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5295
e7da7f8f
TT
52962020-04-02 Tom Tromey <tromey@adacore.com>
5297
5298 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5299 of attributes.
5300
c90d28ac
AB
53012020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5302 Bernd Edlinger <bernd.edlinger@hotmail.de>
5303 Tom Tromey <tromey@adacore.com>
5304
5305 * buildsym.c (buildsym_compunit::record_line): Remove
5306 deduplication code.
5307
1aa98955
TV
53082020-04-02 Tom de Vries <tdevries@suse.de>
5309
5310 PR ada/24671
5311 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5312
d3214198
TV
53132020-04-02 Tom de Vries <tdevries@suse.de>
5314
5315 * dwarf2/read.c (dwarf2_gdb_index_functions,
5316 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5317 NULL.
5318 * psymtab.c (psym_lookup_global_symbol_language): New function.
5319 (psym_functions): Init psym_lookup_global_symbol_language with
5320 psym_lookup_global_symbol_language.
5321 * symfile-debug.c (debug_sym_quick_functions): Init
5322 lookup_global_symbol_language with NULL.
5323 * symfile.c (set_initial_language): Remove fixme comment.
5324 * symfile.h (struct quick_symbol_functions): Add
5325 lookup_global_symbol_language.
5326 * symtab.c (find_quick_global_symbol_language): New function.
5327 (find_main_name): Use find_quick_global_symbol_language.
5328
2836752f
SM
53292020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5332
64dc2d4b
BE
53332020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5334
5335 * buildsym.c (record_line): Fix undefined behavior and preserve
5336 lines at eof.
5337
bbe3dc41
BE
53382020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5339
5340 * buildsym.c (record_line): Fix the resizing condition.
5341
6b4a335b
TT
53422020-04-01 Tom Tromey <tom@tromey.com>
5343
5344 * value.h (value_literal_complex): Add comment.
5345 * valops.c (value_literal_complex): Refer to value.h.
5346
3638a098
TT
53472020-04-01 Tom Tromey <tom@tromey.com>
5348
5349 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5350 (scalar_type): New rule, from typebase.
5351 (typebase): Use scalar_type. Recognize complex types.
5352 (field_name): Handle FLOAT_KEYWORD.
5353 (ident_tokens): Add _Complex and __complex__.
5354
c34e8714
TT
53552020-04-01 Tom Tromey <tom@tromey.com>
5356
5357 PR exp/25299:
5358 * valarith.c (promotion_type, complex_binop): New functions.
5359 (scalar_binop): Handle complex numbers. Use promotion_type.
5360 (value_pos, value_neg, value_complement): Handle complex numbers.
5361
fa649bb7
TT
53622020-04-01 Tom Tromey <tom@tromey.com>
5363
5364 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5365 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5366 (parse_number): Handle complex numbers.
5367
981c08ce
TT
53682020-04-01 Tom Tromey <tom@tromey.com>
5369
5370 * c-valprint.c (c_decorations): Change complex suffix to "i".
5371
4c99290d
TT
53722020-04-01 Tom Tromey <tom@tromey.com>
5373
5374 * valprint.c (generic_value_print_complex): Use accessors.
5375 * value.h (value_real_part, value_imaginary_part): Declare.
5376 * valops.c (value_real_part, value_imaginary_part): New
5377 functions.
5378 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5379
5b930b45
TT
53802020-04-01 Tom Tromey <tom@tromey.com>
5381
5382 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5383 (read_range_type): Update.
5384 * mdebugread.c (basic_type): Update.
5385 * go-lang.c (build_go_types): Use init_complex_type.
5386 * gdbtypes.h (struct main_type) <complex_type>: New member.
5387 (init_complex_type): Update.
5388 (arch_complex_type): Don't declare.
5389 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5390 Make name if none given. Use alloc_type_copy. Look for cached
5391 complex type.
5392 (arch_complex_type): Remove.
5393 (gdbtypes_post_init): Use init_complex_type.
5394 * f-lang.c (build_fortran_types): Use init_complex_type.
5395 * dwarf2/read.c (read_base_type): Update.
5396 * d-lang.c (build_d_types): Use init_complex_type.
5397 * ctfread.c (read_base_type): Update.
5398
53cccef1
TBA
53992020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5400
5401 * infrun.c (stop_all_threads): Update assertion, plus when
5402 stopping threads, take into account that we might be trying
5403 to stop an all-stop target.
5404 (stop_waiting): Call 'stop_all_threads' if there exists a
5405 non-stop target.
5406
a0714d30
TBA
54072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5408
5409 * target.h (exists_non_stop_target): New function declaration.
5410 * target.c (exists_non_stop_target): New function.
5411
60e22c1e
HD
54122020-04-01 Hannes Domani <ssbssa@yahoo.de>
5413
5414 PR gdb/24789
5415 * eval.c (is_integral_or_integral_reference): New function.
5416 (evaluate_subexp_standard): Allow integer references in
5417 pointer arithmetic.
5418
e139a727
TBA
54192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5420
5421 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5422 check for no ptid in the stop reply when the target is non-stop.
5423
e0802d59
TT
54242020-04-01 Tom Tromey <tromey@adacore.com>
5425
5426 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5427 "name" parameter to rvalue reference. Initialize m_name_holder.
5428 <lookup_name_info>: New overloads.
5429 <name>: Return gdb::string_view.
5430 <c_str>: New method.
5431 <make_ignore_params>: Update.
5432 <search_name_hash>: Update.
5433 <language_lookup_name>: Return const char *.
5434 <m_name>: Change type.
5435 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5436 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5437 (lookup_name_info::match_any): Update.
5438 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5439 Update.
5440 * minsyms.c (linkage_name_str): Update.
5441 * language.c (default_symbol_name_matcher): Update.
5442 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5443 Update.
5444 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5445 (ada_lookup_name_info::ada_lookup_name_info): Update.
5446 (literal_symbol_name_matcher): Update.
5447
8c072cb6
TT
54482020-04-01 Tom Tromey <tromey@adacore.com>
5449
5450 * psymtab.c (psymtab_search_name): Remove function.
5451 (psym_lookup_symbol): Create search name and lookup name here.
5452 (lookup_partial_symbol): Remove "name" parameter; add
5453 lookup_name.
5454 (psym_expand_symtabs_for_function): Update.
5455
6f29a534
TT
54562020-03-31 Joel Jones <joelkevinjones@gmail.com>
5457
5458 PR tui/25597:
5459 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5460
af62665e
TT
54612020-03-31 Tom Tromey <tromey@adacore.com>
5462
5463 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5464 memcpy.
5465
d1a89da5
NC
54662020-03-30 Nelson Chu <nelson.chu@sifive.com>
5467
5468 * features/riscv/32bit-csr.xml: Regenerated.
5469 * features/riscv/64bit-csr.xml: Regenerated.
5470
d8af9068
TT
54712020-03-30 Tom Tromey <tromey@adacore.com>
5472
5473 * ada-valprint.c (print_variant_part): Update.
5474 * ada-lang.h (ada_which_variant_applies): Update.
5475 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5476 outer_valaddr parameters; replace with "outer" value parameter.
5477 (to_fixed_variant_branch_type): Update.
5478
227c0bf4
PFC
54792020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5480
5481 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5482 <list>. Remove inclusion of observable.h.
5483 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5484 (struct arch_lwp_info): New struct.
5485 (class ppc_linux_dreg_interface): New class.
5486 (struct ppc_linux_process_info): New struct.
5487 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5488 <low_new_clone, low_forget_process, low_prepare_to_resume>
5489 <copy_thread_dreg_state, mark_thread_stale>
5490 <mark_debug_registers_changed, register_hw_breakpoint>
5491 <clear_hw_breakpoint, register_wp, clear_wp>
5492 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5493 <num_memory_accesses, get_trigger_type>
5494 <create_watchpoint_request, hwdebug_point_cmp>
5495 <init_arch_lwp_info, get_arch_lwp_info>
5496 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5497 methods.
5498 <struct ptid_hash>: New inner struct.
5499 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5500 members.
5501 (saved_dabr_value, hwdebug_info, max_slots_number)
5502 (struct hw_break_tuple, struct thread_points, ppc_threads)
5503 (have_ptrace_hwdebug_interface)
5504 (hwdebug_find_thread_points_by_tid)
5505 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5506 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5507 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5508 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5509 use m_dreg_interface.
5510 (hwdebug_point_cmp): Change to...
5511 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5512 reference arguments instead of pointers.
5513 (ppc_linux_nat_target::ranged_break_num_registers): Use
5514 m_dreg_interface.
5515 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5516 m_dreg_interface. Call register_hw_breakpoint.
5517 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5518 m_dreg_interface. Call clear_hw_breakpoint.
5519 (get_trigger_type): Change to...
5520 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5521 comment.
5522 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5523 use m_dreg_interface. Call register_hw_breakpoint.
5524 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5525 use m_dreg_interface. Call clear_hw_breakpoint.
5526 (can_use_watchpoint_cond_accel): Change to...
5527 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5528 method. Update comment, use m_dreg_interface and
5529 m_process_info.
5530 (calculate_dvc): Change to...
5531 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5532 m_dreg_interface.
5533 (num_memory_accesses): Change to...
5534 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5535 (check_condition): Change to...
5536 (ppc_linux_nat_target::check_condition): ...this method.
5537 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5538 comment, use m_dreg_interface.
5539 (create_watchpoint_request): Change to...
5540 (ppc_linux_nat_target::create_watchpoint_request): ...this
5541 method. Use m_dreg_interface.
5542 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5543 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5544 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5545 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5546 (ppc_linux_nat_target::low_forget_process)
5547 (ppc_linux_nat_target::low_new_fork)
5548 (ppc_linux_nat_target::low_new_clone)
5549 (ppc_linux_nat_target::low_delete_thread)
5550 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5551 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5552 only call mark_thread_stale.
5553 (ppc_linux_thread_exit): Remove.
5554 (ppc_linux_nat_target::stopped_data_address): Change to...
5555 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5556 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5557 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5558 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5559 comment. Call low_stopped_data_address.
5560 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5561 m_dreg_interface.
5562 (ppc_linux_nat_target::masked_watch_num_registers): Use
5563 m_dreg_interface.
5564 (ppc_linux_nat_target::copy_thread_dreg_state)
5565 (ppc_linux_nat_target::mark_thread_stale)
5566 (ppc_linux_nat_target::mark_debug_registers_changed)
5567 (ppc_linux_nat_target::register_hw_breakpoint)
5568 (ppc_linux_nat_target::clear_hw_breakpoint)
5569 (ppc_linux_nat_target::register_wp)
5570 (ppc_linux_nat_target::clear_wp)
5571 (ppc_linux_nat_target::init_arch_lwp_info)
5572 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5573 (_initialize_ppc_linux_nat): Remove observer callback.
5574
4db10d8f
PFC
55752020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5576
5577 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5578 (ppc_linux_nat_target::auxv_parse)
5579 (ppc_linux_nat_target::read_description)
5580 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5581 Move up.
5582
1310c1b0
PFC
55832020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5584
5585 * linux-nat.h (low_new_clone): New method.
5586 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5587
69b037c3
SM
55882020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5589
5590 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5591 (dbx_expand_psymtab): ... this.
5592 (start_psymtab): Update.
5593 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5594 (mdebug_expand_psymtab): ... this.
5595 (parse_partial_symbols): Update.
5596 (new_psymtab): Update.
5597 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5598 (xcoff_expand_psymtab): ... this.
5599 (xcoff_start_psymtab): Update.
5600
48993951
SM
56012020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5604 <expand_dependencies>: ... this.
5605 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5606 (partial_symtab::expand_dependencies): ... this.
5607 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5608 Update.
5609 (dwarf2_psymtab::expand_psymtab): Update.
5610 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5611 * mdebugread.c (psymtab_to_symtab_1): Update.
5612 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5613
3ad83046
SM
56142020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * psympriv.h (discard_psymtab): Remove.
5617 * dbxread.c (dbx_end_psymtab): Update.
5618 * xcoffread.c (xcoff_end_psymtab): Update.
5619
4d1b9ab6
TT
56202020-03-28 Tom Tromey <tom@tromey.com>
5621
5622 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5623 comment.
5624
f1749218
TT
56252020-03-28 Tom Tromey <tom@tromey.com>
5626
5627 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5628
ebea7626
HD
56292020-03-27 Hannes Domani <ssbssa@yahoo.de>
5630
5631 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5632
a879b4d5
JB
56332020-03-26 John Baldwin <jhb@FreeBSD.org>
5634
5635 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5636
0826b30a
TT
56372020-03-26 Tom Tromey <tom@tromey.com>
5638
5639 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5640 (mark_common_block_symbol_computed, read_tag_string_type)
5641 (attr_to_dynamic_prop, read_subrange_type): Update.
5642 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5643 to be methods on struct attribute.
5644 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5645 (read_call_site_scope, partial_die_info::read)
5646 (partial_die_info::read, lookup_die_type, follow_die_ref):
5647 Update.
5648 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5649 from dwarf2_get_ref_die_offset.
5650 (attribute::constant_value): New method, from
5651 dwarf2_get_attr_constant_value.
5652 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5653 Declare method.
5654 <constant_value>: New method.
5655
2b2558bf
TT
56562020-03-26 Tom Tromey <tom@tromey.com>
5657
5658 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5659 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5660 (dwarf_type_encoding_name): Move to stringify.c.
5661 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5662 * dwarf2/stringify.c: New file.
5663 * dwarf2/stringify.h: New file.
5664
eeb64781
TT
56652020-03-26 Tom Tromey <tom@tromey.com>
5666
5667 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5668 Rewrite.
5669
a39fdb41
TT
56702020-03-26 Tom Tromey <tom@tromey.com>
5671
5672 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5673 methods.
5674 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5675 (lookup_ranges_base): Likewise.
5676 (read_cutu_die_from_dwo, read_full_die_1): Update.
5677
436c571c
TT
56782020-03-26 Tom Tromey <tom@tromey.com>
5679
5680 * dwarf2/read.c (read_import_statement, read_file_scope)
5681 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5682 (read_lexical_block_scope, read_call_site_scope)
5683 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5684 (handle_struct_member_die, process_structure_scope)
5685 (update_enumeration_type_from_children)
5686 (process_enumeration_scope, read_array_type, read_common_block)
5687 (read_namespace, read_module, read_subroutine_type): Update.
5688 (sibling_die): Remove.
5689
052c8bb8
TT
56902020-03-26 Tom Tromey <tom@tromey.com>
5691
5692 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5693 (build_type_psymtabs_reader, read_structure_type)
5694 (read_enumeration_type, read_full_die_1): Update.
5695 (dwarf2_attr_no_follow): Move to die.h.
5696 * dwarf2/die.h (struct die_info) <attr>: New method.
5697
2b24b6e4
TT
56982020-03-26 Tom Tromey <tom@tromey.com>
5699
5700 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5701 <base_address>: Now an optional.
5702 (dwarf2_find_base_address, dwarf2_rnglists_process)
5703 (dwarf2_ranges_process, fill_in_loclist_baton)
5704 (dwarf2_symbol_mark_computed): Update.
5705
c2d50fd0
TT
57062020-03-26 Tom Tromey <tom@tromey.com>
5707
5708 * dwarf2/read.c (struct die_info): Move to die.h.
5709 * dwarf2/die.h: New file.
5710
0df7ad3a
TT
57112020-03-26 Tom Tromey <tom@tromey.com>
5712
5713 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5714 * dwarf2/read.c
5715 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5716 Move to line-header.c.
5717 (read_checked_initial_length_and_offset, read_formatted_entries):
5718 Likewise.
5719 (dwarf_decode_line_header): Split into two.
5720 * dwarf2/line-header.c
5721 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5722 Move from read.c.
5723 (read_checked_initial_length_and_offset, read_formatted_entries):
5724 Likewise.
5725 (dwarf_decode_line_header): New function, split from read.c.
5726
86c0bb4c
TT
57272020-03-26 Tom Tromey <tom@tromey.com>
5728
5729 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5730 Declare method.
5731 * dwarf2/read.c (read_attribute_value): Update.
5732 (dwarf2_per_objfile::read_line_string): Rename from
5733 read_indirect_line_string.
5734 (read_formatted_entries): Update.
5735
2ef46c2f
TT
57362020-03-26 Tom Tromey <tom@tromey.com>
5737
5738 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5739 variable.
5740
4f9c1eda
TT
57412020-03-26 Tom Tromey <tom@tromey.com>
5742
5743 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5744 const.
5745 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5746 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5747 parameter const.
5748
5a0e026f
TT
57492020-03-26 Tom Tromey <tom@tromey.com>
5750
5751 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5752 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5753 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5754 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5755
8844c11b
TT
57562020-03-26 Tom Tromey <tom@tromey.com>
5757
5758 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5759 file_names_size, file_full_name, file_file_name>: Use const.
5760 <file_name_at, file_names>: Add const overload.
5761 * dwarf2/line-header.c (line_header::file_file_name)
5762 (line_header::file_full_name): Update.
5763
c90ec28a
TT
57642020-03-26 Tom Tromey <tom@tromey.com>
5765
5766 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5767 (macro_start_file, consume_improper_spaces)
5768 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5769 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5770 (dwarf_decode_macros): Move to macro.c.
5771 * dwarf2/macro.c: New file.
5772 * dwarf2/macro.h: New file.
5773 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5774
4f44ae6c
TT
57752020-03-26 Tom Tromey <tom@tromey.com>
5776
5777 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5778 method.
5779 * dwarf2/section.c: New method. From
5780 read_indirect_string_at_offset_from.
5781 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5782 (read_indirect_string_at_offset_from): Move to section.c.
5783 (read_indirect_string_at_offset): Rewrite.
5784 (read_indirect_line_string_at_offset): Remove.
5785 (read_indirect_string, read_indirect_line_string)
5786 (dwarf_decode_macro_bytes): Update.
5787
a0194fa8
TT
57882020-03-26 Tom Tromey <tom@tromey.com>
5789
5790 * dwarf2/section.h (struct dwarf2_section_info)
5791 <overload_complaint>: Declare.
5792 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5793 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5794 Rename from dwarf2_section_buffer_overflow_complaint.
5795 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5796 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5797
3d27bbdb
TT
57982020-03-26 Tom Tromey <tom@tromey.com>
5799
5800 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5801 Declare.
5802 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5803 Move from read.c.
5804 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5805 to section.c.
5806
9eac9650
TT
58072020-03-26 Tom Tromey <tom@tromey.com>
5808
5809 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5810
bf80d710
TT
58112020-03-26 Tom Tromey <tom@tromey.com>
5812
5813 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5814 "builder".
5815 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5816 parameter.
5817 (dwarf_decode_macros): Update.
5818
0314b390
TT
58192020-03-26 Tom Tromey <tom@tromey.com>
5820
5821 * dwarf2/read.c (read_attribute_value): Update.
5822 (read_indirect_string_from_dwz): Move to dwz.c; change into
5823 method.
5824 (dwarf_decode_macro_bytes): Update.
5825 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5826 * dwarf2/dwz.c: New file.
5827 * Makefile.in (COMMON_SFILES): Add dwz.c.
5828
9fda78b6
TT
58292020-03-26 Tom Tromey <tom@tromey.com>
5830
5831 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5832 * dwarf2/read.c: Add include.
5833 * dwarf2/index-write.c: Add include.
5834 * dwarf2/index-cache.c: Add include.
5835 * dwarf2/dwz.h: New file.
5836
33aa3c10
TT
58372020-03-25 Tom Tromey <tom@tromey.com>
5838
5839 * compile/compile-object-load.c (get_out_value_type): Mention
5840 correct symbol name in error message.
5841
d503b685
HD
58422020-03-25 Hannes Domani <ssbssa@yahoo.de>
5843
5844 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5845
7b1eff95
TV
58462020-03-25 Tom de Vries <tdevries@suse.de>
5847
5848 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5849 * symmisc.c (dump_symtab_1): Print user and includes fields.
5850 (maintenance_info_symtabs): Same.
5851
dd895392
AB
58522020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 PR gdb/25534
5855 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5856 (riscv_regcache_cooked_write): New function.
5857 (riscv_push_dummy_call): Use new function.
5858 (riscv_return_value): Likewise.
5859
5ab2fbf1
SM
58602020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5863 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5864 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5865 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5866 * infrun.c (follow_fork): Likewise.
5867 (follow_fork_inferior): Likewise.
5868 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5869 * linux-nat.h (class linux_nat_target): Likewise.
5870 * remote.c (class remote_target) <follow_fork>: Likewise.
5871 (remote_target::follow_fork): Likewise.
5872 * target-delegates.c: Re-generate.
5873 * target.c (default_follow_fork): Likewise.
5874 (target_follow_fork): Likewise.
5875 * target.h (struct target_ops) <follow_fork>: Likewise.
5876 (target_follow_fork): Likewise.
5877
a64fafb5
TV
58782020-03-24 Tom de Vries <tdevries@suse.de>
5879
5880 * psymtab.c (maintenance_info_psymtabs): Print user field.
5881
fe26d3a3
TT
58822020-03-20 Tom Tromey <tromey@adacore.com>
5883
5884 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5885 const.
5886 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5887 const.
5888
c884cc46
SM
58892020-03-20 Simon Marchi <simon.marchi@efficios.com>
5890
5891 * ptrace.m4: Don't check for ptrace declaration.
5892 * config.in: Re-generate.
5893 * configure: Re-generate.
5894 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5895 not defined.
5896
1ff700c2
KR
58972020-03-20 Kamil Rytarowski <n54@gmx.com>
5898
5899 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5900 `PTRACE_TYPE_RET'.
5901 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5902 * sparc-nat.c (gdb_ptrace): Likewise.
5903 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5904
f7d4f0b1
TT
59052020-03-20 Tom Tromey <tromey@adacore.com>
5906
5907 * c-exp.y (lex_one_token): Fix assert.
5908
f67210ff
TT
59092020-03-20 Tom Tromey <tromey@adacore.com>
5910
5911 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5912 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5913 strncpy call.
5914
1773be9e
TT
59152020-03-20 Tom Tromey <tromey@adacore.com>
5916
5917 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5918
70304be9
TT
59192020-03-20 Tom Tromey <tromey@adacore.com>
5920
5921 * ada-valprint.c (print_variant_part): Remove parameters; switch
5922 to value-based API.
5923 (print_field_values): Likewise.
5924 (ada_val_print_struct_union): Likewise.
5925 (ada_value_print_1): Update.
5926
9faa006d
KR
59272020-03-20 Kamil Rytarowski <n54@gmx.com>
5928
5929 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5930 nbsd_nat_target instead of inf_ptrace_target.
5931 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5932 nbsd_nat_target.
5933
4a90f062
KR
59342020-03-20 Kamil Rytarowski <n54@gmx.com>
5935
5936 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5937 it to the ptrace call.
5938 * (store_registers): Likewise.
5939
59402020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5941
5942 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5943 it to the ptrace call.
5944 * (store_registers): Likewise.
5945
2d07da27
LM
59462020-03-19 Luis Machado <luis.machado@linaro.org>
5947
5948 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5949 valid, fetch vg value from ptrace.
5950
f09db380
KR
59512020-03-19 Kamil Rytarowski <n54@gmx.com>
5952 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5953 * inf-ptrace.c: Likewise.
5954 * (gdb_ptrace): Add.
5955 * (inf_ptrace_target::resume): Update.
5956 * (inf_ptrace_target::xfer_partial): Likewise.
5957 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5958 * (inf_ptrace_peek_poke): Update.
5959
fcc7376e
KR
59602020-03-19 Kamil Rytarowski <n54@gmx.com>
5961
5962 * x86-bsd-nat.c (gdb_ptrace): New.
5963 * (x86bsd_dr_set): Add new argument `ptid'.
5964 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5965 x86bsd_dr_set_addr): Update.
5966
cada5fc9
AB
59672020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5968
5969 * remote.c (remote_target::process_stop_reply): Handle events for
5970 all threads differently.
5971
19a2740f
AB
59722020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5973
5974 * completer.c (completion_tracker::remove_completion): Define new
5975 function.
5976 * completer.h (completion_tracker::remove_completion): Declare new
5977 function.
5978 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5979 when adding a C++ function symbol.
5980
724fd9ba
AB
59812020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * completer.c (completion_tracker::completion_hash_entry): Define
5984 new class.
5985 (advance_to_filename_complete_word_point): Call
5986 recompute_lowest_common_denominator.
5987 (completion_tracker::completion_tracker): Call discard_completions
5988 to setup the hash table.
5989 (completion_tracker::discard_completions): Allow for being called
5990 from the constructor, pass new equal function, and element deleter
5991 when constructing the hash table. Initialise new class member
5992 variables.
5993 (completion_tracker::maybe_add_completion): Remove use of
5994 m_entries_vec, and store more information into m_entries_hash.
5995 (completion_tracker::recompute_lcd_visitor): New function, most
5996 content taken from...
5997 (completion_tracker::recompute_lowest_common_denominator):
5998 ...here, this now just visits each item in the hash calling the
5999 above visitor.
6000 (completion_tracker::build_completion_result): Remove use of
6001 m_entries_vec, call recompute_lowest_common_denominator.
6002 * completer.h (completion_tracker::have_completions): Remove use
6003 of m_entries_vec.
6004 (completion_tracker::completion_hash_entry): Declare new class.
6005 (completion_tracker::recompute_lowest_common_denominator): Change
6006 function signature.
6007 (completion_tracker::recompute_lcd_visitor): Declare new function.
6008 (completion_tracker::m_entries_vec): Delete.
6009 (completion_tracker::m_entries_hash): Initialize to NULL.
6010 (completion_tracker::m_lowest_common_denominator_valid): New
6011 member variable.
6012 (completion_tracker::m_lowest_common_denominator_max_length): New
6013 member variable.
6014
5a82b8a1
KR
60152020-03-17 Kamil Rytarowski <n54@gmx.com>
6016
6017 * regformats/regdef.h: Put reg in gdb namespace.
6018
fb516a69
KR
60192020-03-17 Kamil Rytarowski <n54@gmx.com>
6020
6021 * i386-bsd-nat.c (gdb_ptrace): New.
6022 * (i386bsd_fetch_inferior_registers,
6023 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6024 * (i386bsd_fetch_inferior_registers,
6025 i386bsd_store_inferior_registers) Use gdb_ptrace.
6026
1c0aa1fb
KR
60272020-03-17 Kamil Rytarowski <n54@gmx.com>
6028
6029 * amd64-bsd-nat.c (gdb_ptrace): New.
6030 * (amd64bsd_fetch_inferior_registers,
6031 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6032 * (amd64bsd_fetch_inferior_registers,
6033 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6034
5ccd2fb7
KR
60352020-03-17 Kamil Rytarowski <n54@gmx.com>
6036
6037 * user-regs.c (user_reg::read): Rename to...
6038 (user_reg::xread): ...this.
6039 * (append_user_reg): Rename argument `read' to `xread'.
6040 * (user_reg_add_builtin): Likewise.
6041 * (user_reg_add): Likewise.
6042 * (value_of_user_reg): Likewise.
6043
2108a63a
KR
60442020-03-17 Kamil Rytarowski <n54@gmx.com>
6045
6046 * sparc-nat.c (gdb_ptrace): New.
6047 * sparc-nat.c (sparc_fetch_inferior_registers)
6048 (sparc_store_inferior_registers) Remove obsolete comment.
6049 * sparc-nat.c (sparc_fetch_inferior_registers)
6050 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6051 * sparc-nat.c (sparc_fetch_inferior_registers)
6052 (sparc_store_inferior_registers) Use gdb_ptrace.
6053
a225c9a8
KR
60542020-03-17 Kamil Rytarowski <n54@gmx.com>
6055
6056 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6057 it to the ptrace call.
6058 * sh-nbsd-nat.c (store_registers): Likewise.
6059
98097623
KR
60602020-03-17 Kamil Rytarowski <n54@gmx.com>
6061
6062 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6063 nbsd_nat_target instead of inf_ptrace_target.
6064 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6065 nbsd_nat_target.
6066
9e38d619
KR
60672020-03-17 Kamil Rytarowski <n54@gmx.com>
6068
6069 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6070
a2ecbe9f
KR
60712020-03-17 Kamil Rytarowski <n54@gmx.com>
6072
6073 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6074 <sys/sysctl.h>.
6075 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6076
58990295
TV
60772020-03-17 Tom de Vries <tdevries@suse.de>
6078
6079 PR gdb/23710
6080 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6081 fields.
6082 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6083 fields.
6084 (process_imported_unit_die): Skip import of c++ CUs.
6085
771dd3a8
TT
60862020-03-16 Tom Tromey <tom@tromey.com>
6087
6088 * p-valprint.c (pascal_object_print_value): Initialize
6089 base_value.
6090
817a7585
AK
60912020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6092 Shahab Vahedi <shahab@synopsys.com>
6093
6094 * Makefile.in: Add arch/arc.o
6095 * configure.tgt: Likewise.
6096 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6097 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6098 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6099 * arc-tdep.h (arc_read_description): Add proto type.
6100 * arch/arc.c: New file.
6101 * arch/arc.h: Likewise.
6102 * features/Makefile: Replace old target descriptions with new.
6103 * features/arc-arcompact.c: Remove.
6104 * features/arc-arcompact.xml: Likewise.
6105 * features/arc-v2.c: Likewise
6106 * features/arc-v2.xml: Likewise
6107 * features/arc/aux-arcompact.xml: New file.
6108 * features/arc/aux-v2.xml: Likewise.
6109 * features/arc/core-arcompact.xml: Likewise.
6110 * features/arc/core-v2.xml: Likewise.
6111 * features/arc/aux-arcompact.c: Generate.
6112 * features/arc/aux-v2.c: Likewise.
6113 * features/arc/core-arcompact.c: Likewise.
6114 * features/arc/core-v2.c: Likewise.
6115 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6116
67430cd0
TT
61172020-03-16 Tom Tromey <tromey@adacore.com>
6118
6119 PR gdb/25663:
6120 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6121 putting value into bcache.
6122
30efb6c7
SM
61232020-03-16 Simon Marchi <simon.marchi@efficios.com>
6124
6125 PR gdb/21500
6126 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6127 to...
6128 (amd64_windows_init_abi_common): ... this. Don't set size of
6129 long type.
6130 (amd64_windows_init_abi): New function.
6131 (amd64_cygwin_init_abi): New function.
6132 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6133 the Cygwin OS ABI.
6134 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6135 comment.
6136
8db52437
SM
61372020-03-16 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6140 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6141 (pe_import_directory_entry): New struct type.
6142 (is_linked_with_cygwin_dll): New function.
6143 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6144 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6145 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6146
5982a56a
SM
61472020-03-16 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6150 i386_cygwin_core_osabi_sniffer.
6151
7a1998df
SM
61522020-03-16 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * i386-cygwin-tdep.c: Rename to...
6155 * i386-windows-tdep.c: ... this.
6156 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6157 i386-windows-tdep.c.
6158 * configure.tgt: Likewise.
6159
053205cc
SM
61602020-03-16 Simon Marchi <simon.marchi@efficios.com>
6161
6162 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6163 * osabi.c (gdb_osabi_names): Add "Windows".
6164 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6165 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6166 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6167 i386_cygwin_osabi_sniffer.
6168 (_initialize_i386_cygwin_tdep): Register OS ABI
6169 GDB_OSABI_WINDOWS for i386.
6170 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6171 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6172 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6173 for x86-64.
6174 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6175 when the target matches '*-*-mingw*'.
6176
fe4b2ee6
SM
61772020-03-16 Simon Marchi <simon.marchi@efficios.com>
6178
6179 * defs.h (enum gdb_osabi): Move to...
6180 * osabi.h (enum gdb_osabi): ... here.
6181 * gdbarch.sh: Include osabi.h in gdbarch.h.
6182 * gdbarch.h: Re-generate.
6183
cb9b645d
SM
61842020-03-16 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6187 function.
6188 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6189
3293bbaf
TT
61902020-03-14 Tom Tromey <tom@tromey.com>
6191
6192 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6193 for C++.
6194 (c_type_print_modifier): Likewise. Add "language" parameter.
6195 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6196 (c_type_print_base_1): Update.
6197 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6198 constants.
6199 * type-stack.c (type_stack::insert): Handle tp_atomic and
6200 tp_restrict.
6201 (type_stack::follow_type_instance_flags): Likewise.
6202 (type_stack::follow_types): Likewise. Merge type-following code.
6203 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6204 (space_identifier, cv_with_space_id)
6205 (const_or_volatile_or_space_identifier_noopt)
6206 (const_or_volatile_or_space_identifier): Remove.
6207 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6208 rules.
6209 (ptr_operator, typebase): Update.
6210 (enum token_flag) <FLAG_C>: New constant.
6211 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6212 "_Atomic".
6213 (lex_one_token): Handle FLAG_C.
6214
154151a6
KR
62152020-03-14 Kamil Rytarowski <n54@gmx.com>
6216
6217 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6218 it to the ptrace call.
6219 * m68k-bsd-nat.c (store_registers): Likewise.
6220
bc107784
KR
62212020-03-14 Kamil Rytarowski <n54@gmx.com>
6222
6223 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6224 gdb_byte *.
6225 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6226 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6227 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6228
01a80117
KR
62292020-03-14 Kamil Rytarowski <n54@gmx.com>
6230
6231 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6232 nbsd_nat_target instead of inf_ptrace_target.
6233 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6234 nbsd_nat_target.
6235
f90280ca
KR
62362020-03-14 Kamil Rytarowski <n54@gmx.com>
6237
6238 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6239 register_t.
6240
6def66f1
KR
62412020-03-14 Kamil Rytarowski <n54@gmx.com>
6242
6243 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6244 it to the ptrace call.
6245 * alpha-bsd-nat.c (store_registers): Likewise.
6246
66eaca97
KR
62472020-03-14 Kamil Rytarowski <n54@gmx.com>
6248
6249 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6250 includes.
6251 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6252 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6253 fill_fpregset): Likewise.
6254
4fed520b
KR
62552020-03-14 Kamil Rytarowski <n54@gmx.com>
6256
6257 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6258 nbsd_nat_target instead of inf_ptrace_target.
6259 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6260 nbsd_nat_target.
6261
2190cf06
KR
62622020-03-14 Kamil Rytarowski <n54@gmx.com>
6263
6264 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6265 register_t.
6266
75c56d3d
KR
62672020-03-14 Kamil Rytarowski <n54@gmx.com>
6268
6269 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6270 it to the ptrace call.
6271 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6272 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6273 * arm-nbsd-nat.c (store_register): Likewise.
6274 * arm-nbsd-nat.c (store_regs): Likewise.
6275 * arm-nbsd-nat.c (store_fp_register): Likewise.
6276 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6277
6018d381
KR
62782020-03-14 Kamil Rytarowski <n54@gmx.com>
6279
6280 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6281 nbsd_nat_target instead of inf_ptrace_target.
6282 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6283 nbsd_nat_target.
6284
013f99f0
KR
62852020-03-14 Kamil Rytarowski <n54@gmx.com>
6286
6287 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6288 it to the ptrace call.
6289 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6290
12753073
KR
62912020-03-14 Kamil Rytarowski <n54@gmx.com>
6292
6227b330
KR
6293 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6294 it to the ptrace call.
6295 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6296
62972020-03-14 Kamil Rytarowski <n54@gmx.com>
6298
6299 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6300 gdb_byte *.
12753073
KR
6301 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6302
d5be5fa4
KR
63032020-03-14 Kamil Rytarowski <n54@gmx.com>
6304
6305 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6306 instead of inf_ptrace_target.
6307 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6308 nbsd_nat_target.
6309
8110f842
KR
63102020-03-14 Kamil Rytarowski <n54@gmx.com>
6311
6312 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6313 register_t.
6314
52feded7
KR
63152020-03-14 Kamil Rytarowski <n54@gmx.com>
6316
6317 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6318 register_t.
6319
25567eee
KR
63202020-03-14 Kamil Rytarowski <n54@gmx.com>
6321
6322 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6323 register_t.
6324
426a9c18
TT
63252020-03-13 Tom Tromey <tom@tromey.com>
6326
6327 * value.h (val_print): Don't declare.
6328 * valprint.h (val_print_array_elements)
6329 (val_print_scalar_formatted, generic_val_print): Don't declare.
6330 * valprint.c (generic_val_print_array): Take a struct value.
6331 (generic_val_print_ptr, generic_val_print_memberptr)
6332 (generic_val_print_bool, generic_val_print_int)
6333 (generic_val_print_char, generic_val_print_complex)
6334 (generic_val_print): Remove.
6335 (generic_value_print): Update.
6336 (do_val_print): Remove unused parameters. Don't call
6337 la_val_print.
6338 (val_print): Remove.
6339 (common_val_print): Update. Don't call value_check_printable.
6340 (val_print_scalar_formatted, val_print_array_elements): Remove.
6341 * rust-lang.c (rust_val_print): Remove.
6342 (rust_language_defn): Update.
6343 * p-valprint.c (pascal_val_print): Remove.
6344 (pascal_value_print_inner): Update.
6345 (pascal_object_print_val_fields, pascal_object_print_val):
6346 Remove.
6347 (pascal_object_print_static_field): Update.
6348 * p-lang.h (pascal_val_print): Don't declare.
6349 * p-lang.c (pascal_language_defn): Update.
6350 * opencl-lang.c (opencl_language_defn): Update.
6351 * objc-lang.c (objc_language_defn): Update.
6352 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6353 * m2-lang.h (m2_val_print): Don't declare.
6354 * m2-lang.c (m2_language_defn): Update.
6355 * language.h (struct language_defn) <la_val_print>: Remove.
6356 * language.c (unk_lang_value_print_inner): Rename. Change
6357 argument types.
6358 (unknown_language_defn, auto_language_defn): Update.
6359 * go-valprint.c (go_val_print): Remove.
6360 * go-lang.h (go_val_print): Don't declare.
6361 * go-lang.c (go_language_defn): Update.
6362 * f-valprint.c (f_val_print): Remove.
6363 * f-lang.h (f_value_print): Don't declare.
6364 * f-lang.c (f_language_defn): Update.
6365 * d-valprint.c (d_val_print): Remove.
6366 * d-lang.h (d_value_print): Don't declare.
6367 * d-lang.c (d_language_defn): Update.
6368 * cp-valprint.c (cp_print_value_fields)
6369 (cp_print_value_fields_rtti, cp_print_value): Remove.
6370 (cp_print_static_field): Update.
6371 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6372 (c_val_print_struct, c_val_print_union, c_val_print_int)
6373 (c_val_print_memberptr, c_val_print): Remove.
6374 * c-lang.h (c_val_print_array, cp_print_value_fields)
6375 (cp_print_value_fields_rtti): Don't declare.
6376 * c-lang.c (c_language_defn, cplus_language_defn)
6377 (asm_language_defn, minimal_language_defn): Update.
6378 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6379 (ada_val_print_enum): Take a struct value.
6380 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6381 (ada_val_print): Remove.
6382 (ada_value_print_1): Update.
6383 (printable_val_type): Remove.
6384 * ada-lang.h (ada_val_print): Don't declare.
6385 * ada-lang.c (ada_language_defn): Update.
6386
42331a1e
TT
63872020-03-13 Tom Tromey <tom@tromey.com>
6388
6389 * valprint.c (do_val_print): Update.
6390 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6391 a struct value.
6392 (value_to_value_object_no_release): Declare.
6393 * python/py-value.c (value_to_value_object_no_release): New
6394 function.
6395 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6396 struct value.
6397 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6398 function.
6399 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6400 a struct value.
6401 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6402 Declare.
6403 (gdbscm_apply_val_pretty_printer): Take a struct value.
6404 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6405 value.
6406 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6407 value.
6408 * extension-priv.h (struct extension_language_ops)
6409 <apply_val_pretty_printer>: Take a struct value.
6410 * cp-valprint.c (cp_print_value): Create a struct value.
6411 (cp_print_value): Update.
6412
3a916a97
TT
64132020-03-13 Tom Tromey <tom@tromey.com>
6414
6415 * ada-valprint.c (print_field_values): Call common_val_print.
6416
b59eac37
TT
64172020-03-13 Tom Tromey <tom@tromey.com>
6418
6419 * ada-valprint.c (val_print_packed_array_elements): Remove
6420 bitoffset and val parameters. Call common_val_print.
6421 (ada_val_print_string): Remove offset, address, and original_value
6422 parameters.
6423 (ada_val_print_array): Update.
6424 (ada_value_print_array): New function.
6425 (ada_value_print_1): Call it.
6426
03371129
TT
64272020-03-13 Tom Tromey <tom@tromey.com>
6428
6429 * ada-valprint.c (ada_value_print): Use common_val_print.
6430
2e088f8b
TT
64312020-03-13 Tom Tromey <tom@tromey.com>
6432
6433 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6434
39ef85a8
TT
64352020-03-13 Tom Tromey <tom@tromey.com>
6436
6437 * ada-valprint.c (ada_value_print_num): New function.
6438 (ada_value_print_1): Use it.
6439
b9fa6e07
TT
64402020-03-13 Tom Tromey <tom@tromey.com>
6441
6442 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6443
416595d6
TT
64442020-03-13 Tom Tromey <tom@tromey.com>
6445
6446 * ada-valprint.c (ada_value_print_ptr): New function.
6447 (ada_value_print_1): Use it.
6448
5b5e15ec
TT
64492020-03-13 Tom Tromey <tom@tromey.com>
6450
6451 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6452 call common_val_print.
6453 (ada_val_print_1): Update.
6454 (ada_value_print_1): New function.
6455 (ada_value_print_inner): Rewrite.
6456
fbf54e75
TT
64572020-03-13 Tom Tromey <tom@tromey.com>
6458
6459 * cp-valprint.c (cp_print_value_fields): Update.
6460 (cp_print_value): New function.
6461
64b653ca
TT
64622020-03-13 Tom Tromey <tom@tromey.com>
6463
6464 * m2-valprint.c (m2_value_print_inner): Use
6465 cp_print_value_fields.
6466 * cp-valprint.c (cp_print_value_fields): New function.
6467 * c-valprint.c (c_value_print_struct): New function.
6468 (c_value_print_inner): Use c_value_print_struct.
6469 * c-lang.h (cp_print_value_fields): Declare.
6470
6999f067
TT
64712020-03-13 Tom Tromey <tom@tromey.com>
6472
6473 * c-valprint.c (c_value_print_array): New function.
6474 (c_value_print_inner): Use it.
6475
ce80b8bd
TT
64762020-03-13 Tom Tromey <tom@tromey.com>
6477
6478 * c-valprint.c (c_value_print_memberptr): New function.
6479 (c_value_print_inner): Use it.
6480
2faac269
TT
64812020-03-13 Tom Tromey <tom@tromey.com>
6482
6483 * c-valprint.c (c_value_print_int): New function.
6484 (c_value_print_inner): Use it.
6485
da3e2c29
TT
64862020-03-13 Tom Tromey <tom@tromey.com>
6487
6488 * c-valprint.c (c_value_print_ptr): New function.
6489 (c_value_print_inner): Use it.
6490
50836231
TT
64912020-03-13 Tom Tromey <tom@tromey.com>
6492
6493 * c-valprint.c (c_value_print_inner): Rewrite.
6494
4f412b6e
TT
64952020-03-13 Tom Tromey <tom@tromey.com>
6496
6497 * valprint.c (generic_value_print_complex): New function.
6498 (generic_value_print): Use it.
6499
f5354008
TT
65002020-03-13 Tom Tromey <tom@tromey.com>
6501
6502 * valprint.c (generic_val_print_float): Don't call
6503 val_print_scalar_formatted.
6504 (generic_val_print, generic_value_print): Update.
6505
3eec3b05
TT
65062020-03-13 Tom Tromey <tom@tromey.com>
6507
6508 * valprint.c (generic_value_print_char): New function
6509 (generic_value_print): Use it.
6510
fdddfccb
TT
65112020-03-13 Tom Tromey <tom@tromey.com>
6512
6513 * valprint.c (generic_value_print_int): New function.
6514 (generic_value_print): Use it.
6515
6dde7521
TT
65162020-03-13 Tom Tromey <tom@tromey.com>
6517
6518 * valprint.c (generic_value_print_bool): New function.
6519 (generic_value_print): Use it.
6520
4112d2e6
TT
65212020-03-13 Tom Tromey <tom@tromey.com>
6522
6523 * valprint.c (generic_val_print_func): Simplify.
6524 (generic_val_print, generic_value_print): Update.
6525
65786af6
TT
65262020-03-13 Tom Tromey <tom@tromey.com>
6527
6528 * valprint.c (generic_val_print_flags): Remove.
6529 (generic_val_print, generic_value_print): Update.
6530 (val_print_type_code_flags): Add original_value parameter.
6531
40f3ce18
TT
65322020-03-13 Tom Tromey <tom@tromey.com>
6533
6534 * valprint.c (generic_val_print): Update.
6535 (generic_value_print): Update.
6536 * valprint.c (generic_val_print_enum): Don't call
6537 val_print_scalar_formatted.
6538
2a5b130b
TT
65392020-03-13 Tom Tromey <tom@tromey.com>
6540
6541 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6542 * valprint.c (generic_value_print_ptr): New function.
6543
abc66ce9
TT
65442020-03-13 Tom Tromey <tom@tromey.com>
6545
6546 * valprint.c (generic_value_print): Rewrite.
6547
07a32858
TT
65482020-03-13 Tom Tromey <tom@tromey.com>
6549
6550 * p-valprint.c (pascal_object_print_value_fields)
6551 (pascal_object_print_value): New functions.
6552
64d64d3a
TT
65532020-03-13 Tom Tromey <tom@tromey.com>
6554
6555 * p-valprint.c (pascal_value_print_inner): Rewrite.
6556
6a95a1f5
TT
65572020-03-13 Tom Tromey <tom@tromey.com>
6558
6559 * f-valprint.c (f_value_print_innner): Rewrite.
6560
59fcdac6
TT
65612020-03-13 Tom Tromey <tom@tromey.com>
6562
6563 * m2-valprint.c (m2_print_unbounded_array): New overload.
6564 (m2_print_unbounded_array): Update.
6565 (m2_print_array_contents): Take a struct value.
6566 (m2_value_print_inner): Rewrite.
6567
d133c3e1
TT
65682020-03-13 Tom Tromey <tom@tromey.com>
6569
6570 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6571 (d_value_print_inner): New function.
6572 * d-lang.h (d_value_print_inner): Declare.
6573 * d-lang.c (d_language_defn): Use d_value_print_inner.
6574
23b0f06b
TT
65752020-03-13 Tom Tromey <tom@tromey.com>
6576
6577 * go-valprint.c (go_value_print_inner): New function.
6578 * go-lang.h (go_value_print_inner): Declare.
6579 * go-lang.c (go_language_defn): Use go_value_print_inner.
6580
5f56f7cb
TT
65812020-03-13 Tom Tromey <tom@tromey.com>
6582
6583 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6584 API.
6585 (rust_val_print): Rewrite.
6586 (rust_value_print_inner): New function, from rust_val_print.
6587 (rust_language_defn): Use rust_value_print_inner.
6588
26792ee0
TT
65892020-03-13 Tom Tromey <tom@tromey.com>
6590
6591 * ada-valprint.c (ada_value_print_inner): New function.
6592 * ada-lang.h (ada_value_print_inner): Declare.
6593 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6594
24051bbe
TT
65952020-03-13 Tom Tromey <tom@tromey.com>
6596
6597 * f-valprint.c (f_value_print_innner): New function.
6598 * f-lang.h (f_value_print_innner): Declare.
6599 * f-lang.c (f_language_defn): Use f_value_print_innner.
6600
c0941be6
TT
66012020-03-13 Tom Tromey <tom@tromey.com>
6602
6603 * p-valprint.c (pascal_value_print_inner): New function.
6604 * p-lang.h (pascal_value_print_inner): Declare.
6605 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6606
62c4663d
TT
66072020-03-13 Tom Tromey <tom@tromey.com>
6608
6609 * m2-valprint.c (m2_value_print_inner): New function.
6610 * m2-lang.h (m2_value_print_inner): Declare.
6611 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6612
62182190
TT
66132020-03-13 Tom Tromey <tom@tromey.com>
6614
6615 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6616 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6617 * c-valprint.c (c_value_print_inner): New function.
6618 * c-lang.h (c_value_print_inner): Declare.
6619 * c-lang.c (c_language_defn, cplus_language_defn)
6620 (asm_language_defn, minimal_language_defn): Use
6621 c_value_print_inner.
6622
1e592a8a
TT
66232020-03-13 Tom Tromey <tom@tromey.com>
6624
6625 * p-valprint.c (pascal_object_print_value_fields): Now static.
6626 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6627
7fe471e9
TT
66282020-03-13 Tom Tromey <tom@tromey.com>
6629
6630 * c-valprint.c (c_val_print_array): Simplify.
6631
d121c6ce
TT
66322020-03-13 Tom Tromey <tom@tromey.com>
6633
6634 * valprint.c (value_print_array_elements): New function.
6635 * valprint.h (value_print_array_elements): Declare.
6636
4dba70ee
TT
66372020-03-13 Tom Tromey <tom@tromey.com>
6638
6639 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6640 * mips-tdep.c (mips_print_register): Use
6641 value_print_scalar_formatted.
6642
4f9ae810
TT
66432020-03-13 Tom Tromey <tom@tromey.com>
6644
6645 * valprint.h (value_print_scalar_formatted): Declare.
6646 * valprint.c (value_print_scalar_formatted): New function.
6647
156bfec9
TT
66482020-03-13 Tom Tromey <tom@tromey.com>
6649
6650 * valprint.h (generic_value_print): Declare.
6651 * valprint.c (generic_value_print): New function.
6652
2b4e573d
TT
66532020-03-13 Tom Tromey <tom@tromey.com>
6654
6655 * valprint.c (do_val_print): Call la_value_print_inner, if
6656 available.
6657 * rust-lang.c (rust_language_defn): Update.
6658 * p-lang.c (pascal_language_defn): Update.
6659 * opencl-lang.c (opencl_language_defn): Update.
6660 * objc-lang.c (objc_language_defn): Update.
6661 * m2-lang.c (m2_language_defn): Update.
6662 * language.h (struct language_defn) <la_value_print_inner>: New
6663 member.
6664 * language.c (unknown_language_defn, auto_language_defn): Update.
6665 * go-lang.c (go_language_defn): Update.
6666 * f-lang.c (f_language_defn): Update.
6667 * d-lang.c (d_language_defn): Update.
6668 * c-lang.c (c_language_defn, cplus_language_defn)
6669 (asm_language_defn, minimal_language_defn): Update.
6670 * ada-lang.c (ada_language_defn): Update.
6671
a1f6a07c
TT
66722020-03-13 Tom Tromey <tom@tromey.com>
6673
6674 * c-valprint.c (c_value_print): Use common_val_print.
6675
410cf315
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6679
72a45c93
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * f-valprint.c (f77_print_array_1, f_val_print): Use
6683 common_val_print.
6684
040f66bd
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * riscv-tdep.c (riscv_print_one_register_info): Use
6688 common_val_print.
6689
a6e05a6c
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * mi/mi-main.c (output_register): Use common_val_print.
6693
3444c526
TT
66942020-03-13 Tom Tromey <tom@tromey.com>
6695
6696 * infcmd.c (default_print_one_register_info): Use
6697 common_val_print.
6698
c2a44efe
TT
66992020-03-13 Tom Tromey <tom@tromey.com>
6700
6701 * valprint.h (common_val_print_checked): Declare.
6702 * valprint.c (common_val_print_checked): New function.
6703 * stack.c (print_frame_arg): Use common_val_print_checked.
6704
b0c26e99
TT
67052020-03-13 Tom Tromey <tom@tromey.com>
6706
6707 * valprint.c (do_val_print): New function, from val_print.
6708 (val_print): Use do_val_print.
6709 (common_val_print): Use do_val_print.
6710
ce3acbe9
TT
67112020-03-13 Tom Tromey <tom@tromey.com>
6712
6713 * valprint.c (value_print): Use scoped_value_mark.
6714
96c7f873
TV
67152020-03-13 Tom de Vries <tdevries@suse.de>
6716
6717 PR symtab/25646
6718 * psymtab.c (partial_symtab::partial_symtab): Don't set
6719 globals_offset and statics_offset. Push element onto
6720 current_global_psymbols and current_static_psymbols stacks.
6721 (concat): New function.
6722 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6723 element from current_global_psymbols and current_static_psymbols
6724 stacks. Concat popped elements to global_psymbols and
6725 static_symbols.
6726 (add_psymbol_to_list): Use current_global_psymbols and
6727 current_static_psymbols stacks.
6728 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6729 current_static_psymbols fields.
6730
6ba0a321
CB
67312020-03-12 Christian Biesinger <cbiesinger@google.com>
6732
6733 * corelow.c (sniff_core_bfd): Remove.
6734 (class core_target) <m_core_vec>: Remove.
6735 (core_target::core_target): Update.
6736 (core_file_fns): Remove.
6737 (deprecated_add_core_fns): Remove.
6738 (default_core_sniffer): Remove.
6739 (sniff_core_bfd): Remove.
6740 (default_check_format): Remove.
6741 (gdb_check_format): Remove.
6742 (core_target_open): Update.
6743 (core_target::get_core_register_section): Update.
6744 (get_core_registers_cb): Update.
6745 (core_target::fetch_registers): Update.
6746 * gdbcore.h (struct core_fns): Remove.
6747 (deprecated_add_core_fns): Remove.
6748 (default_core_sniffer): Remove.
6749 (default_check_format): Remove.
6750
227031b2
TT
67512020-03-12 Tom Tromey <tom@tromey.com>
6752
6753 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6754 CORE_ADDR.
6755 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6756
53807e9f
TT
67572020-03-12 Tom Tromey <tom@tromey.com>
6758
6759 * remote.c (remote_target::download_tracepoint)
6760 (remote_target::enable_tracepoint)
6761 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6762 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6763 sprintf_vma.
6764
64f25102
TT
67652020-03-12 Tom Tromey <tom@tromey.com>
6766
6767 * symfile-mem.c: Update CORE_ADDR size assert.
6768
272cd5a3
SM
67692020-03-12 Simon Marchi <simon.marchi@efficios.com>
6770
6771 * selftest.m4: Move to gdbsupport/.
6772 * acinclude.m4: Update path to selftest.m4.
6773
74cd3f9d
SM
67742020-03-12 Simon Marchi <simon.marchi@efficios.com>
6775
6776 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6777 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6778 gdbarch-selfselftests.c and selftest-arch.c.
6779 (SUBDIR_UNITTESTS_OBS): Rename to...
6780 (SELFTESTS_OBS): ... this.
6781 (COMMON_SFILES): Remove disasm-selftests.c and
6782 gdbarch-selftests.c.
6783 * configure.ac: Don't add selftest-arch.{c,o} to
6784 CONFIG_{SRCS,OBS}.
6785 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6786 preprocessor conditions.
6787
db6878ac
SM
67882020-03-12 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * configure.ac: Don't source bfd/development.sh.
6791 * selftest.m4: Modify comment.
6792 * configure: Re-generate.
6793
4d696a5c
SM
67942020-03-12 Simon Marchi <simon.marchi@efficios.com>
6795
6796 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6797 not "true" or "false".
6798 * configure: Re-generate.
6799
8dd8e1c7
CB
68002020-03-12 Christian Biesinger <cbiesinger@google.com>
6801
6802 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6803 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6804 renamed to arm_nbsd_supply_gregset.
6805 (fetch_register): Update to call arm_nbsd_supply_gregset.
6806 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6807 (arm_netbsd_nat_target::fetch_registers): Update.
6808 (fetch_elfcore_registers): Removed.
6809 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6810 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6811 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6812 not require NetBSD system headers.
6813 (arm_nbsd_regset): New struct.
6814 (arm_nbsd_iterate_over_regset_sections): New function.
6815 (arm_netbsd_init_abi_common): Updated to call
6816 set_gdbarch_iterate_over_regset_sections.
6817 * arm-nbsd-tdep.h: New file.
6818
dd69bf7a
KB
68192020-03-11 Kevin Buettner <kevinb@redhat.com>
6820
6821 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6822 recursion.
6823
a0761e34
SM
68242020-03-11 Simon Marchi <simon.marchi@efficios.com>
6825
6826 * configure: Re-generate.
6827
e7a82140
TT
68282020-03-11 Tom Tromey <tromey@adacore.com>
6829
6830 * ada-typeprint.c (print_choices): Fix comment.
6831
dcc050c8
AB
68322020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6833
6834 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6835 previous item in the list, when the list has no items.
6836
1c33af77
TV
68372020-03-11 Tom de Vries <tdevries@suse.de>
6838
6839 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6840 PROP_LOCLIST handling code.
6841
8c95582d
AB
68422020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6843
6844 * buildsym-legacy.c (record_line): Pass extra parameter to
6845 record_line.
6846 * buildsym.c (buildsym_compunit::record_line): Take an extra
6847 parameter, reduce duplication in the line table, and record the
6848 is_stmt flag in the line table.
6849 * buildsym.h (buildsym_compunit::record_line): Add extra
6850 parameter.
6851 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6852 non-statement lines.
6853 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6854 this to the symtab builder.
6855 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6856 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6857 through to dwarf_record_line_1.
6858 * infrun.c (process_event_stop_test): When stepping, don't stop at
6859 a non-statement instruction, and only refresh the step info when
6860 we land in the middle of a line's range. Also add an extra
6861 comment.
6862 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6863 field.
6864 * record-btrace.c (btrace_find_line_range): Only record lines
6865 marked as is-statement.
6866 * stack.c (frame_show_address): Show the frame address if we are
6867 in a non-statement sal.
6868 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6869 (maintenance_print_one_line_table): Print a header for the is_stmt
6870 column, and include is_stmt information in the output.
6871 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6872 preference to non-statements.
6873 (find_pcs_for_symtab_line): Prefer is-statement entries.
6874 (find_line_common): Likewise.
6875 * symtab.h (struct linetable_entry): Add is_stmt field.
6876 (struct symtab_and_line): Likewise.
6877 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6878 arranging the line table.
6879
e4003a34
TV
68802020-03-07 Tom de Vries <tdevries@suse.de>
6881
6882 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6883 DIE.
6884
e8932576
TT
68852020-03-07 Tom Tromey <tom@tromey.com>
6886
6887 * valops.c (value_literal_complex): Remove obsolete comment.
6888 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6889 comment.
6890
29734269
SM
68912020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6892
6893 * infrun.h: Forward-declare thread_info.
6894 (set_step_info): Add thread_info parameter, add doc.
6895 * infrun.c (set_step_info): Add thread_info parameter, move doc
6896 to header.
6897 * infrun.c (process_event_stop_test): Pass thread to
6898 set_step_info call.
6899 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6900 set_step_info.
6901 (prepare_one_step): Add thread_info parameter, pass it to
6902 set_step_frame and prepare_one_step (recursive) call.
6903 (step_1): Pass thread to prepare_one_step call.
6904 (step_command_fsm::should_stop): Pass thread to
6905 prepare_one_step.
6906 (until_next_fsm): Pass thread to set_step_frame call.
6907 (finish_command): Pass thread to set_step_info call.
6908
b7d64b29
HD
69092020-03-06 Hannes Domani <ssbssa@yahoo.de>
6910
6911 * windows-tdep.c (windows_solib_create_inferior_hook):
6912 Check if inferior is running.
6913
09f2921c
TV
69142020-03-06 Tom de Vries <tdevries@suse.de>
6915
6916 * NEWS: Fix "the the".
6917 * ctfread.c: Same.
6918
fd760e79
TV
69192020-03-06 Tom de Vries <tdevries@suse.de>
6920
6921 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6922
20ea4a60
AB
69232020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6924
6925 * .dir-locals.el: Add a comment referencing the other copies of
6926 this file.
6927
0afbabf0
JB
69282020-03-05 John Baldwin <jhb@FreeBSD.org>
6929
6930 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6931 psargs.
6932
842806cb
TBA
69332020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6934
6935 * .gitattributes: New file.
6936
be1e3d3e
TT
69372020-03-04 Tom Tromey <tom@tromey.com>
6938
6939 * symmisc.c (print_symbol_bcache_statistics)
6940 (print_objfile_statistics): Update.
6941 * symfile.c (allocate_symtab): Use intern.
6942 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6943 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6944 macro_cache>: Remove.
6945 <string_cache>: New member.
6946 (struct objfile) <intern>: New methods.
6947 * elfread.c (elf_symtab_read): Use intern.
6948 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6949 (dwarf2_compute_name, dwarf2_physname)
6950 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6951 names.
6952 (guess_partial_die_structure_name): Update.
6953 (partial_die_info::fixup): Intern name.
6954 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6955 name.
6956 (dwarf2_name): Intern name. Update.
6957 * buildsym.c (buildsym_compunit::get_macro_table): Use
6958 string_cache.
6959
4e7625fd
TT
69602020-03-04 Tom Tromey <tom@tromey.com>
6961
6962 * jit.c (bfd_open_from_target_memory): Make "target" const.
6963 * corefile.c (gnutarget): Now const.
6964 * gdbcore.h (gnutarget): Now const.
6965
46f9f931
HD
69662020-03-04 Hannes Domani <ssbssa@yahoo.de>
6967
6968 * NEWS: Mention support for WOW64 processes.
6969 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6970 (amd64_windows_segment_register_p): Remove static.
6971 (_initialize_amd64_windows_nat): Update.
6972 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6973 * i386-windows-nat.c (context_offset): Update.
6974 (i386_mappings): Rename and remove static.
6975 (i386_windows_segment_register_p): Remove static.
6976 (_initialize_i386_windows_nat): Update.
6977 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6978 (STATUS_WX86_SINGLE_STEP): New macro.
6979 (EnumProcessModulesEx): New macro.
6980 (Wow64SuspendThread): New macro.
6981 (Wow64GetThreadContext): New macro.
6982 (Wow64SetThreadContext): New macro.
6983 (Wow64GetThreadSelectorEntry): New macro.
6984 (windows_set_context_register_offsets): Add static.
6985 (windows_set_segment_register_p): Likewise.
6986 (windows_add_thread): Adapt for WOW64 processes.
6987 (windows_fetch_one_register): Likewise.
6988 (windows_nat_target::fetch_registers): Likewise.
6989 (windows_store_one_register): Likewise.
6990 (display_selector): Likewise.
6991 (display_selectors): Likewise.
6992 (handle_exception): Likewise.
6993 (windows_continue): Likewise.
6994 (windows_nat_target::resume): Likewise.
6995 (windows_add_all_dlls): Likewise.
6996 (do_initial_windows_stuff): Likewise.
6997 (windows_nat_target::attach): Likewise.
6998 (windows_get_exec_module_filename): Likewise.
6999 (windows_nat_target::create_inferior): Likewise.
7000 (windows_xfer_siginfo): Likewise.
7001 (_initialize_loadable): Initialize Wow64SuspendThread,
7002 Wow64GetThreadContext, Wow64SetThreadContext,
7003 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7004 * windows-nat.h (windows_set_context_register_offsets):
7005 Remove declaration.
7006 (windows_set_segment_register_p): Likewise.
7007 (i386_windows_segment_register_p): Add declaration.
7008 (amd64_windows_segment_register_p): Likewise.
7009
440cf44e
LM
70102020-03-04 Luis Machado <luis.machado@linaro.org>
7011
7012 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7013 in "info registers" for AArch64/ARM.
7014
7015 The change caused "info registers" to not print GPR's.
7016
7017 gdb/ChangeLog:
7018
7019 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7020
7021 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7022 when reg->group is empty and reggroup is not.
7023
1009d92f
TT
70242020-03-03 Tom Tromey <tromey@adacore.com>
7025
7026 * dwarf2/frame.c (struct dwarf2_frame_cache)
7027 <checked_tailcall_bottom, entry_cfa_sp_offset,
7028 entry_cfa_sp_offset_p>: Remove members.
7029 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7030 (dwarf2_frame_prev_register): Don't call
7031 dwarf2_tailcall_sniffer_first.
7032 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7033 * frame-unwind.c (add_unwinder): New fuction.
7034 (frame_unwind_init): Use it. Add tailcall unwinder.
7035
5e5d66b6
AB
70362020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7037 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7038
7039 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7040 value should be printed as true.
7041
584cf46d
HD
70422020-03-03 Hannes Domani <ssbssa@yahoo.de>
7043
7044 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7045 (windows_init_abi): Set and use windows_so_ops.
7046
7b973adc
SDJ
70472020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7048
7049 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7050 when verifying if dealing with a convenience variable.
7051
bb7b70ab
LM
70522020-03-03 Luis Machado <luis.machado@linaro.org>
7053
7054 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7055
9822cb57
SM
70562020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7057
7058 * infrun.c (gdbarch_supports_displaced_stepping): New.
7059 (use_displaced_stepping): Break up conditions in smaller pieces.
7060 Use gdbarch_supports_displaced_stepping.
7061 (displaced_step_prepare_throw): Use
7062 gdbarch_supports_displaced_stepping.
7063
63e163f2
AB
70642020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * NEWS: Mention new behaviour of the history filename.
7067 * top.c (write_history_p): Add comment.
7068 (show_write_history_p): Add header comment, give a different
7069 message when history writing is on, but the history filename is
7070 empty.
7071 (history_filename): Add comment.
7072 (history_filename_empty): New function.
7073 (show_history_filename): Add header comment, give a different
7074 message when the filename is empty.
7075 (init_history): Compare history_filename against nullptr, and only
7076 read history if the filename is not empty.
7077 (set_history_filename): Add header comment, and only make
7078 non-empty filenames absolute.
7079 (init_main): Make the filename argument to 'set history filename'
7080 optional.
7081
81b86b97
CB
70822020-03-02 Christian Biesinger <cbiesinger@google.com>
7083
7084 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7085 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7086 (fetch_fp_register): Update.
7087 (fetch_fp_regs): Update.
7088 (store_fp_register): Update.
7089 (store_fp_regs): Update.
7090 (arm_netbsd_nat_target::read_description): New function.
7091 (fetch_elfcore_registers): Update.
7092
24ed6739
AB
70932020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7094
7095 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7096 general_thread if the stop reply is missing a thread-id.
7097 (remote_target::process_stop_reply): Use the first non-exited
7098 thread if the target didn't pass a thread-id.
7099 * infrun.c (do_target_wait): Move call to
7100 switch_to_inferior_no_thread to ....
7101 (do_target_wait_1): ... here.
7102
a84bb2a0
JT
71032020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7104
7105 * debuginfod-support.c: Include defs.h first.
7106
658dadf0
TV
71072020-02-28 Tom de Vries <tdevries@suse.de>
7108
7109 * symfile.c (set_initial_language): Use default language for lookup.
7110
4ebe4877
SM
71112020-02-28 Simon Marchi <simon.marchi@efficios.com>
7112
7113 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7114 reader variable, pass `this` to read_cutu_die_from_dwo.
7115
e5da1139
AM
71162020-02-27 Aaron Merey <amerey@redhat.com>
7117
7118 * source.c (open_source_file): Check for nullptr when computing
7119 srcpath.
7120
317f7127
TT
71212020-02-27 Tom Tromey <tromey@adacore.com>
7122
7123 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7124 member.
7125 (dwarf2_add_field): Don't update nfields.
7126 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7127
3104d9ee
AB
71282020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7129
7130 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7131 abs.
7132
b83470bf
TT
71332020-02-26 Tom Tromey <tom@tromey.com>
7134
7135 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7136 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7137 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7138 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7139 per_cu_data.
7140
edfe0a0c
TT
71412020-02-26 Tom Tromey <tom@tromey.com>
7142
7143 * dwarf2/index-write.c (psym_index_map): Change type.
7144 (add_address_entry_worker, write_one_signatured_type)
7145 (recursively_count_psymbols, recursively_write_psymbols)
7146 (class debug_names, psyms_seen_size, write_gdbindex)
7147 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7148
0d79cdc4
AM
71492020-02-26 Aaron Merey <amerey@redhat.com>
7150
7151 * Makefile.in: Handle optional debuginfod support.
7152 * NEWS: Update.
7153 * README: Add --with-debuginfod summary.
7154 * config.in: Regenerate.
7155 * configure: Regenerate.
7156 * configure.ac: Handle optional debuginfod support.
7157 * debuginfod-support.c: debuginfod helper functions.
7158 * debuginfod-support.h: Ditto.
7159 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7160 summary.
7161 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7162 when a dwz file cannot be found.
7163 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7164 debuginfo file cannot be found.
7165 * source.c (open_source_file): Query debuginfod servers when a
7166 source file cannot be found.
7167 * top.c (print_gdb_configuration): Include
7168 --{with,without}-debuginfod in the output.
7169
b65ce565
JG
71702020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7171
7172 * thread.c (thr_try_catch_cmd): Print thread name.
7173
d4c9a4f8
SM
71742020-02-26 Simon Marchi <simon.marchi@efficios.com>
7175
7176 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7177 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7178 dwarf2_fetch_die_type_sect_off): Move to...
7179 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7180 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7181 dwarf2_fetch_die_type_sect_off): ... here.
7182 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7183 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7184 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7185
0dce4280
TV
71862020-02-26 Tom de Vries <tdevries@suse.de>
7187
7188 PR gdb/25603
7189 * symfile.c (set_initial_language): Exit-early if
7190 language_mode == language_mode_manual.
7191
450a1bfc
SM
71922020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7195 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7196 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7197
9e80cfa1
AB
71982020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7199
7200 * gdbtypes.c (create_array_type_with_stride): Handle negative
7201 array strides.
7202 * valarith.c (value_subscripted_rvalue): Likewise.
7203
09624f1f
LM
72042020-02-25 Luis Machado <luis.machado@linaro.org>
7205
7206 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7207
8cb5117c
SM
72082020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7209
7210 * loc.h (dwarf2_get_die_type): Move to...
7211 * read.h (dwarf2_get_die_type): ... here.
7212 * read.c (dwarf2_get_die_type): Move doc to header.
7213
c325c44e
JB
72142020-02-25 Joel Brobecker <brobecker@adacore.com>
7215
7216 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7217 'gnulib/Makefile.in' to the list.
7218
4ac93832
TT
72192020-02-24 Tom Tromey <tom@tromey.com>
7220
7221 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7222 Remove.
7223 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7224 XOBNEWVEC.
7225
197400e8
TT
72262020-02-24 Tom Tromey <tom@tromey.com>
7227
7228 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7229 New method.
7230 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7231 (dw2_do_instantiate_symtab, dw2_get_file_names)
7232 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7233
76935768
TT
72342020-02-24 Tom Tromey <tom@tromey.com>
7235
7236 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7237 make_scoped_restore.
7238 (dwarf2_psymtab::read_symtab): Don't clear
7239 reading_partial_symbols.
7240
a88ef40d
TV
72412020-02-24 Tom de Vries <tdevries@suse.de>
7242
7243 PR gdb/25592
7244 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7245
c9af6521
TV
72462020-02-24 Tom de Vries <tdevries@suse.de>
7247
7248 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7249 commands layout next/prev/regs.
7250
5707a07a
TT
72512020-02-22 Tom Tromey <tom@tromey.com>
7252
7253 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7254 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7255
3b0fb49e
TT
72562020-02-22 Tom Tromey <tom@tromey.com>
7257
7258 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7259
283be8bf
TT
72602020-02-22 Tom Tromey <tom@tromey.com>
7261
7262 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7263 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7264 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7265 * tui/tui.c (_initialize_tui): Add usage text.
7266
ca793b96
TT
72672020-02-22 Tom Tromey <tom@tromey.com>
7268
7269 * tui/tui-win.c (tui_set_focus_command)
7270 (tui_set_win_height_command): Use error_no_arg.
7271 (_initialize_tui_win): Update help text.
7272 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7273
432b5c40
TT
72742020-02-22 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7277 * tui/tui-disasm.h (struct tui_disasm_window)
7278 <display_start_addr>: Declare.
7279 * tui/tui-source.h (struct tui_source_window)
7280 <display_start_addr>: Declare.
7281 * tui/tui-winsource.h (struct tui_source_window_base)
7282 <show_source_line, display_start_addr>: New methods.
7283 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7284 Rename and move to protected section.
7285 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7286 (tui_source_window_base::do_erase_source_content): Update.
7287 (tui_source_window_base::show_source_line): Now a method.
7288 (tui_source_window_base::show_source_content)
7289 (tui_source_window_base::tui_source_window_base)
7290 (tui_source_window_base::rerender)
7291 (tui_source_window_base::refill)
7292 (tui_source_window_base::do_scroll_horizontal)
7293 (tui_source_window_base::set_is_exec_point_at)
7294 (tui_source_window_base::update_breakpoint_info)
7295 (tui_source_window_base::update_exec_info): Update.
7296 * tui/tui-source.c (tui_source_window::set_contents)
7297 (tui_source_window::showing_source_p)
7298 (tui_source_window::do_scroll_vertical)
7299 (tui_source_window::location_matches_p)
7300 (tui_source_window::line_is_displayed): Update.
7301 (tui_source_window::display_start_addr): New method.
7302 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7303 (tui_disasm_window::do_scroll_vertical)
7304 (tui_disasm_window::location_matches_p): Update.
7305 (tui_disasm_window::display_start_addr): New method.
7306
01b1af32
TT
73072020-02-22 Tom Tromey <tom@tromey.com>
7308
7309 * NEWS: Add entry for gdb.register_window_type.
7310 * tui/tui-layout.h (window_factory): New typedef.
7311 (tui_register_window): Declare.
7312 * tui/tui-layout.c (saved_tui_windows): New global.
7313 (tui_apply_current_layout): Use it.
7314 (tui_register_window): New function.
7315 * python/python.c (do_start_initialization): Call
7316 gdbpy_initialize_tui.
7317 (python_GdbMethods): Add "register_window_type" function.
7318 * python/python-internal.h (gdbpy_register_tui_window)
7319 (gdbpy_initialize_tui): Declare.
7320 * python/py-tui.c: New file.
7321 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7322
fc96d20b
TT
73232020-02-22 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7326
935c78c0
TT
73272020-02-22 Tom Tromey <tom@tromey.com>
7328
7329 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7330 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7331 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7332 (tui_set_win_focus_to): Move from tui-win.c.
7333
0240c8f1
TT
73342020-02-22 Tom Tromey <tom@tromey.com>
7335
7336 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7337 functions.
7338 (known_window_types): New global.
7339 (tui_get_window_by_name): Reimplement.
7340 (initialize_known_windows): New function.
7341 (validate_window_name): Rewrite.
7342 (_initialize_tui_layout): Call initialize_known_windows.
7343
fdb01f0c
TT
73442020-02-22 Tom Tromey <tom@tromey.com>
7345
7346 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7347 Remove constants.
7348 * tui/tui-winsource.h (struct tui_source_window_base)
7349 <tui_source_window_base>: Remove parameter.
7350 * tui/tui-winsource.c
7351 (tui_source_window_base::tui_source_window_base): Remove
7352 parameter.
7353 (tui_source_window_base::refill): Update.
7354 * tui/tui-stack.h (struct tui_locator_window)
7355 <tui_locator_window>: Update.
7356 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7357 Default the constructor.
7358 * tui/tui-regs.h (struct tui_data_item_window)
7359 <tui_data_item_window>: Default the constructor.
7360 (struct tui_data_window) <tui_data_window>: Likewise.
7361 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7362 Default the constructor.
7363 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7364 Default the constructor.
7365 <type>: Remove.
7366 (struct tui_win_info) <tui_win_info>: Default the constructor.
7367 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7368 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7369 Default the constructor.
7370
865a5aec
TT
73712020-02-22 Tom Tromey <tom@tromey.com>
7372
7373 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7374 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7375 * tui/tui-win.c (tui_resize_all): Don't call
7376 tui_delete_invisible_windows.
7377 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7378 done.
7379 (tui_set_layout): Update.
7380 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7381 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7382 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7383
e098d18c
TT
73842020-02-22 Tom Tromey <tom@tromey.com>
7385
7386 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7387 correctly.
7388
eb9c8874
TT
73892020-02-22 Tom Tromey <tom@tromey.com>
7390
7391 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7392
7eed1a8e
TT
73932020-02-22 Tom Tromey <tom@tromey.com>
7394
7395 * tui/tui-winsource.h (struct tui_source_window_iterator)
7396 <inner_iterator>: New etytypedef.
7397 <tui_source_window_iterator>: Take "end" parameter.
7398 <tui_source_window_iterator>: Take iterator.
7399 <operator*, advance>: Update.
7400 <m_iter>: Change type.
7401 <m_end>: New field.
7402 (struct tui_source_windows) <begin, end>: Update.
7403 * tui/tui-layout.c (tui_windows): New global.
7404 (tui_apply_current_layout): Clear tui_windows.
7405 (tui_layout_window::apply): Update tui_windows.
7406 * tui/tui-data.h (tui_windows): Declare.
7407 (all_tui_windows): Now inline function.
7408 (class tui_window_iterator, struct all_tui_windows): Remove.
7409
7c043ba6
TT
74102020-02-22 Tom Tromey <tom@tromey.com>
7411
7412 PR tui/17850:
7413 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7414 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7415 "height" argument.
7416 (class tui_layout_window) <get_sizes>: Likewise.
7417 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7418 argument.
7419 <get_sizes>: Add "height" argument.
7420 <m_vertical>: New field.
7421 * tui/tui-layout.c (tui_layout_split::clone): Update.
7422 (tui_layout_split::get_sizes): Add "height" argument.
7423 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7424 (tui_new_layout_command): Parse "-horizontal".
7425 (_initialize_tui_layout): Update help string.
7426 (tui_layout_split::specification): Add "-horizontal" when needed.
7427 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7428 argument.
7429 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7430 New methods.
7431
6bc56648
TT
74322020-02-22 Tom Tromey <tom@tromey.com>
7433
7434 * tui/tui-layout.h (enum tui_adjust_result): New.
7435 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7436 (class tui_layout_window) <adjust_size>: Return
7437 tui_adjust_result. Rewrite.
7438 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7439 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7440
c22fef7e
TT
74412020-02-22 Tom Tromey <tom@tromey.com>
7442
7443 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7444 parameter and return types.
7445 (class tui_layout_base) <specification>: Add "depth".
7446 (class tui_layout_window) <specification>: Add "depth".
7447 (class tui_layout_split) <specification>: Add "depth".
7448 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7449 and return types.
7450 (tui_new_layout_command): Parse sub-layouts.
7451 (_initialize_tui_layout): Update help string.
7452 (tui_layout_window::specification): Add "depth".
7453 (add_layout_command): Update.
7454
ee325b61
TT
74552020-02-22 Tom Tromey <tom@tromey.com>
7456
7457 * NEWS: Add "tui new-layout" item.
7458 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7459 Add new-layout command to help text.
7460 (validate_window_name): New function.
7461 (tui_new_layout_command): New function.
7462 (_initialize_tui_layout): Register "new-layout".
7463 (tui_layout_window::specification): New method.
7464 (tui_layout_window::specification): New method.
7465 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7466 method.
7467 (class tui_layout_window) <specification>: New method.
7468 (class tui_layout_split) <specification>: New method.
7469
416eb92d
TT
74702020-02-22 Tom Tromey <tom@tromey.com>
7471
7472 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7473 * tui/tui-win.c (window_name_completer): Update comment.
7474 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7475 Declare method.
7476 (class tui_layout_window) <replace_window>: Likewise.
7477 (class tui_layout_split) <replace_window>: Likewise.
7478 (tui_set_layout): Don't declare.
7479 (tui_set_initial_layout): Declare function.
7480 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7481 (asm_regs_layout): New globals.
7482 (tui_current_layout, show_layout): Remove.
7483 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7484 (find_layout, tui_apply_layout): New function.
7485 (layout_completer): Remove.
7486 (tui_next_layout): Reimplement.
7487 (tui_next_layout_command): New function.
7488 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7489 (tui_regs_layout): Reimplement.
7490 (tui_regs_layout_command): New function.
7491 (extract_display_start_addr): Rewrite.
7492 (next_layout, prev_layout): Remove.
7493 (tui_layout_window::replace_window): New method.
7494 (tui_layout_split::replace_window): New method.
7495 (destroy_layout): New function.
7496 (layout_list): New global.
7497 (add_layout_command): New function.
7498 (initialize_layouts): Update.
7499 (tui_layout_command): New function.
7500 (_initialize_tui_layout): Install "layout" commands.
7501 * tui/tui-data.h (enum tui_layout_type): Remove.
7502 (tui_current_layout): Don't declare.
7503
0dbc2fc7
TT
75042020-02-22 Tom Tromey <tom@tromey.com>
7505
7506 * tui/tui-regs.c (tui_reg_layout): Remove.
7507 (tui_reg_command): Use tui_regs_layout.
7508 * tui/tui-layout.h (tui_reg_command): Declare.
7509 * tui/tui-layout.c (tui_reg_command): New function.
7510
5afe342e
TT
75112020-02-22 Tom Tromey <tom@tromey.com>
7512
7513 * tui/tui.c (tui_rl_delete_other_windows): Call
7514 tui_remove_some_windows.
7515 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7516 Declare method.
7517 (class tui_layout_window) <remove_windows>: New method.
7518 (class tui_layout_split) <remove_windows>: Declare.
7519 (tui_remove_some_windows): Declare.
7520 * tui/tui-layout.c (tui_remove_some_windows): New function.
7521 (tui_layout_split::remove_windows): New method.
7522
427326a8
TT
75232020-02-22 Tom Tromey <tom@tromey.com>
7524
7525 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7526 * tui/tui-layout.h (tui_next_layout): Declare.
7527 * tui/tui-layout.c (tui_next_layout): New function.
7528
3fe12b6d
TT
75292020-02-22 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7532 correct coordinates.
7533
59b8b5d2
TT
75342020-02-22 Tom Tromey <tom@tromey.com>
7535
7536 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7537 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7538 DATA_WIN case.
7539
2a3d458b
TT
75402020-02-22 Tom Tromey <tom@tromey.com>
7541
7542 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7543 TUI_DISASM_WIN, not tui_win_list.
7544
3f0cbb04
TT
75452020-02-22 Tom Tromey <tom@tromey.com>
7546
7547 * valprint.c (generic_val_print_enum_1)
7548 (val_print_type_code_flags): Style member names.
7549 * rust-lang.c (val_print_struct, rust_print_enum)
7550 (rust_print_struct_def, rust_internal_print_type): Style member
7551 names.
7552 * p-valprint.c (pascal_object_print_value_fields): Style member
7553 names. Only call fprintf_symbol_filtered for static members.
7554 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7555 * f-valprint.c (f_val_print): Style member names.
7556 * f-typeprint.c (f_type_print_base): Style member names.
7557 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7558 call fprintf_symbol_filtered for static members.
7559 (cp_print_class_member): Style member names.
7560 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7561 member names.
7562 * ada-valprint.c (ada_print_scalar): Style enum names.
7563 (ada_val_print_enum): Likewise.
7564 * ada-typeprint.c (print_enum_type): Style enum names.
7565
d4d947ae
TT
75662020-02-21 Tom Tromey <tom@tromey.com>
7567
7568 * psympriv.h (struct partial_symtab): Update comment.
7569
e94e944b
TT
75702020-02-21 Tom Tromey <tromey@adacore.com>
7571
7572 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7573 type is CORE_ADDR.
7574
1eb73179
TV
75752020-02-21 Tom de Vries <tdevries@suse.de>
7576
7577 PR gdb/25534
7578 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7579 if dependencies[i]->user != NULL.
7580
4f180d53
AT
75812020-02-21 Ali Tamur <tamur@google.com>
7582
7583 * dwarf2/read.c (dwarf2_name): Add null check.
7584
22b6cd70
TT
75852020-02-20 Tom Tromey <tom@tromey.com>
7586
7587 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7588 ">=", in binary search.
7589 (dwarf2_find_containing_comp_unit): New overload.
7590 (run_test): New self-test.
7591 (_initialize_dwarf2_read): Register new test.
7592
bd0cf5a6
NC
75932020-02-20 Nelson Chu <nelson.chu@sifive.com>
7594
7595 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7596 * riscv-tdep.h: Likewise.
7597 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7598 rv32-only CSR.
7599 * features/riscv/64bit-csr.xml: Regenerated.
7600
3f702acd
SDJ
76012020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7602 Tom Tromey <tom@tromey.com>
7603
7604 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7605 of 'fputc_unfiltered'.
7606 (putchar_unfiltered): Call 'fputc_unfiltered'.
7607 (fputc_unfiltered): Call 'fputs_unfiltered'.
7608
d13c7322
AB
76092020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * config.in: Regenerate.
7612 * configure: Regenerate.
7613 * configure.ac: Add --with-python-libdir option.
7614 * main.c: Use WITH_PYTHON_LIBDIR.
7615
869d8950
TT
76162020-02-19 Tom Tromey <tom@tromey.com>
7617
7618 * symtab.c (general_symbol_info::compute_and_set_names): Use
7619 obstack_strndup. Simplify call to symbol_set_demangled_name.
7620
298e9637
SM
76212020-02-19 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * dwarf2/read.c (allocate_signatured_type_table,
7624 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7625 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7626 Remove objfile parameter, update all callers.
7627
08410482
DE
76282020-02-19 Doug Evans <dje@google.com>
7629
7630 PR rust/25535
7631 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7632 rust_enum_variant calculation.
7633
dfdeeca1
TT
76342020-02-19 Tom Tromey <tromey@adacore.com>
7635
7636 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7637
2ef5453b
TT
76382020-02-19 Tom Tromey <tromey@adacore.com>
7639
7640 * ada-lang.c (cache_symbol): Use obstack_strdup.
7641
9f1528a1
AB
76422020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7643
7644 * configure: Regenerate.
7645
d3c22fa8
TT
76462020-02-19 Tom Tromey <tromey@adacore.com>
7647
7648 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7649 NULL check.
7650
bf84f706
MR
76512020-02-19 Maciej W. Rozycki <macro@wdc.com>
7652
7653 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7654
d1c9b20f
AB
76552020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7656
7657 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7658 if GDBSERVER is not defined.
7659 (riscv_tdesc_cache): Likewise, also store const target_desc.
7660 (STATIC_IN_GDB): Define.
7661 (riscv_create_target_description): Update declaration with
7662 STATIC_IN_GDB.
7663 (riscv_lookup_target_description): New function, only define if
7664 GDBSERVER is not defined.
7665 * arch/riscv.h (riscv_create_target_description): Declare only
7666 when GDBSERVER is defined.
7667 (riscv_lookup_target_description): New declaration when GDBSERVER
7668 is not defined.
7669 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7670 (riscv_linux_read_features): ...this, and return
7671 riscv_gdbarch_features instead of target_desc.
7672 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7673 (riscv_linux_read_description): Rename to...
7674 (riscv_linux_read_features): ...this.
7675 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7676 Update to use riscv_gdbarch_features and
7677 riscv_lookup_target_description.
7678 * riscv-tdep.c (riscv_find_default_target_description): Use
7679 riscv_lookup_target_description instead of
7680 riscv_create_target_description.
7681
373d7ac0
SM
76822020-02-18 Simon Marchi <simon.marchi@efficios.com>
7683
7684 * valprint.c (generic_val_print_enum_1): When printing a flag
7685 enum with value 0 and there is no enumerator with value 0, print
7686 just "0" instead of "(unknown: 0x0)".
7687
b29a2df0
SM
76882020-02-18 Simon Marchi <simon.marchi@efficios.com>
7689
7690 * valprint.c (generic_val_print_enum_1): Print unknown part of
7691 flag enum in hex.
7692
6740f0cc
SM
76932020-02-18 Simon Marchi <simon.marchi@efficios.com>
7694
7695 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7696 flag enums to contain duplicate enumerators.
7697 * valprint.c (generic_val_print_enum_1): Update comment.
7698
edd45eb0
SM
76992020-02-18 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * dwarf2/read.c: Include "count-one-bits.h".
7702 (update_enumeration_type_from_children): If an enumerator has
7703 multiple bits set, don't treat the enumeration as a "flag enum".
7704 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7705 of flag enums have 0 or 1 bit set.
7706
6d0cf446
BE
77072020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7708
7709 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7710 conversion.
7711 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7712 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7713 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7714 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7715 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7716
7001c1b7
SM
77172020-02-18 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7720
fdb61c6c
SM
77212020-02-14 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7724 displaced_step_closure_up.
7725 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7726 (struct displaced_step_closure_up):
7727 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7728 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7729 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7730 Likewise.
7731 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7732 * gdbarch.c, gdbarch.h: Re-generate.
7733 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7734 displaced_step_closure_up.
7735 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7736 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7737 * infrun.h (displaced_step_closure_up): New type alias.
7738 (struct displaced_step_inferior_state) <step_closure>: Change
7739 type to displaced_step_closure_up.
7740 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7741 displaced_step_closure_up.
7742 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7743
a4a38eb4
TT
77442020-02-14 Tom Tromey <tom@tromey.com>
7745
7746 * minidebug.c (gnu_debug_key): New global.
7747 (find_separate_debug_file_in_section): Use it.
7748
e8217e61
SM
77492020-02-14 Simon Marchi <simon.marchi@efficios.com>
7750
7751 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7752 std::unique_ptr.
7753 * gdbarch.c: Re-generate.
7754 * gdbarch.h: Re-generate.
7755 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7756 change.
7757 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7758 type to std::unique_ptr.
7759 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7760 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7761 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7762 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7763 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7764 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7765 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7766 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7767 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7768
d8d83535
SM
77692020-02-14 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7772 std::unique_ptr.
7773 (displaced_step_clear): Rename to...
7774 (displaced_step_reset): ... this. Just call displaced->reset ().
7775 (displaced_step_clear_cleanup): Rename to...
7776 (displaced_step_reset_cleanup): ... this.
7777 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7778 (displaced_step_fixup): Likewise.
7779 (resume_1): Likewise.
7780 (handle_inferior_event): Restore child's memory before calling
7781 displaced_step_fixup on the parent.
7782 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7783 to std::unique_ptr.
7784 <step_closure>: Change type to std::unique_ptr.
7785
5f661e03
SM
77862020-02-14 Simon Marchi <simon.marchi@efficios.com>
7787
7788 * arm-tdep.c: Include count-one-bits.h.
7789 (cleanup_block_store_pc): Use count_one_bits.
7790 (cleanup_block_load_pc): Use count_one_bits.
7791 (arm_copy_block_xfer): Use count_one_bits.
7792 (thumb2_copy_block_xfer): Use count_one_bits.
7793 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7794 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7795 (thumb_get_next_pcs_raw): Use count_one_bits.
7796 (arm_get_next_pcs_raw): Use count_one_bits_l.
7797 * arch/arm.c (bitcount): Remove.
7798 * arch/arm.h (bitcount): Remove.
7799
8084e579
TT
78002020-02-14 Tom Tromey <tromey@adacore.com>
7801
7802 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7803 Update.
7804 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7805 * dwarf2/loc.c (call_site_find_chain_1): Return
7806 unique_xmalloc_ptr.
7807 (call_site_find_chain): Likewise.
7808
258bf0ee
RB
78092020-02-14 Richard Biener <rguenther@suse.de>
7810
7811 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7812 on expression with division operators.
7813
f98a8458
AKS
78142020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7815
7816 * MAINTAINERS (Write After Approval): Adding myself.
7817
d1437c0e
TT
78182020-02-12 Tom Tromey <tom@tromey.com>
7819
7820 * event-loop.c (event_data, gdb_event, event_handler_func):
7821 Remove.
7822
3d4560f7
TT
78232020-02-12 Tom Tromey <tom@tromey.com>
7824
7825 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7826 (dwarf2_frame_objfile_data): Add comment.
7827 (find_comp_unit, set_comp_unit): New functions.
7828 (dwarf2_frame_find_fde): Use find_comp_unit.
7829 (dwarf2_build_frame_info): Use set_comp_unit.
7830
21982304
TT
78312020-02-12 Tom Tromey <tom@tromey.com>
7832
7833 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7834 (comp_unit): Don't initialize objfile.
7835 (execute_cfa_program): Add text_offset parameter.
7836 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7837 (dwarf2_frame_cache): Update.
7838 (dwarf2_build_frame_info): Don't set "objfile" member.
7839
4debb237
TT
78402020-02-12 Tom Tromey <tom@tromey.com>
7841
7842 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7843 (decode_frame_entry): Likewise.
7844 (dwarf2_build_frame_info): Update.
7845
0d404d44
TT
78462020-02-12 Tom Tromey <tom@tromey.com>
7847
7848 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7849 (decode_frame_entry_1): Use the comp_unit obstack.
7850
a7a3ae5c
TT
78512020-02-12 Tom Tromey <tom@tromey.com>
7852
7853 * dwarf2/frame.c (struct comp_unit): Add initializers and
7854 constructor.
7855 (dwarf2_frame_objfile_data): Store a comp_unit.
7856 (dwarf2_frame_find_fde): Update.
7857 (dwarf2_build_frame_info): Use "new".
7858
a9d65418
TT
78592020-02-12 Tom Tromey <tom@tromey.com>
7860
7861 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7862 (dwarf2_fde_table): Typedef for std::vector.
7863 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7864 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7865 (decode_frame_entry): Update.
7866 (dwarf2_build_frame_info): Use "new".
7867
7559c217
CB
78682020-02-12 Christian Biesinger <cbiesinger@google.com>
7869
7870 * arm-tdep.c (arm_gdbarch_init): Update.
7871 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7872 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7873 have_neon, is_m>: Change to bool.
7874
aeefc73c
CB
78752020-02-12 Christian Biesinger <cbiesinger@google.com>
7876
7877 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7878
d27b8e5f
TT
78792020-02-12 Tom Tromey <tom@tromey.com>
7880
7881 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7882
cd5900f3
HD
78832020-02-12 Hannes Domani <ssbssa@yahoo.de>
7884
7885 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7886 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7887
f056b22b
TT
78882020-02-11 Tom Tromey <tom@tromey.com>
7889
7890 * psymtab.h: Update comment.
7891
f92ff6b5
TT
78922020-02-11 Tom Tromey <tom@tromey.com>
7893
7894 * gdb_obstack.h (struct auto_obstack): Use
7895 DISABLE_COPY_AND_ASSIGN.
7896
3fd6912b
TT
78972020-02-11 Tom Tromey <tom@tromey.com>
7898
7899 * dwarf2/frame.h (struct objfile): Don't forward declare.
7900
69ed9b74
CB
79012020-02-11 Christian Biesinger <cbiesinger@google.com>
7902
7903 * cris-tdep.c (cris_supply_gregset): Change signature to match
7904 what struct regset expects.
7905 (cris_regset): New struct.
7906 (fetch_core_registers): Remove.
7907 (cris_iterate_over_regset_sections): New function.
7908 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7909 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7910
bda874f6
CB
79112020-02-11 Christian Biesinger <cbiesinger@google.com>
7912
7913 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7914 registers.
7915
754e1564
CB
79162020-02-11 Christian Biesinger <cbiesinger@google.com>
7917
7918 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7919
8ddd8e0e
SM
79202020-02-11 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * configure: Re-generate.
7923
898e7f60
SM
79242020-02-11 Simon Marchi <simon.marchi@efficios.com>
7925
7926 * configure: Re-generate.
7927
58df732b
SM
79282020-02-11 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * acinclude: Update warning.m4 path.
7931 * warning.m4: Move to gdbsupport.
7932
da5bd37e
TT
79332020-02-11 Tom Tromey <tromey@adacore.com>
7934
7935 * remote.c (remote_console_output): Update.
7936 * printcmd.c (printf_command): Update.
7937 * event-loop.c (gdb_wait_for_event): Update.
7938 * linux-nat.c (sigchld_handler): Update.
7939 * remote-sim.c (gdb_os_write_stdout): Update.
7940 (gdb_os_flush_stdout): Update.
7941 (gdb_os_flush_stderr): Update.
7942 (gdb_os_write_stderr): Update.
7943 * exceptions.c (print_exception): Update.
7944 * remote-fileio.c (remote_fileio_func_read): Update.
7945 (remote_fileio_func_write): Update.
7946 * tui/tui.c (tui_enable): Update.
7947 * tui/tui-interp.c (tui_interp::init): Update.
7948 * utils.c (init_page_info): Update.
7949 (putchar_unfiltered, fputc_unfiltered): Update.
7950 (gdb_flush): Update.
7951 (emit_style_escape): Update.
7952 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7953 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7954 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7955 (stderr_file::write): Update.
7956 (stderr_file::puts): Update.
7957 * ui-file.h (ui_file_isatty, ui_file_write)
7958 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7959 (ui_file_puts): Don't declare.
7960
85f0dd3c
TV
79612020-02-10 Tom de Vries <tdevries@suse.de>
7962
7963 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7964 sentinel to char *.
7965
2e927613
TV
79662020-02-09 Tom de Vries <tdevries@suse.de>
7967
7968 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7969 filename if it matches "<artificial>".
7970
6bafc845
HD
79712020-02-09 Hannes Domani <ssbssa@yahoo.de>
7972
7973 * windows-tdep.c (struct enum_value_name): New struct.
7974 (create_enum): New function.
7975 (windows_get_siginfo_type): Create and use enum types.
7976
7928d571
HD
79772020-02-09 Hannes Domani <ssbssa@yahoo.de>
7978
7979 * NEWS: Mention $_siginfo support for Windows.
7980 * windows-nat.c (handle_exception): Set siginfo_er.
7981 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7982 (windows_xfer_siginfo): New function.
7983 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7984 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7985 (init_windows_gdbarch_data): New function.
7986 (get_windows_gdbarch_data): New function.
7987 (windows_get_siginfo_type): New function.
7988 (windows_init_abi): Register windows_get_siginfo_type.
7989 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7990
6751ebae
TT
79912020-02-08 Tom Tromey <tom@tromey.com>
7992
7993 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7994 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7995 <keep>: Declare method.
7996 <m_keep>: Remove member.
7997 <~cutu_reader>: Remove.
7998 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7999 (cutu_reader::cutu_reader): Update.
8000 (cutu_reader::keep): Rename from ~cutu_reader.
8001 (process_psymtab_comp_unit, build_type_psymtabs_1)
8002 (process_skeletonless_type_unit, load_partial_comp_unit)
8003 (load_full_comp_unit, dwarf2_read_addr_index)
8004 (read_signatured_type): Update.
8005
135f5437
TT
80062020-02-08 Tom Tromey <tom@tromey.com>
8007
8008 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8009 "want_partial_unit" parameter.
8010 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8011 Inline check for DW_TAG_partial_unit.
8012 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8013
9f66ff1c
TT
80142020-02-08 Tom Tromey <tom@tromey.com>
8015
8016 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8017 read.c.
8018 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8019 read.c.
8020
c8a7a66f
TT
80212020-02-08 Tom Tromey <tom@tromey.com>
8022
8023 * dwarf2/read.c (read_address): Move to comp-unit.c.
8024 (dwarf2_rnglists_process, dwarf2_ranges_process)
8025 (read_attribute_value, dwarf_decode_lines_1)
8026 (var_decode_location, decode_locdesc): Update.
8027 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8028 read.c. Remove "cu" parameter.
8029 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8030 method.
8031
8266302d
TT
80322020-02-08 Tom Tromey <tom@tromey.com>
8033
8034 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8035 (read_indirect_line_string): Update.
8036 * dwarf2/comp-unit.c (read_offset): Remove.
8037 (read_comp_unit_head): Update.
8038 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8039 method.
8040 (read_offset): Don't declare.
8041
4057dfde
TT
80422020-02-08 Tom Tromey <tom@tromey.com>
8043
8044 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8045 * dwarf2/read.c (struct comp_unit_head): Move to
8046 dwarf2/comp-unit.h.
8047 (enum class rcuh_kind): Move to comp-unit.h.
8048 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8049 (read_comp_unit_head, error_check_comp_unit_head)
8050 (read_and_check_comp_unit_head): Move to comp-unit.c.
8051 (read_offset, dwarf_unit_type_name): Likewise.
8052 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8053 (cutu_reader::cutu_reader, read_call_site_scope)
8054 (find_partial_die, follow_die_offset): Update.
8055 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8056
24aa364d
TT
80572020-02-08 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/read.c (read_offset_1): Move to leb.c.
8060 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8061 (dwarf_decode_macro_bytes): Update.
8062 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8063 * dwarf2/leb.h (read_offset): Declare.
8064
2c7d5afc
TT
80652020-02-08 Tom Tromey <tom@tromey.com>
8066
8067 * dwarf2/read.c (dwarf2_section_size): Remove.
8068 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8069 Update.
8070 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8071
4075cb26
TT
80722020-02-08 Tom Tromey <tom@tromey.com>
8073
8074 * dwarf2/read.c (read_initial_length): Move to leb.c.
8075 * dwarf2/leb.h (read_initial_length): Declare.
8076 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8077 handle_nonstd parameter.
8078 * dwarf2/frame.c (read_initial_length): Remove.
8079 (decode_frame_entry_1): Update.
8080
09ba997f
TT
80812020-02-08 Tom Tromey <tom@tromey.com>
8082
8083 * dwarf2/loc.c (dwarf2_find_location_expression)
8084 (dwarf_evaluate_loc_desc::get_tls_address)
8085 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8086 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8087 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8088 (dwarf2_compile_property_to_c)
8089 (dwarf2_loc_desc_get_symbol_read_needs)
8090 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8091 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8092 (loclist_describe_location, loclist_tracepoint_var_ref)
8093 (loclist_generate_c_location): Update.
8094 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8095 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8096 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8097 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8098 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8099 (dwarf2_per_cu_data::addr_size)
8100 (dwarf2_per_cu_data::ref_addr_size)
8101 (dwarf2_per_cu_data::text_offset)
8102 (dwarf2_per_cu_data::addr_type): Now methods.
8103 (per_cu_header_read_in): Make per_cu "const".
8104 (dwarf2_version): Remove.
8105 (dwarf2_per_cu_data::int_type): Now a method.
8106 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8107 (set_die_type, read_array_type, read_subrange_index_type)
8108 (read_tag_string_type, read_subrange_type): Update.
8109 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8110 offset_size, ref_addr_size, text_offset, addr_type, version,
8111 objfile, int_type, addr_sized_int_type>: Declare methods.
8112
96c738c0
TT
81132020-02-08 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8116 Move earlier.
8117
8fdd972c
TT
81182020-02-08 Tom Tromey <tom@tromey.com>
8119
8120 * dwarf2/read.h (dwarf_line_debug): Declare.
8121 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8122 * dwarf2/read.c: Move line_header code to new files.
8123 (dwarf_line_debug): No longer static.
8124 * dwarf2/line-header.c: New file.
8125 * dwarf2/line-header.h: New file.
8126
03075812
TT
81272020-02-08 Tom Tromey <tom@tromey.com>
8128
8129 * dwarf2/read.c (struct line_header) <file_full_name,
8130 file_file_name>: Return unique_xmalloc_ptr.
8131 (line_header::file_file_name): Update.
8132 (line_header::file_full_name): Update.
8133 (dw2_get_file_names_reader): Update.
8134 (macro_start_file): Update.
8135
bb822404
TT
81362020-02-08 Tom Tromey <tom@tromey.com>
8137
8138 * dwarf2/read.c (struct line_header) <file_full_name,
8139 file_file_name>: Declare methods.
8140 (dw2_get_file_names_reader): Update.
8141 (file_file_name): Now a method.
8142 (file_full_name): Likewise.
8143 (macro_start_file): Update.
8144
009b64fc
TT
81452020-02-08 Tom Tromey <tom@tromey.com>
8146
8147 * dwarf2/read.c (dwarf_always_disassemble)
8148 (show_dwarf_always_disassemble): Move to loc.c.
8149 (_initialize_dwarf2_read): Move "always-disassemble" registration
8150 to loc.c.
8151 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8152 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8153 static.
8154 (show_dwarf_always_disassemble): Move from read.c.
8155 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8156
5895093f
TT
81572020-02-08 Tom Tromey <tom@tromey.com>
8158
8159 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8160 (create_quick_file_names_table): Return htab_up.
8161 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8162 Update.
8163 * dwarf2/read.h (struct dwarf2_per_objfile)
8164 <quick_file_names_table>: Now htab_up.
8165
b3b32279
TT
81662020-02-08 Tom Tromey <tom@tromey.com>
8167
8168 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8169
1d33d811
TT
81702020-02-08 Tom Tromey <tom@tromey.com>
8171
8172 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8173 Rewrite.
8174 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8175 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8176 (abbrev_table::abbrev_table): No longer inline.
8177 (ABBREV_HASH_SIZE): Remove.
8178 (abbrev_table::m_abbrevs): Now an htab_up.
8179
86de1d91
TT
81802020-02-08 Tom Tromey <tom@tromey.com>
8181
8182 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8183 (cutu_reader): Update.
8184 (build_type_psymtabs_1): Update.
8185 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8186 (abbrev_table::alloc_abbrev): Update.
8187 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8188 (abbrev_table::read): New static method, renamed from
8189 abbrev_table_read_table.
8190 (abbrev_table::alloc_abbrev)
8191 (abbrev_table::add_abbrev): Now private.
8192 (abbrev_table::abbrev_table): Now private.
8193 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8194
0335378b
TT
81952020-02-08 Tom Tromey <tom@tromey.com>
8196
8197 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8198 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8199 htab_up.
8200
48b490f2
TT
82012020-02-08 Tom Tromey <tom@tromey.com>
8202
8203 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8204 htab_up.
8205 (lookup_dwo_unit_in_dwp): Update.
8206 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8207 on obstack.
8208
bc68fb19
TT
82092020-02-08 Tom Tromey <tom@tromey.com>
8210
8211 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8212 obstack.
8213
d15acc42
TT
82142020-02-08 Tom Tromey <tom@tromey.com>
8215
8216 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8217 line_header_hash.
8218 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8219 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8220 Change type to htab_up.
8221
eaa5fa8b
TT
82222020-02-08 Tom Tromey <tom@tromey.com>
8223
8224 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8225 htab_up. Don't allocate on obstack.
8226 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8227 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8228 Change type to htab_up.
8229
b0b6a987
TT
82302020-02-08 Tom Tromey <tom@tromey.com>
8231
8232 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8233 Change type to htab_up.
8234 * dwarf2/read.c (create_signatured_type_table_from_index)
8235 (create_signatured_type_table_from_debug_names)
8236 (create_all_type_units, add_type_unit)
8237 (lookup_dwo_signatured_type, lookup_signatured_type)
8238 (process_skeletonless_type_unit): Update.
8239 (create_debug_type_hash_table, create_debug_types_hash_table):
8240 Change type of types_htab.
8241 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8242 htab_up. Don't allocate on obstack.
8243 (create_cus_hash_table): Change type of cus_htab parameter.
8244 (struct dwo_file) <cus, tus>: Now htab_up.
8245 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8246 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8247 (queue_and_load_all_dwo_tus): Update.
8248 * dwarf2/index-write.c (write_gdbindex): Update.
8249 (write_debug_names): Update.
8250
39856def
TT
82512020-02-08 Tom Tromey <tom@tromey.com>
8252
8253 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8254 dwarf2/read.c. Remove "next" member. Add constructor ntad
8255 destructor.
8256 (struct dwarf2_per_objfile) <queue>: New member.
8257 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8258 dwarf2/read.h.
8259 (dwarf2_queue, dwarf2_queue_tail): Remove.
8260 (class dwarf2_queue_guard): Add parameter to constructor. Use
8261 DISABLE_COPY_AND_ASSIGN.
8262 <m_per_objfile>: New member.
8263 <~dwarf2_queue_guard>: Rewrite.
8264 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8265 Update.
8266 (~dwarf2_queue_item): New.
8267
3e225074
TT
82682020-02-08 Tom Tromey <tom@tromey.com>
8269
8270 * dwarf2/read.c (struct die_info) <has_children>: New member.
8271 (dw2_get_file_names_reader): Remove has_children.
8272 (dw2_get_file_names): Update.
8273 (read_cutu_die_from_dwo): Remove has_children.
8274 (cutu_reader::init_tu_and_read_dwo_dies)
8275 (cutu_reader::cutu_reader): Update.
8276 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8277 Remove has_children.
8278 (build_type_psymtabs_1, process_skeletonless_type_unit)
8279 (load_partial_comp_unit, load_full_comp_unit): Update.
8280 (create_dwo_cu_reader): Remove has_children.
8281 (create_cus_hash_table, read_die_and_children): Update.
8282 (read_full_die_1,read_full_die): Remove has_children.
8283 (read_signatured_type): Update.
8284 (class cutu_reader) <has_children>: Remove.
8285
82ca8957
TT
82862020-02-08 Tom Tromey <tom@tromey.com>
8287
8288 * dwarf2/expr.c: Rename from dwarf2expr.c.
8289 * dwarf2/expr.h: Rename from dwarf2expr.h.
8290 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8291 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8292 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8293 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8294 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8295 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8296 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8297 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8298 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8299 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8300 * dwarf2/loc.c: Rename from dwarf2loc.c.
8301 * dwarf2/loc.h: Rename from dwarf2loc.h.
8302 * dwarf2/read.c: Rename from dwarf2read.c.
8303 * dwarf2/read.h: Rename from dwarf2read.h.
8304 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8305 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8306 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8307 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8308 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8309 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8310 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8311 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8312 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8313 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8314 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8315 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8316 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8317 Update.
8318 * Makefile.in (COMMON_SFILES): Update.
8319 (HFILES_NO_SRCDIR): Update.
8320
9e35d499
TT
83212020-02-08 Tom Tromey <tom@tromey.com>
8322
8323 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8324 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8325
1eba2311
TT
83262020-02-08 Tom Tromey <tom@tromey.com>
8327
8328 * dwarf2read.h (struct die_info): Don't declare.
8329
e41c2da2
TT
83302020-02-08 Tom Tromey <tom@tromey.com>
8331
8332 * dwarf2read.h (die_info_ptr): Remove typedef.
8333
4fc6c0d5
TT
83342020-02-08 Tom Tromey <tom@tromey.com>
8335
8336 * dwarf2read.c (read_call_site_scope)
8337 (handle_data_member_location, dwarf2_add_member_fn)
8338 (mark_common_block_symbol_computed, read_common_block)
8339 (attr_to_dynamic_prop, partial_die_info::read)
8340 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8341 (dwarf2_symbol_mark_computed, set_die_type): Update.
8342 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8343 method.
8344 (attr_form_is_block): Don't declare.
8345 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8346
cd6c91b4
TT
83472020-02-08 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2read.c (dwarf2_find_base_address, )
8350 (read_call_site_scope, rust_containing_type)
8351 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8352 (handle_data_member_location, dwarf2_add_member_fn)
8353 (get_alignment, read_structure_type, process_structure_scope)
8354 (mark_common_block_symbol_computed, read_common_block)
8355 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8356 (partial_die_info::read, read_attribute_value, new_symbol)
8357 (lookup_die_type, dwarf2_get_ref_die_offset)
8358 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8359 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8360 (dwarf2_symbol_mark_computed): Update.
8361 * dwarf2/attribute.h (struct attribute) <value_as_address,
8362 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8363 methods.
8364 (value_as_address, attr_form_is_section_offset)
8365 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8366 * dwarf2/attribute.c (attribute::value_as_address)
8367 (attribute::form_is_section_offset, attribute::form_is_constant)
8368 (attribute::form_is_ref): Now methods.
8369
162dce55
TT
83702020-02-08 Tom Tromey <tom@tromey.com>
8371
8372 * dwarf2read.c (struct attribute, DW_STRING)
8373 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8374 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8375 (attr_form_is_block, attr_form_is_section_offset)
8376 (attr_form_is_constant, attr_form_is_ref): Move.
8377 * dwarf2/attribute.h: New file.
8378 * dwarf2/attribute.c: New file, from dwarf2read.c.
8379 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8380
3054dd54
TT
83812020-02-08 Tom Tromey <tom@tromey.com>
8382
8383 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8384 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8385 Move.
8386 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8387 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8388 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8389 abbrev.c.
8390 * dwarf2/abbrev.h: New file.
8391 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8392 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8393
96b79293
TT
83942020-02-08 Tom Tromey <tom@tromey.com>
8395
8396 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8397 (dwarf2_section_size, dwarf2_get_section_info)
8398 (create_signatured_type_table_from_debug_names)
8399 (create_addrmap_from_aranges, read_debug_names_from_section)
8400 (get_gdb_index_contents_from_section, read_comp_unit_head)
8401 (error_check_comp_unit_head, read_abbrev_offset)
8402 (create_debug_type_hash_table, init_cu_die_reader)
8403 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8404 (read_comp_units_from_section, create_cus_hash_table)
8405 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8406 (create_dwp_v2_section, dwarf2_rnglists_process)
8407 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8408 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8409 (read_indirect_string_from_dwz, read_addr_index_1)
8410 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8411 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8412 (fill_in_loclist_baton): Update.
8413 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8414 get_containing_section, get_bfd_owner, get_bfd_section,
8415 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8416 (dwarf2_read_section, get_section_name, get_section_file_name)
8417 (get_containing_section, get_section_bfd_owner)
8418 (get_section_bfd_section, get_section_name, get_section_file_name)
8419 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8420 declare.
8421 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8422 (dwarf2_section_info::get_bfd_owner)
8423 (dwarf2_section_info::get_bfd_section)
8424 (dwarf2_section_info::get_name)
8425 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8426 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8427 (dwarf2_section_info::read): Now methods.
8428 * dwarf-index-write.c (class debug_names): Update.
8429
2c86cff9
TT
84302020-02-08 Tom Tromey <tom@tromey.com>
8431
8432 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8433 Move to dwarf2/section.h.
8434 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8435 (get_section_bfd_section, get_section_name)
8436 (get_section_file_name, get_section_id, get_section_flags)
8437 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8438 dwarf2/section.c.
8439 * dwarf2/section.h: New file.
8440 * dwarf2/section.c: New file, from dwarf2read.c.
8441 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8442
f4382c45
TT
84432020-02-08 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8446 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8447 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8448 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8449 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8450 * dwarf2/leb.h: New file, from dwarf2read.c.
8451 * dwarf2/leb.c: New file, from dwarf2read.c.
8452 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8453 Remove.
8454 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8455 (COMMON_SFILES): Add dwarf2/leb.c.
8456
01840b7a
JB
84572020-02-08 Joel Brobecker <brobecker@adacore.com>
8458
8459 GDB 9.1 released.
8460
dfcb27e4
IB
84612020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8462
8463 PR gdb/25190:
aac66a4c
SM
8464 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8465 * gdb/remote.c (remote_console_output): Update.
8466 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8467 (ui_file_puts): ...this.
8468 * gdb/ui-file.h (ui_file_puts): Add declaration.
8469 * gdb/utils.c (emit_style_escape): Update.
8470 (flush_wrap_buffer): Update.
8471 (fputs_maybe_filtered): Update.
8472 (fputs_unfiltered): Add function.
dfcb27e4 8473
faa17681
IB
84742020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8475
aac66a4c
SM
8476 * gdb/event-loop.c (gdb_wait_for_event): Update.
8477 * gdb/printcmd.c (printf_command): Update.
8478 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8479 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8480 (gdb_os_flush_stderr): Update.
8481 * gdb/remote.c (remote_console_output): Update.
8482 * gdb/ui-file.c (gdb_flush): Rename to...
8483 (ui_file_flush): ...this.
8484 (stderr_file::write): Update.
8485 (stderr_file::puts): Update.
8486 * gdb/ui-file.h (gdb_flush): Rename to...
8487 (ui_file_flush): ...this.
8488 * gdb/utils.c (gdb_flush): Add function.
8489 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8490
5abbbe1d
TT
84912020-02-07 Tom Tromey <tromey@adacore.com>
8492
8493 PR breakpoints/24915:
8494 * source.c (find_and_open_source): Do not check basenames_may_differ.
8495
919adfe8
TT
84962020-02-07 Tom Tromey <tom@tromey.com>
8497
8498 * README: Update gdbserver documentation.
8499 * gdbserver: Move to top level.
8500 * configure.tgt (build_gdbserver): Remove.
8501 * configure.ac: Remove --enable-gdbserver.
8502 * configure: Rebuild.
8503 * Makefile.in (distclean): Don't mention gdbserver.
8504
1d5d29e7
SV
85052020-02-06 Shahab Vahedi <shahab@synopsys.com>
8506
8507 * source-cache.c (source_cache::ensure): Surround
8508 get_plain_source_lines with a try/catch.
8509 (source_cache::get_line_charpos): Get rid of try/catch
8510 and only check for the return value of "ensure".
8511 * tui/tui-source.c (tui_source_window::set_contents):
8512 Simplify "nlines" calculation.
8513
6eb1129c
SV
85142020-02-06 Shahab Vahedi <shahab@synopsys.com>
8515
8516 * MAINTAINERS (Write After Approval): Add myself.
8517
c6a42d11
CB
85182020-02-05 Christian Biesinger <cbiesinger@google.com>
8519
8520 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8521 function call.
8522
c8ecdda6
CB
85232020-02-05 Christian Biesinger <cbiesinger@google.com>
8524
8525 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8526
f6480e70
MR
85272020-02-05 Maciej W. Rozycki <macro@wdc.com>
8528
8529 * nat/riscv-linux-tdesc.h: New file.
8530 * nat/riscv-linux-tdesc.c: New file, taking code from...
8531 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8532 ... here.
8533 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8534 NATDEPFILES.
8535
dcc9fbc6
AB
85362020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8537
8538 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8539 we don't set the fake simulator ptid to the null_ptid.
8540
719546c4
SM
85412020-02-03 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8544 * gdbthread.h (class thread_info) <resumed>: Likewise.
8545 * infrun.c (resume_1): Likewise.
8546 (proceed): Likewise.
8547 (infrun_thread_stop_requested): Likewise.
8548 (stop_all_threads): Likewise.
8549 (handle_inferior_event): Likewise.
8550 (restart_threads): Likewise.
8551 (finish_step_over): Likewise.
8552 (keep_going_stepped_thread): Likewise.
8553 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8554 (linux_handle_extended_wait): Likewise.
8555 * record-btrace.c (get_thread_current_frame_id): Likewise.
8556 * record-full.c (record_full_wait_1): Likewise.
8557 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8558 * target.c (target_resume): Likewise.
8559 * thread.c (set_running_thread): Likewise.
8560
e409c542
AKS
85612020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8562
8563 * f-valprint.c (f77_print_array_1): Changed datatype of index
8564 variable to LONGEST from int to enable it to contain bound
8565 values correctly.
8566
ee98c0da
MR
85672020-02-03 Maciej W. Rozycki <macro@wdc.com>
8568
8569 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8570 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8571 offsets according to FLEN determined.
8572 (riscv_linux_nat_target::read_description): Determine FLEN
8573 dynamically.
8574 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8575 according to FLEN determined.
8576 (riscv_linux_nat_target::store_registers): Likewise.
8577
aa66aac4
SV
85782020-02-01 Shahab Vahedi <shahab@synopsys.com>
8579
8580 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8581 when reg->group is empty and reggroup is not.
8582
fd9faca8
TT
85832020-01-31 Tom Tromey <tromey@adacore.com>
8584
8585 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8586 Call beneath target's mourn_inferior after unpushing.
8587
42330a68
AB
85882020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8589
8590 PR tui/9765
8591 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8592 have enough lines to fill the screen, still return the lowest
8593 address we found.
8594
7a27a45b
AB
85952020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8598 '-', '<', and '>' commands.
8599
c47f70e2
PA
86002020-01-29 Pedro Alves <palves@redhat.com>
8601 Sergio Durigan Junior <sergiodj@redhat.com>
8602
8603 * infcmd.c (construct_inferior_arguments): Assert that
8604 'argc' is greater than 0.
8605
5133a315
LM
86062020-01-29 Luis Machado <luis.machado@linaro.org>
8607
8608 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8609 (BRK_INSN_MASK): Define to 0xd4200000.
8610 (aarch64_program_breakpoint_here_p): New function.
8611 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8612 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8613 breakpoint.c.
8614 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8615 breakpoint.h
8616 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8617 call gdbarch_program_breakpoint_here_p.
8618 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8619 default_program_breakpoint_here_p, changed return type to bool and
8620 simplified.
8621 * breakpoint.h (program_breakpoint_here): Moved prototype to
8622 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8623 return type to bool.
8624 * gdbarch.c: Regenerate.
8625 * gdbarch.h: Regenerate.
8626 * gdbarch.sh (program_breakpoint_here_p): New method.
8627 * infrun.c (handle_signal_stop): Call
8628 gdbarch_program_breakpoint_here_p.
8629
168f8c6b
TT
86302020-01-26 Tom Tromey <tom@tromey.com>
8631
8632 * ctfread.c (struct ctf_fp_info): Reindent.
8633 (_initialize_ctfread): Remove.
8634
128a391f
TT
86352020-01-26 Tom Tromey <tom@tromey.com>
8636
8637 * psymtab.c (partial_map_expand_apply)
8638 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8639 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8640 (psym_print_stats, psym_expand_symtabs_for_function)
8641 (psym_map_symbol_filenames, psym_map_matching_symbols)
8642 (psym_expand_symtabs_matching)
8643 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8644 (maintenance_check_psymtabs): Use new methods.
8645 * psympriv.h (struct partial_symtab) <readin_p,
8646 get_compunit_symtab>: New methods.
8647 <readin, compunit_symtab>: Remove members.
8648 (struct standard_psymtab): New.
8649 (struct legacy_psymtab): Derive from standard_psymtab.
8650 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8651 standard_psymtab.
8652 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8653
0494dbec
TT
86542020-01-26 Tom Tromey <tom@tromey.com>
8655
8656 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8657 read_dependencies. Add assert.
8658 * psymtab.c (partial_symtab::read_dependencies): New method.
8659 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8660 method.
8661 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8662 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8663 read_dependencies.
8664 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8665 Add assert.
8666
8566b89b
TT
86672020-01-26 Tom Tromey <tom@tromey.com>
8668
8669 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8670 Call expand_psymtab.
8671 (xcoff_read_symtab): Call expand_psymtab.
8672 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8673 legacy_expand_psymtab.
8674 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8675 method.
8676 (struct legacy_psymtab) <expand_psymtab>: Implement.
8677 <legacy_expand_psymtab>: New member.
8678 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8679 (parse_partial_symbols): Set legacy_expand_psymtab.
8680 (psymtab_to_symtab_1): Change argument order. Call
8681 expand_psymtab.
8682 (new_psymtab): Set legacy_expand_psymtab.
8683 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8684 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8685 expand_psymtab.
8686 (dwarf2_psymtab::expand_psymtab): Rename from
8687 psymtab_to_symtab_1. Call expand_psymtab.
8688 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8689 (dbx_end_psymtab): Likewise.
8690 (dbx_psymtab_to_symtab_1): Change argument order. Call
8691 expand_psymtab.
8692 (dbx_read_symtab): Call expand_psymtab.
8693 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8694 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8695 (ctf_psymtab::read_symtab): Call expand_psymtab.
8696
077cbab2
TT
86972020-01-26 Tom Tromey <tom@tromey.com>
8698
8699 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8700 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8701 messages.
8702 * mdebugread.c (mdebug_read_symtab): Remove prints.
8703 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8704 assert.
8705 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8706
891813be
TT
87072020-01-26 Tom Tromey <tom@tromey.com>
8708
8709 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8710 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8711 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8712 legacy_symtab.
8713 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8714 * psymtab.c (psymtab_to_symtab): Call method.
8715 (dump_psymtab): Update.
8716 * psympriv.h (struct partial_symtab): Add virtual destructor.
8717 <read_symtab>: New method.
8718 (struct legacy_symtab): New.
8719 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8720 (struct pst_map) <pst>: Now a legacy_psymtab.
8721 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8722 (new_psymtab): Use legacy_psymtab.
8723 * dwarf2read.h (struct dwarf2_psymtab): New.
8724 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8725 * dwarf2read.c (dwarf2_create_include_psymtab)
8726 (dwarf2_build_include_psymtabs, create_type_unit_group)
8727 (create_partial_symtab, process_psymtab_comp_unit_reader)
8728 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8729 (set_partial_user): Use dwarf2_psymtab.
8730 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8731 (psymtab_to_symtab_1, process_full_comp_unit)
8732 (process_full_type_unit, dwarf2_ranges_read)
8733 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8734 (dwarf_decode_lines): Use dwarf2_psymtab.
8735 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8736 (add_address_entry_worker, write_one_signatured_type)
8737 (recursively_count_psymbols, recursively_write_psymbols)
8738 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8739 (write_debug_names): Likewise.
8740 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8741 <pst>: Now a legacy_psymtab.
8742 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8743 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8744 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8745 * ctfread.c (struct ctf_psymtab): New.
8746 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8747 ctf_psymtab.
8748 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8749 (create_partial_symtab): Return a ctf_psymtab.
8750 (scan_partial_symbols): Update.
8751
c3693a1d
TT
87522020-01-26 Tom Tromey <tom@tromey.com>
8753
8754 * xcoffread.c (xcoff_start_psymtab): Use new.
8755 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8756 renamed from start_psymtab_common.
8757 * psympriv.h (struct partial_symtab): Add new constructor.
8758 (start_psymtab_common): Don't declare.
8759 * mdebugread.c (parse_partial_symbols): Use new.
8760 * dwarf2read.c (create_partial_symtab): Use new.
8761 * dbxread.c (start_psymtab): Use new.
8762 * ctfread.c (create_partial_symtab): Use new.
8763
32caafd0
TT
87642020-01-26 Tom Tromey <tom@tromey.com>
8765
8766 * xcoffread.c (xcoff_end_psymtab): Use new.
8767 * psymtab.c (start_psymtab_common): Use new.
8768 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8769 Update.
8770 * psympriv.h (struct partial_symtab): Add parameters to
8771 constructor. Don't inline.
8772 (allocate_psymtab): Don't declare.
8773 * mdebugread.c (new_psymtab): Use new.
8774 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8775 * dbxread.c (dbx_end_psymtab): Use new.
8776
abaa2f23
TT
87772020-01-26 Tom Tromey <tom@tromey.com>
8778
8779 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8780 allocate_psymtab. Update documentation.
8781 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8782 allocate_psymtab. Do not use new.
8783 (allocate_psymtab): Use new. Update.
8784
6d94535f
TT
87852020-01-26 Tom Tromey <tom@tromey.com>
8786
8787 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8788 * psymtab.c (psym_print_stats): Update.
8789 * psympriv.h (struct partial_symtab) <readin,
8790 psymtabs_addrmap_supported, anonymous>: Now bool.
8791 * mdebugread.c (psymtab_to_symtab_1): Update.
8792 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8793 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8794 (process_full_comp_unit, process_full_type_unit): Update.
8795 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8796 * ctfread.c (psymtab_to_symtab): Update.
8797
6f17252b
TT
87982020-01-26 Tom Tromey <tom@tromey.com>
8799
8800 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8801 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8802 * psymtab.c (psymtab_storage): Delete psymtabs.
8803 (psymtab_storage::allocate_psymtab): Use new.
8804 (psymtab_storage::discard_psymtab): Use delete.
8805 * psympriv.h (struct partial_symtab): Add constructor and
8806 initializers.
8807
f6f1cebc
TT
88082020-01-26 Tom Tromey <tom@tromey.com>
8809
8810 * machoread.c: Do not include psympriv.h.
8811
e47e48f6
PW
88122020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8813
8814 * NEWS: Mention the new option and the set/show commands.
8815
a2fedca9
PW
88162020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8817
8818 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8819 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8820 (validate_exec_file): New variables, enums, functions.
8821 (exec_file_locate_attach, print_section_info): Style the filenames.
8822 (_initialize_exec): Install show_exec_file_mismatch_command and
8823 set_exec_file_mismatch_command.
8824 * gdbcore.h (validate_exec_file): Declare.
8825 * infcmd.c (attach_command): Call validate_exec_file.
8826 * remote.c ( remote_target::remote_add_inferior): Likewise.
8827
7ffa82e1
AB
88282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * frame.c (find_frame_sal): Move call to get_next_frame into more
8831 inner scope.
8832 * inline-frame.c (inilne_state) <inline_state>: Update argument
8833 types.
8834 (inilne_state) <skipped_symbol>: Rename to...
8835 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8836 (skip_inline_frames): Build vector of skipped symbols and use this
8837 to reate the inline_state.
8838 (inline_skipped_symbol): Add a comment and some assertions, fetch
8839 skipped symbol from the list.
8840
3d92a3e3
AB
88412020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8842
8843 * buildsym.c (lte_is_less_than): Delete.
8844 (buildsym_compunit::end_symtab_with_blockvector): Create local
8845 lambda function to sort line table entries, and use
8846 std::stable_sort instead of std::sort.
8847 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8848 markers when looking for a previous line.
8849
94a72be7
AB
88502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * dwarf2read.c (lnp_state_machine::record_line): Include
8853 end_sequence parameter in debug print out. Record the line if we
8854 are at an end_sequence marker even if it's not the start of a
8855 statement.
8856 * symmisc.c (maintenance_print_one_line_table): Print end of
8857 sequence markers with 'END' not '0'.
8858
53af73bf
PA
88592020-01-24 Pedro Alves <palves@redhat.com>
8860
8861 PR gdb/25410
8862 * thread.c (scoped_restore_current_thread::restore): Use
8863 switch_to_inferior_no_thread.
8864 * exec.c: Include "progspace-and-thread.h".
8865 (add_target_sections, remove_target_sections):
8866 scoped_restore_current_pspace_and_thread instead of
8867 scoped_restore_current_thread.
8868 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8869 and aspace to the inferior before calling clone_program_space.
8870 Remove stale comment.
8871
3050c6f4
CB
88722020-01-24 Christian Biesinger <cbiesinger@google.com>
8873
8874 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8875 (arm_netbsd_nat_target::fetch_registers): ...this.
8876 (arm_nbsd_nat_target::store_registers): Rename to...
8877 (arm_netbsd_nat_target::store_registers): ...this.
8878
73685c7e
CB
88792020-01-24 Christian Biesinger <cbiesinger@google.com>
8880
8881 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8882 register_t.
8883
89203d40
CB
88842020-01-24 Christian Biesinger <cbiesinger@google.com>
8885
8886 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8887 Update comment.
8888 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8889 Likewise.
8890 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8891 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8892 the correct replacement (iterate_over_regset_sections).
8893 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8894 Update comment.
8895
1ba1ac88
AB
88962020-01-24 Graham Markall <graham.markall@embecosm.com>
8897
8898 PR gdb/23718
8899 * gdb/python/python.c (execute_gdb_command): Call
8900 async_enable_stdin in catch block.
8901
f3364a6d
AB
89022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8903
8904 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8905 SWITCH_THRU_ALL_UIS.
8906
733d0a67
AB
89072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8908
8909 PR tui/9765
8910 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8911 comment, add extra parameter, and update to store previous symbol
8912 when appropriate.
8913 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8914 add extra parameter.
8915 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8916 remove unneeded parameter, add try/catch around gdb_print_insn,
8917 rewrite to add items to asm_lines vector.
8918 (tui_find_backward_disassembly_start_address): New function.
8919 (tui_find_disassembly_address): Updated throughout.
8920 (tui_disasm_window::set_contents): Update for changes to
8921 tui_disassemble.
8922 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8923 number of lines to scroll.
8924
b3b3bada
SM
89252020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8926
8927 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8928 (SECT_OFF_DATA): Likewise.
8929 (SECT_OFF_RODATA): Likewise.
8930 (SECT_OFF_TEXT): Likewise.
8931 (SECT_OFF_BSS): Likewise.
8932 (struct objfile) <text_section_offset, data_section_offset>: New
8933 methods.
8934 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8935 objfile::text_section_offset.
8936 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8937 * coffread.c (coff_symtab_read): Likewise.
8938 (enter_linenos): Likewise.
8939 (process_coff_symbol): Likewise.
8940 * ctfread.c (get_objfile_text_range): Likewise.
8941 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8942 Use objfile::data_section_offset.
8943 * dwarf2-frame.c (execute_cfa_program): Use
8944 objfile::text_section_offset.
8945 (dwarf2_frame_find_fde): Likewise.
8946 * dwarf2read.c (create_addrmap_from_index): Likewise.
8947 (create_addrmap_from_aranges): Likewise.
8948 (dw2_find_pc_sect_compunit_symtab): Likewise.
8949 (process_psymtab_comp_unit_reader): Likewise.
8950 (add_partial_symbol): Likewise.
8951 (add_partial_subprogram): Likewise.
8952 (process_full_comp_unit): Likewise.
8953 (read_file_scope): Likewise.
8954 (read_func_scope): Likewise.
8955 (read_lexical_block_scope): Likewise.
8956 (read_call_site_scope): Likewise.
8957 (dwarf2_rnglists_process): Likewise.
8958 (dwarf2_ranges_process): Likewise.
8959 (dwarf2_ranges_read): Likewise.
8960 (dwarf_decode_lines_1): Likewise.
8961 (new_symbol): Likewise.
8962 (dwarf2_fetch_die_loc_sect_off): Likewise.
8963 (dwarf2_per_cu_text_offset): Likewise.
8964 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8965 * hppa-tdep.c (read_unwind_info): Likewise.
8966 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8967 * psympriv.h (struct partial_symtab): Likewise.
8968 * psymtab.c (find_pc_sect_psymtab): Likewise.
8969 * solib-svr4.c (enable_break): Likewise.
8970 * stap-probe.c (relocate_address): Use
8971 objfile::data_section_offset.
8972 * xcoffread.c (enter_line_range): Use
8973 objfile::text_section_offset.
8974 (read_xcoff_symtab): Likewise.
8975
ab53f382
SM
89762020-01-23 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8979 declaration to narrower scopes.
8980
e7eee665
SM
89812020-01-23 Simon Marchi <simon.marchi@efficios.com>
8982
8983 * darwin-nat.h (struct darwin_exception_msg, enum
8984 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8985 Move up.
8986 (class darwin_nat_target) <wait_1, check_new_threads,
8987 decode_exception_message, decode_message, stop_inferior,
8988 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8989 * darwin-nat.c (darwin_check_new_threads): Rename to...
8990 (darwin_nat_target::check_new_threads): ... this.
8991 (darwin_suspend_inferior_it): Remove.
8992 (darwin_decode_exception_message): Rename to...
8993 (darwin_nat_target::decode_exception_message): ... this.
8994 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8995 (darwin_decode_message): Rename to...
8996 (darwin_nat_target::decode_message): ... this.
8997 (cancel_breakpoint): Rename to...
8998 (darwin_nat_target::cancel_breakpoint): ... this.
8999 (darwin_wait): Rename to...
9000 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9001 instead of iterate_over_inferiors.
9002 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9003 (darwin_stop_inferior): Rename to...
9004 (darwin_nat_target::stop_inferior): ... this.
9005 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9006 (darwin_init_thread_list): Rename to...
9007 (darwin_nat_target::init_thread_list): ... this.
9008 (darwin_ptrace_him): Rename to...
9009 (darwin_nat_target::ptrace_him): ... this.
9010 (darwin_nat_target::create_inferior): Pass lambda function to
9011 fork_inferior.
9012 (darwin_nat_target::detach): Call stop_inferior instead of
9013 darwin_stop_inferior.
9014 * fork-inferior.h (fork_inferior): Change init_trace_fun
9015 parameter to gdb::function_view.
9016 * fork-inferior.c (fork_inferior): Likewise.
9017
c162ed3e
HD
90182020-01-23 Hannes Domani <ssbssa@yahoo.de>
9019
9020 * i386-cygwin-tdep.c (core_process_module_section): Update.
9021 * windows-nat.c (struct lm_info_windows): Add text_offset.
9022 (windows_xfer_shared_libraries): Update.
9023 * windows-tdep.c (windows_xfer_shared_library):
9024 Add text_offset_cached argument.
9025 * windows-tdep.h (windows_xfer_shared_library): Update.
9026
a1237872
SM
90272020-01-21 Simon Marchi <simon.marchi@efficios.com>
9028
9029 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9030
b3ee6dd9
SM
90312020-01-21 Simon Marchi <simon.marchi@efficios.com>
9032
9033 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9034 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9035 replace with range-based for.
9036 (gdbsim_interrupt_inferior): Remove.
9037 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9038 with a range-based for. Inline code from
9039 gdbsim_interrupt_inferior.
9040
f9fac3c8
SM
90412020-01-21 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * infrun.c (proceed): Fix indentation.
9044
f6474de9
TT
90452020-01-21 Tom Tromey <tromey@adacore.com>
9046
9047 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9048 * python/python.c (python_extension_ops): Update.
9049 (gdbpy_colorize): New function.
9050 * python/lib/gdb/__init__.py (colorize): New function.
9051 * extension.h (ext_lang_colorize): Declare.
9052 * extension.c (ext_lang_colorize): New function.
9053 * extension-priv.h (struct extension_language_ops) <colorize>: New
9054 member.
9055 * cli/cli-style.c (_initialize_cli_style): Update help text.
9056
f0c702d4
LM
90572020-01-21 Luis Machado <luis.machado@linaro.org>
9058
9059 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9060 <cond>: Change type to bool.
9061 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9062 (aarch64_displaced_step_cb): Likewise.
9063 (aarch64_displaced_step_tb): Likewise.
9064
1ab139e5
LM
90652020-01-21 Luis Machado <luis.machado@linaro.org>
9066
9067 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9068 output.
9069
0c271889
LM
90702020-01-21 Luis Machado <luis.machado@linaro.org>
9071
9072 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9073 <pc_adjust>: Adjust the documentation.
9074 (aarch64_displaced_step_fixup): Check if PC really moved before
9075 adjusting it.
9076
4d89c1c7
TT
90772020-01-19 Tom Tromey <tom@tromey.com>
9078
9079 * disasm.c (~gdb_disassembler): New destructor.
9080 (gdb_buffered_insn_length): Call disassemble_free_target.
9081 * disasm.h (class gdb_disassembler): Declare destructor. Use
9082 DISABLE_COPY_AND_ASSIGN.
9083
c0ab21c2
TT
90842020-01-19 Tom Tromey <tom@tromey.com>
9085
9086 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9087 (die_reader_func_ftype): Remove.
9088 (cutu_reader): New class.
9089 (dw2_get_file_names_reader): Remove "data" parameter.
9090 (dw2_get_file_names): Use cutu_reader.
9091 (create_debug_type_hash_table): Update.
9092 (read_cutu_die_from_dwo): Update comment.
9093 (lookup_dwo_unit): Add dwo_name parameter.
9094 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9095 die_reader_func_ftype and data parameters.
9096 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9097 Remove die_reader_func_ftype and data parameters.
9098 (~cutu_reader): New; from init_cutu_and_read_dies.
9099 (cutu_reader::cutu_reader): Rename from
9100 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9101 and data parameters.
9102 (init_cutu_and_read_dies_simple): Remove.
9103 (struct process_psymtab_comp_unit_data): Remove.
9104 (process_psymtab_comp_unit_reader): Remove data parameter; add
9105 want_partial_unit and pretend_language parameters.
9106 (process_psymtab_comp_unit): Use cutu_reader.
9107 (build_type_psymtabs_reader): Remove data parameter.
9108 (build_type_psymtabs_1): Use cutu_reader.
9109 (process_skeletonless_type_unit): Likewise.
9110 (load_partial_comp_unit_reader): Remove.
9111 (load_partial_comp_unit): Use cutu_reader.
9112 (load_full_comp_unit_reader): Remove.
9113 (load_full_comp_unit): Use cutu_reader.
9114 (struct create_dwo_cu_data): Remove.
9115 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9116 dwo_unit parameters.
9117 (create_cus_hash_table): Use cutu_reader.
9118 (struct dwarf2_read_addr_index_data): Remove.
9119 (dwarf2_read_addr_index_reader): Remove.
9120 (dwarf2_read_addr_index): Use cutu_reader.
9121 (read_signatured_type_reader): Remove.
9122 (read_signatured_type): Use cutu_reader.
9123
45bbae5c
TT
91242020-01-19 Tom Tromey <tom@tromey.com>
9125
9126 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9127 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9128 (tui_wrefresh): Declare.
9129 * tui/tui-wingeneral.c (suppress_output): New global.
9130 (tui_suppress_output, ~tui_suppress_output): New constructor and
9131 destructor.
9132 (tui_wrefresh): New function.
9133 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9134 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9135 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9136 method.
9137 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9138 tui_wrefresh.
9139 (tui_data_window::no_refresh): New method.
9140 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9141 (tui_reg_command): Use tui_suppress_output
9142 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9143 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9144 method.
9145 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9146
4f13c1c0
TT
91472020-01-19 Tom Tromey <tom@tromey.com>
9148
9149 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9150 Handle case where symtab is null.
9151
fa47e446
SM
91522020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9153
9154 * linux-fork.c (one_fork_p): Simplify.
9155
26f42329
SM
91562020-01-17 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * top.c (struct qt_args): Remove.
9159 (kill_or_detach): Change return type to void, replace `void *`
9160 parameter with a proper one.
9161 (print_inferior_quit_action): Likewise.
9162 (quit_confirm): Use range-based for loop to iterate over inferiors.
9163 (quit_force): Likewise.
9164
a9ac81b1
SM
91652020-01-17 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9168 `void *` parameter with proper parameters.
9169 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9170 (print_one_inferior): Change return type to void, replace `void *`
9171 parameter with proper parameters.
9172 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9173 inferiors.
9174 (get_other_inferior): Remove.
9175 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9176 inferiors.
9177
788eca49
SM
91782020-01-17 Simon Marchi <simon.marchi@efficios.com>
9179
9180 * mi/mi-interp.c (report_initial_inferior): Remove.
9181 (mi_interp::init): Use range-based for to iterate over inferiors.
9182
d9bc85b6
SM
91832020-01-17 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * python/py-inferior.c (build_inferior_list): Remove.
9186 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9187
40c94099
CB
91882020-01-16 Christian Biesinger <cbiesinger@google.com>
9189
9190 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9191 (btrace_stitch_trace): Likewise.
9192 * charset.c (intermediate_encoding): Likewise (vaild).
9193 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9194 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9195 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9196
e0cdfe3c
HD
91972020-01-16 Hannes Domani <ssbssa@yahoo.de>
9198
9199 * windows-tdep.c (windows_get_tlb_type):
9200 Add rtl_user_process_parameters type.
9201
790f1718 92022020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9203 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9204
9205 PR build/24805
9206 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9207 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9208 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9209 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9210 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9211 (ps_plog): Redeclare exported functions with default visibility.
9212
3112ed97
NA
92132020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9214
9215 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9216 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9217
8dc3273e
SM
92182020-01-15 Simon Marchi <simon.marchi@efficios.com>
9219
9220 * infcmd.c (post_create_inferior): Use get_thread_regcache
9221 instead of get_current_regcache.
9222
ff47f4f0
TT
92232020-01-14 Tom Tromey <tom@tromey.com>
9224
9225 PR symtab/12535:
9226 * python/python.c (gdbpy_decode_line): Treat empty string the same
9227 as no argument.
9228
975f45b7
TT
92292020-01-14 Tom Tromey <tom@tromey.com>
9230
9231 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9232
25e57356
TT
92332020-01-14 Tom Tromey <tom@tromey.com>
9234
9235 * nat/linux-btrace.c: Don't include <config.h>.
9236 * nat/linux-ptrace.c: Don't include <config.h>.
9237 * nat/x86-linux-dregs.c: Don't include <config.h>.
9238
05ea2a05
TT
92392020-01-14 Tom Tromey <tom@tromey.com>
9240
9241 * configure: Rebuild.
9242 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9243
01027315
TT
92442020-01-14 Tom Tromey <tom@tromey.com>
9245
9246 * nat/x86-linux-dregs.c: Include configh.h.
9247 * nat/linux-ptrace.c: Include configh.h.
9248 * nat/linux-btrace.c: Include configh.h.
9249 * defs.h: Include config.h, bfd.h.
9250 * configure.ac: Don't source common.host.
9251 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9252 * configure: Rebuild.
9253 * acinclude.m4: Update path.
9254 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9255 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9256 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9257 (CLIBS): Add LIBSUPPORT.
9258 (CDEPS): Likewise.
9259 (COMMON_SFILES): Remove gdbsupport files.
9260 (HFILES_NO_SRCDIR): Likewise.
9261 (stamp-version): Update path to create-version.sh.
9262 (ALLDEPFILES): Remove gdbsupport files.
9263
b2ceabe8
TT
92642020-01-14 Tom Tromey <tom@tromey.com>
9265
9266 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9267 USE_WIN32API when needed.
9268 * configure.ac (USE_WIN32API): Don't define.
9269 (WIN32LIBS): Use WIN32APILIBS.
9270 * configure: Rebuild.
9271
25c51f71
TT
92722020-01-14 Tom Tromey <tom@tromey.com>
9273
9274 * configure: Rebuild.
9275 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9276
717c684d
BE
92772020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9278
9279 * skip.c (skip_function_command): Make skip w/o arguments use the
9280 name of the inlined function if pc is inside any inlined function.
9281
7da6a5b9
LM
92822020-01-14 Luis Machado <luis.machado@linaro.org>
9283
9284 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9285 * infrun.c (resume_1): Likewise.
9286 (handle_inferior_event): Remove stale comment.
9287 * linux-nat.c (linux_nat_target::resume): Update comments.
9288 (save_stop_reason): Likewise.
9289 (linux_nat_filter_event): Likewise.
9290 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9291
44e4c775
AB
92922020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 * elfread.c (record_minimal_symbol): Set section index to 0 for
9295 non-allocatable sections.
9296
18a8505e
AT
9297
92982020-01-13 Ali Tamur <tamur@google.com>
9299
9300 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9301 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9302 to gdb::optional. Update comments.
9303 (dwo_file): Update comments.
9304 (read_attribute): Update API to take an additional out parameter,
9305 need_reprocess. This is used to mark attributes that need other
9306 attributes (e.g. str_offsets_base) for correct computation which may not
9307 have been read yet.
9308 (read_attribute_reprocess): New function declaration.
9309 (read_addr_index): Likewise.
9310 (read_dwo_str_index): Likewise.
9311 (read_stub_str_index): Likewise.
9312 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9313 (lookup_addr_base): New function definition.
9314 (lookup_ranges_base): Likewise.
9315 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9316 lookup_ranges_base.
9317 (init_cutu_and_read_dies): Update comments.
9318 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9319 unit. This is used to inherit parent's str_offsets_base and addr_base.
9320 Update comments.
9321 (init_cutu_and_read_dies_simple): Reflect API changes.
9322 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9323 (create_cus_hash_table): Change API to take parent compile unit.
9324 Reflect API changes.
9325 (open_and_init_dwo_file): Reflect API changes.
9326 (dwarf2_get_pc_bounds): Update comments.
9327 (dwarf2_record_block_ranges): Likewise.
9328 (read_full_die_1): Change implementation to reprocess attributes that
9329 need str_offsets_base and addr_base.
9330 (partial_die_info::read): Likewise.
9331 (read_attribute_reprocess): New function definition.
9332 (read_attribute_value): Change API to take an additional out parameter,
9333 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9334 when a non-dwo compile unit has index based attributes.
9335 (read_attribute): Reflect API changes.
9336 (read_addr_index_1): Reflect API changes. Update comments.
9337 (dwarf2_read_addr_index_data): Reflect API changes.
9338 (dwarf2_read_addr_index): Likewise.
9339 (read_str_index): Change API and implementation. This becomes a helper
9340 to be used by the new string index related methods. Update error
9341 message and comments.
9342 (read_dwo_str_index): New function definition.
9343 (read_stub_str_index): Likewise.
9344 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9345 * symfile.h (dwarf2_debug_sections): Likewise.
9346 * xcoffread.c (dwarf2_debug_sections): Likewise.
9347
0cac9354
SM
93482020-01-13 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9351 core_reg_sect type to gdb_byte *.
9352 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9353 * cris-tdep.c (fetch_core_registers): Likewise.
9354 * corelow.c (core_target::get_core_register_section): Change
9355 type of `contents` to gdb::byte_vector.
9356
9a6d629c
AB
93572020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9358
9359 * tui/tui-wingeneral.c (box_win): Position the title in the center
9360 of the border.
9361
d8b2f9e3
SM
93622020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9363
9364 * corelow.c (core_target::get_core_register_section): Use
9365 std::vector instead of alloca.
9366
bb564c58
SM
93672020-01-13 Simon Marchi <simon.marchi@efficios.com>
9368
9369 * warning.m4: Add -Wmissing-declarations to build_warnings.
9370 * configure: Re-generate.
9371
6b366111
SM
93722020-01-13 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * python/python.c (init__gdb_module): Add declaration.
9375
6c265988
SM
93762020-01-13 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9379 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9380 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9381 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9382 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9383 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9384 * ada-exp.y (_initialize_ada_exp): Add declaration.
9385 * ada-lang.c (_initialize_ada_language): Add declaration.
9386 * ada-tasks.c (_initialize_tasks): Add declaration.
9387 * agent.c (_initialize_agent): Add declaration.
9388 * aix-thread.c (_initialize_aix_thread): Add declaration.
9389 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9390 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9391 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9392 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9393 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9394 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9395 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9396 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9397 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9398 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9399 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9400 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9401 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9402 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9403 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9404 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9405 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9406 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9407 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9408 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9409 * annotate.c (_initialize_annotate): Add declaration.
9410 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9411 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9412 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9413 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9414 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9415 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9416 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9417 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9418 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9419 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9420 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9421 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9422 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9423 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9424 * auto-load.c (_initialize_auto_load): Add declaration.
9425 * auxv.c (_initialize_auxv): Add declaration.
9426 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9427 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9428 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9429 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9430 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9431 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9432 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9433 * breakpoint.c (_initialize_breakpoint): Add declaration.
9434 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9435 * btrace.c (_initialize_btrace): Add declaration.
9436 * charset.c (_initialize_charset): Add declaration.
9437 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9438 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9439 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9440 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9441 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9442 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9443 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9444 * coffread.c (_initialize_coffread): Add declaration.
9445 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9446 * compile/compile.c (_initialize_compile): Add declaration.
9447 * complaints.c (_initialize_complaints): Add declaration.
9448 * completer.c (_initialize_completer): Add declaration.
9449 * copying.c (_initialize_copying): Add declaration.
9450 * corefile.c (_initialize_core): Add declaration.
9451 * corelow.c (_initialize_corelow): Add declaration.
9452 * cp-abi.c (_initialize_cp_abi): Add declaration.
9453 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9454 * cp-support.c (_initialize_cp_support): Add declaration.
9455 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9456 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9457 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9458 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9459 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9460 * ctfread.c (_initialize_ctfread): Add declaration.
9461 * d-lang.c (_initialize_d_language): Add declaration.
9462 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9463 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9464 * dbxread.c (_initialize_dbxread): Add declaration.
9465 * dcache.c (_initialize_dcache): Add declaration.
9466 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9467 * disasm.c (_initialize_disasm): Add declaration.
9468 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9469 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9470 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9471 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9472 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9473 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9474 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9475 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9476 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9477 * elfread.c (_initialize_elfread): Add declaration.
9478 * exec.c (_initialize_exec): Add declaration.
9479 * extension.c (_initialize_extension): Add declaration.
9480 * f-lang.c (_initialize_f_language): Add declaration.
9481 * f-valprint.c (_initialize_f_valprint): Add declaration.
9482 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9483 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9484 * filesystem.c (_initialize_filesystem): Add declaration.
9485 * findcmd.c (_initialize_mem_search): Add declaration.
9486 * findvar.c (_initialize_findvar): Add declaration.
9487 * fork-child.c (_initialize_fork_child): Add declaration.
9488 * frame-base.c (_initialize_frame_base): Add declaration.
9489 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9490 * frame.c (_initialize_frame): Add declaration.
9491 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9492 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9493 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9494 * gcore.c (_initialize_gcore): Add declaration.
9495 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9496 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9497 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9498 * gdbarch.c (_initialize_gdbarch): Add declaration.
9499 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9500 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9501 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9502 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9503 * go-lang.c (_initialize_go_language): Add declaration.
9504 * go32-nat.c (_initialize_go32_nat): Add declaration.
9505 * guile/guile.c (_initialize_guile): Add declaration.
9506 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9507 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9508 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9509 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9510 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9511 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9512 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9513 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9514 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9515 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9516 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9517 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9518 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9519 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9520 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9521 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9522 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9523 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9524 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9525 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9526 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9527 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9528 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9529 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9530 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9531 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9532 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9533 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9534 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9535 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9536 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9537 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9538 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9539 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9540 * infcall.c (_initialize_infcall): Add declaration.
9541 * infcmd.c (_initialize_infcmd): Add declaration.
9542 * inflow.c (_initialize_inflow): Add declaration.
9543 * infrun.c (_initialize_infrun): Add declaration.
9544 * interps.c (_initialize_interpreter): Add declaration.
9545 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9546 * jit.c (_initialize_jit): Add declaration.
9547 * language.c (_initialize_language): Add declaration.
9548 * linux-fork.c (_initialize_linux_fork): Add declaration.
9549 * linux-nat.c (_initialize_linux_nat): Add declaration.
9550 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9551 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9552 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9553 * m2-lang.c (_initialize_m2_language): Add declaration.
9554 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9555 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9556 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9557 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9558 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9559 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9560 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9561 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9562 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9563 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9564 * machoread.c (_initialize_machoread): Add declaration.
9565 * macrocmd.c (_initialize_macrocmd): Add declaration.
9566 * macroscope.c (_initialize_macroscope): Add declaration.
9567 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9568 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9569 * maint.c (_initialize_maint_cmds): Add declaration.
9570 * mdebugread.c (_initialize_mdebugread): Add declaration.
9571 * memattr.c (_initialize_mem): Add declaration.
9572 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9573 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9574 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9575 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9576 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9577 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9578 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9579 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9580 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9581 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9582 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9583 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9584 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9585 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9586 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9587 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9588 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9589 * mipsread.c (_initialize_mipsread): Add declaration.
9590 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9591 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9592 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9593 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9594 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9595 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9596 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9597 * nto-procfs.c (_initialize_procfs): Add declaration.
9598 * objc-lang.c (_initialize_objc_language): Add declaration.
9599 * observable.c (_initialize_observer): Add declaration.
9600 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9601 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9602 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9603 * osabi.c (_initialize_gdb_osabi): Add declaration.
9604 * osdata.c (_initialize_osdata): Add declaration.
9605 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9606 * parse.c (_initialize_parse): Add declaration.
9607 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9608 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9609 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9610 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9611 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9612 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9613 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9614 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9615 * printcmd.c (_initialize_printcmd): Add declaration.
9616 * probe.c (_initialize_probe): Add declaration.
9617 * proc-api.c (_initialize_proc_api): Add declaration.
9618 * proc-events.c (_initialize_proc_events): Add declaration.
9619 * proc-service.c (_initialize_proc_service): Add declaration.
9620 * procfs.c (_initialize_procfs): Add declaration.
9621 * producer.c (_initialize_producer): Add declaration.
9622 * psymtab.c (_initialize_psymtab): Add declaration.
9623 * python/python.c (_initialize_python): Add declaration.
9624 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9625 * record-btrace.c (_initialize_record_btrace): Add declaration.
9626 * record-full.c (_initialize_record_full): Add declaration.
9627 * record.c (_initialize_record): Add declaration.
9628 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9629 * regcache.c (_initialize_regcache): Add declaration.
9630 * reggroups.c (_initialize_reggroup): Add declaration.
9631 * remote-notif.c (_initialize_notif): Add declaration.
9632 * remote-sim.c (_initialize_remote_sim): Add declaration.
9633 * remote.c (_initialize_remote): Add declaration.
9634 * reverse.c (_initialize_reverse): Add declaration.
9635 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9636 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9637 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9638 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9639 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9640 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9641 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9642 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9643 Add declaration.
9644 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9645 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9646 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9647 * rust-exp.y (_initialize_rust_exp): Add declaration.
9648 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9649 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9650 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9651 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9652 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9653 * score-tdep.c (_initialize_score_tdep): Add declaration.
9654 * ser-go32.c (_initialize_ser_dos): Add declaration.
9655 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9656 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9657 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9658 * ser-uds.c (_initialize_ser_socket): Add declaration.
9659 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9660 * serial.c (_initialize_serial): Add declaration.
9661 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9662 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9663 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9664 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9665 * skip.c (_initialize_step_skip): Add declaration.
9666 * sol-thread.c (_initialize_sol_thread): Add declaration.
9667 * solib-aix.c (_initialize_solib_aix): Add declaration.
9668 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9669 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9670 * solib-frv.c (_initialize_frv_solib): Add declaration.
9671 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9672 * solib-target.c (_initialize_solib_target): Add declaration.
9673 * solib.c (_initialize_solib): Add declaration.
9674 * source-cache.c (_initialize_source_cache): Add declaration.
9675 * source.c (_initialize_source): Add declaration.
9676 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9677 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9678 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9679 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9680 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9681 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9682 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9683 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9684 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9685 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9686 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9687 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9688 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9689 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9690 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9691 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9692 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9693 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9694 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9695 * stabsread.c (_initialize_stabsread): Add declaration.
9696 * stack.c (_initialize_stack): Add declaration.
9697 * stap-probe.c (_initialize_stap_probe): Add declaration.
9698 * std-regs.c (_initialize_frame_reg): Add declaration.
9699 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9700 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9701 * symfile.c (_initialize_symfile): Add declaration.
9702 * symmisc.c (_initialize_symmisc): Add declaration.
9703 * symtab.c (_initialize_symtab): Add declaration.
9704 * target.c (_initialize_target): Add declaration.
9705 * target-connection.c (_initialize_target_connection): Add
9706 declaration.
9707 * target-dcache.c (_initialize_target_dcache): Add declaration.
9708 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9709 * thread.c (_initialize_thread): Add declaration.
9710 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9711 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9712 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9713 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9714 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9715 * tracectf.c (_initialize_ctf): Add declaration.
9716 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9717 * tracefile.c (_initialize_tracefile): Add declaration.
9718 * tracepoint.c (_initialize_tracepoint): Add declaration.
9719 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9720 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9721 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9722 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9723 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9724 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9725 * tui/tui.c (_initialize_tui): Add declaration.
9726 * typeprint.c (_initialize_typeprint): Add declaration.
9727 * ui-style.c (_initialize_ui_style): Add declaration.
9728 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9729 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9730 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9731 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9732 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9733 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9734 * unittests/filtered_iterator-selftests.c
9735 (_initialize_filtered_iterator_selftests): Add declaration.
9736 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9737 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9738 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9739 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9740 * unittests/main-thread-selftests.c
9741 (_initialize_main_thread_selftests): Add declaration.
9742 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9743 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9744 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9745 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9746 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9747 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9748 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9749 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9750 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9751 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9752 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9753 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9754 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9755 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9756 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9757 declaration.
9758 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9759 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9760 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9761 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9762 * user-regs.c (_initialize_user_regs): Add declaration.
9763 * utils.c (_initialize_utils): Add declaration.
9764 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9765 * valops.c (_initialize_valops): Add declaration.
9766 * valprint.c (_initialize_valprint): Add declaration.
9767 * value.c (_initialize_values): Add declaration.
9768 * varobj.c (_initialize_varobj): Add declaration.
9769 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9770 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9771 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9772 * windows-nat.c (_initialize_windows_nat): Add declaration.
9773 (_initialize_check_for_gdb_ini): Add declaration.
9774 (_initialize_loadable): Add declaration.
9775 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9776 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9777 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9778 * xcoffread.c (_initialize_xcoffread): Add declaration.
9779 * xml-support.c (_initialize_xml_support): Add declaration.
9780 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9781 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9782 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9783 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9784
e2de1eec
SM
97852020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9786
9787 * regformats/regdat.sh: Generate declaration for init function.
9788
e0037b4c
SM
97892020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9790
9791 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9792 up.
9793 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9794 close_one_inferior>: New methods.
9795 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9796 pass down target to find_inferior_pid.
9797 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9798 Pass down target to find_inferior_ptid.
9799 (gdbsim_target::create_inferior): Pass down target to
9800 add_thread_silent.
9801 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9802 target down to find_inferior_ptid and switch_to_thread.
9803 (gdbsim_target::close): Update to call close_one_inferior.
9804 (struct resume_data): Remove.
9805 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9806 directly, rather than through a void pointer.
9807 (gdbsim_target::resume): Update to call resume_one_inferior.
9808
58920b5b
SM
98092020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9810
9811 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9812
4ec89149
PA
98132020-01-12 Pedro Alves <palves@redhat.com>
9814
9815 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9816 directly for the current inferior instead of
9817 discard_all_inferiors.
9818 (discard_all_inferiors): Delete.
9819
7c392d1d
TT
98202020-01-11 Tom Tromey <tom@tromey.com>
9821
9822 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9823 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9824 deprecated_safe_get_selected_frame.
9825
d9ebdab7
TBA
98262020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9827
9828 * inferior.c (print_inferior): Switch inferior before printing it.
9829
f3c469b9
PA
98302020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9831 Pedro Alves <palves@redhat.com>
9832
9833 * progspace-and-thread.c (switch_to_program_space_and_thread):
9834 Assert there's an inferior for PSPACE. Use
9835 switch_to_inferior_no_thread to switch the inferior too.
9836 * progspace.c (program_space::~program_space): Call
9837 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9838 (program_space::free_all_objfiles): Don't call clear_symtab_users
9839 here.
9840 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9841
65c574f6
PA
98422020-01-10 Pedro Alves <palves@redhat.com>
9843
9844 * NEWS: Mention multi-target debugging, "info connections", and
9845 "add-inferior -no-connection".
9846
2f4fcf00
PA
98472020-01-10 Pedro Alves <palves@redhat.com>
9848
9849 * infrun.c: Include "target-connection.h".
9850 (check_multi_target_resumption): New.
9851 (proceed): Call it.
9852 * target-connection.c (make_target_connection_string): Make
9853 extern.
9854 * target-connection.h (make_target_connection_string): Declare.
9855
121b3efd
PA
98562020-01-10 Pedro Alves <palves@redhat.com>
9857
9858 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9859 * inferior.c (uiout_field_connection): New function.
9860 (print_inferior): Add new "connection-id" column.
9861 (add_inferior_command): Show connection number/string of added
9862 inferior.
9863 * process-stratum-target.h
9864 (process_stratum_target::connection_string): New virtual method.
9865 (process_stratum_target::connection_number): New field.
9866 * remote.c (remote_target::connection_string): New override.
9867 * target-connection.c: New file.
9868 * target-connection.h: New file.
9869 * target.c (decref_target): Remove process_stratum targets from
9870 the connection list.
9871 (target_stack::push): Add process_stratum targets to the
9872 connection list.
9873
4f837581
PA
98742020-01-10 Pedro Alves <palves@redhat.com>
9875
9876 Revert:
9877 2016-04-12 Pedro Alves <palves@redhat.com>
9878 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9879 Remove references to name.
9880 * serial.h (struct serial) <name>: Delete.
9881
f4ec508e
PA
98822020-01-10 Pedro Alves <palves@redhat.com>
9883
9884 * gdbarch-selftests.c (register_to_value_test): Remove "target
9885 already pushed" check.
9886
5b6d1e4f
PA
98872020-01-10 Pedro Alves <palves@redhat.com>
9888 John Baldwin <jhb@FreeBSD.org>
9889
9890 * aarch64-linux-nat.c
9891 (aarch64_linux_nat_target::thread_architecture): Adjust.
9892 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9893 (task_command_1): Likewise.
9894 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9895 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9896 (aix_thread_target::store_registers)
9897 (aix_thread_target::thread_alive): Adjust.
9898 * amd64-fbsd-tdep.c: Include "inferior.h".
9899 (amd64fbsd_get_thread_local_address): Pass down target.
9900 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9901 thread's gdbarch instead of target_gdbarch.
9902 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9903 get_last_target_status.
9904 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9905 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9906 inferiors.
9907 (update_inserted_breakpoint_locations): Skip if inferiors with no
9908 execution.
9909 (update_global_location_list): When handling moribund locations,
9910 find representative inferior for location's pspace, and use thread
9911 count of its process_stratum target.
9912 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9913 * bsd-uthread.c (bsd_uthread_target::wait): Use
9914 as_process_stratum_target and adjust thread_change_ptid and
9915 add_thread calls.
9916 (bsd_uthread_target::update_thread_list): Use
9917 as_process_stratum_target and adjust find_thread_ptid,
9918 thread_change_ptid and add_thread calls.
9919 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9920 find_thread_ptid call.
9921 * corelow.c (add_to_thread_list): Adjust add_thread call.
9922 (core_target_open): Adjust add_thread_silent and thread_count
9923 calls.
9924 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9925 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9926 * event-top.c (async_disconnect): Pop targets from all inferiors.
9927 * exec.c (add_target_sections): Push exec target on all inferiors
9928 sharing the program space.
9929 (remove_target_sections): Remove the exec target from all
9930 inferiors sharing the program space.
9931 (exec_on_vfork): New.
9932 * exec.h (exec_on_vfork): Declare.
9933 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9934 Pass it down.
9935 (fbsd_nat_target::update_thread_list): Adjust.
9936 (fbsd_nat_target::resume): Adjust.
9937 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9938 down.
9939 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9940 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9941 get_thread_arch_regcache call.
9942 * fork-child.c (gdb_startup_inferior): Pass target down to
9943 startup_inferior and set_executing.
9944 * gdbthread.h (struct process_stratum_target): Forward declare.
9945 (add_thread, add_thread_silent, add_thread_with_info)
9946 (in_thread_list): Add process_stratum_target parameter.
9947 (find_thread_ptid(inferior*, ptid_t)): New overload.
9948 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9949 parameter.
9950 (all_threads()): Delete overload.
9951 (all_threads, all_non_exited_threads): Add process_stratum_target
9952 parameter.
9953 (all_threads_safe): Use brace initialization.
9954 (thread_count): Add process_stratum_target parameter.
9955 (set_resumed, set_running, set_stop_requested, set_executing)
9956 (threads_are_executing, finish_thread_state): Add
9957 process_stratum_target parameter.
9958 (switch_to_thread): Use is_current_thread.
9959 * i386-fbsd-tdep.c: Include "inferior.h".
9960 (i386fbsd_get_thread_local_address): Pass down target.
9961 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9962 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9963 have_inferiors check.
9964 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9965 (inf_ptrace_target::attach): Adjust.
9966 * infcall.c (run_inferior_call): Adjust.
9967 * infcmd.c (run_command_1): Pass target to
9968 scoped_finish_thread_state.
9969 (proceed_thread_callback): Skip inferiors with no execution.
9970 (continue_command): Rename 'all_threads' local to avoid hiding
9971 'all_threads' function. Adjust get_last_target_status call.
9972 (prepare_one_step): Adjust set_running call.
9973 (signal_command): Use user_visible_resume_target. Compare thread
9974 pointers instead of inferior_ptid.
9975 (info_program_command): Adjust to pass down target.
9976 (attach_command): Mark target's 'thread_executing' flag.
9977 (stop_current_target_threads_ns): New, factored out from ...
9978 (interrupt_target_1): ... this. Switch inferior before making
9979 target calls.
9980 * inferior-iter.h
9981 (struct all_inferiors_iterator, struct all_inferiors_range)
9982 (struct all_inferiors_safe_range)
9983 (struct all_non_exited_inferiors_range): Filter on
9984 process_stratum_target too. Remove explicit.
9985 * inferior.c (inferior::inferior): Push dummy target on target
9986 stack.
9987 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9988 Add process_stratum_target parameter, and pass it down.
9989 (have_live_inferiors): Adjust.
9990 (switch_to_inferior_and_push_target): New.
9991 (add_inferior_command, clone_inferior_command): Handle
9992 "-no-connection" parameter. Use
9993 switch_to_inferior_and_push_target.
9994 (_initialize_inferior): Mention "-no-connection" option in
9995 the help of "add-inferior" and "clone-inferior" commands.
9996 * inferior.h: Include "process-stratum-target.h".
9997 (interrupt_target_1): Use bool.
9998 (struct inferior) <push_target, unpush_target, target_is_pushed,
9999 find_target_beneath, top_target, process_target, target_at,
10000 m_stack>: New.
10001 (discard_all_inferiors): Delete.
10002 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10003 (all_inferiors, all_non_exited_inferiors): Add
10004 process_stratum_target parameter.
10005 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10006 (target_last_proc_target): New global.
10007 (follow_fork_inferior): Push target on new inferior. Pass target
10008 to add_thread_silent. Call exec_on_vfork. Handle target's
10009 reference count.
10010 (follow_fork): Adjust get_last_target_status call. Also consider
10011 target.
10012 (follow_exec): Push target on new inferior.
10013 (struct execution_control_state) <target>: New field.
10014 (user_visible_resume_target): New.
10015 (do_target_resume): Call target_async.
10016 (resume_1): Set target's threads_executing flag. Consider resume
10017 target.
10018 (commit_resume_all_targets): New.
10019 (proceed): Also consider resume target. Skip threads of inferiors
10020 with no execution. Commit resumtion in all targets.
10021 (start_remote): Pass current inferior to wait_for_inferior.
10022 (infrun_thread_stop_requested): Consider target as well. Pass
10023 thread_info pointer to clear_inline_frame_state instead of ptid.
10024 (infrun_thread_thread_exit): Consider target as well.
10025 (random_pending_event_thread): New inferior parameter. Use it.
10026 (do_target_wait): Rename to ...
10027 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10028 down.
10029 (threads_are_resumed_pending_p, do_target_wait): New.
10030 (prepare_for_detach): Adjust calls.
10031 (wait_for_inferior): New inferior parameter. Handle it. Use
10032 do_target_wait_1 instead of do_target_wait.
10033 (fetch_inferior_event): Adjust. Switch to representative
10034 inferior. Pass target down.
10035 (set_last_target_status): Add process_stratum_target parameter.
10036 Save target in global.
10037 (get_last_target_status): Add process_stratum_target parameter and
10038 handle it.
10039 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10040 (context_switch): Check inferior_ptid == null_ptid before calling
10041 inferior_thread().
10042 (get_inferior_stop_soon): Pass down target.
10043 (wait_one): Rename to ...
10044 (poll_one_curr_target): ... this.
10045 (struct wait_one_event): New.
10046 (wait_one): New.
10047 (stop_all_threads): Adjust.
10048 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10049 event's target.
10050 (switch_back_to_stepped_thread): Also consider target.
10051 (print_stop_event): Update.
10052 (normal_stop): Update. Also consider the resume target.
10053 * infrun.h (wait_for_inferior): Remove declaration.
10054 (user_visible_resume_target): New declaration.
10055 (get_last_target_status, set_last_target_status): New
10056 process_stratum_target parameter.
10057 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10058 process_stratum_target parameter, and use it.
10059 (clear_inline_frame_state (thread_info*)): New.
10060 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10061 process_stratum_target parameter.
10062 (clear_inline_frame_state (thread_info*)): Declare.
10063 * linux-fork.c (delete_checkpoint_command): Pass target down to
10064 find_thread_ptid.
10065 (checkpoint_command): Adjust.
10066 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10067 instead of just tweaking inferior_ptid.
10068 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10069 (exit_lwp): Pass target down to find_thread_ptid.
10070 (attach_proc_task_lwp_callback): Pass target down to
10071 add_thread/set_running/set_executing.
10072 (linux_nat_target::attach): Pass target down to
10073 thread_change_ptid.
10074 (get_detach_signal): Pass target down to find_thread_ptid.
10075 Consider last target status's target.
10076 (linux_resume_one_lwp_throw, resume_lwp)
10077 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10078 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10079 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10080 (linux_nat_target::async_wait_fd): New.
10081 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10082 target down.
10083 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10084 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10085 * linux-thread-db.c (struct thread_db_info::process_target): New
10086 field.
10087 (add_thread_db_info): Save target.
10088 (get_thread_db_info): New process_stratum_target parameter. Also
10089 match target.
10090 (delete_thread_db_info): New process_stratum_target parameter.
10091 Also match target.
10092 (thread_from_lwp): Adjust to pass down target.
10093 (thread_db_notice_clone): Pass down target.
10094 (check_thread_db_callback): Pass down target.
10095 (try_thread_db_load_1): Always push the thread_db target.
10096 (try_thread_db_load, record_thread): Pass target down.
10097 (thread_db_target::detach): Pass target down. Always unpush the
10098 thread_db target.
10099 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10100 target down. Always unpush the thread_db target.
10101 (find_new_threads_callback, thread_db_find_new_threads_2)
10102 (thread_db_target::update_thread_list): Pass target down.
10103 (thread_db_target::pid_to_str): Pass current inferior down.
10104 (thread_db_target::get_thread_local_address): Pass target down.
10105 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10106 target down.
10107 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10108 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10109 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10110 (procfs_init_inferior): Rename to ...
10111 (procfs_target::procfs_init_inferior): ... this and adjust.
10112 (procfs_target::create_inferior, procfs_notice_thread)
10113 (procfs_do_thread_registers): Adjust.
10114 * ppc-fbsd-tdep.c: Include "inferior.h".
10115 (ppcfbsd_get_thread_local_address): Pass down target.
10116 * proc-service.c (ps_xfer_memory): Switch current inferior and
10117 program space as well.
10118 (get_ps_regcache): Pass target down.
10119 * process-stratum-target.c
10120 (process_stratum_target::thread_address_space)
10121 (process_stratum_target::thread_architecture): Pass target down.
10122 * process-stratum-target.h
10123 (process_stratum_target::threads_executing): New field.
10124 (as_process_stratum_target): New.
10125 * ravenscar-thread.c
10126 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10127 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10128 down.
10129 * record-btrace.c (record_btrace_target::info_record): Adjust.
10130 (record_btrace_target::record_method)
10131 (record_btrace_target::record_is_replaying)
10132 (record_btrace_target::fetch_registers)
10133 (get_thread_current_frame_id, record_btrace_target::resume)
10134 (record_btrace_target::wait, record_btrace_target::stop): Pass
10135 target down.
10136 * record-full.c (record_full_wait_1): Switch to event thread.
10137 Pass target down.
10138 * regcache.c (regcache::regcache)
10139 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10140 process_stratum_target parameter and handle it.
10141 (current_thread_target): New global.
10142 (get_thread_regcache): Add process_stratum_target parameter and
10143 handle it. Switch inferior before calling target method.
10144 (get_thread_regcache): Pass target down.
10145 (get_thread_regcache_for_ptid): Pass target down.
10146 (registers_changed_ptid): Add process_stratum_target parameter and
10147 handle it.
10148 (registers_changed_thread, registers_changed): Pass target down.
10149 (test_get_thread_arch_aspace_regcache): New.
10150 (current_regcache_test): Define a couple local test_target_ops
10151 instances and use them for testing.
10152 (readwrite_regcache): Pass process_stratum_target parameter.
10153 (cooked_read_test, cooked_write_test): Pass mock_target down.
10154 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10155 (get_thread_arch_aspace_regcache): Add process_stratum_target
10156 parameter.
10157 (regcache::target): New method.
10158 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10159 (regcache::registers_changed_ptid): Add process_stratum_target
10160 parameter.
10161 (regcache::m_target): New field.
10162 (registers_changed_ptid): Add process_stratum_target parameter.
10163 * remote.c (remote_state::supports_vCont_probed): New field.
10164 (remote_target::async_wait_fd): New method.
10165 (remote_unpush_and_throw): Add remote_target parameter.
10166 (get_current_remote_target): Adjust.
10167 (remote_target::remote_add_inferior): Push target.
10168 (remote_target::remote_add_thread)
10169 (remote_target::remote_notice_new_inferior)
10170 (get_remote_thread_info): Pass target down.
10171 (remote_target::update_thread_list): Skip threads of inferiors
10172 bound to other targets. (remote_target::close): Don't discard
10173 inferiors. (remote_target::add_current_inferior_and_thread)
10174 (remote_target::process_initial_stop_replies)
10175 (remote_target::start_remote)
10176 (remote_target::remote_serial_quit_handler): Pass down target.
10177 (remote_target::remote_unpush_target): New remote_target
10178 parameter. Unpush the target from all inferiors.
10179 (remote_target::remote_unpush_and_throw): New remote_target
10180 parameter. Pass it down.
10181 (remote_target::open_1): Check whether the current inferior has
10182 execution instead of checking whether any inferior is live. Pass
10183 target down.
10184 (remote_target::remote_detach_1): Pass down target. Use
10185 remote_unpush_target.
10186 (extended_remote_target::attach): Pass down target.
10187 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10188 (remote_target::append_resumption): Pass down target.
10189 (remote_target::append_pending_thread_resumptions)
10190 (remote_target::remote_resume_with_hc, remote_target::resume)
10191 (remote_target::commit_resume): Pass down target.
10192 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10193 (remote_target::interrupt_query)
10194 (remote_target::remove_new_fork_children)
10195 (remote_target::check_pending_events_prevent_wildcard_vcont)
10196 (remote_target::remote_parse_stop_reply)
10197 (remote_target::process_stop_reply): Pass down target.
10198 (first_remote_resumed_thread): New remote_target parameter. Pass
10199 it down.
10200 (remote_target::wait_as): Pass down target.
10201 (unpush_and_perror): New remote_target parameter. Pass it down.
10202 (remote_target::readchar, remote_target::remote_serial_write)
10203 (remote_target::getpkt_or_notif_sane_1)
10204 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10205 down target.
10206 (remote_target::mourn_inferior): Pass down target. Use
10207 remote_unpush_target.
10208 (remote_target::core_of_thread)
10209 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10210 (remote_target::pid_to_exec_file)
10211 (remote_target::thread_handle_to_thread_info): Pass down target.
10212 (remote_target::async_wait_fd): New.
10213 * riscv-fbsd-tdep.c: Include "inferior.h".
10214 (riscv_fbsd_get_thread_local_address): Pass down target.
10215 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10216 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10217 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10218 Adjust.
10219 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10220 * solib-svr4.c (enable_break): Pass down target.
10221 * spu-multiarch.c (parse_spufs_run): Pass down target.
10222 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10223 * target-delegates.c: Regenerate.
10224 * target.c (g_target_stack): Delete.
10225 (current_top_target): Return the current inferior's top target.
10226 (target_has_execution_1): Refer to the passed-in inferior's top
10227 target.
10228 (target_supports_terminal_ours): Check whether the initial
10229 inferior was already created.
10230 (decref_target): New.
10231 (target_stack::push): Incref/decref the target.
10232 (push_target, push_target, unpush_target): Adjust.
10233 (target_stack::unpush): Defref target.
10234 (target_is_pushed): Return bool. Adjust to refer to the current
10235 inferior's target stack.
10236 (dispose_inferior): Delete, and inline parts ...
10237 (target_preopen): ... here. Only dispose of the current inferior.
10238 (target_detach): Hold strong target reference while detaching.
10239 Pass target down.
10240 (target_thread_name): Add assertion.
10241 (target_resume): Pass down target.
10242 (target_ops::beneath, find_target_at): Adjust to refer to the
10243 current inferior's target stack.
10244 (get_dummy_target): New.
10245 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10246 has a thread running.
10247 (initialize_targets): Rename to ...
10248 (_initialize_target): ... this.
10249 * target.h: Include "gdbsupport/refcounted-object.h".
10250 (struct target_ops): Inherit refcounted_object.
10251 (target_ops::shortname, target_ops::longname): Make const.
10252 (target_ops::async_wait_fd): New method.
10253 (decref_target): Declare.
10254 (struct target_ops_ref_policy): New.
10255 (target_ops_ref): New typedef.
10256 (get_dummy_target): Declare function.
10257 (target_is_pushed): Return bool.
10258 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10259 (all_matching_threads_iterator::all_matching_threads_iterator):
10260 Handle filter target.
10261 * thread-iter.h (struct all_matching_threads_iterator, struct
10262 all_matching_threads_range, class all_non_exited_threads_range):
10263 Filter by target too. Remove explicit.
10264 * thread.c (threads_executing): Delete.
10265 (inferior_thread): Pass down current inferior.
10266 (clear_thread_inferior_resources): Pass down thread pointer
10267 instead of ptid_t.
10268 (add_thread_silent, add_thread_with_info, add_thread): Add
10269 process_stratum_target parameter. Use it for thread and inferior
10270 searches.
10271 (is_current_thread): New.
10272 (thread_info::deletable): Use it.
10273 (find_thread_ptid, thread_count, in_thread_list)
10274 (thread_change_ptid, set_resumed, set_running): New
10275 process_stratum_target parameter. Pass it down.
10276 (set_executing): New process_stratum_target parameter. Pass it
10277 down. Adjust reference to 'threads_executing'.
10278 (threads_are_executing): New process_stratum_target parameter.
10279 Adjust reference to 'threads_executing'.
10280 (set_stop_requested, finish_thread_state): New
10281 process_stratum_target parameter. Pass it down.
10282 (switch_to_thread): Also match inferior.
10283 (switch_to_thread): New process_stratum_target parameter. Pass it
10284 down.
10285 (update_threads_executing): Reimplement.
10286 * top.c (quit_force): Pop targets from all inferior.
10287 (gdb_init): Don't call initialize_targets.
10288 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10289 Declare.
10290 (windows_add_thread, windows_delete_thread): Adjust.
10291 (get_windows_debug_event): Rename to ...
10292 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10293 * tracefile-tfile.c (tfile_target_open): Pass down target.
10294 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10295 Forward declare.
10296 (switch_to_thread): Add process_stratum_target parameter.
10297 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10298 parameter. Use it.
10299 (mi_on_resume): Pass target down.
10300 * nat/fork-inferior.c (startup_inferior): Add
10301 process_stratum_target parameter. Pass it down.
10302 * nat/fork-inferior.h (startup_inferior): Add
10303 process_stratum_target parameter.
10304 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10305
75c6c844
PA
103062020-01-10 Pedro Alves <palves@redhat.com>
10307
10308 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10309 directly. Instead find the first thread in the thread list and
10310 use switch_to_thread.
10311
78f2c40a
PA
103122020-01-10 Pedro Alves <palves@redhat.com>
10313
10314 * remote.c (remote_target::remote_add_inferior): Don't bind a
10315 process to the current inferior if the current inferior is already
10316 bound to a process.
10317
e7af6c70
TBA
103182020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10319 Pedro Alves <palves@redhat.com>
10320
10321 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10322 If no process is specified, return null_ptid instead of
10323 inferior_ptid.
10324 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10325 TARGET_WAITKIND_SIGNALLED with no pid.
10326
31ba933e
PA
103272020-01-10 Pedro Alves <palves@redhat.com>
10328
10329 * remote.c (first_remote_resumed_thread): New.
10330 (remote_target::wait_as): Use it as default event_ptid instead of
10331 inferior_ptid.
10332
735fc2ca
PA
103332020-01-10 Pedro Alves <palves@redhat.com>
10334
10335 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10336
c17e02e1
PA
103372020-01-10 Pedro Alves <palves@redhat.com>
10338
10339 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10340 not -1.
10341
ab1ddbcf
PA
103422020-01-10 Pedro Alves <palves@redhat.com>
10343
10344 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10345 ptid to get_last_target_status.
10346 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10347 ptid to get_last_target_status.
10348 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10349 get_last_target_status.
10350 (info_program_command): Don't pass a target_waitstatus to
10351 get_last_target_status.
10352 * infrun.c (init_wait_for_inferior): Use
10353 nullify_last_target_wait_ptid.
10354 (get_last_target_status): Handle nullptr arguments.
10355 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10356 (print_stop_event): Don't pass a ptid to get_last_target_status.
10357 (normal_stop): Don't pass a ptid to get_last_target_status.
10358 * infrun.h (get_last_target_status, set_last_target_status): Move
10359 comments here and update.
10360 (nullify_last_target_wait_ptid): Declare.
10361 * linux-fork.c (fork_load_infrun_state): Remove local extern
10362 declaration of nullify_last_target_wait_ptid.
10363 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10364 to get_last_target_status.
10365
f3f8ece4
PA
103662020-01-10 Pedro Alves <palves@redhat.com>
10367
10368 * gdbthread.h (scoped_restore_current_thread)
10369 <dont_restore, restore, m_dont_restore>: Declare.
10370 * thread.c (thread_alive): Add assertion. Return bool.
10371 (switch_to_thread_if_alive): New.
10372 (prune_threads): Switch inferior/thread.
10373 (print_thread_info_1): Switch thread before calling target methods.
10374 (scoped_restore_current_thread::restore): New, factored out from
10375 ...
10376 (scoped_restore_current_thread::~scoped_restore_current_thread):
10377 ... this.
10378 (scoped_restore_current_thread::scoped_restore_current_thread):
10379 Add assertion.
10380 (thread_apply_all_command, thread_select): Use
10381 switch_to_thread_if_alive.
10382 * infrun.c (proceed, restart_threads, handle_signal_stop)
10383 (switch_back_to_stepped_thread): Switch current thread before
10384 calling target methods.
10385
db2d40f7
PA
103862020-01-10 Pedro Alves <palves@redhat.com>
10387
10388 * inferior.c (switch_to_inferior_no_thread): New function,
10389 factored out from ...
10390 (inferior_command): ... here.
10391 * inferior.h (switch_to_inferior_no_thread): Declare.
10392 * mi/mi-main.c (run_one_inferior): Use
10393 switch_to_inferior_no_thread.
10394
bd420a2d
PA
103952020-01-10 Pedro Alves <palves@redhat.com>
10396
10397 * infcmd.c (kill_command): Remove dead code.
10398
ddf5db90
PA
103992020-01-10 Pedro Alves <palves@redhat.com>
10400
10401 * remote.c (remote_target::mourn_inferior): No longer check
10402 whether the target is running.
10403
5018ce90
PA
104042020-01-10 Pedro Alves <palves@redhat.com>
10405
10406 * corelow.c (core_target::has_execution): Change parameter type to
10407 inferior pointer.
10408 * inferior.c (number_of_live_inferiors): Use
10409 inferior::has_execution instead of target_has_execution_1.
10410 * inferior.h (inferior::has_execution): New.
10411 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10412 inferior::has_execution instead of target_has_execution_1.
10413 * process-stratum-target.c
10414 (process_stratum_target::has_execution): Change parameter type to
10415 inferior pointer. Check the inferior's PID instead of
10416 inferior_ptid.
10417 * process-stratum-target.h
10418 (process_stratum_target::has_execution): Change parameter type to
10419 inferior pointer.
10420 * record-full.c (record_full_core_target::has_execution): Change
10421 parameter type to inferior pointer.
10422 * target.c (target_has_execution_1): Change parameter type to
10423 inferior pointer.
10424 (target_has_execution_current): Adjust.
10425 * target.h (target_ops::has_execution): Change parameter type to
10426 inferior pointer.
10427 (target_has_execution_1): Change parameter type to inferior
10428 pointer. Change return type to bool.
10429 * tracefile.h (tracefile_target::has_execution): Change parameter
10430 type to inferior pointer.
10431
74375d18
PA
104322020-01-10 Pedro Alves <palves@redhat.com>
10433
10434 * exceptions.c (print_flush): Remove current_top_target() check.
10435
acdf84a6
PA
104362020-01-10 Pedro Alves <palves@redhat.com>
10437
10438 * remote.c (show_remote_exec_file): Show the current inferior's
10439 exec-file instead of the command variable's value.
10440
ec506636
PA
104412020-01-10 Pedro Alves <palves@redhat.com>
10442
10443 * record-full.c (record_full_resume_ptid): New global.
10444 (record_full_target::resume): Set it.
10445 (record_full_wait_1): Use record_full_resume_ptid instead of
10446 inferior_ptid.
10447
873657b9
PA
104482020-01-10 Pedro Alves <palves@redhat.com>
10449
10450 * gdbthread.h (scoped_restore_current_thread)
10451 <dont_restore, restore, m_dont_restore>: Declare.
10452 * thread.c (thread_alive): Add assertion. Return bool.
10453 (switch_to_thread_if_alive): New.
10454 (prune_threads): Switch inferior/thread.
10455 (print_thread_info_1): Switch thread before calling target methods.
10456 (scoped_restore_current_thread::restore): New, factored out from
10457 ...
10458 (scoped_restore_current_thread::~scoped_restore_current_thread):
10459 ... this.
10460 (scoped_restore_current_thread::scoped_restore_current_thread):
10461 Add assertion.
10462 (thread_apply_all_command, thread_select): Use
10463 switch_to_thread_if_alive.
10464
7f0ae84c
GB
104652020-01-10 George Barrett <bob@bob131.so>
10466
10467 * stap-probe.c (stap_modify_semaphore): Don't check for null
10468 semaphores.
10469 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10470 for null semaphores.
10471
f5a7c406
AB
104722020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10473
10474 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10475 all source windows, and maintain horizontal scroll status while
10476 doing so.
10477
9ae6bf64
TT
104782020-01-09 Tom Tromey <tom@tromey.com>
10479
10480 PR tui/18932:
10481 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10482 update_source_window, not print_source_lines.
10483
b2efe70c
AB
104842020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * tui/tui.c (tui_enable): Register tui hooks after calling
10487 tui_display_main.
10488
5f23a082
CB
104892020-01-09 Christian Biesinger <cbiesinger@google.com>
10490
10491 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10492
3061113b
SM
104932020-01-08 Simon Marchi <simon.marchi@efficios.com>
10494
10495 * thread.c (print_thread_info_1): Fix indentation.
10496
57d75002
CB
104972020-01-09 Christian Biesinger <cbiesinger@google.com>
10498
10499 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10500 unique_xmalloc_ptr outside the if to always free the demangled name.
10501
6a053cb1
TT
105022020-01-08 Tom Tromey <tromey@adacore.com>
10503
10504 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10505 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10506 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10507 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10508 Remove.
10509 (section_offsets): New typedef.
10510 * symtab.c (fixup_section, get_msymbol_address): Update.
10511 * symmisc.c (dump_msymbols): Update.
10512 * symfile.h (relative_addr_info_to_section_offsets)
10513 (symfile_map_offsets_to_segments): Update.
10514 * symfile.c (build_section_addr_info_from_objfile)
10515 (init_objfile_sect_indices): Update.
10516 (struct place_section_arg): Change type of "offsets".
10517 (place_section): Update.
10518 (relative_addr_info_to_section_offsets): Change type of
10519 "section_offsets". Remove "num_sections" parameter.
10520 (default_symfile_offsets, syms_from_objfile_1)
10521 (set_objfile_default_section_offset): Update.
10522 (reread_symbols): No need to preserve section offsets by hand.
10523 (symfile_map_offsets_to_segments): Change type of "offsets".
10524 * stap-probe.c (relocate_address): Update.
10525 * stabsread.h (process_one_symbol): Update.
10526 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10527 (solib_target_relocate_section_addresses): Update.
10528 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10529 Update.
10530 * solib-frv.c (frv_relocate_main_executable): Update.
10531 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10532 * solib-aix.c (solib_aix_get_section_offsets): Change return
10533 type.
10534 (solib_aix_solib_create_inferior_hook): Update.
10535 * remote.c (remote_target::get_offsets): Update.
10536 * psymtab.c (find_pc_sect_psymtab): Update.
10537 * psympriv.h (struct partial_symbol) <address, text_low,
10538 text_high>: Update.
10539 * objfiles.h (obj_section_offset): Update.
10540 (struct objfile) <section_offsets>: Change type.
10541 <num_sections>: Remove.
10542 (objfile_relocate): Update.
10543 * objfiles.c (entry_point_address_query): Update
10544 (relocate_one_symbol): Change type of "section_offsets".
10545 (objfile_relocate1, objfile_relocate1): Change type of
10546 "new_offsets".
10547 (objfile_rebase1): Update.
10548 * mipsread.c (mipscoff_symfile_read): Update.
10549 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10550 parameter.
10551 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10552 (parse_external, psymtab_to_symtab_1): Update.
10553 * machoread.c (macho_symfile_offsets): Update.
10554 * ia64-tdep.c (ia64_find_unwind_table): Update.
10555 * hppa-tdep.c (read_unwind_info): Update.
10556 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10557 * dwarf2read.c (create_addrmap_from_index)
10558 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10559 (process_psymtab_comp_unit_reader, add_partial_symbol)
10560 (add_partial_subprogram, process_full_comp_unit)
10561 (read_file_scope, read_func_scope, read_lexical_block_scope)
10562 (read_call_site_scope, dwarf2_rnglists_process)
10563 (dwarf2_ranges_process, dwarf2_ranges_read)
10564 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10565 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10566 Update.
10567 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10568 Update.
10569 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10570 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10571 (process_one_symbol): Change type of "section_offsets".
10572 * ctfread.c (get_objfile_text_range): Update.
10573 * coffread.c (coff_symtab_read, enter_linenos)
10574 (process_coff_symbol): Update.
10575 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10576 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10577
456e800a
TT
105782020-01-08 Tom Tromey <tromey@adacore.com>
10579
10580 * dwarf2read.c (parse_macro_definition): Use std::string.
10581 (parse_macro_definition): Likewise.
10582
6dfa2fc2
TT
105832020-01-08 Tom Tromey <tromey@adacore.com>
10584
10585 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10586 (ATTR_ALLOC_CHUNK): Remove.
10587
421d1616
TT
105882020-01-08 Tom Tromey <tromey@adacore.com>
10589
10590 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10591
43816ebc
TT
105922020-01-08 Tom Tromey <tromey@adacore.com>
10593
10594 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10595 (dwarf2_compute_name, open_dwo_file): Likewise.
10596 (process_enumeration_scope): Use std::vector.
10597 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10598 (partial_die_info::fixup, dwarf2_start_subfile)
10599 (guess_full_die_structure_name, dwarf2_name): Likewise.
10600 (determine_prefix): Update.
10601 (guess_full_die_structure_name): Make return type const.
10602 (partial_die_full_name): Return unique_xmalloc_ptr.
10603 (DW_FIELD_ALLOC_CHUNK): Remove.
10604
4212d509
TT
106052020-01-07 Tom Tromey <tromey@adacore.com>
10606
10607 PR build/24937:
10608 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10609
06a6207a
JT
106102020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10611
10612 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10613
153d79c4
AB
106142020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10615
10616 * stack.c (print_frame_info): Move disassemble_next_line code
10617 inside source_print block.
10618
66182876
EZ
106192020-01-06 Eli Zaretskii <eliz@gnu.org>
10620
10621 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10622 gdb/signals.h, as we are now using native signal symbols.
10623
cbfa8581
SV
106242020-01-06 Shahab Vahedi <shahab@synopsys.com>
10625
10626 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10627 overflow by an early check of content vs threshold.
aac66a4c 10628 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10629 Likewise.
10630
3f602821
EZ
106312020-01-06 Eli Zaretskii <eliz@gnu.org>
10632
10633 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10634
a08c904d
JT
106352020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10636
10637 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10638 export table if no section contains it's RVA.
10639
89a65580
EZ
106402020-01-06 Eli Zaretskii <eliz@gnu.org>
10641
10642 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10643
8b7fcda2
HD
106442020-01-06 Hannes Domani <ssbssa@yahoo.de>
10645
10646 * source.c (print_source_lines_base): Set last_line_listed.
10647
a61b4f69
SV
106482020-01-06 Shahab Vahedi <shahab@synopsys.com>
10649
10650 * tui/tui-disasm.c: Remove trailing spaces.
10651
559e7e50
EZ
106522020-01-06 Eli Zaretskii <eliz@gnu.org>
10653 Pedro Alves <palves@redhat.com>
10654
10655 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10656 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10657 (windows_gdb_signal_to_target): New function, uses the above
10658 enumeration to convert GDB internal signal codes to equivalent
10659 Windows codes.
10660 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10661 * windows-nat.c: Include "gdb_wait.h".
10662 (get_windows_debug_event): Extract the fatal exception from the
10663 exit status and convert to the equivalent Posix signal number.
10664 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10665 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10666 * gdbsupport/gdb_wait.c: New file, implements
10667 windows_status_to_termsig.
10668 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10669 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10670
f2302a34
AB
106712020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10672
10673 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10674 show_layout.
10675
6a5206eb
LM
106762020-01-05 Luis Machado <luis.machado@linaro.org>
10677
10678 * aarch64-linux-nat.c
10679 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10680 and bfd_mach_aarch64.
10681
6ec1d75e
PW
106822020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683
10684 * ui-file.c (stdio_file::can_emit_style_escape)
10685 (tee_file::can_emit_style_escape): Ensure style is used also on
10686 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10687 to gdb_stdout.
10688 * main.c (set_gdb_data_directory): Use file style to output the
10689 warning that the given pathname is not a directory.
10690 * top.c (show_history_filename, gdb_safe_append_history)
10691 (show_gdb_datadir): Use file style.
10692
44f81a76
HD
106932020-01-03 Hannes Domani <ssbssa@yahoo.de>
10694
10695 * solib-target.c (struct lm_info_target):
10696 Change offsets to be a unique_xmalloc_ptr.
10697 (solib_target_relocate_section_addresses): Update.
10698
25057eb0
HD
106992020-01-03 Hannes Domani <ssbssa@yahoo.de>
10700
10701 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10702
6e2118f5
BE
107032020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10704
10705 * MAINTAINERS (Write After Approval): Add myself.
10706
8133c7dc
LM
107072020-01-02 Luis Machado <luis.machado@linaro.org>
10708
10709 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10710 Cell BE architecture.
10711 * target.h (struct target_ops) <thread_architecture>: Likewise.
10712
48189bec
HD
107132020-01-01 Hannes Domani <ssbssa@yahoo.de>
10714
10715 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10716
ead1063b
HD
107172020-01-01 Hannes Domani <ssbssa@yahoo.de>
10718
10719 * MAINTAINERS (Write After Approval): Add myself.
10720
e5d78223
JB
107212020-01-01 Joel Brobecker <brobecker@adacore.com>
10722
10723 * gdbarch.sh: Update copyright year range of generated files.
10724
b811d2c2
JB
107252020-01-01 Joel Brobecker <brobecker@adacore.com>
10726
10727 Update copyright year range in all GDB files.
10728
5f4def5c
JB
107292020-01-01 Joel Brobecker <brobecker@adacore.com>
10730
10731 * copyright.py: Convert to Python 3.
10732
51fd4002
JB
107332020-01-01 Joel Brobecker <brobecker@adacore.com>
10734
10735 * copyright.py: Adapt after move of gnulib directory from gdb
10736 directory to toplevel directory.
10737
5fb651f2
JB
107382020-01-01 Joel Brobecker <brobecker@adacore.com>
10739
10740 * copyright.py (main): Exit if run from the wrong directory.
10741
5dd8bf88
JB
107422020-01-01 Joel Brobecker <brobecker@adacore.com>
10743
10744 * top.c (print_gdb_version): Change copyright year to 2020.
10745
9f71dacb 107462020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10747
9f71dacb 10748 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10749
9f71dacb 10750For older changes see ChangeLog-2019.
c906108c
SS
10751\f
10752Local Variables:
10753mode: change-log
10754left-margin: 8
10755fill-column: 74
10756version-control: never
57da7796 10757coding: utf-8
c906108c 10758End: