]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove tui_expand_tabs
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7a02bab7
TT
12020-07-01 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4 std::string.
5 * tui/tui-regs.c (class tab_expansion_file): New.
6 (tab_expansion_file::write): New method.
7 (tui_register_format): Change return type. Use
8 tab_expansion_file.
9 (tui_get_register, tui_data_window::display_registers_from)
10 (tui_data_item_window::rerender): Update.
11 * tui/tui-io.h (tui_expand_tabs): Don't declare.
12 * tui/tui-io.c (tui_expand_tabs): Remove.
13
ea68593b
TT
142020-07-01 Tom Tromey <tom@tromey.com>
15
16 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
17
a8caed5d
FS
182020-07-01 Fangrui Song <maskray@google.com>
19
20 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
21
9cdf9820
AKS
222020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
23
24 * dwarf2/read.c (set_die_type): Removed conditions to restrict
25 forms for DW_AT_associated and DW_AT_allocated attributes,
26 which is already checked in function attr_to_dynamic_prop.
27
a1520ad8
TT
282020-06-30 Tom Tromey <tromey@adacore.com>
29
30 * dwarf2/read.c (quirk_rust_enum): Correctly call
31 alloc_rust_variant for default-less enum.
32
5ac58899
TT
332020-06-30 Tom Tromey <tromey@adacore.com>
34
35 PR build/26183:
36 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
37 gdb::to_string.
38
19b187a9
SM
392020-06-29 Simon Marchi <simon.marchi@efficios.com>
40
41 * gdbarch.sh (displaced_step_copy_insn): Update doc.
42 * gdbarch.h: Re-generate.
43
cd4c4c07
TT
442020-06-28 Tom Tromey <tom@tromey.com>
45
46 * command.h (cmd_types): Remove.
47 (cmd_type): Don't declare.
48 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
49 typedef.
50 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
51 * cli/cli-decode.c (cmd_type): Remove.
52
05779d57
PA
532020-06-27 Pedro Alves <palves@redhat.com>
54
55 * fork-child.c (prefork_hook): Adjust.
56 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
57 Delete.
58 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
59 * inferior.c (inferior::set_tty, inferior::tty): New methods.
60 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
61 Remove declarations.
62 (struct inferior) <set_tty, tty>: New methods.
63 (struct inferior) <terminal>: Rename to ...
64 (struct inferior) <m_terminal>: ... this and make private.
65 * main.c (captured_main_1): Adjust.
66 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
67 (mi_cmd_inferior_tty_show): Adjust.
68 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
69 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
70
1776e3e5
NA
712020-06-26 Nick Alcock <nick.alcock@oracle.com>
72
73 * configure.ac: Add --enable-libctf: handle --disable-static
74 properly.
75 * acinclude.m4: sinclude ../config/enable.m4.
76 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
77 (LIBCTF): Substitute in.
78 (CTF_DEPS): New, likewise.
79 (CLIBS): libctf needs symbols from libbfd: move earlier.
80 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
81 flags.
82 * ctfread.c: Surround in ENABLE_LIBCTF.
83 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
84 * configure: Regenerate.
85 * config.in: Likewise.
86
58373b80
SM
872020-06-25 Simon Marchi <simon.marchi@efficios.com>
88
89 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
90
277474ee
SM
912020-06-25 Simon Marchi <simon.marchi@efficios.com>
92
93 * inferior.h (struct inferior) <terminal>: Change type to
94 gdb::unique_xmalloc_ptr<char>.
95 * inferior.c (inferior::~inferior): Don't free inf->terminal.
96 * infcmd.c (set_inferior_io_terminal): Don't free terminal
97 field, adjust to unique pointer.
98 (get_inferior_io_terminal): Adjust to unique pointer.
99
6d74da72
AB
1002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 * riscv-tdep.c (riscv_print_registers_info): Loop over all
103 registers, not just the known core set of registers.
104
2e52d038
AB
1052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
106
107 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
108 fflags, frm, and fcsr registers.
109 (riscv_register_reggroup_p): Remove unknown CSRs from save and
110 restore groups.
111 (riscv_tdesc_unknown_reg): New function.
112 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
113 tdesc_use_registers.
114 * riscv-tdep.h (struct gdbarch_tdep): Add
115 unknown_csrs_first_regnum, unknown_csrs_count,
116 duplicate_fflags_regnum, duplicate_frm_regnum, and
117 duplicate_fcsr_regnum fields.
118
be64fd07
AB
1192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * target-descriptions.c (tdesc_use_registers): Add new parameter a
122 callback, use the callback (when not null) to help number unknown
123 registers.
124 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
125 (tdesc_use_registers): Add extra parameter to declaration.
126
3b9fce96
AB
1272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
130 in the file.
131 (class riscv_pending_register_alias): Likewise.
132 (riscv_register_feature::register_info): Change 'required_p' field
133 to 'required', and change its type. Add 'check' member function.
134 (riscv_register_feature::register_info::check): Define new member
135 function.
136 (riscv_xreg_feature): Change initialisation of 'required' field.
137 (riscv_freg_feature): Likewise.
138 (riscv_virtual_feature): Likewise.
139 (riscv_csr_feature): Likewise.
140 (riscv_check_tdesc_feature): Take extra parameter, the csr
141 tdesc_feature, rewrite the function to use the new
142 riscv_register_feature::register_info::check function.
143 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
144
865bad26
AB
1452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * features/Makefile: Remove all references to the deleted files
148 below.
149 * features/riscv/32bit-csr.c: Deleted.
150 * features/riscv/32bit-csr.xml: Deleted.
151 * features/riscv/64bit-csr.c: Deleted.
152 * features/riscv/64bit-csr.xml: Deleted.
153 * features/riscv/rebuild-csr-xml.sh: Deleted.
154
ed69cbc8
AB
1552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
158 whitespace error for declaration of names member variable.
159 (struct riscv_register_feature): Add new prefer_first_name member
160 variable, and fix whitespace error in declaration of registers.
161 (riscv_xreg_feature): Initialize prefer_first_name field.
162 (riscv_freg_feature): Likewise.
163 (riscv_virtual_feature): Likewise.
164 (riscv_csr_feature): Likewise.
165 (riscv_register_name): Expand on comments. Remove register name
166 modifications for CSR and virtual registers.
167
4445e8f5
AB
1682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
171 errors.
172
767a879e
AB
1732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
174
175 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
176 riscv-opc.h.
177 (class riscv_pending_register_alias): New class.
178 (riscv_check_tdesc_feature): Take vector of pending aliases and
179 populate it as appropriate.
180 (riscv_setup_register_aliases): Delete.
181 (riscv_gdbarch_init): Create vector of pending aliases and pass it
182 to riscv_check_tdesc_feature in all cases. Use the vector to
183 create the register aliases.
184
bb6e55f3
RO
1852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
186
187 * sol2-tdep.c (sol2_static_transform_name): Remove.
188 (sol2_init_abi): Don't register it.
189 * gdbarch.sh (static_transform_name): Remove.
190 * gdbarch.c, gdbarch.h: Regenerate.
191
192 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
193 gdbarch_static_transform_name.
194 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
195 * stabsread.c (define_symbol) <'X'>: Remove.
196 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
197 handling.
198 <'V'>: Likewise.
199 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
200 <'S'>: Remove call to gdbarch_static_transform_name.
201
c6d36836
RO
2022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
203
204 * procfs.c (procfs_pre_trace): New function.
205 (procfs_target::create_inferior): Pass it to fork_inferior.
206
a7e6196b
RO
2072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
208
209 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
210 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
211 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
212 sol2-tdep.o, sparc-sol2-tdep.o.
213 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
214 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
215 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
216 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
217
d412e696
RO
2182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219
220 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
221 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
222 Call sol2_init_abi.
223 Remove calls to set_gdbarch_skip_solib_resolver,
224 set_gdbarch_core_pid_to_str.
225 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
226 (i386_sol2_static_transform_name): Remove.
227 (i386_sol2_init_abi): Call sol2_init_abi.
228 Remove calls to set_gdbarch_sofun_address_maybe_missing,
229 set_gdbarch_static_transform_name,
230 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
231 Use sol2_sigtramp_p.
232 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
233 (sol2_sigtramp_p): New function.
234 (sol2_static_transform_name): New function.
235 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
236 (sol2_init_abi): New function.
237 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
238 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
239 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
240 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
241 (sparc_sol2_static_transform_name): Remove.
242 (sparc32_sol2_init_abi): Call sol2_init_abi.
243 Remove calls to set_gdbarch_sofun_address_maybe_missing,
244 set_gdbarch_static_transform_name,
245 set_gdbarch_skip_solib_resolver,
246 set_gdbarch_core_pid_to_str.
247 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
248 (sparc_sol2_static_transform_name): Remove
249 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
250 call sol2_sigtramp_p.
251 (sparc64_sol2_init_abi): Call sol2_init_abi.
252 Remove calls to set_gdbarch_sofun_address_maybe_missing,
253 set_gdbarch_static_transform_name,
254 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
255
a8654e7d
PW
2562020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
257
258 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
259 * exec.c (validate_exec_file): If from_tty, set both
260 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
261 * symfile.c (symbol_file_add_with_addrs): if always_confirm
262 and from_tty, unconditionally ask a confirmation.
263
caa7fd04
AB
2642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * target-descriptions.c (tdesc_architecture_name): Protect against
267 NULL pointer dereference.
268 (maint_print_xml_tdesc_cmd): New function.
269 (_initialize_target_descriptions): Register new 'maint print
270 xml-tdesc' command and give it the filename completer.
271 * NEWS: Mention new 'maint print xml-tdesc' command.
272
fbf42f4e
AB
2732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * target-descriptions.c (class tdesc_compatible_info): New class.
276 (struct target_desc): Change type of compatible vector.
277 (tdesc_compatible_p): Update for change in type of
278 target_desc::compatible.
279 (tdesc_compatible_info_list): New function.
280 (tdesc_compatible_info_arch_name): New function.
281 (tdesc_add_compatible): Update for change in type of
282 target_desc::compatible.
283 (print_c_tdesc::visit_pre): Likewise.
284
20821f4e
AB
2852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
286
287 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
288 whitespace to underscore.
289 (maint_print_c_tdesc_cmd): Use fake filename for target
290 descriptions that came from the target.
291 (_initialize_target_descriptions): Add filename command completion
292 for 'maint print c-tdesc'.
293
1fb5ee62
SM
2942020-06-23 Simon Marchi <simon.marchi@efficios.com>
295
296 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
297 lines.
298
fc3ecb3e
SM
2992020-06-23 Simon Marchi <simon.marchi@efficios.com>
300
301 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
302 lines.
303 (dwarf2_find_location_expression): Likewise.
304 (call_site_parameter_matches): Likewise.
305 (dwarf2_compile_expr_to_ax): Likewise.
306 (disassemble_dwarf_expression): Likewise.
307 (loclist_describe_location): Likewise.
308
236ef034
PA
3092020-06-23 Pedro Alves <palves@redhat.com>
310
311 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
312 progspace-and-thread.h. Include scoped-mock-context.h instead.
313 (register_to_value_test): Use scoped_mock_context.
314 * regcache.c: Include "scoped-mock-context.h".
315 (cooked_read_test): Don't error out if a target is already pushed.
316 Use scoped_mock_context. Adjust.
317 * scoped-mock-context.h: New file.
318
39e7ecca
AB
3192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
322 initializer.
323 (ada_language::is_string_type_p): New member function.
324 * c-lang.c (c_language_data): Delete la_is_string_type_p
325 initializer.
326 (cplus_language_data): Likewise.
327 (asm_language_data): Likewise.
328 (minimal_language_data): Likewise.
329 * d-lang.c (d_language_data): Likewise.
330 * f-lang.c (f_is_string_type_p): Delete function, implementation
331 moved to f_language::is_string_type_p.
332 (f_language_data): Delete la_is_string_type_p initializer.
333 (f_language::is_string_type_p): New member function,
334 implementation from f_is_string_type_p.
335 * go-lang.c (go_is_string_type_p): Delete function, implementation
336 moved to go_language::is_string_type_p.
337 (go_language_data): Delete la_is_string_type_p initializer.
338 (go_language::is_string_type_p): New member function,
339 implementation from go_is_string_type_p.
340 * language.c (language_defn::is_string_type_p): Define new member
341 function.
342 (default_is_string_type_p): Make static, add comment copied from
343 header file.
344 (unknown_language_data): Delete la_is_string_type_p initializer.
345 (unknown_language::is_string_type_p): New member function.
346 (auto_language_data): Delete la_is_string_type_p initializer.
347 (auto_language::is_string_type_p): New member function.
348 * language.h (language_data): Delete la_is_string_type_p field.
349 (language_defn::is_string_type_p): Declare new function.
350 (default_is_string_type_p): Delete desclaration, move comment to
351 definition.
352 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
353 moved to m2_language::is_string_type_p.
354 (m2_language_data): Delete la_is_string_type_p initializer.
355 (m2_language::is_string_type_p): New member function,
356 implementation from m2_is_string_type_p.
357 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
358 initializer.
359 * opencl-lang.c (opencl_language_data): Likewise.
360 * p-lang.c (pascal_is_string_type_p): Delete function,
361 implementation moved to pascal_language::is_string_type_p.
362 (pascal_language_data): Delete la_is_string_type_p initializer.
363 (pascal_language::is_string_type_p): New member function,
364 implementation from pascal_is_string_type_p.
365 * rust-lang.c (rust_is_string_type_p): Delete function,
366 implementation moved to rust_language::is_string_type_p.
367 (rust_language_data): Delete la_is_string_type_p initializer.
368 (rust_language::is_string_type_p): New member function,
369 implementation from rust_is_string_type_p.
370 * valprint.c (val_print_scalar_or_string_type_p): Update call to
371 is_string_type_p.
372
4ffc13fb
AB
3732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * ada-lang.c (ada_language_data): Delete la_print_typedef
376 initializer.
377 (ada_language::print_typedef): New member function.
378 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
379 (cplus_language_data): Likewise.
380 (asm_language_data): Likewise.
381 (minimal_language_data): Likewise.
382 * d-lang.c (d_language_data): Likewise.
383 * f-lang.c (f_language_data): Likewise.
384 (f_language::print_typedef): New member function.
385 * go-lang.c (go_language_data): Delete la_print_typedef
386 initializer.
387 * language.c (language_defn::print_typedef): Define member
388 function.
389 (unknown_language_data): Delete la_print_typedef initializer.
390 (unknown_language::print_typedef): New member function.
391 (auto_language_data): Delete la_print_typedef initializer.
392 (auto_language::print_typedef): New member function.
393 * language.h (language_data): Delete la_print_typedef field.
394 (language_defn::print_typedef): Declare new member function.
395 (LA_PRINT_TYPEDEF): Update call to print_typedef.
396 (default_print_typedef): Delete declaration.
397 * m2-lang.c (m2_language_data): Delete la_print_typedef
398 initializer.
399 (m2_language::print_typedef): New member function.
400 * objc-lang.c (objc_language_data): Delete la_print_typedef
401 initializer.
402 * opencl-lang.c (opencl_language_data): Likewise.
403 * p-lang.c (pascal_language_data): Likewise.
404 (pascal_language::print_typedef): New member function.
405 * rust-lang.c (rust_print_typedef): Delete function,
406 implementation moved to rust_language::print_typedef.
407 (rust_language): Delete la_print_typedef initializer.
408 (rust_language::print_typedef): New member function,
409 implementation from rust_print_typedef.
410 * typeprint.c (default_print_typedef): Delete.
411
d711ee67
AB
4122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
415 (ada_language::printstr): New member function.
416 * c-lang.c (c_language_data): Delete la_printstr initializer.
417 (cplus_language_data): Likewise.
418 (asm_language_data): Likewise.
419 (minimal_language_data): Likewise.
420 * d-lang.c (d_language_data): Likewise.
421 * f-lang.c (f_printstr): Rename to f_language::printstr.
422 (f_language_data): Delete la_printstr initializer.
423 (f_language::printstr): New member function, implementation from
424 f_printstr.
425 * go-lang.c (go_language_data): Delete la_printstr initializer.
426 * language.c (language_defn::printstr): Define new member
427 function.
428 (unk_lang_printstr): Delete.
429 (unknown_language_data): Delete la_printstr initializer.
430 (unknown_language::printstr): New member function.
431 (auto_language_data): Delete la_printstr initializer.
432 (auto_language::printstr): New member function.
433 * language.h (language_data): Delete la_printstr field.
434 (language_defn::printstr): Declare new member function.
435 (LA_PRINT_STRING): Update call to printstr.
436 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
437 (m2_language_data): Delete la_printstr initializer.
438 (m2_language::printstr): New member function, implementation from
439 m2_printstr.
440 * objc-lang.c (objc_language_data): Delete la_printstr
441 initializer.
442 * opencl-lang.c (opencl_language_data): Likewise.
443 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
444 (pascal_language_data): Delete la_printstr initializer.
445 (pascal_language::printstr): New member function, implementation
446 from pascal_printstr.
447 * p-lang.h (pascal_printstr): Delete declaration.
448 * rust-lang.c (rust_printstr): Update header comment.
449 (rust_language_data): Delete la_printstr initializer.
450 (rust_language::printstr): New member function.
451
52b50f2c
AB
4522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
455 (ada_language::printchar): New member function.
456 * c-lang.c (c_language_data): Delete la_printchar initializer.
457 (cplus_language_data): Likewise.
458 (asm_language_data): Likewise.
459 (minimal_language_data): Likewise.
460 * d-lang.c (d_language_data): Likewise.
461 * f-lang.c (f_printchar): Rename to f_language::printchar.
462 (f_language_data): Delete la_printchar initializer.
463 (f_language::printchar): New member function, implementation from
464 f_printchar.
465 * go-lang.c (go_language_data): Delete la_printchar initializer.
466 * language.c (unk_lang_printchar): Delete.
467 (language_defn::printchar): Define new member function.
468 (unknown_language_data): Delete la_printchar initializer.
469 (unknown_language::printchar): New member function.
470 (auto_language_data): Delete la_printchar initializer.
471 (auto_language::printchar): New member function.
472 * language.h (language_data): Delete la_printchar field.
473 (language_defn::printchar): Declare new member function.
474 (LA_PRINT_CHAR): Update call to printchar.
475 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
476 (m2_language::printchar): New member function.
477 * objc-lang.c (objc_language_data): Delete la_printchar
478 initializer.
479 * opencl-lang.c (opencl_language_data): Likewise.
480 * p-lang.c (pascal_language_data): Delete la_printchar
481 initializer.
482 (pascal_language::printchar): New member function.
483 * rust-lang.c (rust_printchar): Rename to
484 rust_language::printchar.
485 (rust_language_data): Delete la_printchar initializer.
486 (rust_language::printchar): New member function, implementation
487 from rust_printchar.
488
ec8cec5b
AB
4892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
492 (ada_language_data): Delete la_emitchar initializer.
493 (ada_language::emitchar): New member function, implementation from
494 emit_char.
495 * c-lang.c (c_language_data): Delete la_emitchar initializer.
496 (cplus_language_data): Likewise.
497 (asm_language_data): Likewise.
498 (minimal_language_data): Likewise.
499 * d-lang.c (d_language_data): Likewise.
500 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
501 (f_language_data): Delete la_emitchar initializer.
502 (f_language::emitchar): New member function, implementation from
503 f_emit_char.
504 * go-lang.c (go_language_data): Delete la_emitchar initializer.
505 * language.c (unk_lang_emit_char): Delete.
506 (language_defn::emitchar): New member function definition.
507 (unknown_language_data): Delete la_emitchar initializer.
508 (unknown_language::emitchar): New member function.
509 (auto_language_data): Delete la_emitchar initializer.
510 (auto_language::emitchar): New member function.
511 * language.h (language_data): Delete la_emitchar field.
512 (language_defn::emitchar): New member field declaration.
513 (LA_EMIT_CHAR): Update call to emitchar.
514 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
515 (m2_language_data): Delete la_emitchar initializer.
516 (m2_language::emitchar): New member function, implementation from
517 m2_emit_char.
518 * objc-lang.c (objc_language_data): Delete la_emitchar
519 initializer.
520 * opencl-lang.c (opencl_language_data): Likewise.
521 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
522 (pascal_language_data): Delete la_emitchar initializer.
523 (pascal_language::emitchar): New member function, implementation
524 from pascal_emit_char.
525 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
526 (rust_language_data): Delete la_emitchar initializer.
527 (rust_language::emitchar): New member function, implementation
528 from rust_emitchar.
529
1bf9c363
AB
5302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * ada-lang.c (resolve): Rename to ada_language::post_parser.
533 (ada_language_data): Delete la_post_parser initializer.
534 (ada_language::post_parser): New member function.
535 * c-lang.c (c_language_data): Delete la_post_parser initializer.
536 (cplus_language_data): Likewise.
537 (asm_language_data): Likewise.
538 (minimal_language_data): Likewise.
539 * d-lang.c (d_language_data): Likewise.
540 * f-lang.c (f_language_data): Likewise.
541 * go-lang.c (go_language_data): Likewise.
542 * language.c (unknown_language_data): Likewise.
543 (auto_language_data): Likewise.
544 * language.h (language_data): Delete la_post_parser field.
545 (language_defn::post_parser): New member function.
546 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
547 * objc-lang.c (objc_language_data): Likewise.
548 * opencl-lang.c (opencl_language_data): Likewise.
549 * p-lang.c (pascal_language_data): Likewise.
550 * parse.c (parse_exp_in_context): Update call to post_parser.
551 (null_post_parser): Delete definition.
552 * parser-defs.h (null_post_parser): Delete declaration.
553 * rust-lang.c (rust_language_data): Delete la_post_parser
554 initializer.
555
87afa652
AB
5562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * ada-lang.c (parse): Rename to ada_language::parser.
559 (ada_language_data): Delete la_parser initializer.
560 (ada_language::parser): New member function, implementation from
561 parse.
562 * c-lang.c (c_language_data): Delete la_parser initializer.
563 (cplus_language_data): Likewise.
564 (asm_language_data): Likewise.
565 (minimal_language_data): Likewise.
566 * d-lang.c (d_language_data): Likewise.
567 (d_language::parser): New member function.
568 * f-lang.c (f_language_data): Delete la_parser initializer.
569 (f_language::parser): New member function.
570 * go-lang.c (go_language_data): Delete la_parser initializer.
571 (go_language::parser): New member function.
572 * language.c (unk_lang_parser): Delete.
573 (language_defn::parser): Define new member function.
574 (unknown_language_data): Delete la_parser initializer.
575 (unknown_language::parser): New member function.
576 (auto_language_data): Delete la_parser initializer.
577 (auto_language::parser): New member function.
578 * language.h (language_data): Delete la_parser field.
579 (language_defn::parser): Declare new member function.
580 * m2-lang.c (m2_language_data): Delete la_parser initializer.
581 (m2_language::parser): New member function.
582 * objc-lang.c (objc_language_data): Delete la_parser initializer.
583 * opencl-lang.c (opencl_language_data): Likewise.
584 * p-lang.c (pascal_language_data): Likewise.
585 (pascal_language::parser): New member function.
586 * parse.c (parse_exp_in_context): Update call to parser.
587 * rust-lang.c (rust_language_data): Delete la_parser initializer.
588 (rust_language::parser): New member function.
589
37825800
AB
5902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
591
592 * top.c (print_gdb_configuration): Print --with-python-libdir
593 configuration value.
594
5b860c93
PW
5952020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
596
597 * NEWS: Mention change to the alias command.
598
cf00cd6f
PW
5992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
600
601 * cli/cli-cmds.c (lookup_cmd_for_default_args)
602 (alias_command_completer)
603 (make_alias_options_def_group): New functions.
604 (alias_opts, alias_option_defs): New struct and array.
605 (alias_usage_error): Update usage.
606 (alias_command): Handles optional DEFAULT-ARGS... arguments.
607 Use option framework.
608 (_initialize_cli_cmds): Update alias command help.
609 Update aliases command help.
610 (show_user):
611 Add NULL for new default_args lookup_cmd argument.
612 (valid_command_p): Rename to validate_aliased_command.
613 Add NULL for new default_args lookup_cmd argument. Verify that the
614 aliased_command has no default args.
615 * cli/cli-decode.c (help_cmd): Show aliases definitions.
616 (lookup_cmd_1, lookup_cmd): New argument default_args.
617 (add_alias_cmd):
618 Add NULL for new default_args lookup_cmd argument.
619 (print_help_for_command): Show default args under the layout
620 alias some_alias = some_aliased_cmd some_alias_default_arg.
621 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
622 xfree default_args in destructor.
623 * cli/cli-script.c (process_next_line, do_define_command):
624 Add NULL for new default_args lookup_cmd argument.
625 * command.h: Declare new default_args argument in lookup_cmd
626 and lookup_cmd_1.
627 * completer.c (complete_line_internal_1):
628 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
629 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
630 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
631 Likewise.
632 * infcmd.c (_initialize_infcmd): Likewise.
633 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
634 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
635 * python/py-param.c (add_setshow_generic): Likewise.
636 * remote.c (_initialize_remote): Likewise.
637 * top.c (execute_command): Prepend default_args if command has some.
638 (set_verbose):
639 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
640 * tracepoint.c (validate_actionline, encode_actions_1):
641 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
642
bd920864
TBA
6432020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
644
645 * jit.c (jit_read_descriptor): Use bool as the return type.
646 (jit_breakpoint_re_set_internal): Use bool as the return type.
647 Invert the return value logic; return true if the jit breakpoint
648 has been successfully initialized.
649 (jit_inferior_init): Update the call to
650 jit_breakpoint_re_set_internal.
651
f8098322
PA
6522020-06-22 Pedro Alves <palves@redhat.com>
653
654 PR gdb/25939
655 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
656 Use the current inferior instead. Don't return
657 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
658 wait again.
659 * sol-thread.c (sol_thread_target::wait): Don't reference
660 inferior_ptid.
661 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
662 (sol_update_thread_list_callback): Use the current inferior's pid
663 instead of inferior_ptid.
664
196535a6
RO
6652020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
666
667 * procfs.c: Cleanup many comments.
668
669 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
670 (AFTER_WATCHFLAG): Replace by value.
671
672 (MAIN_PROC_NAME_FORMAT): Inline ...
673 (create_procinfo): ... here.
674
675 (procfs_debug_inferior): Remove SYS_exec handling.
676 (syscall_is_exec): Likewise.
677 (procfs_set_exec_trap): Likewise.
678
679 (syscall_is_lwp_exit): Inline in callers.
680 (syscall_is_exit): Likewise.
681 (syscall_is_exec): Likewise.
682 (syscall_is_lwp_create): Likewise.
683
684 (invalidate_cache): Remove #if 0 code.
685
686 (make_signal_thread_runnable): Remove.
687 (procfs_target::resume): Remove #if 0 code.
688
cf6f3e86
RO
6892020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
690
691 PR gdb/25939
692 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
693 call ...
694 (procfs_target::create_inferior): ... here.
695
48e9cc84
PW
6962020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
697
698 * exec.c (validate_exec_file): Ensure the build-id is up to
699 date by calling reopen_exec_file (that checks file timestamp
700 to decide to re-read the file).
701
3922b302
PA
7022020-06-18 Pedro Alves <palves@redhat.com>
703
704 PR gdb/25412
705 * gdbthread.h (delete_thread, delete_thread_silent)
706 (find_thread_ptid): Update comments.
707 * thread.c (current_thread_): New global.
708 (is_current_thread): Move higher, and reimplement.
709 (inferior_thread): Reimplement.
710 (set_thread_exited): Use bool. Add assertions.
711 (add_thread_silent): Simplify thread-reuse handling by always
712 calling delete_thread.
713 (delete_thread): Remove intro comment.
714 (find_thread_ptid): Skip exited threads.
715 (switch_to_thread_no_regs): Write to current_thread_.
716 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
717 INFERIOR_PTID. Clear current_thread_.
718
6dbdab44
PA
7192020-06-18 Pedro Alves <palves@redhat.com>
720
721 * aix-thread.c (pd_update): Use switch_to_thread.
722
2da4b788
PA
7232020-06-18 Pedro Alves <palves@redhat.com>
724
725 * ravenscar-thread.c (ravenscar_thread_target): Update.
726 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
727 (ravenscar_thread_target::add_active_thread): ... this. Don't
728 set m_base_ptid here. Update to avoid referencing inferior_ptid.
729 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
730
50838d1b
PA
7312020-06-18 Pedro Alves <palves@redhat.com>
732
733 * nat/windows-nat.c (current_windows_thread): Remove.
734 * nat/windows-nat.h (current_windows_thread): Remove.
735 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
736 Adjust.
737 (display_selectors): Adjust to fetch the current
738 windows_thread_info based on inferior_ptid.
739 (fake_create_process): No longer write to current_windows_thread.
740 (windows_nat_target::get_windows_debug_event):
741 Don't set inferior_ptid or current_windows_thread.
742 (windows_nat_target::wait): Adjust to not rely on
743 current_windows_thread.
744 (do_initial_windows_stuff): Now a method of windows_nat_target.
745 Switch to the last_ptid thread.
746 (windows_nat_target::attach): Adjust.
747 (windows_nat_target::detach): Use switch_to_no_thread instead of
748 writing to inferior_ptid directly.
749 (windows_nat_target::create_inferior): Adjust.
750
31ce04e9
PA
7512020-06-18 Pedro Alves <palves@redhat.com>
752
753 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
754
1ee1a363
PA
7552020-06-18 Pedro Alves <palves@redhat.com>
756
757 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
758 after creating it, instead of writing to inferior_ptid. Don't
759 write to inferior_ptid.
760
6d350754
PA
7612020-06-18 Pedro Alves <palves@redhat.com>
762
763 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
764
5d971d48
PA
7652020-06-18 Pedro Alves <palves@redhat.com>
766
767 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
768 it, instead of writing to inferior_ptid.
769
86e57d1b
PA
7702020-06-18 Pedro Alves <palves@redhat.com>
771
772 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
773 to inferior_ptid.
774
f2e1c129
PA
7752020-06-18 Pedro Alves <palves@redhat.com>
776
777 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
778 instead of writing to inferior_ptid directly.
779
60db1b85
PA
7802020-06-18 Pedro Alves <palves@redhat.com>
781
782 * corelow.c (core_target::close): Use switch_to_no_thread instead
783 of writing to inferior_ptid directly.
784 (add_to_thread_list, core_target_open): Use switch_to_thread
785 instead of writing to inferior_ptid directly.
786
fe7d6a8d
PA
7872020-06-18 Pedro Alves <palves@redhat.com>
788
789 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
790 inferior_ptid.
791 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
792 inferior_ptid.
793 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
794 inferior_ptid directly.
795 (darwin_nat_target::init_thread_list): Switch to thread, instead
796 of writing to inferior_ptid.
797 (darwin_nat_target::attach): Don't write to inferior_ptid.
798 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
799
975f8708
PA
8002020-06-18 Pedro Alves <palves@redhat.com>
801
802 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
803 thread.
804 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
805 Instead use switch_to_thread.
806 (gnu_nat_target::detach): Use switch_to_no_thread
807 instead of writing to inferior_ptid directly. Used passed-in
808 inferior instead of looking up the inferior by pid.
809
1a204730
PA
8102020-06-18 Pedro Alves <palves@redhat.com>
811
812 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
813 inferior_ptid.
814
ebe84f23
PA
8152020-06-18 Pedro Alves <palves@redhat.com>
816
817 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
818 inferior_ptid.
819 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
820 thread.
821 (nto_procfs_target::detach): Avoid referencing
822 inferior_ptid. Use switch_to_no_thread instead of writing to
823 inferior_ptid directly.
824 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
825 instead of writing to inferior_ptid directly.
826 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
827 to thread.
828
191f02e5
PA
8292020-06-18 Pedro Alves <palves@redhat.com>
830
831 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
832 after creating it, instead of writing to inferior_ptid.
833 (gdbsim_target_open): Use switch_to_no_thread instead of writing
834 to inferior_ptid directly.
835 (gdbsim_target::wait): Don't write to inferior_ptid.
836
0ac55310
PA
8372020-06-18 Pedro Alves <palves@redhat.com>
838
839 * remote.c (remote_target::remote_notice_new_inferior): Use
840 switch_to_thread instead of writing to inferior_ptid directly.
841 (remote_target::add_current_inferior_and_thread): Use
842 switch_to_no_thread instead of writing to inferior_ptid directly.
843 (extended_remote_target::attach): Use switch_to_inferior_no_thread
844 and switch_to_thread instead of using set_current_inferior or
845 writing to inferior_ptid directly.
846
5233f39b
PA
8472020-06-18 Pedro Alves <palves@redhat.com>
848
849 * tracectf.c (ctf_target_open): Switch to added thread instead of
850 writing to inferior_ptid directly.
851 (ctf_target::close): Use switch_to_no_thread instead of writing to
852 inferior_ptid directly.
853
087e161b
PA
8542020-06-18 Pedro Alves <palves@redhat.com>
855
856 * tracefile-tfile.c (tfile_target_open): Don't write to
857 inferior_ptid directly, instead switch to added thread.
858 (tfile_target::close): Use switch_to_no_thread instead of writing
859 to inferior_ptid directly.
860
7fb43e53
PA
8612020-06-18 Pedro Alves <palves@redhat.com>
862
863 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
864 (procfs_target::detach): Use switch_to_no_thread
865 instead of writing to inferior_ptid directly.
866 (do_attach): Change return type to void. Switch to the added
867 thread.
868 (procfs_target::create_inferior): Switch to the added thread.
869 (procfs_do_thread_registers): Don't write to inferior_ptid.
870
18493a00
PA
8712020-06-18 Pedro Alves <palves@redhat.com>
872
873 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
874 of writing to inferior_ptid.
875 (scoped_restore_exited_inferior): Delete.
876 (handle_vfork_child_exec_or_exit): Simplify using
877 scoped_restore_current_pspace_and_thread. Use switch_to_thread
878 instead of writing to inferior_ptid.
879 (THREAD_STOPPED_BY): Delete.
880 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
881 (thread_stopped_by_hw_breakpoint): Delete.
882 (save_waitstatus): Use
883 scoped_restore_current_thread+switch_to_thread, and call
884 target_stopped_by_watchpoint instead of
885 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
886 instead of thread_stopped_by_sw_breakpoint, and
887 target_stopped_by_hw_breakpoint instead of
888 thread_stopped_by_hw_breakpoint.
889 (handle_inferior_event)
890 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
891 inferior_ptid directly, nor
892 set_current_inferior/set_current_program_space. Use
893 switch_to_thread / switch_to_inferior_no_thread instead.
894
a0776b13
PA
8952020-06-18 Pedro Alves <palves@redhat.com>
896
897 * target.c (generic_mourn_inferior): Use switch_to_no_thread
898 instead of writing to inferior_ptid.
899
6155c136
PA
9002020-06-18 Pedro Alves <palves@redhat.com>
901
902 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
903 added thread.
904 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
905 to the added thread.
906 (inf_ptrace_target::detach_success): Use switch_to_no_thread
907 instead of writing to inferior_ptid.
908
c5316fc6
PA
9092020-06-18 Pedro Alves <palves@redhat.com>
910
911 * gdbarch-selftests.c: Include "progspace-and-thread.h".
912 (register_to_value_test): Mock a program_space too. Heap-allocate
913 the address space. Don't write to inferior_ptid. Use
914 switch_to_thread instead.
915
8df01799
PA
9162020-06-18 Pedro Alves <palves@redhat.com>
917
918 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
919 Delete.
920 (find_signalled_thread()): New, factored out from
921 linux_make_corefile_notes and adjusted to handle exited threads.
922 (linux_make_corefile_notes): Adjust to use the new
923 find_signalled_thread.
924
41792d68
PA
9252020-06-18 Pedro Alves <palves@redhat.com>
926
927 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
928 of saving/restoring inferior_ptid.
929
612f258a
TT
9302020-06-17 Tom Tromey <tom@tromey.com>
931
932 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
933 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
934 declare.
935 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
936
efb763a5
SM
9372020-06-15 Simon Marchi <simon.marchi@efficios.com>
938
939 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
940 of partial symtabs.
941
2951f6c0
SM
9422020-06-17 Simon Marchi <simon.marchi@efficios.com>
943
944 * regformats/reg-arm.dat: Remove.
945 * regformats/reg-bfin.dat: Remove.
946 * regformats/reg-cris.dat: Remove.
947 * regformats/reg-crisv32.dat: Remove.
948 * regformats/reg-m32r.dat: Remove.
949 * regformats/reg-tilegx.dat: Remove.
950 * regformats/reg-tilegx32.dat: Remove.
951
7d458ea5
SM
9522020-06-17 Simon Marchi <simon.marchi@efficios.com>
953
954 * features/Makefile (WHICH): Remove arm files.
955 * regformats/arm/arm-with-iwmmxt.dat: Remove.
956 * regformats/arm/arm-with-neon.dat: Remove.
957 * regformats/arm/arm-with-vfpv2.dat: Remove.
958 * regformats/arm/arm-with-vfpv3.dat: Remove.
959
3af96c0d
SM
9602020-06-17 Simon Marchi <simon.marchi@efficios.com>
961
962 * features/Makefile (XMLTOC): Remove rx.xml.
963
b25e22fd
PA
9642020-06-17 Pedro Alves <palves@redhat.com>
965
966 * gdbthread.h (thread_control_state) <trap_expected> Update
967 comments.
968
a78a19b1
AB
9692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
970
971 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
972 ada_language::lookup_symbol_nonlocal.
973 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
974 (ada_language::lookup_symbol_nonlocal): New member function,
975 implementation from ada_lookup_symbol_nonlocal.
976 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
977 initializer.
978 (cplus_language_data): Delete la_lookup_symbol_nonlocal
979 initializer.
980 (cplus_language::lookup_symbol_nonlocal): New member function.
981 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
982 (minimal_language_data) Likewise.
983 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
984 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
985 initializer.
986 (d_language::lookup_symbol_nonlocal): New member function.
987 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
988 initializer.
989 (f_language::lookup_symbol_nonlocal): New member function.
990 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
991 initializer.
992 * language.c (unknown_language_data): Likewise.
993 (auto_language_data): Likewise.
994 * language.h (language_data): Delete la_lookup_symbol_nonlocal
995 field.
996 (language_defn::lookup_symbol_nonlocal): New member function.
997 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
998 initializer.
999 * objc-lang.c (objc_language_data): Likewise.
1000 * opencl-lang.c (opencl_language_data): Likewise.
1001 * p-lang.c (pascal_language_data): Likewise.
1002 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1003 rust_language::lookup_symbol_nonlocal.
1004 (rust_language_data): Delete la_lookup_symbol_nonlocal
1005 initializer.
1006 (rust_language::lookup_symbol_nonlocal): New member function,
1007 implementation from rust_lookup_symbol_nonlocal.
1008 * symtab.c (lookup_symbol_aux): Update call to
1009 lookup_symbol_nonlocal.
1010 (basic_lookup_symbol_nonlocal): Rename to...
1011 (language_defn::lookup_symbol_nonlocal): ...this, and update
1012 header comment. Remove language_defn parameter, and replace with
1013 uses of `this'.
1014 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1015
ebe2334e
AB
10162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1017
1018 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1019 initializer.
1020 (ada_language::value_print_inner): New member function.
1021 * c-lang.c (c_language_data): Delete la_value_print_inner
1022 initializer.
1023 (cplus_language_data): Likewise.
1024 (asm_language_data): Likewise.
1025 (minimal_language_data): Likewise.
1026 * d-lang.c (d_language_data): Likewise.
1027 (d_language::value_print_inner): New member function.
1028 * f-lang.c (f_language_data): Delete la_value_print_inner
1029 initializer.
1030 (f_language::value_print_inner): New member function.
1031 * f-lang.h (f_value_print_innner): Rename to...
1032 (f_value_print_inner): ...this (note spelling of 'inner').
1033 * f-valprint.c (f_value_print_innner): Rename to...
1034 (f_value_print_inner): ...this (note spelling of 'inner').
1035 * go-lang.c (go_language_data): Delete la_value_print_inner
1036 initializer.
1037 (go_language::value_print_inner): New member function.
1038 * language.c (language_defn::value_print_inner): Define new member
1039 function.
1040 (unk_lang_value_print_inner): Delete.
1041 (unknown_language_data): Delete la_value_print_inner initializer.
1042 (unknown_language::value_print_inner): New member function.
1043 (auto_language_data): Delete la_value_print_inner initializer.
1044 (auto_language::value_print_inner): New member function.
1045 * language.h (language_data): Delete la_value_print_inner field.
1046 (language_defn::value_print_inner): Delcare new member function.
1047 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1048 initializer.
1049 (m2_language::value_print_inner): New member function.
1050 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1051 initializer.
1052 * opencl-lang.c (opencl_language_data): Likewise.
1053 * p-lang.c (pascal_language_data): Likewise.
1054 (pascal_language::value_print_inner): New member function.
1055 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1056 initializer.
1057 (rust_language::value_print_inner): New member function.
1058 * valprint.c (do_val_print): Update call to value_print_inner.
1059
a1d1fa3e
AB
10602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * ada-lang.c (ada_language_data): Delete la_value_print
1063 initializer.
1064 (ada_language::value_print): New member function.
1065 * c-lang.c (c_language_data): Delete la_value_print initializer.
1066 (cplus_language_data): Likewise.
1067 (asm_language_data): Likewise.
1068 (minimal_language_data): Likewise.
1069 * d-lang.c (d_language_data): Likewise.
1070 * f-lang.c (f_language_data): Likewise.
1071 * go-lang.c (go_language_data): Likewise.
1072 * language.c (unk_lang_value_print): Delete.
1073 (language_defn::value_print): Define new member function.
1074 (unknown_language_data): Delete la_value_print initializer.
1075 (unknown_language::value_print): New member function.
1076 (auto_language_data): Delete la_value_print initializer.
1077 (auto_language::value_print): New member function.
1078 * language.h (language_data): Delete la_value_print field.
1079 (language_defn::value_print): Declare new member function.
1080 (LA_VALUE_PRINT): Update call to value_print.
1081 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1082 * objc-lang.c (objc_language_data): Likewise.
1083 * opencl-lang.c (opencl_language_data): Likewise.
1084 * p-lang.c (pascal_language_data): Likewise.
1085 (pascal_language::value_print): New member function.
1086 * rust-lang.c (rust_language_data): Delete la_value_print
1087 initializer.
1088
f16a9f57
AB
10892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * ada-lang.c (ada_watch_location_expression): Rename to
1092 ada_language::watch_location_expression.
1093 (ada_language_data): Delete la_watch_location_expression
1094 initializer.
1095 (ada_language::watch_location_expression): New member function,
1096 implementation from ada_watch_location_expression.
1097 * breakpoint.c (watch_command_1): Update call to
1098 watch_location_expression.
1099 * c-lang.c (c_watch_location_expression): Rename to
1100 language_defn::watch_location_expression.
1101 (c_language_data): Delete la_watch_location_expression
1102 initializer.
1103 (cplus_language_data): Likewise.
1104 (asm_language_data): Likewise.
1105 (minimal_language_data): Likewise.
1106 * c-lang.h (c_watch_location_expression): Delete declaration.
1107 * d-lang.c (d_language_data): Delete la_watch_location_expression
1108 initializer.
1109 * f-lang.c (f_language_data): Likewise.
1110 * go-lang.c (go_language_data): Likewise.
1111 * language.c (language_defn::watch_location_expression): Member
1112 function implementation from c_watch_location_expression.
1113 (unknown_language_data): Delete la_watch_location_expression
1114 initializer.
1115 (auto_language_data): Likewise.
1116 * language.h (language_data): Delete la_watch_location_expression
1117 field.
1118 (language_defn::watch_location_expression): Declare new member
1119 function.
1120 * m2-lang.c (m2_language_data): Delete
1121 la_watch_location_expression initializer.
1122 * objc-lang.c (objc_language_data): Likewise.
1123 * opencl-lang.c (opencl_language_data): Likewise.
1124 * p-lang.c (pascal_language_data): Likewise.
1125 * rust-lang.c (rust_watch_location_expression): Rename to
1126 rust_language::watch_location_expression.
1127 (rust_language_data): Delete la_watch_location_expression
1128 initializer.
1129 (rust_language::watch_location_expression): New member function,
1130 implementation from rust_watch_location_expression.
1131
7e56227d
AB
11322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1133
1134 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1135 ada_language::collect_symbol_completion_matches.
1136 (ada_language_data): Delete la_collect_symbol_completion_matches
1137 initializer.
1138 (ada_language::collect_symbol_completion_matches): New member
1139 function, implementation from
1140 ada_collect_symbol_completion_matches.
1141 * c-lang.c (c_language_data): Delete
1142 la_collect_symbol_completion_matches initializer.
1143 (cplus_language_data): Likewise.
1144 (asm_language_data): Likewise.
1145 (minimal_language_data): Likewise.
1146 * d-lang.c (d_language_data): Likewise.
1147 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1148 f_language::collect_symbol_completion_matches.
1149 (f_language_data): Delete la_collect_symbol_completion_matches
1150 initializer.
1151 (f_language::collect_symbol_completion_matches) New member
1152 function, implementation from f_collect_symbol_completion_matches.
1153 * go-lang.c (go_language_data): Delete
1154 la_collect_symbol_completion_matches initializer.
1155 * language.c (unknown_language_data): Likewise.
1156 (auto_language_data): Likewise.
1157 * language.h (language_data): Delete
1158 la_collect_symbol_completion_matches field.
1159 (language_defn::collect_symbol_completion_matches): New member
1160 function.
1161 * m2-lang.c (m2_language_data): Delete
1162 la_collect_symbol_completion_matches initializer.
1163 * objc-lang.c (objc_language_data): Likewise.
1164 * opencl-lang.c (opencl_language_data): Likewise.
1165 * p-lang.c (pascal_language_data): Likewise.
1166 * rust-lang.c (rust_language_data): Likewise.
1167 * symtab.c (default_collect_symbol_completion_matches): Delete.
1168 (collect_symbol_completion_matches): Update call to
1169 collect_symbol_completion_matches.
1170 (collect_symbol_completion_matches_type): Likewise.
1171 * symtab.h (default_collect_symbol_completion_matches): Delete
1172 declaration.
1173
53fc67f8
AB
11742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1177 (ada_language_data): Delete la_word_break_characters initializer.
1178 (ada_language::word_break_characters): New member function.
1179 * c-lang.c (c_language_data): Delete la_word_break_characters
1180 initializer.
1181 (cplus_language_data): Likewise.
1182 (asm_language_data): Likewise.
1183 (minimal_language_data): Likewise.
1184 * completer.c: Update global comment.
1185 (advance_to_expression_complete_word_point): Update call to
1186 word_break_characters.
1187 (complete_files_symbols): Likewise.
1188 (complete_line_internal_1): Likewise.
1189 (default_completer_handle_brkchars): Likewise.
1190 (skip_quoted_chars): Likewise.
1191 * d-lang.c (d_language_data): Delete la_word_break_characters
1192 initializer.
1193 * f-lang.c (f_word_break_characters): Delete.
1194 (f_language_data): Delete la_word_break_characters initializer.
1195 (f_language::word_break_characters): New member function.
1196 * go-lang.c (go_language_data): Delete la_word_break_characters
1197 initializer.
1198 * language.c (unknown_language_data): Likewise.
1199 (auto_language_data): Likewise.
1200 * language.h (default_word_break_characters): Move declaration to
1201 earlier in the file.
1202 (language_data): Delete la_word_break_characters field.
1203 (language_defn::word_break_characters): New member function.
1204 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1205 initializer.
1206 * objc-lang.c (objc_language_data): Likewise.
1207 * opencl-lang.c (opencl_language_data): Likewise.
1208 * p-lang.c (pascal_language_data): Likewise.
1209 * rust-lang.c (rust_language_data): Likewise.
1210
c9debfb9
AB
12112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1212
1213 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1214 (ada_language_data): Delete la_get_symbol_name_matcher
1215 initializer.
1216 (language_defn::get_symbol_name_matcher_inner): New member
1217 function.
1218 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1219 initializer.
1220 (cplus_language_data): Likewise.
1221 (cplus_language::get_symbol_name_matcher_inner): New member
1222 function.
1223 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1224 (minimal_language_data): Likewise.
1225 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1226 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1227 initializer.
1228 * dictionary.c (iter_match_first_hashed): Update call to
1229 get_symbol_name_matcher.
1230 (iter_match_next_hashed): Likewise.
1231 (iter_match_next_linear): Likewise.
1232 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1233 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1234 initializer.
1235 (f_language::get_symbol_name_matcher_inner): New member function.
1236 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1237 initializer.
1238 * language.c (default_symbol_name_matcher): Update header comment,
1239 make static.
1240 (language_defn::get_symbol_name_matcher): New definition.
1241 (language_defn::get_symbol_name_matcher_inner): Likewise.
1242 (get_symbol_name_matcher): Delete.
1243 (unknown_language_data): Delete la_get_symbol_name_matcher
1244 initializer.
1245 (auto_language_data): Likewise.
1246 * language.h (language_data): Delete la_get_symbol_name_matcher
1247 field.
1248 (language_defn::get_symbol_name_matcher): New member function.
1249 (language_defn::get_symbol_name_matcher_inner): Likewise.
1250 (default_symbol_name_matcher): Delete declaration.
1251 * linespec.c (find_methods): Update call to
1252 get_symbol_name_matcher.
1253 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1254 initializer.
1255 * minsyms.c (lookup_minimal_symbol): Update call to
1256 get_symbol_name_matcher.
1257 (iterate_over_minimal_symbols): Likewise.
1258 * objc-lang.c (objc_language_data): Delete
1259 la_get_symbol_name_matcher initializer.
1260 * opencl-lang.c (opencl_language_data): Likewise.
1261 * p-lang.c (pascal_language_data): Likewise.
1262 * psymtab.c (psymbol_name_matches): Update call to
1263 get_symbol_name_matcher.
1264 * rust-lang.c (rust_language_data): Delete
1265 la_get_symbol_name_matcher initializer.
1266 * symtab.c (symbol_matches_search_name): Update call to
1267 get_symbol_name_matcher.
1268 (compare_symbol_name): Likewise.
1269
9a49ad8c
AB
12702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * ada-lang.c (ada_language_data): Delete la_compute_program
1273 initializer.
1274 * c-lang.c (c_language_data): Likewise.
1275 (c_language::compute_program): New member function.
1276 (cplus_language_data): Delete la_compute_program initializer.
1277 (cplus_language::compute_program): New member function.
1278 (asm_language_data): Delete la_compute_program initializer.
1279 (minimal_language_data): Likewise.
1280 * c-lang.h (c_compute_program): Update comment.
1281 (cplus_compute_program): Likewise.
1282 * compile/compile-c-support.c (c_compute_program): Likewise.
1283 (cplus_compute_program): Likewise.
1284 * compile/compile.c (compile_to_object): Update call to
1285 la_compute_program.
1286 * d-lang.c (d_language_data): Delete la_compute_program
1287 initializer.
1288 * f-lang.c (f_language_data): Likewise.
1289 * go-lang.c (go_language_data): Likewise.
1290 * language.c (unknown_language_data): Likewise.
1291 (auto_language_data): Likewise.
1292 * language.h (language_data): Delete la_compute_program field.
1293 (language_defn::compute_program): New member function.
1294 * m2-lang.c (m2_language_data): Delete la_compute_program
1295 initializer.
1296 * objc-lang.c (objc_language_data): Likewise.
1297 * opencl-lang.c (opencl_language_data): Likewise.
1298 * p-lang.c (pascal_language_data): Likewise.
1299 * rust-lang.c (rust_language_data): Likewise.
1300
eff93b4d
AB
13012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * ada-lang.c (ada_language_data) Delete
1304 la_class_name_from_physname initializer.
1305 * c-lang.c (c_language_data): Likewise.
1306 (cplus_language_data): Likewise.
1307 (cplus_language::class_name_from_physname): New member function.
1308 (asm_language_data): Delete la_class_name_from_physname
1309 initializer.
1310 (minimal_language_data): Likewise.
1311 * d-lang.c (d_language_data): Likewise.
1312 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1313 method on language_defn class.
1314 (guess_full_die_structure_name): Likewise.
1315 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1316 initializer.
1317 * go-lang.c (go_language_data): Likewise.
1318 * language.c (language_class_name_from_physname): Delete.
1319 (unk_lang_class_name): Delete.
1320 (unknown_language_data): Delete la_class_name_from_physname
1321 initializer.
1322 (auto_language_data): Likewise.
1323 * language.h (language_data): Delete la_class_name_from_physname
1324 field.
1325 (language_defn::class_name_from_physname): New function.
1326 (language_class_name_from_physname): Delete declaration.
1327 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1328 initializer.
1329 * objc-lang.c (objc_language_data): Likewise.
1330 * opencl-lang.c (opencl_language_data): Likewise.
1331 * p-lang.c (pascal_language_data): Likewise.
1332 * rust-lang.c (rust_language_data): Likewise.
1333
de543742
TT
13342020-06-16 Tom Tromey <tom@tromey.com>
1335
1336 * tui/tui-data.h (STATUS_NAME): New macro.
1337 * tui/tui-layout.c (tui_remove_some_windows)
1338 (initialize_known_windows, tui_register_window)
1339 (tui_layout_split::remove_windows, initialize_layouts)
1340 (tui_new_layout_command): Don't use hard-coded window names.
1341
a350efd4
TT
13422020-06-16 Tom Tromey <tom@tromey.com>
1343
1344 PR tui/25348:
1345 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1346 tui_initialize_readline. Only run once. Call rl_initialize.
1347 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1348 tui_initialize_readline.
1349 * tui/tui-io.c (tui_setup_io): Call
1350 tui_ensure_readline_initialized.
1351 * tui/tui-interp.c (tui_interp::init): Update.
1352
39ec0490
TT
13532020-06-16 Tom Tromey <tom@tromey.com>
1354
1355 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1356 Also preserve the status window.
1357
d2d1ea20
TT
13582020-06-16 Tom Tromey <tom@tromey.com>
1359
1360 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1361 where m_window==nullptr.
1362
66920317
TT
13632020-06-15 Tom Tromey <tromey@adacore.com>
1364
1365 * windows-nat.c (windows_nat::handle_output_debug_string):
1366 Update.
1367 (windows_nat::handle_ms_vc_exception): Update.
1368 * target.h (target_read_string): Change API.
1369 * target.c (target_read_string): Change API.
1370 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1371 Update.
1372 * solib-frv.c (frv_current_sos): Update.
1373 * solib-dsbt.c (dsbt_current_sos): Update.
1374 * solib-darwin.c (darwin_current_sos): Update.
1375 * linux-thread-db.c (inferior_has_bug): Update.
1376 * expprint.c (print_subexp_standard): Update.
1377 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1378 (ada_exception_message_1): Update.
1379
a5d871dd
TT
13802020-06-15 Tom Tromey <tromey@adacore.com>
1381
1382 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1383
670e35fa
TT
13842020-06-15 Tom Tromey <tromey@adacore.com>
1385
1386 * valprint.c (read_string): Update comment.
1387 * target.c (MIN): Remove.
1388 (target_read_string): Rewrite.
1389
f5272a3b
TT
13902020-06-15 Tom Tromey <tromey@adacore.com>
1391
1392 * corefile.c (read_memory_string): Remove.
1393 * ada-valprint.c (ada_value_print_ptr): Update.
1394 * ada-lang.h (ada_tag_name): Change return type.
1395 * ada-lang.c (type_from_tag): Update.
1396 (ada_tag_name_from_tsd): Change return type. Use
1397 target_read_string.
1398 (ada_tag_name): Likewise.
1399 * gdbcore.h (read_memory_string): Don't declare.
1400
2c074f49
HD
14012020-06-14 Hannes Domani <ssbssa@yahoo.de>
1402
1403 * symtab.c (rbreak_command): Ignore Windows drive colon.
1404
6a17d503
SM
14052020-06-12 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * NEWS: Mention removed GDBserver host support.
1408
453c733f
NC
14092020-06-12 Nelson Chu <nelson.chu@sifive.com>
1410
1411 * features/riscv/rebuild-csr-xml.sh: Updated.
1412
2b4e6a3f
TT
14132020-06-11 Tom Tromey <tom@tromey.com>
1414
1415 PR gdb/18318:
1416 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1417
4412332f
JG
14182020-06-09 Jonny Grant <jg@jguk.org>
14192020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * main.c (captured_main_1): Don't print new line after help.
1422 (print_gdb_help): add mailing list and IRC channel information
1423 to --help. Add new lines between items in the footer. Remove
1424 quotes around bug url.
1425
2f33032a
KS
14262020-06-11 Keith Seitz <keiths@redhat.com>
1427
1428 PR gdb/21356
1429 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1430 Resolve typedefs for type length calculations.
1431
7ab96794
TV
14322020-06-10 Tom de Vries <tdevries@suse.de>
1433
1434 PR ada/24713
1435 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1436 (write_psymbols): Enable .gdb_index for ada.
1437 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1438 ada.
1439
e5f3ece2
TV
14402020-06-10 Tom de Vries <tdevries@suse.de>
1441
1442 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1443 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1444 namei" instead of "const char *name" argument.
1445 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1446 dw2_symtab_iter_init.
1447
940da03e
SM
14482020-06-08 Simon Marchi <simon.marchi@efficios.com>
1449
1450 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1451 to use type::field and field::type instead.
1452
b6cdac4b
SM
14532020-06-08 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1456 to use field::type instead.
1457
5d14b6e5
SM
14582020-06-08 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * gdbtypes.h (struct field) <type, set_type>: New methods.
1461 Rename `type` field to...
1462 <m_type>: ... this. Change references throughout to use type or
1463 set_type methods.
1464 (FIELD_TYPE): Use field::type. Change call sites that modify
1465 the field's type to use field::set_type instead.
1466
3d967001
SM
14672020-06-08 Simon Marchi <simon.marchi@efficios.com>
1468
1469 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1470 to use type::index_type instead.
1471
262abc0d
SM
14722020-06-08 Simon Marchi <simon.marchi@efficios.com>
1473
1474 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1475 methods.
1476 (TYPE_INDEX_TYPE): Use type::index_type.
1477 * gdbtypes.c (create_array_type_with_stride): Likewise.
1478
82836c92
TT
14792020-06-07 Tom Tromey <tom@tromey.com>
1480
1481 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1482 parameter.
1483 (generic_value_print): Update.
1484
940dace9
AB
14852020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 Revert commit 982a38f60b0.
1488 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1489
982a38f6
AB
14902020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1493 avoid use after free.
1494
82f06518
TV
14952020-06-05 Tom de Vries <tdevries@suse.de>
1496
1497 * NEWS: Fix typos.
1498
f8c41851
SM
14992020-06-04 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1502 the per_bfd object.
1503 (dwarf2_read_debug_names): Likewise.
1504 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1505 object when re-using a per_bfd object with an index.
1506
f9b5d5ea
TV
15072020-06-03 Tom de Vries <tdevries@suse.de>
1508
1509 PR symtab/26046
1510 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1511 children for C++.
1512 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1513 DW_TAG_subprogram.
1514
f6eee2d0
AB
15152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * ada-lang.c (ada_language_data): Delete skip_trampoline
1518 initializer.
1519 * c-lang.c (c_language_data): Likewise.
1520 (cplus_language_data): Likewise.
1521 (cplus_language::skip_trampoline): New member function.
1522 (asm_language_data): Delete skip_trampoline initializer.
1523 (minimal_language_data): Likewise.
1524 * d-lang.c (d_language_data): Likewise.
1525 * f-lang.c (f_language_data): Likewise.
1526 * go-lang.c (go_language_data): Likewise.
1527 * language.c (unk_lang_trampoline): Delete function.
1528 (skip_language_trampoline): Update.
1529 (unknown_language_data): Delete skip_trampoline initializer.
1530 (auto_language_data): Likewise.
1531 * language.h (language_data): Delete skip_trampoline field.
1532 (language_defn::skip_trampoline): New function.
1533 * m2-lang.c (m2_language_data): Delete skip_trampoline
1534 initializer.
1535 * objc-lang.c (objc_skip_trampoline): Delete function, move
1536 implementation to objc_language::skip_trampoline.
1537 (objc_language_data): Delete skip_trampoline initializer.
1538 (objc_language::skip_trampoline): New member function with
1539 implementation from objc_skip_trampoline.
1540 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1541 initializer.
1542 * p-lang.c (pascal_language_data): Likewise.
1543 * rust-lang.c (rust_language_data): Likewise.
1544
0a50df5d
AB
15452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1548 (ada_language::demangle): New member function.
1549 * c-lang.c (c_language_data): Delete la_demangle initializer.
1550 (cplus_language_data): Delete la_demangle initializer.
1551 (cplus_language::demangle): New member function.
1552 (asm_language_data): Delete la_demangle initializer.
1553 (minimal_language_data): Delete la_demangle initializer.
1554 * d-lang.c (d_language_data): Delete la_demangle initializer.
1555 (d_language::demangle): New member function.
1556 * f-lang.c (f_language_data): Delete la_demangle initializer.
1557 (f_language::demangle): New member function.
1558 * go-lang.c (go_language_data): Delete la_demangle initializer.
1559 (go_language::demangle): New member function.
1560 * language.c (language_demangle): Update.
1561 (unk_lang_demangle): Delete.
1562 (unknown_language_data): Delete la_demangle initializer.
1563 (unknown_language::demangle): New member function.
1564 (auto_language_data): Delete la_demangle initializer.
1565 (auto_language::demangle): New member function.
1566 * language.h (language_data): Delete la_demangle field.
1567 (language_defn::demangle): New function.
1568 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1569 * objc-lang.c (objc_language_data): Delete la_demangle
1570 initializer.
1571 (objc_language::demangle): New member function.
1572 * opencl-lang.c (opencl_language_data): Delete la_demangle
1573 initializer.
1574 * p-lang.c (pascal_language_data): Likewise.
1575 * rust-lang.c (rust_language_data): Likewise.
1576 (rust_language::demangle): New member function.
1577
fbfb0a46
AB
15782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 * ada-lang.c (ada_language_data): Delete la_print_type
1581 initializer.
1582 (ada_language::print_type): New member function.
1583 * c-lang.c (c_language_data): Delete la_print_type initializer.
1584 (c_language::print_type): New member function.
1585 (cplus_language_data): Delete la_print_type initializer.
1586 (cplus_language::print_type): New member function.
1587 (asm_language_data): Delete la_print_type initializer.
1588 (asm_language::print_type): New member function.
1589 (minimal_language_data): Delete la_print_type initializer.
1590 (minimal_language::print_type): New member function.
1591 * d-lang.c (d_language_data): Delete la_print_type initializer.
1592 (d_language::print_type): New member function.
1593 * f-lang.c (f_language_data): Delete la_print_type initializer.
1594 (f_language::print_type): New member function.
1595 * go-lang.c (go_language_data): Delete la_print_type initializer.
1596 (go_language::print_type): New member function.
1597 * language.c (unk_lang_print_type): Delete.
1598 (unknown_language_data): Delete la_print_type initializer.
1599 (unknown_language::print_type): New member function.
1600 (auto_language_data): Delete la_print_type initializer.
1601 (auto_language::print_type): New member function.
1602 * language.h (language_data): Delete la_print_type field.
1603 (language_defn::print_type): New function.
1604 (LA_PRINT_TYPE): Update.
1605 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1606 (m2_language::print_type): New member function.
1607 * objc-lang.c (objc_language_data): Delete la_print_type
1608 initializer.
1609 (objc_language::print_type): New member function.
1610 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1611 to opencl_language::print_type.
1612 (opencl_language_data): Delete la_print_type initializer.
1613 (opencl_language::print_type): New member function, implementation
1614 from opencl_print_type.
1615 * p-lang.c (pascal_language_data): Delete la_print_type
1616 initializer.
1617 (pascal_language::print_type): New member function.
1618 * rust-lang.c (rust_print_type): Delete, implementation moved to
1619 rust_language::print_type.
1620 (rust_language_data): Delete la_print_type initializer.
1621 (rust_language::print_type): New member function, implementation
1622 from rust_print_type.
1623
6f827019
AB
16242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1625
1626 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1627 implementation moves to...
1628 (ada_language::sniff_from_mangled_name): ...here. Update return
1629 type.
1630 (ada_language_data): Delete la_sniff_from_mangled_name
1631 initializer.
1632 * c-lang.c (c_language_data): Likewise.
1633 (cplus_language_data): Likewise.
1634 (cplus_language::sniff_from_mangled_name): New member function,
1635 implementation taken from gdb_sniff_from_mangled_name.
1636 (asm_language_data): Delete la_sniff_from_mangled_name
1637 initializer.
1638 (minimal_language_data): Likewise.
1639 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1640 implementation moves to cplus_language::sniff_from_mangled_name.
1641 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1642 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1643 moves to...
1644 (d_language::sniff_from_mangled_name): ...here.
1645 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1646 * f-lang.c (f_language_data): Likewise.
1647 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1648 moves to...
1649 (go_language::sniff_from_mangled_name): ...here.
1650 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1651 * language.c (language_sniff_from_mangled_name): Delete.
1652 (unknown_language_data): Delete la_sniff_from_mangled_name
1653 initializer.
1654 (auto_language_data): Likewise.
1655 * language.h (language_data): Delete la_sniff_from_mangled_name
1656 field.
1657 (language_defn::sniff_from_mangled_name): New function.
1658 (language_sniff_from_mangled_name): Delete declaration.
1659 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1660 field.
1661 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1662 implementation moves to...
1663 (objc_language::sniff_from_mangled_name): ...here.
1664 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1665 * opencl-lang.c (opencl_language_data): Likewise.
1666 * p-lang.c (pascal_language_data): Likewise.
1667 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1668 implementation moves to...
1669 (rust_language::sniff_from_mangled_name): ...here.
1670 (rust_language_data): Delete la_sniff_from_mangled_name
1671 initializer.
1672 * symtab.c (symbol_find_demangled_name): Call
1673 sniff_from_mangled_name member function.
1674
fb8006fd
AB
16752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1678 initializer.
1679 * c-lang.c (c_language_data): Likewise.
1680 (cplus_language_data): Likewise.
1681 (cplus_language::search_name_hash): New member function.
1682 (asm_language_data): Delete la_search_name_hash initializer.
1683 (minimal_language_data): Likewise.
1684 * d-lang.c (d_language_data): Likewise.
1685 * dictionary.c (default_search_name_hash): Rename to...
1686 (language_defn::search_name_hash): ...this.
1687 * f-lang.c (f_language_data): Likewise.
1688 (f_language::search_name_hash): New member function.
1689 * go-lang.c (go_language_data): Delete la_search_name_hash
1690 initializer.
1691 * language.c (unknown_language_data): Likewise.
1692 (auto_language_data): Likewise.
1693 * language.h (struct language_data): Delete la_search_name_hash
1694 field.
1695 (language_defn::search_name_hash): Declare new member function.
1696 (default_search_name_hash): Delete declaration.
1697 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1698 initializer.
1699 * objc-lang.c (objc_language_data): Likewise.
1700 * opencl-lang.c (opencl_language_data): Likewise.
1701 * p-lang.c (pascal_language_data): Likewise.
1702 * rust-lang.c (rust_language_data): Likewise.
1703 * symtab.c (search_name_hash): Update call.
1704
8e25bafe
AB
17052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1708 initializer.
1709 * c-lang.c (class compile_instance): Declare.
1710 (c_language_data): Delete la_get_compile_instance initializer.
1711 (c_language::get_compile_instance): New member function.
1712 (cplus_language_data): Delete la_get_compile_instance initializer.
1713 (cplus_language::get_compile_instance): New member function.
1714 (asm_language_data): Delete la_get_compile_instance initializer.
1715 (minimal_language_data): Likewise.
1716 * c-lang.h (c_get_compile_context): Update comment.
1717 (cplus_get_compile_context): Update comment.
1718 * compile/compile.c (compile_to_object): Update calls, don't rely
1719 on function pointer being NULL.
1720 * d-lang.c (d_language_data): Delete la_get_compile_instance
1721 initializer.
1722 * f-lang.c (f_language_data): Likewise.
1723 * go-lang.c (go_language_data): Likewise.
1724 * language.c (unknown_language_data): Likewise.
1725 (auto_language_data): Likewise.
1726 * language.h (language_data): Delete la_get_compile_instance field.
1727 (language_defn::get_compile_instance): New member function.
1728 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1729 initializer.
1730 * objc-lang.c (objc_language_data): Likewise.
1731 * opencl-lang.c (opencl_language_data): Likewise.
1732 * p-lang.c (pascal_language_data): Likewise.
1733 * rust-lang.c (rust_language_data): Likewise.
1734
4009ee92
AB
17352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * ada-lang.c (ada_add_all_symbols): Update comment.
1738 (ada_iterate_over_symbols): Delete, move implementation to...
1739 (ada_language::iterate_over_symbols): ...here, a new member
1740 function, rewrite to use range based for loop.
1741 (ada_language_data): Delete la_iterate_over_symbols initializer.
1742 * c-lang.c (c_language_data): Likewise.
1743 (cplus_language_data): Likewise.
1744 (asm_language_data): Likewise.
1745 (minimal_language_data): Likewise.
1746 * d-lang.c (d_language_data): Likewise.
1747 * f-lang.c (f_language_data): Likewise.
1748 * go-lang.c (go_language_data): Likewise.
1749 * language.c (unknown_language_data): Likewise.
1750 (auto_language_data): Likewise.
1751 * language.h (language_data): Delete la_iterate_over_symbols field.
1752 (language_defn::iterate_over_symbols): New member function.
1753 (LA_ITERATE_OVER_SYMBOLS): Update.
1754 * linespec.c (iterate_over_all_matching_symtabs): Update.
1755 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1756 initializer.
1757 * objc-lang.c (objc_language_data): Likewise.
1758 * opencl-lang.c (opencl_language_data): Likewise.
1759 * p-lang.c (pascal_language_data): Likewise.
1760 * rust-lang.c (rust_language_data): Likewise.
1761
54f4ca46
AB
17622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1763
1764 * ada-lang.c (ada_language_data): Delete
1765 la_lookup_transparent_type initializer.
1766 * c-lang.c (c_language_data): Likewise.
1767 (cplus_language_data): Likewise.
1768 (cplus_language::lookup_transparent_type): New member function.
1769 (asm_language_data): Delete la_lookup_transparent_type
1770 initializer.
1771 (minimal_language_data): Likewise.
1772 * d-lang.c (d_language_data): Likewise.
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 (struct language_data): Delete
1778 la_lookup_transparent_type field.
1779 (language_defn::lookup_transparent_type): New member function.
1780 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1781 initializer.
1782 * objc-lang.c (objc_language_data): Likewise.
1783 * opencl-lang.c (opencl_language_data): Likewise.
1784 * p-lang.c (pascal_language_data): Likewise.
1785 * rust-lang.c (rust_language_data): Likewise.
1786 * symtab.c (symbol_matches_domain): Update call.
1787
1fb314aa
AB
17882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1789
1790 * ada-lang.c (ada_language_arch_info): Delete function, move
1791 implementation to...
1792 (ada_language::language_arch_info): ...here, a new member
1793 function.
1794 (ada_language_data): Delete la_language_arch_info.
1795 * c-lang.c (c_language_data): Likewise.
1796 (c_language::language_arch_info): New member function.
1797 (cplus_language_arch_info): Delete function, move
1798 implementation to...
1799 (cplus_language::language_arch_info): ...here, a new member
1800 function.
1801 (cplus_language_data): Delete la_language_arch_info.
1802 (asm_language_data): Likewise.
1803 (asm_language::language_arch_info): New member function.
1804 (minimal_language_data): Delete la_language_arch_info.
1805 (minimal_language::language_arch_info): New member function.
1806 * d-lang.c (d_language_arch_info): Delete function, move
1807 implementation to...
1808 (d_language::language_arch_info): ...here, a new member
1809 function.
1810 (d_language_data): Delete la_language_arch_info.
1811 * f-lang.c (f_language_arch_info): Delete function, move
1812 implementation to...
1813 (f_language::language_arch_info): ...here, a new member
1814 function.
1815 (f_language_data): Delete la_language_arch_info.
1816 * go-lang.c (go_language_arch_info): Delete function, move
1817 implementation to...
1818 (go_language::language_arch_info): ...here, a new member
1819 function.
1820 (go_language_data): Delete la_language_arch_info.
1821 * language.c (unknown_language_data): Likewise.
1822 (unknown_language::language_arch_info): New member function.
1823 (auto_language_data): Delete la_language_arch_info.
1824 (auto_language::language_arch_info): New member function.
1825 (language_gdbarch_post_init): Update call to
1826 la_language_arch_info.
1827 * language.h (language_data): Delete la_language_arch_info
1828 function pointer.
1829 (language_defn::language_arch_info): New function.
1830 * m2-lang.c (m2_language_arch_info): Delete function, move
1831 implementation to...
1832 (m2_language::language_arch_info): ...here, a new member
1833 function.
1834 (m2_language_data): Delete la_language_arch_info.
1835 * objc-lang.c (objc_language_arch_info): Delete function, move
1836 implementation to...
1837 (objc_language::language_arch_info): ...here, a new member
1838 function.
1839 (objc_language_data): Delete la_language_arch_info.
1840 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1841 implementation to...
1842 (opencl_language::language_arch_info): ...here, a new member
1843 function.
1844 (opencl_language_data): Delete la_language_arch_info.
1845 * p-lang.c (pascal_language_arch_info): Delete function, move
1846 implementation to...
1847 (pascal_language::language_arch_info): ...here, a new member
1848 function.
1849 (pascal_language_data): Delete la_language_arch_info.
1850 * rust-lang.c (rust_language_arch_info): Delete function, move
1851 implementation to...
1852 (rust_language::language_arch_info): ...here, a new member
1853 function.
1854 (rust_language_data): Delete la_language_arch_info.
1855
48448202
AB
18562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1859 initializer.
1860 * c-lang.c (c_language_data): Likewise.
1861 (cplus_language_data): Likewise.
1862 (cplus_language::pass_by_reference_info): New method.
1863 (asm_language_data): Delete la_pass_by_reference initializer.
1864 (minimal_language_data): Likewise.
1865 * cp-abi.c (cp_pass_by_reference): Remove use of
1866 default_pass_by_reference.
1867 * d-lang.c (d_language_data): Likewise.
1868 * f-lang.c (f_language_data): Likewise.
1869 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1870 default_pass_by_reference.
1871 * go-lang.c (go_language_data): Likewise.
1872 * language.c (language_pass_by_reference): Update.
1873 (default_pass_by_reference): Delete.
1874 (unknown_language_data): Delete la_pass_by_reference
1875 initializer.
1876 (auto_language_data): Likewise.
1877 * language.h (struct language_data): Delete la_pass_by_reference
1878 field.
1879 (language_defn::pass_by_reference_info): New member function.
1880 (default_pass_by_reference): Delete declaration.
1881 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1882 initializer.
1883 * objc-lang.c (objc_language_data): Likewise.
1884 * opencl-lang.c (opencl_language_data): Likewise.
1885 * p-lang.c (pascal_language_data): Likewise.
1886 * rust-lang.c (rust_language_data): Likewise.
1887
15e5fd35
AB
18882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * ada-lang.c (ada_read_var_value): Delete function, move
1891 implementation to...
1892 (ada_language::read_var_value): ...here.
1893 (ada_language_data): Delete la_read_var_value initializer.
1894 * c-lang.c (c_language_data): Likewise.
1895 (cplus_language_data): Likewise.
1896 (minimal_language_data): Likewise.
1897 * d-lang.c (d_language_data): Likewise.
1898 * f-lang.c (f_language_data): Likewise.
1899 * findvar.c (default_read_var_value): Rename to...
1900 (language_defn::read_var_value): ...this.
1901 * findvar.c (read_var_value): Update header comment, and change to
1902 call member function instead of function pointer.
1903 * go-lang.c (go_language_data): Likewise.
1904 * language.c (unknown_language_data): Delete la_read_var_value
1905 initializer.
1906 (auto_language_data): Likewise.
1907 * language.h (struct language_data): Delete la_read_var_value
1908 field.
1909 (language_defn::read_var_value): New member function.
1910 (default_read_var_value): Delete declaration.
1911 * m2-lang.c (m2_language_data): Delete la_read_var_value
1912 initializer.
1913 * objc-lang.c (objc_language_data): Likewise.
1914 * opencl-lang.c (opencl_language_data): Likewise.
1915 * p-lang.c (pascal_language_data): Likewise.
1916 * rust-lang.c (rust_language_data): Likewise.
1917 * value.h (default_read_var_value): Delete declaration.
1918
5bd40f2a
AB
19192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * ada-lang.c (ada_print_array_index): Delete function, move
1922 implementation to...
1923 (ada_language::print_array_index): ...here.
1924 (ada_language_data): Delete la_print_array_index initializer.
1925 * c-lang.c (c_language_data): Likewise.
1926 (cplus_language_data): Likewise.
1927 (minimal_language_data): Likewise.
1928 * d-lang.c (d_language_data): Likewise.
1929 * f-lang.c (f_language_data): Likewise.
1930 * go-lang.c (go_language_data): Likewise.
1931 * language.c (default_print_array_index): Delete function, move
1932 implementation to...
1933 (language_defn::print_array_index): ...here.
1934 (unknown_language_data): Delete la_print_array_index initializer.
1935 (auto_language_data): Likewise.
1936 * language.h (struct language_data): Delete la_print_array_index
1937 field.
1938 (language_defn::print_array_index): New member function.
1939 (LA_PRINT_ARRAY_INDEX): Update.
1940 (default_print_array_index): Delete declaration.
1941 * m2-lang.c (m2_language_data): Delete la_print_array_index
1942 initializer.
1943 * objc-lang.c (objc_language_data): Likewise.
1944 * opencl-lang.c (opencl_language_data): Likewise.
1945 * p-lang.c (pascal_language_data): Likewise.
1946 * rust-lang.c (rust_language_data): Likewise.
1947
0874fd07
AB
19482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * gdb/ada-lang.c (ada_language_defn): Convert to...
1951 (ada_language_data): ...this.
1952 (class ada_language): New class.
1953 (ada_language_defn): New static global.
1954 * gdb/c-lang.c (c_language_defn): Convert to...
1955 (c_language_data): ...this.
1956 (class c_language): New class.
1957 (c_language_defn): New static global.
1958 (cplus_language_defn): Convert to...
1959 (cplus_language_data): ...this.
1960 (class cplus_language): New class.
1961 (cplus_language_defn): New static global.
1962 (asm_language_defn): Convert to...
1963 (asm_language_data): ...this.
1964 (class asm_language): New class.
1965 (asm_language_defn): New static global.
1966 (minimal_language_defn): Convert to...
1967 (minimal_language_data): ...this.
1968 (class minimal_language): New class.
1969 (minimal_language_defn): New static global.
1970 * gdb/d-lang.c (d_language_defn): Convert to...
1971 (d_language_data): ...this.
1972 (class d_language): New class.
1973 (d_language_defn): New static global.
1974 * gdb/f-lang.c (f_language_defn): Convert to...
1975 (f_language_data): ...this.
1976 (class f_language): New class.
1977 (f_language_defn): New static global.
1978 * gdb/go-lang.c (go_language_defn): Convert to...
1979 (go_language_data): ...this.
1980 (class go_language): New class.
1981 (go_language_defn): New static global.
1982 * gdb/language.c (unknown_language_defn): Remove declaration.
1983 (current_language): Initialize to nullptr, real initialization is
1984 moved to _initialize_language.
1985 (languages): Delete global.
1986 (language_defn::languages): Define.
1987 (set_language_command): Use language_defn::languages.
1988 (set_language): Likewise.
1989 (range_error): Likewise.
1990 (language_enum): Likewise.
1991 (language_def): Likewise.
1992 (add_set_language_command): Use language_def::languages for the
1993 language list, and language_def to lookup language pointers.
1994 (skip_language_trampoline): Use language_defn::languages.
1995 (unknown_language_defn): Convert to...
1996 (unknown_language_data): ...this.
1997 (class unknown_language): New class.
1998 (unknown_language_defn): New static global.
1999 (auto_language_defn): Convert to...
2000 (auto_language_data): ...this.
2001 (class auto_language): New class.
2002 (auto_language_defn): New static global.
2003 (language_gdbarch_post_init): Use language_defn::languages.
2004 (_initialize_language): Initialize current_language.
2005 * gdb/language.h (struct language_defn): Rename to...
2006 (struct language_data): ...this.
2007 (struct language_defn): New.
2008 (auto_language_defn): Delete.
2009 (unknown_language_defn): Delete.
2010 (minimal_language_defn): Delete.
2011 (ada_language_defn): Delete.
2012 (asm_language_defn): Delete.
2013 (c_language_defn): Delete.
2014 (cplus_language_defn): Delete.
2015 (d_language_defn): Delete.
2016 (f_language_defn): Delete.
2017 (go_language_defn): Delete.
2018 (m2_language_defn): Delete.
2019 (objc_language_defn): Delete.
2020 (opencl_language_defn): Delete.
2021 (pascal_language_defn): Delete.
2022 (rust_language_defn): Delete.
2023 * gdb/m2-lang.c (m2_language_defn): Convert to...
2024 (m2_language_data): ...this.
2025 (class m2_language): New class.
2026 (m2_language_defn): New static global.
2027 * gdb/objc-lang.c (objc_language_defn): Convert to...
2028 (objc_language_data): ...this.
2029 (class objc_language): New class.
2030 (objc_language_defn): New static global.
2031 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2032 (opencl_language_data): ...this.
2033 (class opencl_language): New class.
2034 (opencl_language_defn): New static global.
2035 * gdb/p-lang.c (pascal_language_defn): Convert to...
2036 (pascal_language_data): ...this.
2037 (class pascal_language): New class.
2038 (pascal_language_defn): New static global.
2039 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2040 language pointer, update comment format.
2041 * gdb/rust-lang.c (rust_language_defn): Convert to...
2042 (rust_language_data): ...this.
2043 (class rust_language): New class.
2044 (rust_language_defn): New static global.
2045
1313c56e
AB
20462020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2049 member variable.
2050 <m_stmt_at_address>: New member variable.
2051 (lnp_state_machine::record_line): Don't record some lines, update
2052 tracking of is_stmt at the same address.
2053 (lnp_state_machine::lnp_state_machine): Initialise new member
2054 variables.
2055
b7ed9f3d
ST
20562020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2057
2058 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2059 "-include gnu-nat-mig.h".
2060 * gnu-nat-mig.h: New file.
2061 * gnu-nat.c: Include "gnu-nat-mig.h".
2062 (exc_server, msg_reply_server, notify_server,
2063 process_reply_server): Remove declarations.
2064
14a8ad62
ST
20652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2066
2067 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2068 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2069 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2070 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2071 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2072 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2073 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2074 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2075 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2076 to gnu_nat_target class.
2077 * gnu-nat.c: Likewise.
2078 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2079 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2080 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2081 object.
2082 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2083 instead of `gnu_target'.
2084
0af5e106
ST
20852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2086
2087 * i386-gnu-tdep.c: Include "gdbcore.h"
2088 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2089 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2090 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2091 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2092 i386_gnu_sigcontext_addr): New functions
2093 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2094 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2095 tdep.
2096
078f2fc9
ST
20972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2098
2099 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2100 before fork_inferior call. Avoid calling it if target_is_pushed returns
2101 true.
2102
53dff92c
ST
21032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2104
2105 * gnu-nat.h (gnu_target): New variable declaration.
2106 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2107 gnu_target.
2108 * gnu-nat.c (gnu_target): New variable.
2109 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2110 add_thread_silent, and add_thread calls.
2111 (gnu_nat_target::create_inferior): Pass gnu_target to
2112 add_thread_silent, thread_change_ptid call.
2113 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2114 call.
2115
5a8b8627
ST
21162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2117
2118 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2119 (gnu_nat_target::find_memory_regions): Remove unused
2120 `old_address' variable.
2121
366f550a
ST
21222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2123
2124 * gnu-nat.c: Include "gdbarch.h".
2125
f14871bf
ST
21262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2127
2128 * reply_mig_hack.awk (Error return): Cast function through
2129 void *, to bypass compiler function call check.
2130
c6887cfb
ST
21312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2132
2133 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2134 $(srcdir)/reply_mig_hack.awk.
2135
6930bffe
ST
21362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2137
2138 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2139
112c22ed
JG
21402020-05-30 Jonny Grant <jg@jguk.org>
2141
2142 * configure.ac (ACX_BUGURL): change bug URL to https.
2143
f68f85b5
PA
21442020-05-30 Pedro Alves <palves@redhat.com>
2145
2146 * cp-support.c (replace_typedefs_template): New.
2147 (replace_typedefs_qualified_name): Handle
2148 DEMANGLE_COMPONENT_TEMPLATE.
2149
976ca316
SM
21502020-05-29 Simon Marchi <simon.marchi@efficios.com>
2151
2152 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2153 dwarf2/index-cache.h, dwarf2/index-write.c,
2154 dwarf2/index-write.h, dwarf2/line-header.c,
2155 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2156 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2157 variables and fields from `dwarf2_per_objfile` to just
2158 `per_objfile` throughout.
2159
989ade05
SM
21602020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2161
2162 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2163 <push_dwarf_reg_entry_value>: Add comment.
2164
c47bae85
KB
21652020-05-28 Kevin Buettner <kevinb@redhat.com>
2166 Keith Seitz <keiths@redhat.com>
2167
2168 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2169 instead of PyEval_ReleaseLock.
2170 (class gdbpy_gil): Move to earlier in file.
2171 (finalize_python): Set gdb_python_initialized.
2172 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2173 when not initialized.
2174
44486dcf
SM
21752020-05-28 Simon Marchi <simon.marchi@efficios.com>
2176
2177 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2178 <push_dwarf_reg_entry_value>: Remove assert. Override
2179 per_objfile with caller_per_objfile.
2180
f030440d
TV
21812020-05-28 Tom de Vries <tdevries@suse.de>
2182
2183 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2184 PR gold/15646 workaround to symbol kind "type".
2185
f0fbb768
TT
21862020-05-27 Tom Tromey <tromey@adacore.com>
2187
2188 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2189
af0b2a3e
TT
21902020-05-27 Tom Tromey <tromey@adacore.com>
2191
2192 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2193 Use htab_find_with_hash.
2194 <add_abbrev>: Remove "abbrev_number" parameter.
2195 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2196 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2197 (hash_abbrev): Add comment.
2198 (abbrev_table::lookup_abbrev): Move to header file.
2199 (abbrev_table::read): Update.
2200
7d00ffec
TT
22012020-05-27 Tom Tromey <tromey@adacore.com>
2202
2203 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2204 method.
2205 <canonical_name>: New member.
2206 <raw_name>: Rename from "name".
2207 (partial_die_info): Initialize canonical_name.
2208 (scan_partial_symbols): Check raw_name.
2209 (partial_die_parent_scope, partial_die_full_name)
2210 (add_partial_symbol, add_partial_subprogram)
2211 (add_partial_enumeration, load_partial_dies): Use "name" method.
2212 (partial_die_info::name): New method.
2213 (partial_die_info::read, guess_partial_die_structure_name)
2214 (partial_die_info::fixup): Update.
2215
697bba18
TT
22162020-05-27 Tom Tromey <tromey@adacore.com>
2217
2218 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2219 <get_ref_die_offset>: Inline.
2220 <get_ref_die_offset_complaint>: New method.
2221 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2222 (attribute::get_ref_die_offset_complaint): Rename from
2223 get_ref_die_offset. Just issue complaint.
2224
c17ace43
HD
22252020-05-27 Hannes Domani <ssbssa@yahoo.de>
2226
2227 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2228
96445f0b
HD
22292020-05-27 Hannes Domani <ssbssa@yahoo.de>
2230
2231 * exec.c (exec_file_attach): Use errno value of first openp failure.
2232
ac637ec3
HD
22332020-05-27 Hannes Domani <ssbssa@yahoo.de>
2234
2235 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2236 Don't close thread handle.
2237
17ee85fc
TT
22382020-05-27 Tom Tromey <tom@tromey.com>
2239 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2242 shared_ptr.
2243 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2244 member.
2245 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2246 dwarf2_per_bfd_objfile_data_key>: New globals.
2247 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2248 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2249 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2250 shared.
2251 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2252 short-circuit when sharing.
2253 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2254 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2255
39b16f87
SM
22562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2257
2258 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2259 to...
2260 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2261 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2262
fcf23d5b
SM
22632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2266 build_name_components, find_name_components_bounds>:
2267 Add per_objfile parameter.
2268 (struct mapped_index) <symbol_name_at>: Likewise.
2269 (struct mapped_debug_names): Remove constructor.
2270 <dwarf2_per_objfile>: Remove field.
2271 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2272 (mapped_index_base::find_name_components_bounds,
2273 mapped_index_base::build_name_components,
2274 dw2_expand_symtabs_matching_symbol): Likewise.
2275 (class mock_mapped_index) <symbol_name_at>: Likewise.
2276 (check_match): Likewise.
2277 (check_find_bounds_finds): Likewise.
2278 (test_mapped_index_find_name_component_bounds): Update.
2279 (CHECK_MATCH): Update.
2280 (dw2_expand_symtabs_matching): Update.
2281 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2282 per_objfile parameter.
2283 <find_vec_in_debug_names>: Likewise.
2284 <m_per_objfile>: New field.
2285 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2286 parameter.
2287 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2288 (dw2_debug_names_iterator::next): Update.
2289 (dw2_debug_names_lookup_symbol): Update.
2290 (dw2_debug_names_expand_symtabs_for_function): Update.
2291 (dw2_debug_names_map_matching_symbols): Update.
2292 (dw2_debug_names_expand_symtabs_matching): Update.
2293 (dwarf2_read_debug_names): Update.
2294
7188ed02
SM
22952020-05-27 Simon Marchi <simon.marchi@efficios.com>
2296
2297 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2298 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2299 move to dwarf2_per_objfile.
2300 <read_in_chain>: Remove.
2301 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2302 remove_all_cus, age_comp_units>: New methods.
2303 <m_dwarf2_cus>: New member.
2304 (struct dwarf2_per_cu_data) <cu>: Remove.
2305 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2306 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2307 moved to methods of dwarf2_per_objfile.
2308 (dwarf2_clear_marks): Remove.
2309 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2310 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2311 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2312 (dwarf2_per_objfile::remove_all_cus): New.
2313 (class free_cached_comp_units) <~free_cached_comp_units>:
2314 Update.
2315 (load_cu): Update.
2316 (dw2_do_instantiate_symtab): Adjust.
2317 (fill_in_sig_entry_from_dwo_entry): Adjust.
2318 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2319 (cutu_reader::cutu_reader): Likewise.
2320 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2321 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2322 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2323 and dwarf2_per_objfile::age_comp_units.
2324 (load_partial_comp_unit): Update.
2325 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2326 (process_queue): Likewise.
2327 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2328 backlink.
2329 (dwarf2_read_addr_index): Likewise.
2330 (follow_die_offset): Likewise.
2331 (dwarf2_fetch_die_loc_sect_off): Likewise.
2332 (dwarf2_fetch_constant_bytes): Likewise.
2333 (dwarf2_fetch_die_type_sect_off): Likewise.
2334 (follow_die_sig_1): Likewise.
2335 (load_full_type_unit): Likewise.
2336 (read_signatured_type): Likewise.
2337 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2338 (dwarf2_cu::~dwarf2_cu): Remove.
2339 (dwarf2_per_objfile::get_cu): New.
2340 (dwarf2_per_objfile::set_cu): New.
2341 (age_cached_comp_units): Rename to...
2342 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2343 to std::unordered_map.
2344 (free_one_cached_comp_unit): Rename to...
2345 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2346 to std::unordered_map.
2347 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2348 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2349 a dwarf2_per_objfile in data.
2350 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2351 (dwarf2_clear_marks): Remove.
2352
2e671100
SM
23532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2356 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2357 (init_tu_and_read_dwo_dies): Likewise.
2358 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2359 (cutu_reader::cutu_reader): Likewise.
2360 (load_partial_comp_unit): Likewise.
2361 (process_psymtab_comp_unit): Update.
2362 (build_type_psymtabs_1): Update.
2363 (process_skeletonless_type_unit): Update.
2364 (load_full_comp_unit): Update.
2365 (find_partial_die): Update.
2366 (dwarf2_read_addr_index): Update.
2367 (read_signatured_type): Update.
2368
2e6a9f79
SM
23692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2370
2371 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2372 m_header_read_in>: New fields.
2373 <get_header>: New method.
2374 * dwarf2/read.c (per_cu_header_read_in): Remove.
2375 (dwarf2_per_cu_data::get_header): New.
2376 (dwarf2_per_cu_data::addr_size): Update.
2377 (dwarf2_per_cu_data::offset_size): Update.
2378 (dwarf2_per_cu_data::ref_addr_size): Update.
2379
1b555f17
SM
23802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2381
2382 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2383 (dw2_do_instantiate_symtab): Update.
2384 (queue_and_load_all_dwo_tus): Change parameter from
2385 dwarf2_per_cu_data to dwarf2_cu.
2386 (dwarf2_fetch_die_loc_sect_off): Update.
2387 (dwarf2_fetch_constant_bytes): Update.
2388 (dwarf2_fetch_die_type_sect_off): Update.
2389
8fc0b21d
SM
23902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2391
2392 * dwarf2/read.c (process_full_comp_unit,
2393 process_full_type_unit): Remove per_cu, per_objfile paramters.
2394 Add dwarf2_cu parameter.
2395 (process_queue): Update.
2396
168c9250
SM
23972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2398
2399 * dwarf2/read.c (create_cu_from_index_list): Replace
2400 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2401 (create_cus_from_index_list): Likewise.
2402 (create_cus_from_index): Likewise.
2403 (create_signatured_type_table_from_index): Likewise.
2404 (create_cus_from_debug_names_list): Likewise.
2405 (create_cus_from_debug_names): Likewise.
2406 (dwarf2_read_gdb_index): Update.
2407 (dwarf2_read_debug_names): Update.
2408
e286671b
TT
24092020-05-27 Tom Tromey <tom@tromey.com>
2410 Simon Marchi <simon.marchi@efficios.com>
2411
2412 * dwarf2/read.h (struct dwarf2_per_objfile)
2413 <get_type_for_signatured_type, set_type_for_signatured_type>:
2414 New methods.
2415 <m_type_map>: New member.
2416 (struct signatured_type) <type>: Remove.
2417 * dwarf2/read.c
2418 (dwarf2_per_objfile::get_type_for_signatured_type,
2419 dwarf2_per_objfile::set_type_for_signatured_type): New.
2420 (get_signatured_type): Use new methods.
2421
8adb8487
TT
24222020-05-27 Tom Tromey <tom@tromey.com>
2423 Simon Marchi <simon.marchi@efficios.com>
2424
2425 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2426 (struct dwarf2_per_objfile) <type_units>: New member.
2427 <get_type_unit_group_unshareable>: New method.
2428 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2429 num_symtabs, symtabs>: Remove; move to
2430 type_unit_group_unshareable.
2431 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2432 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2433 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2434
127bbf4b
SM
24352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * dwarf2/read.h (struct dwarf2_per_cu_data):
2438 <dwarf2_per_objfile>: Remove.
2439 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2440 dwarf2_per_objfile.
2441 (create_signatured_type_table_from_index): Likewise.
2442 (create_signatured_type_table_from_debug_names): Likewise.
2443 (create_debug_type_hash_table): Likewise.
2444 (fill_in_sig_entry_from_dwo_entry): Likewise.
2445 (create_type_unit_group): Likewise.
2446 (read_comp_units_from_section): Likewise.
2447 (create_cus_hash_table): Likewise.
2448
f6e649dd
SM
24492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2452 dwarf2_per_cu_data::dwarf2_per_objfile.
2453 (compute_compunit_symtab_includes): Likewise.
2454 (dwarf2_cu::start_symtab): Likewise.
2455
aa66c379
SM
24562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2457
2458 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2459 parameter.
2460 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2461 (read_namespace_alias): Update.
2462 (lookup_die_type): Update.
2463 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2464 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2465 Update.
2466 (disassemble_dwarf_expression): Update.
2467
120ce1b5
SM
24682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2469
2470 * dwarf2/read.h (struct dwarf2_queue_item): Add
2471 dwarf2_per_objfile parameter, assign new parameter.
2472 <per_objfile>: New field.
2473 * dwarf2/read.c (free_one_cached_comp_unit): Add
2474 dwarf2_per_objfile parameter.
2475 (queue_comp_unit): Likewise.
2476 (dw2_do_instantiate_symtab): Update.
2477 (process_psymtab_comp_unit): Update.
2478 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2479 (process_imported_unit_die): Update.
2480 (queue_and_load_dwo_tu): Update.
2481 (follow_die_offset): Update.
2482 (follow_die_sig_1): Update.
2483
9f47c707
SM
24842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2485
2486 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2487 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2488 (read_call_site_scope): Assign per_objfile.
2489 (dwarf2_per_cu_data::objfile): Remove.
2490 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2491 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2492 dwarf2_per_objfile parameter.
2493 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2494 dwarf2_per_objfile parameter.
2495 (dwarf_expr_reg_to_entry_parameter): Add output
2496 dwarf2_per_objfile parameter.
2497 (locexpr_get_frame_base): Update.
2498 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2499 <push_dwarf_reg_entry_value>: Update.
2500 <call_site_to_target_addr>: Update.
2501 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2502 parameter.
2503 (value_of_dwarf_reg_entry): Update.
2504 (rw_pieced_value): Update.
2505 (indirect_synthetic_pointer): Update.
2506 (dwarf2_evaluate_property): Update.
2507 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2508 parameter.
2509 (locexpr_read_variable): Update.
2510 (locexpr_get_symbol_read_needs): Update.
2511 (loclist_read_variable): Update.
2512
14095eb3
SM
25132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2514
2515 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2516 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2517 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2518 parameter.
2519 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2520 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2521 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2522 parameter.
2523 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2524 sect_variable_value): Add dwarf2_per_objfile parameter.
2525 (class dwarf_evaluate_loc_desc) <dwarf_call,
2526 dwarf_variable_value>: Update.
2527 (fetch_const_value_from_synthetic_pointer): Add
2528 dwarf2_per_objfile parameter.
2529 (fetch_const_value_from_synthetic_pointer): Update.
2530 (coerced_pieced_ref): Update.
2531 (class symbol_needs_eval_context) <dwarf_call,
2532 dwarf_variable_value>: Update.
2533 (dwarf2_compile_expr_to_ax): Update.
2534
3c3cd3d4
SM
25352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2538 parameter.
2539 (dwarf2_evaluate_loc_desc_full): Update.
2540
82ca3f51
SM
25412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2544 parameter.
2545 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2546 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2547 dwarf2_per_objfile parameter.
2548 (decode_debug_loc_dwo_addresses): Likewise.
2549 (dwarf2_find_location_expression): Update.
2550 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2551 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2552 parameter.
2553 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2554 parameter.
2555 (locexpr_describe_location_1): Likewise.
2556 (locexpr_describe_location): Update.
2557
4b167ea1
SM
25582020-05-27 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2561 Remove.
2562 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2563 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2564 (dwarf2_compile_property_to_c): Update.
2565 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2566 use text offset from objfile.
2567 (locexpr_tracepoint_var_ref): Update.
2568 (locexpr_generate_c_location): Update.
2569 (loclist_describe_location): Update.
2570 (loclist_tracepoint_var_ref): Update.
2571 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2572 dwarf2_per_objfile parameter.
2573 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2574 use text offset from objfile.
2575 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2576
89b07335
SM
25772020-05-27 Simon Marchi <simon.marchi@efficios.com>
2578
2579 * dwarf2/expr.h (struct dwarf_expr_context)
2580 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2581 <offset>: Remove.
2582 <per_objfile>: New member.
2583 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2584 dwarf2_per_objfile parameter. Don't set offset, set
2585 per_objfile.
2586 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2587 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2588 a dwarf2_per_objfile object instead of an offset.
2589 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2590 constructor.
2591 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2592 to dwarf2_expr_executor constructor. Don't set offset.
2593 (dwarf2_fetch_cfa_info): Update.
2594 (struct dwarf2_frame_cache) <text_offset>: Remove.
2595 <per_objfile>: New field.
2596 (dwarf2_frame_cache): Update.
2597 (dwarf2_frame_prev_register): Update.
2598 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2599 <dwarf_evaluate_loc_desc>: Add constructor.
2600 (dwarf2_evaluate_loc_desc_full): Update.
2601 (dwarf2_locexpr_baton_eval): Update.
2602 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2603 Add constructor.
2604 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2605
293e7e51
SM
26062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2607
2608 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2609 addr_sized_int_type>: Move to dwarf2_cu.
2610 <int_type>: Move to dwarf2_per_objfile.
2611 (struct dwarf2_per_objfile) <int_type>: Move here.
2612 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2613 addr_sized_int_type>: Move here.
2614 (read_func_scope): Update.
2615 (read_array_type): Update.
2616 (read_tag_string_type): Update.
2617 (attr_to_dynamic_prop): Update.
2618 (dwarf2_per_cu_data::int_type): Rename to...
2619 (dwarf2_per_objfile::int_type): ... this.
2620 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2621 (dwarf2_cu::addr_sized_int_type): ... this.
2622 (read_subrange_type): Update.
2623 (dwarf2_per_cu_data::addr_type): Rename to...
2624 (dwarf2_cu::addr_type): ... this.
2625 (set_die_type): Update.
2626
64874a40
SM
26272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2628
2629 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2630 data through per_cu->cu.
2631
4ab09049
SM
26322020-05-27 Simon Marchi <simon.marchi@efficios.com>
2633
2634 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2635 dwarf2_per_cu_data parameter fo dwarf2_cu.
2636 (lookup_dwo_type_unit): Likewise.
2637 (read_cutu_die_from_dwo): Likewise.
2638 (lookup_dwo_unit): Likewise.
2639 (open_and_init_dwo_file): Likewise.
2640 (lookup_dwo_cutu): Likewise.
2641 (lookup_dwo_comp_unit): Likewise.
2642 (lookup_dwo_type_unit): Likewise.
2643 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2644 (cutu_reader::cutu_reader): Update.
2645
47b14e86
SM
26462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2649 parameter.
2650 (process_full_type_unit): Likewise.
2651 (process_queue): Update.
2652
43182c09
SM
26532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2654
2655 * dwarf2/read.c (recursively_compute_inclusions): Add
2656 dwarf2_per_objfile parameter.
2657 (compute_compunit_symtab_includes): Likewise.
2658 (process_cu_includes): Update.
2659
7aa104c4
SM
26602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2661
2662 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2663 parameter.
2664 (create_type_unit_group): Update.
2665 (process_psymtab_comp_unit_reader): Update.
2666 (build_type_psymtabs_reader): Update.
2667
e3beb21d
SM
26682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2669
2670 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2671 object through m_this_cu->cu.
2672
d460f660
SM
26732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2674
2675 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2676 the info parameter.
2677 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2678
ab432490
SM
26792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2680
2681 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2682 per_objfile parameter.
2683 (load_full_type_unit): Add per_objfile parameter.
2684 (read_signatured_type): Likewise.
2685 (load_full_comp_unit): Likewise.
2686 (load_cu): Likewise.
2687 (dw2_do_instantiate_symtab): Likewise.
2688 (dw2_get_file_names): Likewise.
2689 (dw2_map_symtabs_matching_filename): Update.
2690 (dw_expand_symtabs_matching_file_matcher): Update.
2691 (dw2_map_symbol_filenames): Update.
2692 (process_psymtab_comp_unit): Add per_objfile parameter.
2693 (build_type_psymtabs_1): Update.
2694 (process_skeletonless_type_unit): Update.
2695 (dwarf2_build_psymtabs_hard): Update.
2696 (load_partial_comp_unit): Add per_objfile parameter.
2697 (scan_partial_symbols): Update.
2698 (load_full_comp_unit): Add per_objfile parameter.
2699 (process_imported_unit_die): Update.
2700 (create_cus_hash_table): Update.
2701 (find_partial_die): Update.
2702 (dwarf2_read_addr_index): Update.
2703 (follow_die_offset): Update.
2704 (dwarf2_fetch_die_loc_sect_off): Update.
2705 (dwarf2_fetch_constant_bytes): Update.
2706 (dwarf2_fetch_die_type_sect_off): Update.
2707 (follow_die_sig_1): Update.
2708 (load_full_type_unit): Add per_objfile parameter.
2709 (read_signatured_type): Likewise.
2710
313bad1b
SM
27112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2712
2713 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2714 of objfile_name.
2715
c3699833
SM
27162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2719 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2720 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2721 field.
2722 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2723 (create_cus_from_index): Update.
2724 (dwarf2_read_gdb_index): Update.
2725 (create_cus_from_debug_names): Update.
2726 (dwarf2_read_debug_names): Update.
2727 (get_abbrev_section_for_cu): Update.
2728 (create_all_comp_units): Update.
2729 (read_attribute_value): Update.
2730 (get_debug_line_section): Update.
2731 * dwarf2/index-cache.c (index_cache::store): Update.
2732 * dwarf2/index-write.c (save_gdb_index_command): Update.
2733 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2734
1859c670
SM
27352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2738 member.
2739 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2740 dwarf2_per_cu_data::per_bfd.
2741 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2742 (create_type_unit_group): Likewise.
2743 (queue_comp_unit): Remove reference to
2744 per_cu->dwarf2_per_objfile.
2745 (maybe_queue_comp_unit): Likewise.
2746 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2747 (create_cus_hash_table): Assign new field.
2748
5e22e966
SM
27492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * dwarf2/read.c: Replace
2752 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2753 dwarf2_cu->per_objfile throughout.
2754
97a1449a
SM
27552020-05-27 Simon Marchi <simon.marchi@efficios.com>
2756
2757 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2758 parameter, don't use per_cu->dwarf2_per_objfile.
2759 (dw2_instantiate_symtab): Likewise.
2760 (dw2_find_last_source_symtab): Update.
2761 (dw2_map_expand_apply): Update.
2762 (dw2_lookup_symbol): Update.
2763 (dw2_expand_symtabs_for_function): Update.
2764 (dw2_expand_all_symtabs): Update.
2765 (dw2_expand_symtabs_with_fullname): Update.
2766 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2767 don't use per_cu->dwarf2_per_objfile.
2768 (dw2_expand_marked_cus): Update.
2769 (dw2_find_pc_sect_compunit_symtab): Update.
2770 (dw2_debug_names_lookup_symbol): Update.
2771 (dw2_debug_names_expand_symtabs_for_function): Update.
2772 (dw2_debug_names_map_matching_symbols): Update.
2773 (dwarf2_psymtab::expand_psymtab): Update.
2774
9e021579
SM
27752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2778 <per_objfile>: New member.
2779 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2780 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2781 call to dwarf2_cu.
2782 (cutu_reader::cutu_reader): Update.
2783 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2784
ae090bdb
SM
27852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2786
2787 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2788 struct dwarf2_per_objfile.
2789 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2790 dwarf2_per_bfd.
2791 * dwarf2/read.c (set_die_type): Update.
2792 (get_die_type_at_offset): Update.
2793
af758d11
SM
27942020-05-27 Tom Tromey <tom@tromey.com>
2795 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2798 method.
2799 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2800 get_symtab, set_symtab>: New methods.
2801 <m_symtabs>: New field.
2802 (struct dwarf2_psymtab): Derive from partial_symtab.
2803 <readin_p, get_compunit_symtab>: Declare methods.
2804 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2805 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2806 New methods.
2807 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2808 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2809 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2810 (dw2_symtab_iter_next, dw2_print_stats)
2811 (dw2_expand_symtabs_with_fullname)
2812 (dw2_expand_symtabs_matching_one)
2813 (dw_expand_symtabs_matching_file_matcher)
2814 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2815 (dw2_debug_names_iterator::next)
2816 (dw2_debug_names_map_matching_symbols)
2817 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2818 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2819 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2820 New methods.
2821 (get_compunit_symtab, process_full_comp_unit)
2822 (process_full_type_unit): Update.
2823 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2824
5989a64e
SM
28252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2826
2827 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2828 then introduce a new dwarf2_per_objfile type.
2829 <read_line_string>: Move to the new dwarf2_per_objfile type.
2830 <objfile>: Likewise.
2831 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2832 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2833 dwarf2_per_objfile->per_bfd.
2834 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2835 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2836 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2837 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2838 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2839 (dwarf2_per_objfile::locate_sections): Rename to...
2840 (dwarf2_per_bfd::locate_sections): ... this.
2841 (dwarf2_per_objfile::get_cutu): Rename to...
2842 (dwarf2_per_bfd::get_cutu): ... this.
2843 (dwarf2_per_objfile::get_cu): Rename to...
2844 (dwarf2_per_bfd::get_cu): ... this.
2845 (dwarf2_per_objfile::get_tu): Rename to...
2846 (dwarf2_per_bfd::get_tu): ... this.
2847 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2848 (dwarf2_per_bfd::allocate_per_cu): ... this.
2849 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2850 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2851 (get_gdb_index_contents_ftype): Change parameter from
2852 dwarf2_per_objfile to dwarf2_per_bfd.
2853 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2854 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2855
a50264ba
TT
28562020-05-27 Tom Tromey <tom@tromey.com>
2857 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2860 (allocate_piece_closure): Set "per_objfile" member.
2861 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2862 (locexpr_describe_location, loclist_describe_location): Use new
2863 member.
2864 * dwarf2/read.c (read_call_site_scope)
2865 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2866 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2867 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2868 handle_data_member_location): Set per_objfile member.
2869 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2870 member.
2871 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2872
d3473f0c
TT
28732020-05-27 Tom Tromey <tom@tromey.com>
2874
2875 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2876 allocate_signatured_type>: Declare new methods.
2877 <m_num_psymtabs>: New member.
2878 (struct dwarf2_per_cu_data) <index>: New member.
2879 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2880 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2881 (create_cu_from_index_list): Use allocate_per_cu.
2882 (create_signatured_type_table_from_index)
2883 (create_signatured_type_table_from_debug_names)
2884 (create_debug_type_hash_table, add_type_unit)
2885 (read_comp_units_from_section): Use allocate_signatured_type.
2886
5717c425
TT
28872020-05-27 Tom Tromey <tom@tromey.com>
2888
2889 * psymtab.c (partial_map_expand_apply)
2890 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2891 (psym_lookup_global_symbol_language)
2892 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2893 (psym_print_stats, psym_expand_symtabs_for_function)
2894 (psym_map_symbol_filenames, psym_map_matching_symbols)
2895 (psym_expand_symtabs_matching)
2896 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2897 (maintenance_check_psymtabs): Update.
2898 * psympriv.h (struct partial_symtab) <readin_p,
2899 get_compunit_symtab>: Add objfile parameter.
2900 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2901 Likewise.
2902 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2903 get_compunit_symtab>: Likewise.
2904 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2905
45940949
TT
29062020-05-27 Tom Tromey <tom@tromey.com>
2907
2908 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2909 member.
2910 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2911 (create_cu_from_index_list)
2912 (create_signatured_type_table_from_index)
2913 (create_signatured_type_table_from_debug_names)
2914 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2915 (dwarf2_create_include_psymtab)
2916 (create_debug_type_hash_table, add_type_unit)
2917 (create_type_unit_group, read_comp_units_from_section)
2918 (dwarf2_compute_name, create_cus_hash_table)
2919 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2920 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2921 obstack.
2922 (dw2_get_real_path): Likewise. Change argument to
2923 dwarf2_per_objfile.
2924
f8c6d152
LM
29252020-05-27 Luis Machado <luis.machado@linaro.org>
2926
2927 PR tdep/26000
2928 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2929 for ldrd (immediate).
2930
e98d2e6d
PW
29312020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2932
2933 * command.h: Add comment giving the name of class_tui.
2934 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2935 create the fake command for the help for class_tui.
2936
53a47a3e
TT
29372020-05-26 Tom Tromey <tromey@adacore.com>
2938
2939 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2940 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2941 (val_atr): New function.
2942 (value_val_atr): Use it.
2943 * ada-valprint.c (print_optional_low_bound): Change low bound
2944 handling for enums.
2945 (val_print_packed_array_elements): Don't call discrete_position.
2946 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2947 discrete_position for enum types.
2948 * language.c (default_print_array_index): Change type.
2949 * language.h (struct language_defn) <la_print_array_index>: Add
2950 index_type parameter, change type of index_value.
2951 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
2952 (default_print_array_index): Update.
2953 * valprint.c (maybe_print_array_index): Don't call
2954 value_from_longest. Update.
2955 (value_print_array_elements): Don't call discrete_position.
2956
0bc2354b
TT
29572020-05-26 Tom Tromey <tromey@adacore.com>
2958
2959 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
2960 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
2961
1218a4bf
CDA
29622020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
2963
2964 PR gdb/13519
2965 * avr-tdep.c (avr_integer_to_address): Return data or code
2966 address accordingly to the second 'type' argument of the
2967 function.
2968
92651b1d
MW
29692020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2970
2971 * infcmd.c, inferior.h: (construct_inferior_arguments):
2972 Moved function from here to gdbsupport/common-inferior.{h,cc}
2973
0a4f5f8c
TT
29742020-05-23 Tom Tromey <tom@tromey.com>
2975
2976 Revert commit eca1f90c:
2977 * NEWS: Remove entry for completion styling.
2978 * completer.c (_rl_completion_prefix_display_length): Move
2979 declaration later.
2980 (gdb_fnprint): Revert.
2981 (gdb_display_match_list_1): Likewise.
2982 * cli/cli-style.c (completion_prefix_style)
2983 (completion_difference_style, completion_suffix_style): Remove.
2984 (_initialize_cli_style): Revert.
2985 * cli/cli-style.h (completion_prefix_style)
2986 (completion_difference_style, completion_suffix_style): Don't
2987 declare.
2988
e08bd6c5
PA
29892020-05-24 Pedro Alves <palves@redhat.com>
2990
2991 * symtab.c (completion_list_add_name): Return boolean indication
2992 of whether the symbol matched.
2993 (completion_list_add_symbol): Don't try to remove C++ aliases if
2994 the symbol didn't match in the first place.
2995 * symtab.h (completion_list_add_name): Return bool.
2996
ceacbf6e
SM
29972020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3000 type::field.
3001
26f16254
JB
30022020-05-23 Joel Brobecker <brobecker@adacore.com>
3003
3004 GDB 9.2 released.
3005
eca1f90c
TT
30062020-05-23 Tom Tromey <tom@tromey.com>
3007
3008 * NEWS: Add entry for completion styling.
3009 * completer.c (_rl_completion_prefix_display_length): Move
3010 declaration earlier.
3011 (gdb_fnprint): Use completion_style.
3012 (gdb_display_match_list_1): Likewise.
3013 * cli/cli-style.c (completion_prefix_style)
3014 (completion_difference_style, completion_suffix_style): New
3015 globals.
3016 (_initialize_cli_style): Register new globals.
3017 * cli/cli-style.h (completion_prefix_style)
3018 (completion_difference_style, completion_suffix_style): Declare.
3019
51e2cfa2
PA
30202020-05-23 Pedro Alves <palves@redhat.com>
3021
3022 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3023 (parse_escape): Use ISDIGIT instead of isdigit.
3024 (puts_debug): Use gdb_isprint instead of isprint.
3025 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3026 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3027 ISSPACE instead of isspace.
3028 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3029 instead of isspace.
3030 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3031 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3032 instead of isxdigit and ISDIGIT instead of isdigit.
3033
80fc5e77
SM
30342020-05-22 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * gdbtypes.h (struct type) <field>: New method.
3037 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3038 or type::field.
3039
3cabb6b0
SM
30402020-05-22 Simon Marchi <simon.marchi@efficios.com>
3041
3042 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3043 (TYPE_FIELDS): Use type::fields. Change all call sites that
3044 modify the propery to use type::set_fields instead.
3045
1f704f76
SM
30462020-05-22 Simon Marchi <simon.marchi@efficios.com>
3047
3048 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3049 type::num_fields instead.
3050
5e33d5f4
SM
30512020-05-22 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3054 methods.
3055 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3056 that modify the number of fields to use type::set_num_fields
3057 instead.
3058
9392ebb3
TT
30592020-05-22 Tom Tromey <tromey@adacore.com>
3060
3061 * compile/compile-object-load.h (munmap_list_free): Don't
3062 declare.
3063
7c13f4e8
AB
30642020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * annotate.c (annotate_source_line): Update return type, add call
3067 to update current symtab and line.
3068 * annotate.h (annotate_source_line): Update return type, and
3069 extend header comment.
3070 * source.c (info_line_command): Check annotation_level before
3071 calling annotate_source_line.
3072 * stack.c (print_frame_info): If calling annotate_source_line
3073 returns true, then don't print any other source line information.
3074
aa370940
SM
30752020-05-21 Simon Marchi <simon.marchi@efficios.com>
3076
3077 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3078
84d53fa9
SM
30792020-05-21 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * coffread.c (patch_type): Remove NULL check before xfree.
3082 * corefile.c (set_gnutarget): Likewise.
3083 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3084 * exec.c (build_section_table): Likewise.
3085 * remote.c (remote_target::pass_signals): Likewise.
3086 * utils.c (n_spaces): Likewise.
3087 * cli/cli-script.c (document_command): Likewise.
3088 * i386-windows-tdep.c (core_process_module_section): Likewise.
3089 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3090
9d428aae
SM
30912020-05-20 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * symfile.c (reread_symbols): Clear objfile's section_offsets
3094 vector and section indices, re-compute them by calling
3095 sym_offsets.
3096
250106a7
TT
30972020-05-20 Tom Tromey <tromey@adacore.com>
3098
3099 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3100 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3101
9a0bacfb
TV
31022020-05-20 Tom de Vries <tdevries@suse.de>
3103
3104 PR symtab/25833
3105 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3106
7b958a48
AM
31072020-05-20 Alan Modra <amodra@gmail.com>
3108
3109 PR 25993
3110 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3111 bfd_set_filename.
3112 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3113 passed to bfd_set_filename.
3114 * symfile-mem.c (add_vsyscall_page): Likewise for string
3115 passed to symbol_file_add_from_memory.
3116 (symbol_file_add_from_memory): Make name param a const char* and
3117 don't strdup.
3118
c7e97679
AM
31192020-05-20 Alan Modra <amodra@gmail.com>
3120
3121 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3122 rather than accessing bfd->filename directly.
3123 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3124 and use bfd_section_name.
3125 * dwarf2/frame.c (decode_frame_entry): Likewise.
3126 * exec.c (exec_set_section_address): Likewise.
3127 * solib-aix.c (solib_aix_bfd_open): Likewise.
3128 * stap-probe.c (get_stap_base_address): Likewise.
3129 * symfile.c (reread_symbols): Likewise.
3130
563c591b
TT
31312020-05-19 Tom Tromey <tromey@adacore.com>
3132
3133 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3134
f408d82c
SM
31352020-05-19 Simon Marchi <simon.marchi@efficios.com>
3136
3137 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3138
98c59b52
PA
31392020-05-19 Pedro Alves <palves@redhat.com>
3140
3141 * NEWS (set exec-file-mismatch): Adjust entry.
3142 * exec.c: Include "build-id.h".
3143 (validate_exec_file): Try to match build IDs instead of filenames.
3144 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3145 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3146 and pass down 'warn_if_slow'.
3147 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3148 gdb_bfd_open_closure to pass it down.
3149 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3150
4111f652
PA
31512020-05-19 Pedro Alves <palves@redhat.com>
3152
3153 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3154 * target.c (target_fileio_open_1): Rename to target_fileio_open
3155 and make extern. Use bool.
3156 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3157 (target_fileio_read_alloc_1): Adjust.
3158 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3159 (target_fileio_open_warn_if_slow): Delete declaration.
3160
ad80db5b
PA
31612020-05-19 Pedro Alves <palves@redhat.com>
3162
3163 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3164 Adjust all callers.
3165
1d6ce4d3
YS
31662020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3167
3168 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3169 whether disp is negative.
3170
9005fbbb
SM
31712020-05-19 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * symfile.h (struct symfile_segment_data)
3174 <~symfile_segment_data>: Remove.
3175 <segment_info>: Change to std::vector.
3176 * symfile.c (default_symfile_segments): Update.
3177 * elfread.c (elf_symfile_segments): Update.
3178
68b888ff
SM
31792020-05-19 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3182 <segments>: New.
3183 <segment_bases, segment_sizes>: Remove.
3184 * symfile.c (default_symfile_segments): Update.
3185 * elfread.c (elf_symfile_segments): Update.
3186 * remote.c (remote_target::get_offsets): Update.
3187 * solib-target.c (solib_target_relocate_section_addresses):
3188 Update.
3189
62982abd
SM
31902020-05-19 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * symfile.h (struct symfile_segment_data): Initialize fields.
3193 <~symfile_segment_data>: Add.
3194 (symfile_segment_data_up): New.
3195 (struct sym_fns) <sym_segments>: Return a
3196 symfile_segment_data_up.
3197 (default_symfile_segments): Return a symfile_segment_data_up.
3198 (free_symfile_segment_data): Remove.
3199 (get_symfile_segment_data): Return a symfile_segment_data_up.
3200 * symfile.c (default_symfile_segments): Likewise.
3201 (get_symfile_segment_data): Likewise.
3202 (free_symfile_segment_data): Remove.
3203 (symfile_find_segment_sections): Update.
3204 * elfread.c (elf_symfile_segments): Return a
3205 symfile_segment_data_up.
3206 * remote.c (remote_target::get_offsets): Update.
3207 * solib-target.c (solib_target_relocate_section_addresses):
3208 Update.
3209 * symfile-debug.c (debug_sym_segments): Return a
3210 symfile_segment_data_up.
3211
7f204339
RO
32122020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3213
e52a0f1b
RO
3214 PR build/25981
3215 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3216 Hardcode register numbers.
3217
7f204339
RO
3218 PR build/25981
3219 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3220 procfs_find_LDT_entry): Remove.
3221 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3222 procfs_find_LDT_entry): Remove.
3223 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3224 Remove.
3225
7f32a4d5
PA
32262020-05-17 Pedro Alves <palves@redhat.com>
3227 Andrew Burgess <andrew.burgess@embecosm.com>
3228 Keno Fischer <keno@juliacomputing.com>
3229
3230 PR gdb/25741
3231 * breakpoint.c (build_target_condition_list): Update comments.
3232 (build_target_command_list): Update comments and skip matching
3233 locations.
3234 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3235 a separate function. Simplify "set breakpoint auto-hw off"
3236 handling.
3237 (insert_breakpoints): Update comment.
3238 (tracepoint_locations_match): New parameter. For breakpoints,
3239 compare location types too, if the caller wants to.
3240 (handle_automatic_hardware_breakpoints): New functions.
3241 (bp_location_is_less_than): Also sort by location type and
3242 hardware breakpoint length.
3243 (update_global_location_list): Handle "set breakpoint auto-hw on"
3244 here.
3245 (update_breakpoint_locations): Ask breakpoint_locations_match to
3246 ignore location types.
3247
7d93a1e0
SM
32482020-05-16 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3251 type::name instead.
3252
d0e39ea2
SM
32532020-05-16 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * gdbtypes.h (struct type) <name, set_name>: New methods.
3256 (TYPE_CODE): Use type::name. Change all call sites used to set
3257 the name to use type::set_name instead.
3258
2dab0c7b
TT
32592020-05-16 Tom Tromey <tom@tromey.com>
3260
3261 * top.c (quit_force): Update.
3262 * infrun.c (handle_no_resumed): Update.
3263 * top.h (all_uis): New function.
3264 (ALL_UIS): Remove.
3265
59f7bd8d
SM
32662020-05-16 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3269
9bf058f0
PA
32702020-05-16 Pedro Alves <palves@redhat.com>
3271
3272 * ia64-linux-nat.c
3273 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3274 Declare method.
3275 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3276
8f86ae1a
SM
32772020-05-15 Simon Marchi <simon.marchi@efficios.com>
3278
3279 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3280 (sparc64_adi_info): Likewise.
3281
d6bc0792
TT
32822020-05-15 Tom Tromey <tom@tromey.com>
3283
3284 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3285 block_objfile.
3286 (lookup_objfile_from_block): Remove.
3287 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3288 (lookup_global_symbol): Use block_objfile.
3289 * symtab.h (lookup_objfile_from_block): Don't declare.
3290 * printcmd.c (clear_dangling_display_expressions): Use
3291 block_objfile.
3292 * parse.c (operator_check_standard): Use block_objfile.
3293
8c14c3a3
TT
32942020-05-15 Tom Tromey <tom@tromey.com>
3295
3296 * language.c (language_alloc_type_symbol): Set
3297 SYMBOL_SECTION.
3298 * symtab.c (initialize_objfile_symbol): Remove.
3299 (allocate_symbol): Remove.
3300 (allocate_template_symbol): Remove.
3301 * dwarf2/read.c (fixup_go_packaging): Use "new".
3302 (new_symbol): Use "new".
3303 (read_variable): Don't call initialize_objfile_symbol. Use
3304 "new".
3305 (read_func_scope): Use "new".
3306 * xcoffread.c (process_xcoff_symbol): Don't call
3307 initialize_objfile_symbol.
3308 (SYMBOL_DUP): Remove.
3309 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3310 "new".
3311 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3312 (allocate_template_symbol): Don't declare.
3313 (struct symbol): Add copy constructor. Change defaults.
3314 * jit.c (finalize_symtab): Use "new".
3315 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3316 Use "new".
3317 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3318 (common_block_end): Use "new".
3319 * mdebugread.c (parse_symbol): Use "new".
3320 (new_symbol): Likewise.
3321
5b4a1a8d
PW
33222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3323
3324 * NEWS: Mention changes to help and apropos.
3325
57b4f16e
PW
33262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3327
3328 * command.h (enum command_class): Improve comments, document
3329 that class_alias is for user-defined aliases, give the class
3330 name for each class, remove unused class_xdb.
3331 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3332 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3333 by a precise class.
3334 * infcmd.c (_initialize_infcmd): Likewise.
3335 * reverse.c (_initialize_reverse): Likewise.
3336 * stack.c (_initialize_stack): Likewise.
3337 * symfile.c (_initialize_symfile): Likewise.
3338 * tracepoint.c (_initialize_tracepoint): Likewise.
3339
7c05caf7
PW
33402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3341
3342 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3343 when their aliased command is traversed.
3344 (help_cmd): Add fput_command_names_styled call to
3345 output command name and aliases when command has an alias.
3346
3b3aaacb
PW
33472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3348
3349 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3350 * cli/cli-decode.c (help_cmd_list): Declare as static,
3351 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3352 a command together with the command.
3353 (fput_command_name_styled, fput_command_names_styled): New functions.
3354 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3355 fput_command_name_styled.
3356 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3357 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3358
7aa1b46f
PW
33592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3360
3361 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3362 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3363 * command.h (cmd_show_list): Likewise.
3364 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3365 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3366
89bcba74
PW
33672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3368
3369 * unittests/command-def-selftests.c (traverse_command_structure):
3370 Verify all commands of a list have the same prefix command and
3371 that only the top cmdlist commands have a null prefix.
3372
3f4d92eb
PW
33732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3374
3375 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3376 as prefix, not one of its aliases.
3377 (set_cmd_prefix): Remove.
3378 (do_add_cmd): Centralize the setting of the prefix of a command, when
3379 command is defined after its full chain of prefix commands.
3380 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3381 (add_setshow_cmd_full): Likewise.
3382 (update_prefix_field_of_prefixed_commands): New function.
3383 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3384 update_prefix_field_of_prefixed_commands.
3385 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3386 addresses of remote_set_cmdlist and remote_show_cmdlist given
3387 as argument, not the address of an argument.
3388 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3389 * gdb/remote.c (_initialize_remote): Likewise.
3390
0605465f
PW
33912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3392
3393 * cli/cli-cmds.c (alias_command): Check for an existing alias
3394 using lookup_cmd_composition, as valid_command_p is too strict
3395 and forbids aliases that are the prefix of an existing alias
3396 or command.
3397 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3398 command is properly recognised as a valid command.
3399
58e6ac70
PW
34002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3401
3402 * unittests/help-doc-selftests.c: Rename to
3403 unittests/command-def-selftests.c
3404 * unittests/command-def-selftests.c (help_doc_tests): Update some
3405 comments.
3406 (command_structure_tests, traverse_command_structure): New namespace
3407 and function.
3408 (command_structure_invariants_tests): New function.
3409 (_initialize_command_def_selftests) Renamed from
3410 _initialize_help_doc_selftests, register command_structure_invariants
3411 selftest.
3412
a7b9ceb8
PW
34132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3414
3415 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3416 an alias of 'show'.
3417
b2188a06
JB
34182020-05-15 Joel Brobecker <brobecker@adacore.com>
3419
3420 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3421 ada_is_fixed_point_type. Update all callers.
3422 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3423 all callers.
3424 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3425 Update all callers.
3426 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3427 print_fixed_point_type. Update all callers.
3428 * ada-valprint.c (ada_value_print_num): Replace call to
3429 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3430
a51951c2
KB
34312020-05-14 Kevin Buettner <kevinb@redhat.com>
3432
3433 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3434 processors.
3435 (cpu_supports_bts): Add CV_AMD case.
3436
29d6859f
LM
34372020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3438 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * infrun.c (stop_all_threads): Collect multiple wait events at
3441 each pass.
3442
78134374
SM
34432020-05-14 Simon Marchi <simon.marchi@efficios.com>
3444
3445 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3446 type::code instead.
3447
67607e24
SM
34482020-05-14 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * gdbtypes.h (struct type) <code, set_code>: New methods.
3451 (TYPE_CODE): Use type::code. Change all call sites used to set
3452 the code to use type::set_code instead.
3453
a05575d3
TBA
34542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3455 Tom de Vries <tdevries@suse.de>
3456 Pedro Alves <palves@redhat.com>
3457
3458 PR threads/25478
3459 * infrun.c (stop_all_threads): Do NOT ignore
3460 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3461 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3462 received.
3463 (handle_no_resumed): Remove code handling a live inferior with no
3464 threads.
3465 * remote.c (has_single_non_exited_thread): New.
3466 (remote_target::update_thread_list): Do not delete a thread if is
3467 the last thread of the process.
3468 * thread.c (thread_select): Call delete_exited_threads instead of
3469 prune_threads.
3470
6ad82919
TBA
34712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3472
3473 * infrun.c (stop_all_threads): Enable/disable thread events of all
3474 targets. Move a debug message denoting the end of the function
3475 into the SCOPED_EXIT block.
3476
d890404b
TBA
34772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478
3479 * process-stratum-target.h: Include <set>.
3480 (all_non_exited_process_targets, switch_to_target_no_thread): New
3481 function declarations.
3482 * process-stratum-target.c (all_non_exited_process_targets)
3483 (switch_to_target_no_thread): New function implementations.
3484
293b3ebc
TBA
34852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3486
3487 * infrun.c (handle_inferior_event): Extract out a piece of code
3488 into...
3489 (mark_non_executing_threads): ...this new function.
3490
7ca9b62a
TBA
34912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3492
3493 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3494 use.
3495
fc75c28b
TBA
34962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3497
3498 * regcache.c (regcache_read_pc_protected): New function
3499 implementation that returns 0 if the PC cannot read via
3500 'regcache_read_pc'.
3501 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3502 instead of 'regcache_read_pc'.
3503 (keep_going_pass_signal): Ditto.
3504
a89febbd
TT
35052020-05-13 Tom Tromey <tromey@adacore.com>
3506
3507 * ada-lang.c (align_value): Remove.
3508 (ada_template_to_fixed_record_type_1): Use align_up.
3509
f7e23710
TBA
35102020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3511
3512 * async-event.c: Update the copyright year.
3513 * async-event.h: Update the copyright year.
3514
02ff80c2
SM
35152020-05-12 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * objfiles.h (is_addr_in_objfile,
3518 shared_objfile_contains_address_p): Return bool.
3519 * objfile.c (is_addr_in_objfile,
3520 shared_objfile_contains_address_p): Return bool.
3521
4fd6c7e8
TT
35222020-05-11 Tom Tromey <tromey@adacore.com>
3523
3524 * cli/cli-cmds.c (info_command): Restore.
3525 (_initialize_cli_cmds): Use add_prefix_command for "info".
3526 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3527
5eb68a39
TT
35282020-05-11 Tom Tromey <tromey@adacore.com>
3529
3530 * ada-lang.c (ada_value_primitive_field): Now public.
3531 * ada-lang.h (ada_value_primitive_field): Declare.
3532 * ada-valprint.c (print_field_values): Use
3533 ada_value_primitive_field for wrapper fields.
3534
7666722f
TV
35352020-05-11 Tom de Vries <tdevries@suse.de>
3536
3537 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3538 MODULE_DOMAIN.
3539
3ee6bb11
TV
35402020-05-11 Tom de Vries <tdevries@suse.de>
3541
3542 PR symtab/25941
3543 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3544 with length 0, if not gdb-produced.
3545 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3546
43434996
TV
35472020-05-09 Tom de Vries <tdevries@suse.de>
3548
3549 PR gdb/25955
3550 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3551 calculation.
3552
2f78cffc
TT
35532020-05-09 Tom Tromey <tom@tromey.com>
3554
3555 * top.c (server_command): Now bool.
3556 * top.h (server_command): Now bool.
3557
4f7bc5ed
TT
35582020-05-08 Tom Tromey <tromey@adacore.com>
3559
3560 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3561 already being processed.
3562
8be4b118
TT
35632020-05-08 Tom Tromey <tom@tromey.com>
3564
3565 * printcmd.c (struct display) <next>: Remove.
3566 <display>: New constructor.
3567 <exp_string>: Now a std::string.
3568 <enabled_p>: Now a bool.
3569 (display_number): Move definition earlier.
3570 (displays): Rename from display_chain. Now a std::vector.
3571 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3572 (display_command): Update.
3573 (do_one_display, disable_display)
3574 (enable_disable_display_command, do_enable_disable_display):
3575 Update.
3576 (free_display): Remove.
3577 (clear_displays): Rewrite.
3578 (delete_display): Update.
3579 (map_display_numbers): Use function_view. Remove "data"
3580 parameter. Update.
3581 (do_delete_display): Remove.
3582 (undisplay_command): Update.
3583 (do_one_display, do_displays, disable_display)
3584 (info_display_command): Update.
3585 (do_enable_disable_display): Remove.
3586 (enable_disable_display_command)
3587 (clear_dangling_display_expressions): Update.
3588
94c93c35
TT
35892020-05-08 Tom Tromey <tom@tromey.com>
3590
3591 * symtab.c (set_symbol_cache_size)
3592 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3593 (maintenance_print_symbol_cache_statistics): Update.
3594 * symmisc.c (print_symbol_bcache_statistics)
3595 (print_objfile_statistics, maintenance_print_objfiles)
3596 (maintenance_info_symtabs, maintenance_check_symtabs)
3597 (maintenance_expand_symtabs, maintenance_info_line_tables):
3598 Update.
3599 * symfile-debug.c (set_debug_symfile): Update.
3600 * source.c (forget_cached_source_info): Update.
3601 * python/python.c (gdbpy_progspaces): Update.
3602 * psymtab.c (maintenance_info_psymtabs): Update.
3603 * probe.c (parse_probes): Update.
3604 * linespec.c (iterate_over_all_matching_symtabs)
3605 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3606 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3607 * exec.c (exec_target::close): Update.
3608 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3609 * breakpoint.c (print_one_breakpoint_location)
3610 (create_longjmp_master_breakpoint)
3611 (create_std_terminate_master_breakpoint): Update.
3612 * progspace.c (program_spaces): Now a std::vector.
3613 (maybe_new_address_space): Update.
3614 (add_program_space): Remove.
3615 (program_space::program_space): Update.
3616 (remove_program_space): Update.
3617 (number_of_program_spaces): Remove.
3618 (print_program_space, update_address_spaces): Update.
3619 * progspace.h (program_spaces): Change type.
3620 (ALL_PSPACES): Remove.
3621 (number_of_program_spaces): Don't declare.
3622 (struct program_space) <next>: Remove.
3623
a1fd1ac9
TT
36242020-05-08 Tom Tromey <tom@tromey.com>
3625
3626 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3627 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3628 (enable_break): Update.
3629 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3630 (frv_fdpic_find_canonical_descriptor): Update.
3631 (frv_fetch_objfile_link_map): Update.
3632 * progspace.c (program_space::free_all_objfiles): Update.
3633 (program_space::solibs): New method.
3634 * progspace.h (struct program_space) <solibs>: New method.
3635 * solist.h (master_so_list): Don't declare.
3636 (ALL_SO_LIBS): Remove.
3637 * solib.h (so_list_head): Remove.
3638 (update_solib_list): Update comment.
3639 * solib.c (master_so_list): Remove.
3640 (solib_used, update_solib_list, solib_add)
3641 (info_sharedlibrary_command, clear_solib)
3642 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3643
38eae084
TT
36442020-05-08 Tom Tromey <tom@tromey.com>
3645
3646 * extension.c (extension_languages): Now a std::array.
3647 (ALL_EXTENSION_LANGUAGES): Remove.
3648 (get_ext_lang_defn, get_ext_lang_of_file)
3649 (eval_ext_lang_from_control_command): Update.
3650 (finish_ext_lang_initialization)
3651 (auto_load_ext_lang_scripts_for_objfile)
3652 (ext_lang_type_printers::ext_lang_type_printers)
3653 (apply_ext_lang_type_printers)
3654 (ext_lang_type_printers::~ext_lang_type_printers)
3655 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3656 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3657 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3658 (get_matching_xmethod_workers, ext_lang_colorize)
3659 (ext_lang_before_prompt): Update.
3660 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3661
596dc4ad
TT
36622020-05-08 Tom Tromey <tom@tromey.com>
3663
3664 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3665 overload.
3666 <swap_string, m_string>: Remove.
3667 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3668 Update.
3669 * stabsread.c (define_symbol, read_type): Update.
3670 * linespec.c (find_linespec_symbols): Update.
3671 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3672 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3673 * dbxread.c (read_dbx_symtab): Update.
3674 * cp-support.h (cp_canonicalize_string_full)
3675 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3676 Return unique_xmalloc_ptr.
3677 * cp-support.c (inspect_type): Update.
3678 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3679 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3680 Likewise.
3681 * c-typeprint.c (print_name_maybe_canonical): Update.
3682 * break-catch-throw.c (check_status_exception_catchpoint):
3683 Update.
3684
bf4cb9be
TV
36852020-05-08 Tom de Vries <tdevries@suse.de>
3686
3687 * infrun.c (follow_fork): Copy current_line and current_symtab to
3688 child thread.
3689
a1b68f28
SM
36902020-05-07 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * async-event.c (struct async_signal_handler, struct
3693 async_event_handler): Reformat, remove typedef.
3694
98d48915
SM
36952020-05-07 Simon Marchi <simon.marchi@efficios.com>
3696
3697 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3698 access thistype->main_type->dyn_prop_list directly.
3699
7aa91313
SM
37002020-05-07 Simon Marchi <simon.marchi@efficios.com>
3701
3702 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3703 (remove_dyn_prop): Remove. Update all users to use
3704 type::remove_dyn_prop.
3705 * gdbtypes.c (remove_dyn_prop): Rename to...
3706 (type::remove_dyn_prop): ... this.
3707
5c54719c
SM
37082020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3709
3710 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3711 (add_dyn_prop): Remove. Update all users to use
3712 type::add_dyn_prop.
3713 * gdbtypes.c (add_dyn_prop): Rename to...
3714 (type::add_dyn_prop): ... this.
3715
24e99c6c
SM
37162020-05-07 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3719 (get_dyn_prop): Remove. Update all users to use
3720 type::dyn_prop.
3721 * gdbtypes.c (get_dyn_prop): Rename to...
3722 (type::dyn_prop): ... this.
3723
0d4bf016
SM
37242020-05-06 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3727
ac4a4f1c
SM
37282020-05-06 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3731 instruction, skip it if it's there.
3732
a3bbacc1
SM
37332020-05-05 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3736
c3236f84
SM
37372020-05-04 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3740 * gdbtypes.c (recursive_dump_type): Remove use of
3741 TYPE_INCOMPLETE.
3742
3b6acaee
TT
37432020-05-03 Tom Tromey <tom@tromey.com>
3744
3745 * breakpoint.c (catch_command, tcatch_command): Remove.
3746 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3747 add_show_prefix_cmd.
3748 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3749 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3750 Remove.
3751 (add_internal_problem_command): Use add_basic_prefix_cmd,
3752 add_show_prefix_cmd.
3753 * mips-tdep.c (set_mipsfpu_command): Remove.
3754 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3755 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3756 (_initialize_index_cache): Use add_basic_prefix_cmd.
3757 * memattr.c (dummy_cmd): Remove.
3758 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3759 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3760 (_initialize_tui_win): Use add_basic_prefix_cmd,
3761 add_show_prefix_cmd.
3762 * cli/cli-logging.c (set_logging_command): Remove.
3763 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3764 add_show_prefix_cmd.
3765 (show_logging_command): Remove.
3766 * target.c (target_command): Remove.
3767 (add_target): Use add_basic_prefix_cmd.
3768
a51119cd
HD
37692020-05-02 Hannes Domani <ssbssa@yahoo.de>
3770
3771 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3772
652fc23a 37732020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3774
652fc23a
PW
3775 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3776 info_command.
3777
117539e6
KR
37782020-04-30 Kamil Rytarowski <n54@gmx.com>
3779
3780 * nbsd-nat.c (nbsd_enable_proc_events)
3781 (nbsd_nat_target::post_startup_inferior): Add.
3782 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3783 (nbsd_nat_target::update_thread_list): Rewrite.
3784 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3785 "PTRACE_LWP_CREATE".
3786 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3787
102e38eb 37882020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3789
102e38eb
PW
3790 * stack.c (_initialize_stack): Remove duplicated creation
3791 of "frame" command and "f" alias.
3792
ee9d1e5f
HD
37932020-04-30 Hannes Domani <ssbssa@yahoo.de>
3794
3795 PR gdb/18706
3796 * gdbtypes.c (check_typedef): Calculate size of array of
3797 stubbed type.
3798
627c7fb8
HD
37992020-04-30 Hannes Domani <ssbssa@yahoo.de>
3800
3801 PR gdb/15559
3802 * i386-tdep.c (i386_push_dummy_call): Call
3803 i386_thiscall_push_dummy_call.
3804 (i386_thiscall_push_dummy_call): New function.
3805 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3806 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3807 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3808
ffc2844e
SM
38092020-04-29 Simon Marchi <simon.marchi@efficios.com>
3810
3811 * gdbarch.sh (do_read): Add shellcheck disable directive for
3812 warning SC2162.
3813
1207375d
SM
38142020-04-29 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3817 "referenced but not assigned" warning.
3818
9fdb2916
SM
38192020-04-29 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * gdbarch.sh: Remove code that sets fallbackdefault.
3822
759cea5e
SM
38232020-04-29 Simon Marchi <simon.marchi@efficios.com>
3824
3825 * gdbarch.sh: Use shell operators && and || instead of
3826 -a and -o.
3827
cb02ab24
SM
38282020-04-29 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * gdbarch.sh: Use $(...) instead of `...`.
3831
a6fc5ffc
SM
38322020-04-29 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * gdbarch.sh: Use double quotes around variables.
3835
8d113d13
SM
38362020-04-29 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * gdbarch.sh: Use %s with printf, instead of variables in the
3839 format string.
3840
ed6acedd
TT
38412020-04-29 Tom Tromey <tromey@adacore.com>
3842
3843 PR ada/25875:
3844 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3845 type fields here.
3846 (read_enumeration_type): Call
3847 update_enumeration_type_from_children later. Update comments.
3848 (process_enumeration_scope): Don't create type fields.
3849
b68b1b58
KR
38502020-04-29 Kamil Rytarowski <n54@gmx.com>
3851
3852 * nbsd-tdep.c: Include "xml-syscall.h".
3853 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3854
f94b2e03
KR
38552020-04-29 Kamil Rytarowski <n54@gmx.com>
3856
3857 * nbsd-nat.c: Include "sys/wait.h".
3858 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3859 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3860 (nbsd_nat_target::remove_exec_catchpoint)
3861 (nbsd_nat_target::set_syscall_catchpoint): Add.
3862 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3863 (nbsd_nat_target::insert_exec_catchpoint)
3864 (nbsd_nat_target::remove_exec_catchpoint)
3865 (nbsd_nat_target::set_syscall_catchpoint): Add.
3866 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3867 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3868 `nbsd_get_syscall_number'.
3869
fc49bc72
TT
38702020-04-29 Tom Tromey <tom@tromey.com>
3871
3872 * stack.c (print_block_frame_labels): Remove.
3873
d642b692
HD
38742020-04-29 Hannes Domani <ssbssa@yahoo.de>
3875
3876 PR gdb/17320
3877 * ada-valprint.c (val_print_packed_array_elements): Move array
3878 end bracket to new line.
3879 (ada_val_print_string): Remove extra spaces before first array
3880 element.
3881 * c-valprint.c (c_value_print_array): Likewise.
3882 * m2-valprint.c (m2_print_array_contents): Likewise.
3883 (m2_value_print_inner): Likewise.
3884 * p-valprint.c (pascal_value_print_inner): Likewise.
3885 * valprint.c (generic_val_print_array): Likewise.
3886 (value_print_array_elements): Move first array element and array
3887 end bracket to new line.
3888
ea90f227
TV
38892020-04-29 Tom de Vries <tdevries@suse.de>
3890
3891 PR symtab/25889
3892 * linespec.c (find_method): Fix ix calculation.
3893
4498ef4f
KR
38942020-04-28 Kamil Rytarowski <n54@gmx.com>
3895
3896 * syscalls/update-netbsd.sh: New file.
3897 * syscalls/netbsd.xml: Regenerate.
3898 * data-directory/Makefile.in: Register `netbsd.xml' in
3899 `SYSCALLS_FILES'.
3900
a55e30b5
SM
39012020-04-28 Simon Marchi <simon.marchi@efficios.com>
3902
3903 * syscalls/update-freebsd.sh: Add double quotes.
3904
2b2fbab8
TT
39052020-04-28 Tom Tromey <tom@tromey.com>
3906
3907 * NEWS: Update.
3908 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3909 (cmdpy_init): Allow class_tui.
3910
a65189c9
TV
39112020-04-28 Mark Williams <mark@myosotissp.com>
3912
3913 PR gdb/24480
3914 * dwarf2read.c: Add missing assingments to list_in_scope when
3915 start_symtab was already called.
3916
1b95cdb7
SM
39172020-04-28 Simon Marchi <simon.marchi@efficios.com>
3918
3919 PR gdb/25881
3920 * dwarf2/read.c (offset_map_type): Use
3921 gdb:hash_enum<sect_offset> as hash function.
3922
15cd93d0
TV
39232020-04-28 Tom de Vries <tdevries@suse.de>
3924
3925 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3926 with DW_AT_signature.
3927
1eb39914
SM
39282020-04-27 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * configure.ac: Remove check for fs_base/gs_base in
3931 user_regs_struct.
3932 * configure: Re-generate.
3933 * config.in: Re-generate.
3934 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3935 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3936 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3937
991a3e2e
LM
39382020-04-27 Luis Machado <luis.machado@linaro.org>
3939
3940 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3941 problematic inline frame unwinding situation.
3942 * frame.c (frame_id_computed_p): New function.
3943 * frame.h (frame_id_computed_p): New prototype.
3944
361ba0e8
TT
39452020-04-26 Tom Tromey <tom@tromey.com>
3946
3947 * command.h (enum command_class) <class_pseudo>: Remove.
3948
bc3609fd
PW
39492020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3950
3951 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
3952 and whitespace.
3953
b9771db7
KR
39542020-04-25 Kamil Rytarowski <n54@gmx.com>
3955
ec16513e
SM
3956 * inf-ptrace.c (inf_ptrace_target::wait): Remove
3957 `PT_GET_PROCESS_STATE' block.
b9771db7 3958
7151c1af
TT
39592020-04-24 Tom Tromey <tom@tromey.com>
3960
3961 * symtab.h (symbol_get_demangled_name): Don't declare.
3962 * symtab.c (symbol_get_demangled_name): Remove.
3963 (general_symbol_info::natural_name)
3964 (general_symbol_info::demangled_name): Update.
3965
906bb4c5
TT
39662020-04-24 Tom Tromey <tom@tromey.com>
3967
3968 PR rust/25025:
3969 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
3970
bcfe6157
TT
39712020-04-24 Tom Tromey <tom@tromey.com>
3972
3973 PR symtab/12707:
3974 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
3975 exists.
3976 (new_symbol): Likewise.
3977 * compile/compile-object-load.c (get_out_value_type): Use
3978 symbol_matches_search_name.
3979
f049a313
TT
39802020-04-24 Tom Tromey <tom@tromey.com>
3981
3982 * dwarf2/read.c (add_partial_symbol): Do not call
3983 compute_and_set_names.
3984
76e288d1
TT
39852020-04-24 Tom Tromey <tom@tromey.com>
3986
3987 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
3988 overload.
3989
2467f4f6
TT
39902020-04-24 Tom Tromey <tom@tromey.com>
3991
3992 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
3993 (add_psymbol_to_list): New overload. Make old overload call new
3994 one.
3995 * psympriv.h (add_psymbol_to_list): New overload.
3996
e61108c9
TT
39972020-04-24 Tom Tromey <tom@tromey.com>
3998
3999 * dwarf2/read.c (partial_die_info::read) <case
4000 DW_AT_linkage_name>: Use value_as_string.
4001 (dwarf2_string_attr): Use value_as_string.
4002 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4003 method.
4004 * dwarf2/attribute.c (attribute::value_as_string): New method.
4005
8c87a452
TT
40062020-04-24 Tom Tromey <tom@tromey.com>
4007
4008 * symtab.c (general_symbol_info::natural_name)
4009 (general_symbol_info::demangled_name): Check for language_rust.
4010
787de330
TT
40112020-04-24 Tom Tromey <tom@tromey.com>
4012
4013 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4014 (dwarf2_physname): ... from here.
4015 (partial_die_info::read): Add Rust "{" hack.
4016
ff985671
TT
40172020-04-24 Tom Tromey <tom@tromey.com>
4018
4019 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4020 method.
4021 (symbol_set_demangled_name): Don't declare.
4022 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4023 symbol_set_demangled_name.
4024 (general_symbol_info::set_language)
4025 (general_symbol_info::compute_and_set_names): Update.
4026 * minsyms.c (minimal_symbol_reader::install): Update.
4027 * dwarf2/read.c (new_symbol): Update.
4028
1acda803
TT
40292020-04-24 Tom Tromey <tromey@adacore.com>
4030
4031 PR python/23662:
4032 * python/py-type.c (convert_field): Handle
4033 FIELD_LOC_KIND_DWARF_BLOCK.
4034 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4035 (typy_get_dynamic): Nw function.
4036 (type_object_getset): Add "dynamic".
4037 * NEWS: Add entry.
4038
d656f129
TT
40392020-04-24 Tom Tromey <tromey@adacore.com>
4040
4041 * ada-typeprint.c (print_choices, print_variant_part)
4042 (print_record_field_types_dynamic): New functions.
4043 (print_record_field_types): Use print_record_field_types_dynamic.
4044
7d79de9a
TT
40452020-04-24 Tom Tromey <tromey@adacore.com>
4046
4047 * dwarf2/read.c (handle_data_member_location): New overload.
4048 (dwarf2_add_field): Use it.
4049 (decode_locdesc): Add "computed" parameter. Update comment.
4050 * gdbtypes.c (is_dynamic_type_internal): Also look for
4051 FIELD_LOC_KIND_DWARF_BLOCK.
4052 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4053 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4054 virtual base classes.
4055 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4056 FIELD_LOC_KIND_DWARF_BLOCK.
4057
f8e89861
TT
40582020-04-24 Tom Tromey <tromey@adacore.com>
4059
4060 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4061 * gdbtypes.c (is_dynamic_type_internal): Check
4062 TYPE_HAS_DYNAMIC_LENGTH.
4063 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4064 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4065 New macros.
4066 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4067 constant.
4068
9c6a1327
TT
40692020-04-24 Tom Tromey <tromey@adacore.com>
4070
4071 * dwarf2/read.c (struct variant_field): Rewrite.
4072 (struct variant_part_builder): New.
4073 (struct nextfield): Remove "variant" field. Add "offset".
4074 (struct field_info): Add "current_variant_part" and
4075 "variant_parts".
4076 (alloc_discriminant_info): Remove.
4077 (alloc_rust_variant): New function.
4078 (quirk_rust_enum): Update.
4079 (dwarf2_add_field): Set "offset" member. Don't handle
4080 DW_TAG_variant_part.
4081 (offset_map_type): New typedef.
4082 (convert_variant_range, create_one_variant)
4083 (create_one_variant_part, create_variant_parts)
4084 (add_variant_property): New functions.
4085 (dwarf2_attach_fields_to_type): Call add_variant_property.
4086 (read_structure_type): Don't handle DW_TAG_variant_part.
4087 (handle_variant_part, handle_variant): New functions.
4088 (handle_struct_member_die): Use them.
4089 (process_structure_scope): Don't handle variant parts.
4090 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4091 (struct discriminant_info): Remove.
4092 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4093 (struct main_type) <flag_discriminated_union>: Remove.
4094 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4095 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4096 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4097 Update.
4098 * valops.c (value_union_variant): Remove.
4099 * value.h (value_union_variant): Don't declare.
4100
b249d2c2
TT
41012020-04-24 Tom Tromey <tromey@adacore.com>
4102
4103 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4104 (ada_value_primitive_packed_val): Update.
4105 * ada-valprint.c (ada_value_print_1): Update.
4106 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4107 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4108 just an address. Use evaluate_for_locexpr_baton.
4109 (dwarf2_evaluate_property): Update.
4110 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4111 array_view.
4112 * findvar.c (default_read_var_value): Update.
4113 * gdbtypes.c (compute_variant_fields_inner)
4114 (resolve_dynamic_type_internal): Update.
4115 (resolve_dynamic_type): Change type of valaddr parameter.
4116 * gdbtypes.h (resolve_dynamic_type): Update.
4117 * valarith.c (value_subscripted_rvalue): Update.
4118 * value.c (value_from_contents_and_address): Update.
4119
61122aa9
TT
41202020-04-24 Tom Tromey <tromey@adacore.com>
4121
4122 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4123 "push_initial_value" parameter.
4124 (dwarf2_evaluate_property): Likewise.
4125 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4126
ef83a141
TT
41272020-04-24 Tom Tromey <tromey@adacore.com>
4128
4129 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4130 (variant::matches, compute_variant_fields_recurse)
4131 (compute_variant_fields_inner, compute_variant_fields): New
4132 functions.
4133 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4134 Use resolved_type after type is made.
4135 (operator==): Add new cases.
4136 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4137 (struct discriminant_range, struct variant, struct variant_part):
4138 New.
4139 (union dynamic_prop_data) <variant_parts, original_type>: New
4140 members.
4141 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4142 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4143 constants.
4144 * value.c (unpack_bits_as_long): Now public.
4145 * value.h (unpack_bits_as_long): Declare.
4146
675127ec
TT
41472020-04-24 Tom Tromey <tromey@adacore.com>
4148
4149 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4150 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4151
9852ceef
HD
41522020-04-24 Hannes Domani <ssbssa@yahoo.de>
4153
4154 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4155
7632c6ce
KR
41562020-04-24 Kamil Rytarowski <n54@gmx.com>
4157
4158 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4159 (remove_fork_catchpoint, post_startup_inferior)
4160 (post_attach): Move...
4161 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4162 (remove_fork_catchpoint, post_startup_inferior)
4163 (post_attach): ...here.
4164 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4165 (remove_fork_catchpoint, post_startup_inferior)
4166 (post_attach): Move...
4167 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4168 (remove_fork_catchpoint, post_startup_inferior)
4169 (post_attach): ...here.
4170
7be2bb4f
TT
41712020-04-24 Tom Tromey <tromey@adacore.com>
4172
4173 * nat/windows-nat.h (struct windows_thread_info)
4174 <pc_adjusted>: New member.
4175 * windows-nat.c (windows_fetch_one_register): Check
4176 pc_adjusted.
4177 (windows_nat_target::get_windows_debug_event)
4178 (windows_nat_target::wait): Set pc_adjusted.
4179
f80cb3b4
TV
41802020-04-24 Tom de Vries <tdevries@suse.de>
4181
4182 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4183 Run gdb-add-index inside temp dir.
4184
29514b87
TT
41852020-04-23 Tom Tromey <tromey@adacore.com>
4186
4187 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4188 in loop.
4189
5939967b
LM
41902020-04-23 Luis Machado <luis.machado@linaro.org>
4191
4192 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4193 get_frame_register instead of gdbarch_unwind_pc.
4194
70bc38f5
TV
41952020-04-23 Tom de Vries <tdevries@suse.de>
4196
4197 * symtab.c (lookup_global_symbol): Prefer def over decl.
4198
de82891c
TV
41992020-04-23 Tom de Vries <tdevries@suse.de>
4200
4201 PR symtab/25807
4202 * block.c (best_symbol, better_symbol): Promote to external.
4203 * block.h (best_symbol, better_symbol): Declare.
4204 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4205 decl.
4206
ecc6c606
TT
42072020-04-23 Tom Tromey <tromey@adacore.com>
4208
4209 PR ada/25837:
4210 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4211 "const char *", not a "const std::string &".
4212 <name_and_matcher::operator==>: Update.
4213 * unittests/lookup_name_info-selftests.c: Change type of
4214 "result".
4215
740480b8
TT
42162020-04-23 Tom Tromey <tom@tromey.com>
4217
4218 * inferior.h (iterate_over_inferiors): Don't declare.
4219 * inferior.c (iterate_over_inferiors): Remove.
4220 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4221 Remove.
4222 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4223 use iterate_over_inferiors.
4224 (darwin_resume_inferior_it)
4225 (struct resume_inferior_threads_param)
4226 (darwin_resume_inferior_threads_it): Remove.
4227 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4228
ae3ab1f0
TV
42292020-04-23 Tom de Vries <tdevries@suse.de>
4230
4231 * blockframe.c (find_pc_partial_function): Use
4232 find_pc_sect_compunit_symtab rather than
4233 objfile->sf->qf->find_pc_sect_compunit_symtab.
4234
317d2668
TV
42352020-04-22 Tom de Vries <tdevries@suse.de>
4236
4237 PR symtab/25764
4238 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4239 in psymtabs.
4240
eea9e357
TV
42412020-04-22 Tom de Vries <tdevries@suse.de>
4242
4243 PR symtab/25801
4244 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4245 symtabs.
4246
3d5afab3
TV
42472020-04-22 Tom de Vries <tdevries@suse.de>
4248
4249 PR symtab/25700
4250 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4251 CU if already created.
4252
d43b7a2d
TBA
42532020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4254
4255 * infrun.c (displaced_step_fixup): Switch to the event_thread
4256 before calling displaced_step_restore, not after.
4257
d89edf9b
MM
42582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4259
4260 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4261 its inferior is not recorded by us.
4262 (record_btrace_target_open): Replace call to
4263 all_non_exited_threads () with call to current_inferior
4264 ()->non_exited_threads ().
4265 (record_btrace_target::stop_recording): Likewise.
4266 (record_btrace_target::close): Likewise.
4267 (record_btrace_target::wait): Likewise.
4268 (record_btrace_target::record_stop_replaying): Likewise.
4269
5897fd49
MM
42702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4271
4272 * btrace.c (btrace_enable): Throw an error on double enables and
4273 when enabling recording fails.
4274 (btrace_disable): Throw an error if the thread is not recorded.
4275
1a476b6d
MM
42762020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4277
4278 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4279 request if we do not have a thread_info.
4280
4778a5f8
TV
42812020-04-21 Tom de Vries <tdevries@suse.de>
4282
4283 PR gdb/25471
4284 * thread.c
4285 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4286 exception in get_frame_id.
4287
0fa7617d
TT
42882020-04-20 Tom Tromey <tromey@adacore.com>
4289
4290 * python/python.c (struct gdbpy_event): Mark move constructor as
4291 noexcept.
4292 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4293 constructor as noexcept.
4294 * completer.h (struct completion_result): Mark move constructor as
4295 noexcept.
4296 * completer.c (completion_result::completion_result): Use
4297 initialization style. Don't call reset_match_list.
4298
ad23bda0
MS
42992020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4300
4301 * MAINTAINERS (Write After Approval): Add myself.
4302
45e1f031
TT
43032020-04-18 Tom Tromey <tom@tromey.com>
4304
4305 * windows-tdep.c (init_w32_command_list)
4306 (w32_prefix_command_valid): Restore.
4307 (_initialize_windows_tdep): Call init_w32_command_list.
4308
08feed99
TT
43092020-04-18 Tom Tromey <tom@tromey.com>
4310
4311 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4312 * value.c (value_fn_field): Update.
4313 * valops.c (find_function_in_inferior)
4314 (value_allocate_space_in_inferior): Update.
4315 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4316 Update.
4317 * tui/tui-source.c (tui_source_window::set_contents): Update.
4318 * symtab.c (lookup_global_or_static_symbol)
4319 (find_function_start_sal_1, skip_prologue_sal)
4320 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4321 * symmisc.c (dump_msymbols, dump_symtab_1)
4322 (maintenance_print_one_line_table): Update.
4323 * symfile.c (init_entry_point_info, section_is_mapped)
4324 (list_overlays_command, simple_read_overlay_table)
4325 (simple_overlay_update_1): Update.
4326 * stap-probe.c (handle_stap_probe): Update.
4327 * stabsread.c (dbx_init_float_type, define_symbol)
4328 (read_one_struct_field, read_enum_type, read_range_type): Update.
4329 * source.c (info_line_command): Update.
4330 * python/python.c (gdbpy_source_objfile_script)
4331 (gdbpy_execute_objfile_script): Update.
4332 * python/py-type.c (save_objfile_types): Update.
4333 * python/py-objfile.c (py_free_objfile): Update.
4334 * python/py-inferior.c (python_new_objfile): Update.
4335 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4336 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4337 (maintenance_check_psymtabs): Update.
4338 * printcmd.c (info_address_command): Update.
4339 * objfiles.h (struct objfile) <arch>: New method, from
4340 get_objfile_arch.
4341 (get_objfile_arch): Don't declare.
4342 * objfiles.c (get_objfile_arch): Remove.
4343 (filter_overlapping_sections): Update.
4344 * minsyms.c (msymbol_is_function): Update.
4345 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4346 (output_nondebug_symbol): Update.
4347 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4348 (mdebug_expand_psymtab): Update.
4349 * machoread.c (macho_add_oso_symfile): Update.
4350 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4351 Update.
4352 * linux-fork.c (checkpoint_command): Update.
4353 * linespec.c (convert_linespec_to_sals): Update.
4354 * jit.c (finalize_symtab): Update.
4355 * infrun.c (insert_exception_resume_from_probe): Update.
4356 * ia64-tdep.c (ia64_find_unwind_table): Update.
4357 * hppa-tdep.c (internalize_unwinds): Update.
4358 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4359 Update.
4360 * gcore.c (call_target_sbrk): Update.
4361 * elfread.c (record_minimal_symbol, elf_symtab_read)
4362 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4363 (elf_gnu_ifunc_resolve_by_got): Update.
4364 * dwarf2/read.c (create_addrmap_from_index)
4365 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4366 (read_debug_names_from_section)
4367 (process_psymtab_comp_unit_reader, add_partial_symbol)
4368 (add_partial_subprogram, process_full_comp_unit)
4369 (read_file_scope, read_func_scope, read_lexical_block_scope)
4370 (read_call_site_scope, dwarf2_ranges_read)
4371 (dwarf2_record_block_ranges, dwarf2_add_field)
4372 (mark_common_block_symbol_computed, read_tag_pointer_type)
4373 (read_tag_string_type, dwarf2_init_float_type)
4374 (dwarf2_init_complex_target_type, read_base_type)
4375 (partial_die_info::read, partial_die_info::read)
4376 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4377 (dwarf2_fetch_die_loc_sect_off): Update.
4378 * dwarf2/loc.c (dwarf2_find_location_expression)
4379 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4380 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4381 (dwarf2_loc_desc_get_symbol_read_needs)
4382 (locexpr_describe_location_piece, locexpr_describe_location_1)
4383 (loclist_describe_location): Update.
4384 * dwarf2/index-write.c (write_debug_names): Update.
4385 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4386 * dtrace-probe.c (dtrace_process_dof): Update.
4387 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4388 (process_one_symbol): Update.
4389 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4390 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4391 (coff_read_enum_type): Update.
4392 * cli/cli-cmds.c (edit_command, list_command): Update.
4393 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4394 * breakpoint.c (create_overlay_event_breakpoint)
4395 (create_longjmp_master_breakpoint)
4396 (create_std_terminate_master_breakpoint)
4397 (create_exception_master_breakpoint, get_sal_arch): Update.
4398 * block.c (block_gdbarch): Update.
4399 * annotate.c (annotate_source_line): Update.
4400
0743fc83
TT
44012020-04-17 Tom Tromey <tromey@adacore.com>
4402
4403 * auto-load.c (show_auto_load_cmd): Remove.
4404 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4405 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4406 (maintenance_print_arc_command): Remove.
4407 * tui/tui-win.c (tui_command): Remove.
4408 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4409 * tui/tui-layout.c (tui_layout_command): Remove.
4410 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4411 * python/python.c (user_set_python, user_show_python): Remove.
4412 (_initialize_python): Use add_basic_prefix_cmd,
4413 add_show_prefix_cmd.
4414 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4415 (install_gdb_commands): Use add_basic_prefix_cmd,
4416 add_show_prefix_cmd.
4417 (info_guile_command): Remove.
4418 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4419 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4420 add_show_prefix_cmd.
4421 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4422 Remove do_set and do_show parameters.
4423 * cli/cli-style.c (set_style, show_style): Remove.
4424 (_initialize_cli_style): Use add_basic_prefix_cmd,
4425 add_show_prefix_cmd.
4426 (cli_style_option::add_setshow_commands): Remove do_set and
4427 do_show parameters.
4428 (cli_style_option::add_setshow_commands): Use
4429 add_basic_prefix_cmd, add_show_prefix_cmd.
4430 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4431 (set_style_name): Remove.
4432 * cli/cli-dump.c (dump_command, append_command): Remove.
4433 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4434 (tekhex_dump_command, binary_dump_command)
4435 (binary_append_command): Remove.
4436 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4437 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4438 (init_w32_command_list): Remove; move into ...
4439 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4440 * valprint.c (set_print, show_print, set_print_raw)
4441 (show_print_raw): Remove.
4442 (_initialize_valprint): Use add_basic_prefix_cmd,
4443 add_show_prefix_cmd.
4444 * typeprint.c (set_print_type, show_print_type): Remove.
4445 (_initialize_typeprint): Use add_basic_prefix_cmd,
4446 add_show_prefix_cmd.
4447 * record.c (set_record_command, show_record_command): Remove.
4448 (_initialize_record): Use add_basic_prefix_cmd,
4449 add_show_prefix_cmd.
4450 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4451 add_show_prefix_cmd.
4452 (info_command, show_command, set_debug, show_debug): Remove.
4453 * top.h (set_history, show_history): Don't declare.
4454 * top.c (set_history, show_history): Remove.
4455 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4456 (unset_tdesc_cmd): Remove.
4457 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4458 add_show_prefix_cmd.
4459 * symtab.c (info_module_command): Remove.
4460 (_initialize_symtab): Use add_basic_prefix_cmd.
4461 * symfile.c (overlay_command): Remove.
4462 (_initialize_symfile): Use add_basic_prefix_cmd.
4463 * sparc64-tdep.c (info_adi_command): Remove.
4464 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4465 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4466 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4467 add_show_prefix_cmd.
4468 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4469 (_initialize_serial): Use add_basic_prefix_cmd,
4470 add_show_prefix_cmd.
4471 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4472 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4473 add_show_prefix_cmd.
4474 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4475 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4476 add_show_prefix_cmd.
4477 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4478 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4479 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4480 add_show_prefix_cmd.
4481 * remote.c (remote_command, set_remote_cmd): Remove.
4482 (_initialize_remote): Use add_basic_prefix_cmd.
4483 * record-full.c (set_record_full_command)
4484 (show_record_full_command): Remove.
4485 (_initialize_record_full): Use add_basic_prefix_cmd,
4486 add_show_prefix_cmd.
4487 * record-btrace.c (cmd_set_record_btrace)
4488 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4489 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4490 (cmd_show_record_btrace_pt): Remove.
4491 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4492 add_show_prefix_cmd.
4493 * ravenscar-thread.c (set_ravenscar_command)
4494 (show_ravenscar_command): Remove.
4495 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4496 add_show_prefix_cmd.
4497 * mips-tdep.c (show_mips_command, set_mips_command)
4498 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4499 add_show_prefix_cmd.
4500 * maint.c (maintenance_command, maintenance_info_command)
4501 (maintenance_check_command, maintenance_print_command)
4502 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4503 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4504 add_show_prefix_cmd.
4505 (show_per_command_cmd): Remove.
4506 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4507 Remove.
4508 (maintenance_show_test_settings_cmd): Remove.
4509 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4510 add_show_prefix_cmd.
4511 * maint-test-options.c (maintenance_test_options_command):
4512 Remove.
4513 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4514 * macrocmd.c (macro_command): Remove
4515 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4516 * language.c (set_check, show_check): Remove.
4517 (_initialize_language): Use add_basic_prefix_cmd,
4518 add_show_prefix_cmd.
4519 * infcmd.c (unset_command): Remove.
4520 (_initialize_infcmd): Use add_basic_prefix_cmd.
4521 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4522 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4523 add_show_prefix_cmd.
4524 * go32-nat.c (go32_info_dos_command): Remove.
4525 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4526 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4527 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4528 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4529 (_initialize_frame): Use add_basic_prefix_cmd,
4530 add_show_prefix_cmd.
4531 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4532 (_initialize_dcache): Use add_basic_prefix_cmd,
4533 add_show_prefix_cmd.
4534 * cp-support.c (maint_cplus_command): Remove.
4535 (_initialize_cp_support): Use add_basic_prefix_cmd.
4536 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4537 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4538 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4539 add_basic_prefix_cmd, add_show_prefix_cmd.
4540 * breakpoint.c (save_command): Remove.
4541 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4542 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4543 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4544 add_show_prefix_cmd.
4545 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4546 (set_ada_command, show_ada_command): Remove.
4547 (_initialize_ada_language): Use add_basic_prefix_cmd,
4548 add_show_prefix_cmd.
4549 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4550
3557f442
KR
45512020-04-16 Kamil Rytarowski <n54@gmx.com>
4552
4553 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4554 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4555
16197208
SM
45562020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4557
4558 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4559 warning messages.
4560
00ac85d3
SM
45612020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4562
4563 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4564 import table is not at beginning of .idata section.
4565
381ce63f
PA
45662020-04-16 Pedro Alves <palves@redhat.com>
4567
4568 * inferior.c (delete_inferior): Use delete operator directly
4569 instead of delete_program_space.
4570 * progspace.c (add_program_space): New, factored out from
4571 program_space::program_space.
4572 (remove_program_space): New, factored out from
4573 delete_program_space.
4574 (program_space::program_space): Remove intro comment. Rewrite.
4575 (program_space::~program_space): Remove intro comment. Call
4576 remove_program_space.
4577 (delete_program_space): Delete.
4578 * progspace.h (program_space::program_space): Make explicit. Move
4579 intro comment here, adjusted.
4580 (program_space::~program_space): Move intro comment here,
4581 adjusted.
4582 (delete_program_space): Remove.
4583
a010605f
TT
45842020-04-16 Tom Tromey <tromey@adacore.com>
4585
4586 * windows-nat.c (windows_nat::handle_access_violation): New
4587 function.
4588 * nat/windows-nat.h (handle_access_violation): Declare.
4589 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4590 windows-nat.c. Call handle_access_violation.
4591
efba5c23
TV
45922020-04-16 Tom de Vries <tdevries@suse.de>
4593
4594 PR symtab/25791
4595 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4596 CUs without psymtab.
4597
97ed802d
KB
45982020-04-16 Kevin Buettner <kevinb@redhat.com>
4599
4600 * python/python.c (do_start_initialization): Don't call
4601 PyEval_InitThreads for Python 3.9 and beyond.
4602
c7d64809
KR
46032020-04-15 Kamil Rytarowski <n54@gmx.com>
4604
4605 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4606 thread functions.
4607 (obsd_nat_target::wait): Likewise.
4608
ce127a96
TT
46092020-04-15 Tom Tromey <tromey@adacore.com>
4610
4611 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4612 (DEBUG_EXCEPT): Use debug_printf.
4613
99f1bc6a
AB
46142020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4615
4616 * completer.c (class completion_tracker::completion_hash_entry)
4617 <hash_name>: New member function.
4618 (completion_tracker::discard_completions): New callback to hash a
4619 completion_hash_entry, pass this to htab_create_alloc.
4620
a0e9b532
JT
46212016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4622
4623 * windows-nat.c (windows_make_so): Warn rather than stopping with
4624 an error if realpath() fails.
4625
06ca5dd4
KR
46262020-04-14 Kamil Rytarowski <n54@gmx.com>
4627
4628 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4629 (nbsd_nat_target::info_proc): Add do_status.
4630
194d088f
TV
46312020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4632 Tom de Vries <tdevries@suse.de>
4633
4634 PR symtab/25718
4635 * psympriv.h (struct partial_symtab::read_symtab)
4636 (struct partial_symtab::expand_psymtab)
4637 (struct partial_symtab::read_dependencies): Update comments.
4638 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4639 read_symtab for includer.
4640 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4641 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4642 (struct dwarf2_include_psymtab::m_readin): Remove.
4643 (struct dwarf2_include_psymtab::includer): New member function.
4644 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4645
c1a66c06
TV
46462020-04-14 Tom de Vries <tdevries@suse.de>
4647
4648 PR symtab/25720
4649 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4650 with NULL symbol_matcher and lookup_name.
4651 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4652 and lookup_name.
4653 * dwarf2/read.c (dw2_expand_symtabs_matching)
4654 (dw2_debug_names_expand_symtabs_matching): Same.
4655 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4656 Make lookup_name a pointer. Update comment.
4657 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4658 lookup_name being a pointer.
4659 * symfile.c (expand_symtabs_matching): Same.
4660 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4661 * linespec.c (iterate_over_all_matching_symtabs): Same.
4662
400b5eca
TT
46632020-04-13 Tom Tromey <tom@tromey.com>
4664
4665 * run-on-main-thread.c: Update include.
4666 * unittests/main-thread-selftests.c: Update include.
4667 * tui/tui-win.c: Update include.
4668 * tui/tui-io.c: Update include.
4669 * tui/tui-interp.c: Update include.
4670 * tui/tui-hooks.c: Update include.
4671 * top.h: Update include.
4672 * top.c: Update include.
4673 * ser-base.c: Update include.
4674 * remote.c: Update include.
4675 * remote-notif.c: Update include.
4676 * remote-fileio.c: Update include.
4677 * record-full.c: Update include.
4678 * record-btrace.c: Update include.
4679 * python/python.c: Update include.
4680 * posix-hdep.c: Update include.
4681 * mingw-hdep.c: Update include.
4682 * mi/mi-main.c: Update include.
4683 * mi/mi-interp.c: Update include.
4684 * main.c: Update include.
4685 * linux-nat.c: Update include.
4686 * interps.c: Update include.
4687 * infrun.c: Update include.
4688 * inf-loop.c: Update include.
4689 * event-top.c: Update include.
4690 * event-loop.c: Move to ../gdbsupport/.
4691 * event-loop.h: Move to ../gdbsupport/.
4692 * async-event.h: Update include.
4693 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4694
93b54c8e
TT
46952020-04-13 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-win.c: Include async-event.h.
4698 * remote.c: Include async-event.h.
4699 * remote-notif.c: Include async-event.h.
4700 * record-full.c: Include async-event.h.
4701 * record-btrace.c: Include async-event.h.
4702 * infrun.c: Include async-event.h.
4703 * event-top.c: Include async-event.h.
4704 * event-loop.h: Move some declarations to async-event.h.
4705 * event-loop.c: Don't include ser-event.h or top.h. Move some
4706 code to async-event.c.
4707 * async-event.h: New file.
4708 * async-event.c: New file.
4709 * Makefile.in (COMMON_SFILES): Add async-event.c.
4710 (HFILES_NO_SRCDIR): Add async-event.h.
4711
c1cd3163
TT
47122020-04-13 Tom Tromey <tom@tromey.com>
4713
4714 * utils.c (flush_streams): New function.
4715 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4716
29f2bf4f
TT
47172020-04-13 Tom Tromey <tom@tromey.com>
4718
4719 * event-loop.c (handle_file_event): Use warning, not
4720 printf_unfiltered.
4721
98029d02
TT
47222020-04-13 Tom Tromey <tom@tromey.com>
4723
4724 * event-loop.c: Include <chrono>.
4725
06cc9596
TT
47262020-04-13 Tom Tromey <tom@tromey.com>
4727
4728 * gdb_select.h: Move to ../gdbsupport/.
4729 * event-loop.c: Update include path.
4730 * top.c: Update include path.
4731 * ser-base.c: Update include path.
4732 * ui-file.c: Update include path.
4733 * ser-tcp.c: Update include path.
4734 * guile/scm-ports.c: Update include path.
4735 * posix-hdep.c: Update include path.
4736 * ser-unix.c: Update include path.
4737 * gdb_usleep.c: Update include path.
4738 * mingw-hdep.c: Update include path.
4739 * inflow.c: Update include path.
4740 * infrun.c: Update include path.
4741 * event-top.c: Update include path.
4742
8ae8e197
TT
47432020-04-13 Tom Tromey <tom@tromey.com>
4744
4745 * configure: Rebuild.
4746 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4747
58cf28e8
TT
47482020-04-13 Tom Tromey <tom@tromey.com>
4749
4750 * event-loop.h (start_event_loop): Don't declare.
4751 * event-loop.c (start_event_loop): Move...
4752 * main.c (start_event_loop): ...here. Now static.
4753
b7f999ae
SDJ
47542020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4755
4756 * MAINTAINERS: Update my email address.
4757
1085dfd4
KR
47582020-04-12 Kamil Rytarowski <n54@gmx.com>
4759
4760 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4761 IP_ALL.
4762
49d1d1f5
KR
47632020-04-12 Kamil Rytarowski <n54@gmx.com>
4764
4765 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4766 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4767
b4848d2a
KR
47682020-04-12 Kamil Rytarowski <n54@gmx.com>
4769
4770 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4771 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4772
51c133d5
KR
47732020-04-12 Kamil Rytarowski <n54@gmx.com>
4774
4775 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4776
54b8cbd0
KR
47772020-04-11 Kamil Rytarowski <n54@gmx.com>
4778
4779 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4780 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4781 (nbsd_nat_target::info_proc): New functions.
4782 * nbsd-nat.c (kinfo_get_vmmap): New function.
4783 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4784 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4785 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4786 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4787 functions.
4788 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4789 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4790 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4791 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4792 (KINFO_VME_FLAG_GROWS_DOWN): New.
4793
cf83625d
AS
47942020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4795
4796 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4797 bit shift.
4798
0c4311ab
TT
47992020-04-10 Tom Tromey <tromey@adacore.com>
4800
4801 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4802
3e65b3e9
TT
48032020-04-10 Tom Tromey <tromey@adacore.com>
4804
4805 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4806 separate debug files.
4807
13302e95
HD
48082020-04-10 Hannes Domani <ssbssa@yahoo.de>
4809
4810 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4811 Move to...
4812 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4813 ... here.
4814 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4815 Check for STATUS_WX86_BREAKPOINT.
4816 (windows_nat_target::wait): Same.
4817
bdfc1e8a
TV
48182020-04-10 Tom de Vries <tdevries@suse.de>
4819
4820 PR cli/25808
4821 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4822
f4460aec
SM
48232020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4824
4825 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4826 (Write After Approval): Remove Tom de Vries.
4827
a25198bb
BE
48282020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4829
4830 revert partially:
4831 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4832
aac66a4c
SM
4833 * buildsym.c (record_line): Fix undefined behavior and preserve
4834 lines at eof.
a25198bb 4835
206c98a6
KR
48362020-04-09 Kamil Rytarowski <n54@gmx.com>
4837
4838 * auxv.h (svr4_auxv_parse): New.
4839 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4840 and generic_auxv_parse.
4841 (svr4_auxv_parse): Add.
4842 * obsd-tdep.c: Include "auxv.h".
4843 (obsd_auxv_parse): Remove.
4844 (obsd_init_abi): Remove comment.
4845 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4846 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4847 * nbsd-tdep.c: Include "auxv.h".
4848 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4849
71fbdbaf
TT
48502020-04-08 Tom Tromey <tromey@adacore.com>
4851
4852 * nat/windows-nat.h (last_wait_event): Don't declare.
4853 (wait_for_debug_event): Update comment.
4854 * nat/windows-nat.c (last_wait_event): Now static.
4855
2c1d95e8
TT
48562020-04-08 Tom Tromey <tromey@adacore.com>
4857
4858 * windows-nat.c (wait_for_debug_event): Move to
4859 nat/windows-nat.c.
4860 * nat/windows-nat.h (wait_for_debug_event): Declare.
4861 * nat/windows-nat.c (wait_for_debug_event): Move from
4862 windows-nat.c. No longer static.
4863
d2977bc4
TT
48642020-04-08 Tom Tromey <tromey@adacore.com>
4865
4866 * windows-nat.c (get_windows_debug_event): Use
4867 fetch_pending_stop.
4868 * nat/windows-nat.h (fetch_pending_stop): Declare.
4869 * nat/windows-nat.c (fetch_pending_stop): New function.
4870
e758e19c
TT
48712020-04-08 Tom Tromey <tromey@adacore.com>
4872
4873 * windows-nat.c (windows_continue): Use matching_pending_stop and
4874 continue_last_debug_event.
4875 * nat/windows-nat.h (matching_pending_stop)
4876 (continue_last_debug_event): Declare.
4877 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4878 (matching_pending_stop, continue_last_debug_event): New
4879 functions.
4880
8d30e395
TT
48812020-04-08 Tom Tromey <tromey@adacore.com>
4882
4883 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4884 (handle_exception_result): Move to nat/windows-nat.h.
4885 (DEBUG_EXCEPTION_SIMPLE): Remove.
4886 (windows_nat::handle_ms_vc_exception): New function.
4887 (handle_exception): Move to nat/windows-nat.c.
4888 (get_windows_debug_event): Update.
4889 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4890 nat/windows-nat.c.
4891 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4892 (handle_exception_result): Move from windows-nat.c.
4893 (handle_exception): Declare.
4894 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4895 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4896 windows-nat.c.
4897
29de418d
TT
48982020-04-08 Tom Tromey <tromey@adacore.com>
4899
4900 * windows-nat.c (exception_count, event_count): Remove.
4901 (handle_exception, get_windows_debug_event)
4902 (do_initial_windows_stuff): Update.
4903
a816ba18
TT
49042020-04-08 Tom Tromey <tromey@adacore.com>
4905
4906 * windows-nat.c (windows_nat::handle_load_dll)
4907 (windows_nat::handle_unload_dll): Rename. No longer static.
4908 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4909 Declare.
4910
a00caa12
TT
49112020-04-08 Tom Tromey <tromey@adacore.com>
4912
4913 * complaints.h (stop_whining): Declare at top-level.
4914 (complaint): Don't declare stop_whining.
4915
d41b524f
TT
49162020-04-08 Tom Tromey <tromey@adacore.com>
4917
4918 * windows-nat.c (windows_nat::handle_output_debug_string):
4919 Rename. No longer static.
4920 * nat/windows-nat.h (handle_output_debug_string): Declare.
4921
3c76026d
TT
49222020-04-08 Tom Tromey <tromey@adacore.com>
4923
4924 * windows-nat.c (current_process_handle, current_process_id)
4925 (main_thread_id, last_sig, current_event, last_wait_event)
4926 (current_windows_thread, desired_stop_thread_id, pending_stops)
4927 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4928 (display_selectors, fake_create_process)
4929 (get_windows_debug_event): Update.
4930 * nat/windows-nat.h (current_process_handle, current_process_id)
4931 (main_thread_id, last_sig, current_event, last_wait_event)
4932 (current_windows_thread, desired_stop_thread_id, pending_stops)
4933 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4934 * nat/windows-nat.c (current_process_handle, current_process_id)
4935 (main_thread_id, last_sig, current_event, last_wait_event)
4936 (current_windows_thread, desired_stop_thread_id, pending_stops)
4937 (siginfo_er): New globals. Move from windows-nat.c.
4938
9d8679cc
TT
49392020-04-08 Tom Tromey <tromey@adacore.com>
4940
4941 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4942 (handle_load_dll): Update.
4943 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4944
28688adf
TT
49452020-04-08 Tom Tromey <tromey@adacore.com>
4946
4947 * windows-nat.c (enum thread_disposition_type): Move to
4948 nat/windows-nat.h.
4949 (windows_nat::thread_rec): Rename from thread_rec. No longer
4950 static.
4951 (windows_add_thread, windows_nat_target::fetch_registers)
4952 (windows_nat_target::store_registers, handle_exception)
4953 (windows_nat_target::resume, get_windows_debug_event)
4954 (windows_nat_target::get_tib_address)
4955 (windows_nat_target::thread_name)
4956 (windows_nat_target::thread_alive): Update.
4957 * nat/windows-nat.h (enum thread_disposition_type): Move from
4958 windows-nat.c.
4959 (thread_rec): Declare.
4960
4834dad0
TT
49612020-04-08 Tom Tromey <tromey@adacore.com>
4962
4963 * windows-nat.c: Add "using namespace".
4964 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
4965 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
4966
65bafd5b
TT
49672020-04-08 Tom Tromey <tromey@adacore.com>
4968
4969 * nat/windows-nat.h (struct windows_thread_info): Declare
4970 destructor.
4971 * nat/windows-nat.c (~windows_thread_info): New.
4972
0a4afda3
TT
49732020-04-08 Tom Tromey <tromey@adacore.com>
4974
4975 PR gdb/22992
4976 * windows-nat.c (current_event): Update comment.
4977 (last_wait_event, desired_stop_thread_id): New globals.
4978 (struct pending_stop): New.
4979 (pending_stops): New global.
4980 (windows_nat_target) <stopped_by_sw_breakpoint>
4981 <supports_stopped_by_sw_breakpoint>: New methods.
4982 (windows_fetch_one_register): Add assertions. Adjust PC.
4983 (windows_continue): Handle pending stops. Suspend other threads
4984 when stepping. Use last_wait_event
4985 (wait_for_debug_event): New function.
4986 (get_windows_debug_event): Use wait_for_debug_event. Handle
4987 pending stops. Queue spurious stops.
4988 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
4989 (windows_nat_target::kill): Use wait_for_debug_event.
4990 * nat/windows-nat.h (struct windows_thread_info)
4991 <stopped_at_software_breakpoint>: New field.
4992 * nat/windows-nat.c (windows_thread_info::resume): Clear
4993 stopped_at_software_breakpoint.
4994
8e61ebec
TT
49952020-04-08 Tom Tromey <tromey@adacore.com>
4996
4997 * windows-nat.c (enum thread_disposition_type): New.
4998 (thread_rec): Replace "get_context" parameter with "disposition";
4999 change type.
5000 (windows_add_thread, windows_nat_target::fetch_registers)
5001 (windows_nat_target::store_registers, handle_exception)
5002 (windows_nat_target::resume, get_windows_debug_event)
5003 (windows_nat_target::get_tib_address)
5004 (windows_nat_target::thread_name)
5005 (windows_nat_target::thread_alive): Update.
5006
98a03287
TT
50072020-04-08 Tom Tromey <tromey@adacore.com>
5008
5009 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5010 (windows_continue): Use windows_continue::resume.
5011 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5012 resume>: Declare new methods.
5013 * nat/windows-nat.c: New file.
5014 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5015
7c7411bc
TT
50162020-04-08 Tom Tromey <tromey@adacore.com>
5017
5018 * windows-nat.c (windows_add_thread, windows_delete_thread)
5019 (windows_nat_target::fetch_registers)
5020 (windows_nat_target::store_registers, fake_create_process)
5021 (windows_nat_target::resume, windows_nat_target::resume)
5022 (get_windows_debug_event, windows_nat_target::wait)
5023 (windows_nat_target::pid_to_str)
5024 (windows_nat_target::get_tib_address)
5025 (windows_nat_target::get_ada_task_ptid)
5026 (windows_nat_target::thread_name)
5027 (windows_nat_target::thread_alive): Use lwp, not tid.
5028
2950fdf7
TT
50292020-04-08 Tom Tromey <tromey@adacore.com>
5030
5031 * windows-nat.c (handle_exception)
5032 (windows_nat_target::thread_name): Update.
5033 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5034 <name>: Now unique_xmalloc_ptr.
5035
62fe396b
TT
50362020-04-08 Tom Tromey <tromey@adacore.com>
5037
5038 * windows-nat.c (thread_rec)
5039 (windows_nat_target::fetch_registers): Update.
5040 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5041 Update comment.
5042 <debug_registers_changed, reload_context>: Now bool.
5043
e9534bd2
TT
50442020-04-08 Tom Tromey <tromey@adacore.com>
5045
5046 * windows-nat.c (windows_add_thread): Use new.
5047 (windows_init_thread_list, windows_delete_thread): Use delete.
5048 (get_windows_debug_event): Update.
5049 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5050 destructor, and initializers.
5051
ae1f8880
TT
50522020-04-08 Tom Tromey <tromey@adacore.com>
5053
5054 * windows-nat.c (struct windows_thread_info): Remove.
5055 * nat/windows-nat.h: New file.
5056
55a1e039
TT
50572020-04-08 Tom Tromey <tromey@adacore.com>
5058
5059 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5060 (thread_rec, windows_add_thread, windows_delete_thread)
5061 (windows_continue): Update.
5062
93366324
TT
50632020-04-08 Tom Tromey <tromey@adacore.com>
5064
5065 * windows-nat.c (struct windows_thread_info): Remove typedef.
5066 (thread_head): Remove.
5067 (thread_list): New global.
5068 (thread_rec, windows_add_thread, windows_init_thread_list)
5069 (windows_delete_thread, windows_continue): Update.
5070
0f2265e2
SM
50712020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5072
5073 * windows-tdep.h (windows_init_abi): Add comment.
5074 (cygwin_init_abi): New declaration.
5075 * windows-tdep.c: Split signal enumeration in two, one for
5076 Windows and one for Cygwin.
5077 (windows_gdb_signal_to_target): Only deal with signal of the
5078 Windows OS ABI.
5079 (cygwin_gdb_signal_to_target): New function.
5080 (windows_init_abi): Rename to windows_init_abi_common, don't set
5081 gdb_signal_to_target gdbarch method. Add new new function with
5082 this name.
5083 (cygwin_init_abi): New function.
5084 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5085 comment. Don't call windows_init_abi.
5086 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5087 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5088 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5089 i386_windows_init_abi_common, don't call windows_init_abi. Add
5090 a new function of this name.
5091 (i386_cygwin_init_abi): New function.
5092 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5093 OS ABI Cygwin.
5094
3810f182
SM
50952020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5096
5097 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5098 parameter.c.
5099 (dwarf2_read_gdb_index): Update.
5100
063f8e80
KR
51012020-04-07 Kamil Rytarowski <n54@gmx.com>
5102
5103 * nbsd-tdep.c: Include "objfiles.h".
5104 (nbsd_skip_solib_resolver): New.
5105 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5106
85a9510c 51072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5108
5109 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5110 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5111 with DW_LLE_base_addressx are being emitted in DWARFv5.
5112 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5113 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5114 unsigned integer.
5115
9fc3eaae 51162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5117
5118 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5119 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5120 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5121 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5122 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5123 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5124 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5125
5126
41144253 51272020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5128
5129 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5130 (read_loclist_index): New function definition.
5131 (lookup_loclist_base): New function definition.
5132 (read_loclist_header): New function definition.
5133 (dwarf2_cu): Add loclist_base and loclist_header field.
5134 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5135 (read_full_die_1): Read the value of DW_AT_loclists_base.
5136 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5137 (read_attribute_value): Handle DW_FORM_loclistx.
5138 (skip_one_die): Handle DW_FORM_loclistx.
5139 (loclist_header): New structure declaration.
5140 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5141
9f4e76a4
SM
51422020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5143
5144 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5145 constructor. Remove `addr` parameter from other constructor and
5146 add `per_cu` parameter.
5147 * dwarf2/read.c (create_partial_symtab): Update.
5148
25c11aca
TV
51492020-04-07 Tom de Vries <tdevries@suse.de>
5150
5151 PR symtab/25796
5152 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5153 (partial_die_info::fixup): Inherit has_const_value.
5154
5707e24b
TV
51552020-04-07 Tom de Vries <tdevries@suse.de>
5156
5157 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5158 symbols without address.
5159
05f00e22
KR
51602020-04-06 Kamil Rytarowski <n54@gmx.com>
5161
5162 * nbsd-nat.h (struct thread_info): Add forward declaration.
5163 (nbsd_nat_target::thread_alive): Add.
5164 (nbsd_nat_target::thread_name): Likewise.
5165 (nbsd_nat_target::update_thread_list): Likewise.
5166 (update_thread_list::post_attach): Likewise.
5167 (post_attach::pid_to_str): Likewise.
5168 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5169 (nbsd_thread_lister): Add.
5170 (nbsd_nat_target::thread_alive): Likewise.
5171 (nbsd_nat_target::thread_name): Likewise.
5172 (nbsd_add_threads): Likewise.
5173 (update_thread_list::post_attach): Likewise.
5174 (nbsd_nat_target::update_thread_list): Likewise.
5175 (post_attach::pid_to_str): Likewise.
5176
6ee448cc
TT
51772020-04-06 Tom Tromey <tromey@adacore.com>
5178
5179 * ada-valprint.c (print_variant_part): Extract the variant field.
5180 (print_field_values): Use the field as the outer value when
5181 recursing.
5182
dea34e8c
TT
51832020-04-06 Tom Tromey <tromey@adacore.com>
5184
5185 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5186 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5187 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5188 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5189 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5190
93689ce9
TT
51912020-04-06 Tom Tromey <tromey@adacore.com>
5192
5193 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5194 TYPE_CODE_ERROR.
5195
79743962
KR
51962020-04-06 Kamil Rytarowski <n54@gmx.com>
5197
5198 * nbsd-tdep.c: Include "gdbarch.h".
5199 Define enum with NetBSD signal numbers.
5200 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5201 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5202 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5203 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5204 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5205 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5206 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5207 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5208 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5209 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5210 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5211 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5212
9e7c9a03
HD
52132020-04-03 Hannes Domani <ssbssa@yahoo.de>
5214
5215 PR gdb/25325
5216 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5217
d9e49b61
TT
52182020-04-03 Tom Tromey <tromey@adacore.com>
5219
5220 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5221 Read constant block.
5222
e0fc5c3f
SM
52232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5224
5225 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5226 (gdb_bfd_get_full_section_contents): New declaration.
5227 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5228 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5229 gdb_bfd_get_full_section_contents.
5230
e2ff18a0
SM
52312020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5232
5233 * exec.c (build_section_table): Replace internal_error with
5234 gdb_assert.
5235 (section_table_xfer_memory_partial): Likewise.
5236 * mdebugread.c (parse_partial_symbols): Likewise.
5237 * psymtab.c (lookup_partial_symbol): Likewise.
5238 * utils.c (wrap_here): Likewise.
5239
0830d301
TT
52402020-04-02 Tom Tromey <tromey@adacore.com>
5241
5242 * f-lang.c (build_fortran_types): Use arch_type to initialize
5243 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5244
e7da7f8f
TT
52452020-04-02 Tom Tromey <tromey@adacore.com>
5246
5247 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5248 of attributes.
5249
c90d28ac
AB
52502020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5251 Bernd Edlinger <bernd.edlinger@hotmail.de>
5252 Tom Tromey <tromey@adacore.com>
5253
5254 * buildsym.c (buildsym_compunit::record_line): Remove
5255 deduplication code.
5256
1aa98955
TV
52572020-04-02 Tom de Vries <tdevries@suse.de>
5258
5259 PR ada/24671
5260 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5261
d3214198
TV
52622020-04-02 Tom de Vries <tdevries@suse.de>
5263
5264 * dwarf2/read.c (dwarf2_gdb_index_functions,
5265 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5266 NULL.
5267 * psymtab.c (psym_lookup_global_symbol_language): New function.
5268 (psym_functions): Init psym_lookup_global_symbol_language with
5269 psym_lookup_global_symbol_language.
5270 * symfile-debug.c (debug_sym_quick_functions): Init
5271 lookup_global_symbol_language with NULL.
5272 * symfile.c (set_initial_language): Remove fixme comment.
5273 * symfile.h (struct quick_symbol_functions): Add
5274 lookup_global_symbol_language.
5275 * symtab.c (find_quick_global_symbol_language): New function.
5276 (find_main_name): Use find_quick_global_symbol_language.
5277
2836752f
SM
52782020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5281
64dc2d4b
BE
52822020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5283
5284 * buildsym.c (record_line): Fix undefined behavior and preserve
5285 lines at eof.
5286
bbe3dc41
BE
52872020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5288
5289 * buildsym.c (record_line): Fix the resizing condition.
5290
6b4a335b
TT
52912020-04-01 Tom Tromey <tom@tromey.com>
5292
5293 * value.h (value_literal_complex): Add comment.
5294 * valops.c (value_literal_complex): Refer to value.h.
5295
3638a098
TT
52962020-04-01 Tom Tromey <tom@tromey.com>
5297
5298 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5299 (scalar_type): New rule, from typebase.
5300 (typebase): Use scalar_type. Recognize complex types.
5301 (field_name): Handle FLOAT_KEYWORD.
5302 (ident_tokens): Add _Complex and __complex__.
5303
c34e8714
TT
53042020-04-01 Tom Tromey <tom@tromey.com>
5305
5306 PR exp/25299:
5307 * valarith.c (promotion_type, complex_binop): New functions.
5308 (scalar_binop): Handle complex numbers. Use promotion_type.
5309 (value_pos, value_neg, value_complement): Handle complex numbers.
5310
fa649bb7
TT
53112020-04-01 Tom Tromey <tom@tromey.com>
5312
5313 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5314 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5315 (parse_number): Handle complex numbers.
5316
981c08ce
TT
53172020-04-01 Tom Tromey <tom@tromey.com>
5318
5319 * c-valprint.c (c_decorations): Change complex suffix to "i".
5320
4c99290d
TT
53212020-04-01 Tom Tromey <tom@tromey.com>
5322
5323 * valprint.c (generic_value_print_complex): Use accessors.
5324 * value.h (value_real_part, value_imaginary_part): Declare.
5325 * valops.c (value_real_part, value_imaginary_part): New
5326 functions.
5327 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5328
5b930b45
TT
53292020-04-01 Tom Tromey <tom@tromey.com>
5330
5331 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5332 (read_range_type): Update.
5333 * mdebugread.c (basic_type): Update.
5334 * go-lang.c (build_go_types): Use init_complex_type.
5335 * gdbtypes.h (struct main_type) <complex_type>: New member.
5336 (init_complex_type): Update.
5337 (arch_complex_type): Don't declare.
5338 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5339 Make name if none given. Use alloc_type_copy. Look for cached
5340 complex type.
5341 (arch_complex_type): Remove.
5342 (gdbtypes_post_init): Use init_complex_type.
5343 * f-lang.c (build_fortran_types): Use init_complex_type.
5344 * dwarf2/read.c (read_base_type): Update.
5345 * d-lang.c (build_d_types): Use init_complex_type.
5346 * ctfread.c (read_base_type): Update.
5347
53cccef1
TBA
53482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5349
5350 * infrun.c (stop_all_threads): Update assertion, plus when
5351 stopping threads, take into account that we might be trying
5352 to stop an all-stop target.
5353 (stop_waiting): Call 'stop_all_threads' if there exists a
5354 non-stop target.
5355
a0714d30
TBA
53562020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5357
5358 * target.h (exists_non_stop_target): New function declaration.
5359 * target.c (exists_non_stop_target): New function.
5360
60e22c1e
HD
53612020-04-01 Hannes Domani <ssbssa@yahoo.de>
5362
5363 PR gdb/24789
5364 * eval.c (is_integral_or_integral_reference): New function.
5365 (evaluate_subexp_standard): Allow integer references in
5366 pointer arithmetic.
5367
e139a727
TBA
53682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5369
5370 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5371 check for no ptid in the stop reply when the target is non-stop.
5372
e0802d59
TT
53732020-04-01 Tom Tromey <tromey@adacore.com>
5374
5375 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5376 "name" parameter to rvalue reference. Initialize m_name_holder.
5377 <lookup_name_info>: New overloads.
5378 <name>: Return gdb::string_view.
5379 <c_str>: New method.
5380 <make_ignore_params>: Update.
5381 <search_name_hash>: Update.
5382 <language_lookup_name>: Return const char *.
5383 <m_name>: Change type.
5384 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5385 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5386 (lookup_name_info::match_any): Update.
5387 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5388 Update.
5389 * minsyms.c (linkage_name_str): Update.
5390 * language.c (default_symbol_name_matcher): Update.
5391 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5392 Update.
5393 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5394 (ada_lookup_name_info::ada_lookup_name_info): Update.
5395 (literal_symbol_name_matcher): Update.
5396
8c072cb6
TT
53972020-04-01 Tom Tromey <tromey@adacore.com>
5398
5399 * psymtab.c (psymtab_search_name): Remove function.
5400 (psym_lookup_symbol): Create search name and lookup name here.
5401 (lookup_partial_symbol): Remove "name" parameter; add
5402 lookup_name.
5403 (psym_expand_symtabs_for_function): Update.
5404
6f29a534
TT
54052020-03-31 Joel Jones <joelkevinjones@gmail.com>
5406
5407 PR tui/25597:
5408 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5409
af62665e
TT
54102020-03-31 Tom Tromey <tromey@adacore.com>
5411
5412 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5413 memcpy.
5414
d1a89da5
NC
54152020-03-30 Nelson Chu <nelson.chu@sifive.com>
5416
5417 * features/riscv/32bit-csr.xml: Regenerated.
5418 * features/riscv/64bit-csr.xml: Regenerated.
5419
d8af9068
TT
54202020-03-30 Tom Tromey <tromey@adacore.com>
5421
5422 * ada-valprint.c (print_variant_part): Update.
5423 * ada-lang.h (ada_which_variant_applies): Update.
5424 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5425 outer_valaddr parameters; replace with "outer" value parameter.
5426 (to_fixed_variant_branch_type): Update.
5427
227c0bf4
PFC
54282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5429
5430 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5431 <list>. Remove inclusion of observable.h.
5432 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5433 (struct arch_lwp_info): New struct.
5434 (class ppc_linux_dreg_interface): New class.
5435 (struct ppc_linux_process_info): New struct.
5436 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5437 <low_new_clone, low_forget_process, low_prepare_to_resume>
5438 <copy_thread_dreg_state, mark_thread_stale>
5439 <mark_debug_registers_changed, register_hw_breakpoint>
5440 <clear_hw_breakpoint, register_wp, clear_wp>
5441 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5442 <num_memory_accesses, get_trigger_type>
5443 <create_watchpoint_request, hwdebug_point_cmp>
5444 <init_arch_lwp_info, get_arch_lwp_info>
5445 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5446 methods.
5447 <struct ptid_hash>: New inner struct.
5448 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5449 members.
5450 (saved_dabr_value, hwdebug_info, max_slots_number)
5451 (struct hw_break_tuple, struct thread_points, ppc_threads)
5452 (have_ptrace_hwdebug_interface)
5453 (hwdebug_find_thread_points_by_tid)
5454 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5455 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5456 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5457 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5458 use m_dreg_interface.
5459 (hwdebug_point_cmp): Change to...
5460 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5461 reference arguments instead of pointers.
5462 (ppc_linux_nat_target::ranged_break_num_registers): Use
5463 m_dreg_interface.
5464 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5465 m_dreg_interface. Call register_hw_breakpoint.
5466 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5467 m_dreg_interface. Call clear_hw_breakpoint.
5468 (get_trigger_type): Change to...
5469 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5470 comment.
5471 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5472 use m_dreg_interface. Call register_hw_breakpoint.
5473 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5474 use m_dreg_interface. Call clear_hw_breakpoint.
5475 (can_use_watchpoint_cond_accel): Change to...
5476 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5477 method. Update comment, use m_dreg_interface and
5478 m_process_info.
5479 (calculate_dvc): Change to...
5480 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5481 m_dreg_interface.
5482 (num_memory_accesses): Change to...
5483 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5484 (check_condition): Change to...
5485 (ppc_linux_nat_target::check_condition): ...this method.
5486 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5487 comment, use m_dreg_interface.
5488 (create_watchpoint_request): Change to...
5489 (ppc_linux_nat_target::create_watchpoint_request): ...this
5490 method. Use m_dreg_interface.
5491 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5492 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5493 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5494 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5495 (ppc_linux_nat_target::low_forget_process)
5496 (ppc_linux_nat_target::low_new_fork)
5497 (ppc_linux_nat_target::low_new_clone)
5498 (ppc_linux_nat_target::low_delete_thread)
5499 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5500 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5501 only call mark_thread_stale.
5502 (ppc_linux_thread_exit): Remove.
5503 (ppc_linux_nat_target::stopped_data_address): Change to...
5504 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5505 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5506 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5507 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5508 comment. Call low_stopped_data_address.
5509 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5510 m_dreg_interface.
5511 (ppc_linux_nat_target::masked_watch_num_registers): Use
5512 m_dreg_interface.
5513 (ppc_linux_nat_target::copy_thread_dreg_state)
5514 (ppc_linux_nat_target::mark_thread_stale)
5515 (ppc_linux_nat_target::mark_debug_registers_changed)
5516 (ppc_linux_nat_target::register_hw_breakpoint)
5517 (ppc_linux_nat_target::clear_hw_breakpoint)
5518 (ppc_linux_nat_target::register_wp)
5519 (ppc_linux_nat_target::clear_wp)
5520 (ppc_linux_nat_target::init_arch_lwp_info)
5521 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5522 (_initialize_ppc_linux_nat): Remove observer callback.
5523
4db10d8f
PFC
55242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5525
5526 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5527 (ppc_linux_nat_target::auxv_parse)
5528 (ppc_linux_nat_target::read_description)
5529 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5530 Move up.
5531
1310c1b0
PFC
55322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5533
5534 * linux-nat.h (low_new_clone): New method.
5535 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5536
69b037c3
SM
55372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5538
5539 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5540 (dbx_expand_psymtab): ... this.
5541 (start_psymtab): Update.
5542 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5543 (mdebug_expand_psymtab): ... this.
5544 (parse_partial_symbols): Update.
5545 (new_psymtab): Update.
5546 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5547 (xcoff_expand_psymtab): ... this.
5548 (xcoff_start_psymtab): Update.
5549
48993951
SM
55502020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5551
5552 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5553 <expand_dependencies>: ... this.
5554 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5555 (partial_symtab::expand_dependencies): ... this.
5556 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5557 Update.
5558 (dwarf2_psymtab::expand_psymtab): Update.
5559 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5560 * mdebugread.c (psymtab_to_symtab_1): Update.
5561 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5562
3ad83046
SM
55632020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * psympriv.h (discard_psymtab): Remove.
5566 * dbxread.c (dbx_end_psymtab): Update.
5567 * xcoffread.c (xcoff_end_psymtab): Update.
5568
4d1b9ab6
TT
55692020-03-28 Tom Tromey <tom@tromey.com>
5570
5571 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5572 comment.
5573
f1749218
TT
55742020-03-28 Tom Tromey <tom@tromey.com>
5575
5576 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5577
ebea7626
HD
55782020-03-27 Hannes Domani <ssbssa@yahoo.de>
5579
5580 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5581
a879b4d5
JB
55822020-03-26 John Baldwin <jhb@FreeBSD.org>
5583
5584 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5585
0826b30a
TT
55862020-03-26 Tom Tromey <tom@tromey.com>
5587
5588 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5589 (mark_common_block_symbol_computed, read_tag_string_type)
5590 (attr_to_dynamic_prop, read_subrange_type): Update.
5591 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5592 to be methods on struct attribute.
5593 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5594 (read_call_site_scope, partial_die_info::read)
5595 (partial_die_info::read, lookup_die_type, follow_die_ref):
5596 Update.
5597 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5598 from dwarf2_get_ref_die_offset.
5599 (attribute::constant_value): New method, from
5600 dwarf2_get_attr_constant_value.
5601 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5602 Declare method.
5603 <constant_value>: New method.
5604
2b2558bf
TT
56052020-03-26 Tom Tromey <tom@tromey.com>
5606
5607 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5608 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5609 (dwarf_type_encoding_name): Move to stringify.c.
5610 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5611 * dwarf2/stringify.c: New file.
5612 * dwarf2/stringify.h: New file.
5613
eeb64781
TT
56142020-03-26 Tom Tromey <tom@tromey.com>
5615
5616 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5617 Rewrite.
5618
a39fdb41
TT
56192020-03-26 Tom Tromey <tom@tromey.com>
5620
5621 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5622 methods.
5623 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5624 (lookup_ranges_base): Likewise.
5625 (read_cutu_die_from_dwo, read_full_die_1): Update.
5626
436c571c
TT
56272020-03-26 Tom Tromey <tom@tromey.com>
5628
5629 * dwarf2/read.c (read_import_statement, read_file_scope)
5630 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5631 (read_lexical_block_scope, read_call_site_scope)
5632 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5633 (handle_struct_member_die, process_structure_scope)
5634 (update_enumeration_type_from_children)
5635 (process_enumeration_scope, read_array_type, read_common_block)
5636 (read_namespace, read_module, read_subroutine_type): Update.
5637 (sibling_die): Remove.
5638
052c8bb8
TT
56392020-03-26 Tom Tromey <tom@tromey.com>
5640
5641 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5642 (build_type_psymtabs_reader, read_structure_type)
5643 (read_enumeration_type, read_full_die_1): Update.
5644 (dwarf2_attr_no_follow): Move to die.h.
5645 * dwarf2/die.h (struct die_info) <attr>: New method.
5646
2b24b6e4
TT
56472020-03-26 Tom Tromey <tom@tromey.com>
5648
5649 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5650 <base_address>: Now an optional.
5651 (dwarf2_find_base_address, dwarf2_rnglists_process)
5652 (dwarf2_ranges_process, fill_in_loclist_baton)
5653 (dwarf2_symbol_mark_computed): Update.
5654
c2d50fd0
TT
56552020-03-26 Tom Tromey <tom@tromey.com>
5656
5657 * dwarf2/read.c (struct die_info): Move to die.h.
5658 * dwarf2/die.h: New file.
5659
0df7ad3a
TT
56602020-03-26 Tom Tromey <tom@tromey.com>
5661
5662 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5663 * dwarf2/read.c
5664 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5665 Move to line-header.c.
5666 (read_checked_initial_length_and_offset, read_formatted_entries):
5667 Likewise.
5668 (dwarf_decode_line_header): Split into two.
5669 * dwarf2/line-header.c
5670 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5671 Move from read.c.
5672 (read_checked_initial_length_and_offset, read_formatted_entries):
5673 Likewise.
5674 (dwarf_decode_line_header): New function, split from read.c.
5675
86c0bb4c
TT
56762020-03-26 Tom Tromey <tom@tromey.com>
5677
5678 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5679 Declare method.
5680 * dwarf2/read.c (read_attribute_value): Update.
5681 (dwarf2_per_objfile::read_line_string): Rename from
5682 read_indirect_line_string.
5683 (read_formatted_entries): Update.
5684
2ef46c2f
TT
56852020-03-26 Tom Tromey <tom@tromey.com>
5686
5687 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5688 variable.
5689
4f9c1eda
TT
56902020-03-26 Tom Tromey <tom@tromey.com>
5691
5692 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5693 const.
5694 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5695 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5696 parameter const.
5697
5a0e026f
TT
56982020-03-26 Tom Tromey <tom@tromey.com>
5699
5700 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5701 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5702 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5703 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5704
8844c11b
TT
57052020-03-26 Tom Tromey <tom@tromey.com>
5706
5707 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5708 file_names_size, file_full_name, file_file_name>: Use const.
5709 <file_name_at, file_names>: Add const overload.
5710 * dwarf2/line-header.c (line_header::file_file_name)
5711 (line_header::file_full_name): Update.
5712
c90ec28a
TT
57132020-03-26 Tom Tromey <tom@tromey.com>
5714
5715 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5716 (macro_start_file, consume_improper_spaces)
5717 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5718 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5719 (dwarf_decode_macros): Move to macro.c.
5720 * dwarf2/macro.c: New file.
5721 * dwarf2/macro.h: New file.
5722 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5723
4f44ae6c
TT
57242020-03-26 Tom Tromey <tom@tromey.com>
5725
5726 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5727 method.
5728 * dwarf2/section.c: New method. From
5729 read_indirect_string_at_offset_from.
5730 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5731 (read_indirect_string_at_offset_from): Move to section.c.
5732 (read_indirect_string_at_offset): Rewrite.
5733 (read_indirect_line_string_at_offset): Remove.
5734 (read_indirect_string, read_indirect_line_string)
5735 (dwarf_decode_macro_bytes): Update.
5736
a0194fa8
TT
57372020-03-26 Tom Tromey <tom@tromey.com>
5738
5739 * dwarf2/section.h (struct dwarf2_section_info)
5740 <overload_complaint>: Declare.
5741 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5742 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5743 Rename from dwarf2_section_buffer_overflow_complaint.
5744 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5745 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5746
3d27bbdb
TT
57472020-03-26 Tom Tromey <tom@tromey.com>
5748
5749 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5750 Declare.
5751 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5752 Move from read.c.
5753 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5754 to section.c.
5755
9eac9650
TT
57562020-03-26 Tom Tromey <tom@tromey.com>
5757
5758 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5759
bf80d710
TT
57602020-03-26 Tom Tromey <tom@tromey.com>
5761
5762 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5763 "builder".
5764 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5765 parameter.
5766 (dwarf_decode_macros): Update.
5767
0314b390
TT
57682020-03-26 Tom Tromey <tom@tromey.com>
5769
5770 * dwarf2/read.c (read_attribute_value): Update.
5771 (read_indirect_string_from_dwz): Move to dwz.c; change into
5772 method.
5773 (dwarf_decode_macro_bytes): Update.
5774 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5775 * dwarf2/dwz.c: New file.
5776 * Makefile.in (COMMON_SFILES): Add dwz.c.
5777
9fda78b6
TT
57782020-03-26 Tom Tromey <tom@tromey.com>
5779
5780 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5781 * dwarf2/read.c: Add include.
5782 * dwarf2/index-write.c: Add include.
5783 * dwarf2/index-cache.c: Add include.
5784 * dwarf2/dwz.h: New file.
5785
33aa3c10
TT
57862020-03-25 Tom Tromey <tom@tromey.com>
5787
5788 * compile/compile-object-load.c (get_out_value_type): Mention
5789 correct symbol name in error message.
5790
d503b685
HD
57912020-03-25 Hannes Domani <ssbssa@yahoo.de>
5792
5793 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5794
7b1eff95
TV
57952020-03-25 Tom de Vries <tdevries@suse.de>
5796
5797 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5798 * symmisc.c (dump_symtab_1): Print user and includes fields.
5799 (maintenance_info_symtabs): Same.
5800
dd895392
AB
58012020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5802
5803 PR gdb/25534
5804 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5805 (riscv_regcache_cooked_write): New function.
5806 (riscv_push_dummy_call): Use new function.
5807 (riscv_return_value): Likewise.
5808
5ab2fbf1
SM
58092020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5810
5811 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5812 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5813 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5814 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5815 * infrun.c (follow_fork): Likewise.
5816 (follow_fork_inferior): Likewise.
5817 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5818 * linux-nat.h (class linux_nat_target): Likewise.
5819 * remote.c (class remote_target) <follow_fork>: Likewise.
5820 (remote_target::follow_fork): Likewise.
5821 * target-delegates.c: Re-generate.
5822 * target.c (default_follow_fork): Likewise.
5823 (target_follow_fork): Likewise.
5824 * target.h (struct target_ops) <follow_fork>: Likewise.
5825 (target_follow_fork): Likewise.
5826
a64fafb5
TV
58272020-03-24 Tom de Vries <tdevries@suse.de>
5828
5829 * psymtab.c (maintenance_info_psymtabs): Print user field.
5830
fe26d3a3
TT
58312020-03-20 Tom Tromey <tromey@adacore.com>
5832
5833 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5834 const.
5835 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5836 const.
5837
c884cc46
SM
58382020-03-20 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * ptrace.m4: Don't check for ptrace declaration.
5841 * config.in: Re-generate.
5842 * configure: Re-generate.
5843 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5844 not defined.
5845
1ff700c2
KR
58462020-03-20 Kamil Rytarowski <n54@gmx.com>
5847
5848 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5849 `PTRACE_TYPE_RET'.
5850 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5851 * sparc-nat.c (gdb_ptrace): Likewise.
5852 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5853
f7d4f0b1
TT
58542020-03-20 Tom Tromey <tromey@adacore.com>
5855
5856 * c-exp.y (lex_one_token): Fix assert.
5857
f67210ff
TT
58582020-03-20 Tom Tromey <tromey@adacore.com>
5859
5860 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5861 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5862 strncpy call.
5863
1773be9e
TT
58642020-03-20 Tom Tromey <tromey@adacore.com>
5865
5866 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5867
70304be9
TT
58682020-03-20 Tom Tromey <tromey@adacore.com>
5869
5870 * ada-valprint.c (print_variant_part): Remove parameters; switch
5871 to value-based API.
5872 (print_field_values): Likewise.
5873 (ada_val_print_struct_union): Likewise.
5874 (ada_value_print_1): Update.
5875
9faa006d
KR
58762020-03-20 Kamil Rytarowski <n54@gmx.com>
5877
5878 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5879 nbsd_nat_target instead of inf_ptrace_target.
5880 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5881 nbsd_nat_target.
5882
4a90f062
KR
58832020-03-20 Kamil Rytarowski <n54@gmx.com>
5884
5885 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5886 it to the ptrace call.
5887 * (store_registers): Likewise.
5888
58892020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5890
5891 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5892 it to the ptrace call.
5893 * (store_registers): Likewise.
5894
2d07da27
LM
58952020-03-19 Luis Machado <luis.machado@linaro.org>
5896
5897 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5898 valid, fetch vg value from ptrace.
5899
f09db380
KR
59002020-03-19 Kamil Rytarowski <n54@gmx.com>
5901 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5902 * inf-ptrace.c: Likewise.
5903 * (gdb_ptrace): Add.
5904 * (inf_ptrace_target::resume): Update.
5905 * (inf_ptrace_target::xfer_partial): Likewise.
5906 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5907 * (inf_ptrace_peek_poke): Update.
5908
fcc7376e
KR
59092020-03-19 Kamil Rytarowski <n54@gmx.com>
5910
5911 * x86-bsd-nat.c (gdb_ptrace): New.
5912 * (x86bsd_dr_set): Add new argument `ptid'.
5913 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5914 x86bsd_dr_set_addr): Update.
5915
cada5fc9
AB
59162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5917
5918 * remote.c (remote_target::process_stop_reply): Handle events for
5919 all threads differently.
5920
19a2740f
AB
59212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5922
5923 * completer.c (completion_tracker::remove_completion): Define new
5924 function.
5925 * completer.h (completion_tracker::remove_completion): Declare new
5926 function.
5927 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5928 when adding a C++ function symbol.
5929
724fd9ba
AB
59302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * completer.c (completion_tracker::completion_hash_entry): Define
5933 new class.
5934 (advance_to_filename_complete_word_point): Call
5935 recompute_lowest_common_denominator.
5936 (completion_tracker::completion_tracker): Call discard_completions
5937 to setup the hash table.
5938 (completion_tracker::discard_completions): Allow for being called
5939 from the constructor, pass new equal function, and element deleter
5940 when constructing the hash table. Initialise new class member
5941 variables.
5942 (completion_tracker::maybe_add_completion): Remove use of
5943 m_entries_vec, and store more information into m_entries_hash.
5944 (completion_tracker::recompute_lcd_visitor): New function, most
5945 content taken from...
5946 (completion_tracker::recompute_lowest_common_denominator):
5947 ...here, this now just visits each item in the hash calling the
5948 above visitor.
5949 (completion_tracker::build_completion_result): Remove use of
5950 m_entries_vec, call recompute_lowest_common_denominator.
5951 * completer.h (completion_tracker::have_completions): Remove use
5952 of m_entries_vec.
5953 (completion_tracker::completion_hash_entry): Declare new class.
5954 (completion_tracker::recompute_lowest_common_denominator): Change
5955 function signature.
5956 (completion_tracker::recompute_lcd_visitor): Declare new function.
5957 (completion_tracker::m_entries_vec): Delete.
5958 (completion_tracker::m_entries_hash): Initialize to NULL.
5959 (completion_tracker::m_lowest_common_denominator_valid): New
5960 member variable.
5961 (completion_tracker::m_lowest_common_denominator_max_length): New
5962 member variable.
5963
5a82b8a1
KR
59642020-03-17 Kamil Rytarowski <n54@gmx.com>
5965
5966 * regformats/regdef.h: Put reg in gdb namespace.
5967
fb516a69
KR
59682020-03-17 Kamil Rytarowski <n54@gmx.com>
5969
5970 * i386-bsd-nat.c (gdb_ptrace): New.
5971 * (i386bsd_fetch_inferior_registers,
5972 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5973 * (i386bsd_fetch_inferior_registers,
5974 i386bsd_store_inferior_registers) Use gdb_ptrace.
5975
1c0aa1fb
KR
59762020-03-17 Kamil Rytarowski <n54@gmx.com>
5977
5978 * amd64-bsd-nat.c (gdb_ptrace): New.
5979 * (amd64bsd_fetch_inferior_registers,
5980 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5981 * (amd64bsd_fetch_inferior_registers,
5982 amd64bsd_store_inferior_registers) Use gdb_ptrace.
5983
5ccd2fb7
KR
59842020-03-17 Kamil Rytarowski <n54@gmx.com>
5985
5986 * user-regs.c (user_reg::read): Rename to...
5987 (user_reg::xread): ...this.
5988 * (append_user_reg): Rename argument `read' to `xread'.
5989 * (user_reg_add_builtin): Likewise.
5990 * (user_reg_add): Likewise.
5991 * (value_of_user_reg): Likewise.
5992
2108a63a
KR
59932020-03-17 Kamil Rytarowski <n54@gmx.com>
5994
5995 * sparc-nat.c (gdb_ptrace): New.
5996 * sparc-nat.c (sparc_fetch_inferior_registers)
5997 (sparc_store_inferior_registers) Remove obsolete comment.
5998 * sparc-nat.c (sparc_fetch_inferior_registers)
5999 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6000 * sparc-nat.c (sparc_fetch_inferior_registers)
6001 (sparc_store_inferior_registers) Use gdb_ptrace.
6002
a225c9a8
KR
60032020-03-17 Kamil Rytarowski <n54@gmx.com>
6004
6005 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6006 it to the ptrace call.
6007 * sh-nbsd-nat.c (store_registers): Likewise.
6008
98097623
KR
60092020-03-17 Kamil Rytarowski <n54@gmx.com>
6010
6011 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6012 nbsd_nat_target instead of inf_ptrace_target.
6013 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6014 nbsd_nat_target.
6015
9e38d619
KR
60162020-03-17 Kamil Rytarowski <n54@gmx.com>
6017
6018 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6019
a2ecbe9f
KR
60202020-03-17 Kamil Rytarowski <n54@gmx.com>
6021
6022 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6023 <sys/sysctl.h>.
6024 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6025
58990295
TV
60262020-03-17 Tom de Vries <tdevries@suse.de>
6027
6028 PR gdb/23710
6029 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6030 fields.
6031 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6032 fields.
6033 (process_imported_unit_die): Skip import of c++ CUs.
6034
771dd3a8
TT
60352020-03-16 Tom Tromey <tom@tromey.com>
6036
6037 * p-valprint.c (pascal_object_print_value): Initialize
6038 base_value.
6039
817a7585
AK
60402020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6041 Shahab Vahedi <shahab@synopsys.com>
6042
6043 * Makefile.in: Add arch/arc.o
6044 * configure.tgt: Likewise.
6045 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6046 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6047 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6048 * arc-tdep.h (arc_read_description): Add proto type.
6049 * arch/arc.c: New file.
6050 * arch/arc.h: Likewise.
6051 * features/Makefile: Replace old target descriptions with new.
6052 * features/arc-arcompact.c: Remove.
6053 * features/arc-arcompact.xml: Likewise.
6054 * features/arc-v2.c: Likewise
6055 * features/arc-v2.xml: Likewise
6056 * features/arc/aux-arcompact.xml: New file.
6057 * features/arc/aux-v2.xml: Likewise.
6058 * features/arc/core-arcompact.xml: Likewise.
6059 * features/arc/core-v2.xml: Likewise.
6060 * features/arc/aux-arcompact.c: Generate.
6061 * features/arc/aux-v2.c: Likewise.
6062 * features/arc/core-arcompact.c: Likewise.
6063 * features/arc/core-v2.c: Likewise.
6064 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6065
67430cd0
TT
60662020-03-16 Tom Tromey <tromey@adacore.com>
6067
6068 PR gdb/25663:
6069 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6070 putting value into bcache.
6071
30efb6c7
SM
60722020-03-16 Simon Marchi <simon.marchi@efficios.com>
6073
6074 PR gdb/21500
6075 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6076 to...
6077 (amd64_windows_init_abi_common): ... this. Don't set size of
6078 long type.
6079 (amd64_windows_init_abi): New function.
6080 (amd64_cygwin_init_abi): New function.
6081 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6082 the Cygwin OS ABI.
6083 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6084 comment.
6085
8db52437
SM
60862020-03-16 Simon Marchi <simon.marchi@efficios.com>
6087
6088 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6089 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6090 (pe_import_directory_entry): New struct type.
6091 (is_linked_with_cygwin_dll): New function.
6092 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6093 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6094 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6095
5982a56a
SM
60962020-03-16 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6099 i386_cygwin_core_osabi_sniffer.
6100
7a1998df
SM
61012020-03-16 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * i386-cygwin-tdep.c: Rename to...
6104 * i386-windows-tdep.c: ... this.
6105 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6106 i386-windows-tdep.c.
6107 * configure.tgt: Likewise.
6108
053205cc
SM
61092020-03-16 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6112 * osabi.c (gdb_osabi_names): Add "Windows".
6113 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6114 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6115 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6116 i386_cygwin_osabi_sniffer.
6117 (_initialize_i386_cygwin_tdep): Register OS ABI
6118 GDB_OSABI_WINDOWS for i386.
6119 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6120 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6121 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6122 for x86-64.
6123 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6124 when the target matches '*-*-mingw*'.
6125
fe4b2ee6
SM
61262020-03-16 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * defs.h (enum gdb_osabi): Move to...
6129 * osabi.h (enum gdb_osabi): ... here.
6130 * gdbarch.sh: Include osabi.h in gdbarch.h.
6131 * gdbarch.h: Re-generate.
6132
cb9b645d
SM
61332020-03-16 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6136 function.
6137 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6138
3293bbaf
TT
61392020-03-14 Tom Tromey <tom@tromey.com>
6140
6141 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6142 for C++.
6143 (c_type_print_modifier): Likewise. Add "language" parameter.
6144 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6145 (c_type_print_base_1): Update.
6146 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6147 constants.
6148 * type-stack.c (type_stack::insert): Handle tp_atomic and
6149 tp_restrict.
6150 (type_stack::follow_type_instance_flags): Likewise.
6151 (type_stack::follow_types): Likewise. Merge type-following code.
6152 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6153 (space_identifier, cv_with_space_id)
6154 (const_or_volatile_or_space_identifier_noopt)
6155 (const_or_volatile_or_space_identifier): Remove.
6156 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6157 rules.
6158 (ptr_operator, typebase): Update.
6159 (enum token_flag) <FLAG_C>: New constant.
6160 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6161 "_Atomic".
6162 (lex_one_token): Handle FLAG_C.
6163
154151a6
KR
61642020-03-14 Kamil Rytarowski <n54@gmx.com>
6165
6166 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6167 it to the ptrace call.
6168 * m68k-bsd-nat.c (store_registers): Likewise.
6169
bc107784
KR
61702020-03-14 Kamil Rytarowski <n54@gmx.com>
6171
6172 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6173 gdb_byte *.
6174 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6175 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6176 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6177
01a80117
KR
61782020-03-14 Kamil Rytarowski <n54@gmx.com>
6179
6180 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6181 nbsd_nat_target instead of inf_ptrace_target.
6182 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6183 nbsd_nat_target.
6184
f90280ca
KR
61852020-03-14 Kamil Rytarowski <n54@gmx.com>
6186
6187 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6188 register_t.
6189
6def66f1
KR
61902020-03-14 Kamil Rytarowski <n54@gmx.com>
6191
6192 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6193 it to the ptrace call.
6194 * alpha-bsd-nat.c (store_registers): Likewise.
6195
66eaca97
KR
61962020-03-14 Kamil Rytarowski <n54@gmx.com>
6197
6198 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6199 includes.
6200 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6201 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6202 fill_fpregset): Likewise.
6203
4fed520b
KR
62042020-03-14 Kamil Rytarowski <n54@gmx.com>
6205
6206 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6207 nbsd_nat_target instead of inf_ptrace_target.
6208 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6209 nbsd_nat_target.
6210
2190cf06
KR
62112020-03-14 Kamil Rytarowski <n54@gmx.com>
6212
6213 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6214 register_t.
6215
75c56d3d
KR
62162020-03-14 Kamil Rytarowski <n54@gmx.com>
6217
6218 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6219 it to the ptrace call.
6220 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6221 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6222 * arm-nbsd-nat.c (store_register): Likewise.
6223 * arm-nbsd-nat.c (store_regs): Likewise.
6224 * arm-nbsd-nat.c (store_fp_register): Likewise.
6225 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6226
6018d381
KR
62272020-03-14 Kamil Rytarowski <n54@gmx.com>
6228
6229 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6230 nbsd_nat_target instead of inf_ptrace_target.
6231 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6232 nbsd_nat_target.
6233
013f99f0
KR
62342020-03-14 Kamil Rytarowski <n54@gmx.com>
6235
6236 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6237 it to the ptrace call.
6238 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6239
12753073
KR
62402020-03-14 Kamil Rytarowski <n54@gmx.com>
6241
6227b330
KR
6242 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6243 it to the ptrace call.
6244 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6245
62462020-03-14 Kamil Rytarowski <n54@gmx.com>
6247
6248 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6249 gdb_byte *.
12753073
KR
6250 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6251
d5be5fa4
KR
62522020-03-14 Kamil Rytarowski <n54@gmx.com>
6253
6254 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6255 instead of inf_ptrace_target.
6256 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6257 nbsd_nat_target.
6258
8110f842
KR
62592020-03-14 Kamil Rytarowski <n54@gmx.com>
6260
6261 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6262 register_t.
6263
52feded7
KR
62642020-03-14 Kamil Rytarowski <n54@gmx.com>
6265
6266 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6267 register_t.
6268
25567eee
KR
62692020-03-14 Kamil Rytarowski <n54@gmx.com>
6270
6271 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6272 register_t.
6273
426a9c18
TT
62742020-03-13 Tom Tromey <tom@tromey.com>
6275
6276 * value.h (val_print): Don't declare.
6277 * valprint.h (val_print_array_elements)
6278 (val_print_scalar_formatted, generic_val_print): Don't declare.
6279 * valprint.c (generic_val_print_array): Take a struct value.
6280 (generic_val_print_ptr, generic_val_print_memberptr)
6281 (generic_val_print_bool, generic_val_print_int)
6282 (generic_val_print_char, generic_val_print_complex)
6283 (generic_val_print): Remove.
6284 (generic_value_print): Update.
6285 (do_val_print): Remove unused parameters. Don't call
6286 la_val_print.
6287 (val_print): Remove.
6288 (common_val_print): Update. Don't call value_check_printable.
6289 (val_print_scalar_formatted, val_print_array_elements): Remove.
6290 * rust-lang.c (rust_val_print): Remove.
6291 (rust_language_defn): Update.
6292 * p-valprint.c (pascal_val_print): Remove.
6293 (pascal_value_print_inner): Update.
6294 (pascal_object_print_val_fields, pascal_object_print_val):
6295 Remove.
6296 (pascal_object_print_static_field): Update.
6297 * p-lang.h (pascal_val_print): Don't declare.
6298 * p-lang.c (pascal_language_defn): Update.
6299 * opencl-lang.c (opencl_language_defn): Update.
6300 * objc-lang.c (objc_language_defn): Update.
6301 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6302 * m2-lang.h (m2_val_print): Don't declare.
6303 * m2-lang.c (m2_language_defn): Update.
6304 * language.h (struct language_defn) <la_val_print>: Remove.
6305 * language.c (unk_lang_value_print_inner): Rename. Change
6306 argument types.
6307 (unknown_language_defn, auto_language_defn): Update.
6308 * go-valprint.c (go_val_print): Remove.
6309 * go-lang.h (go_val_print): Don't declare.
6310 * go-lang.c (go_language_defn): Update.
6311 * f-valprint.c (f_val_print): Remove.
6312 * f-lang.h (f_value_print): Don't declare.
6313 * f-lang.c (f_language_defn): Update.
6314 * d-valprint.c (d_val_print): Remove.
6315 * d-lang.h (d_value_print): Don't declare.
6316 * d-lang.c (d_language_defn): Update.
6317 * cp-valprint.c (cp_print_value_fields)
6318 (cp_print_value_fields_rtti, cp_print_value): Remove.
6319 (cp_print_static_field): Update.
6320 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6321 (c_val_print_struct, c_val_print_union, c_val_print_int)
6322 (c_val_print_memberptr, c_val_print): Remove.
6323 * c-lang.h (c_val_print_array, cp_print_value_fields)
6324 (cp_print_value_fields_rtti): Don't declare.
6325 * c-lang.c (c_language_defn, cplus_language_defn)
6326 (asm_language_defn, minimal_language_defn): Update.
6327 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6328 (ada_val_print_enum): Take a struct value.
6329 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6330 (ada_val_print): Remove.
6331 (ada_value_print_1): Update.
6332 (printable_val_type): Remove.
6333 * ada-lang.h (ada_val_print): Don't declare.
6334 * ada-lang.c (ada_language_defn): Update.
6335
42331a1e
TT
63362020-03-13 Tom Tromey <tom@tromey.com>
6337
6338 * valprint.c (do_val_print): Update.
6339 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6340 a struct value.
6341 (value_to_value_object_no_release): Declare.
6342 * python/py-value.c (value_to_value_object_no_release): New
6343 function.
6344 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6345 struct value.
6346 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6347 function.
6348 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6349 a struct value.
6350 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6351 Declare.
6352 (gdbscm_apply_val_pretty_printer): Take a struct value.
6353 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6354 value.
6355 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6356 value.
6357 * extension-priv.h (struct extension_language_ops)
6358 <apply_val_pretty_printer>: Take a struct value.
6359 * cp-valprint.c (cp_print_value): Create a struct value.
6360 (cp_print_value): Update.
6361
3a916a97
TT
63622020-03-13 Tom Tromey <tom@tromey.com>
6363
6364 * ada-valprint.c (print_field_values): Call common_val_print.
6365
b59eac37
TT
63662020-03-13 Tom Tromey <tom@tromey.com>
6367
6368 * ada-valprint.c (val_print_packed_array_elements): Remove
6369 bitoffset and val parameters. Call common_val_print.
6370 (ada_val_print_string): Remove offset, address, and original_value
6371 parameters.
6372 (ada_val_print_array): Update.
6373 (ada_value_print_array): New function.
6374 (ada_value_print_1): Call it.
6375
03371129
TT
63762020-03-13 Tom Tromey <tom@tromey.com>
6377
6378 * ada-valprint.c (ada_value_print): Use common_val_print.
6379
2e088f8b
TT
63802020-03-13 Tom Tromey <tom@tromey.com>
6381
6382 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6383
39ef85a8
TT
63842020-03-13 Tom Tromey <tom@tromey.com>
6385
6386 * ada-valprint.c (ada_value_print_num): New function.
6387 (ada_value_print_1): Use it.
6388
b9fa6e07
TT
63892020-03-13 Tom Tromey <tom@tromey.com>
6390
6391 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6392
416595d6
TT
63932020-03-13 Tom Tromey <tom@tromey.com>
6394
6395 * ada-valprint.c (ada_value_print_ptr): New function.
6396 (ada_value_print_1): Use it.
6397
5b5e15ec
TT
63982020-03-13 Tom Tromey <tom@tromey.com>
6399
6400 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6401 call common_val_print.
6402 (ada_val_print_1): Update.
6403 (ada_value_print_1): New function.
6404 (ada_value_print_inner): Rewrite.
6405
fbf54e75
TT
64062020-03-13 Tom Tromey <tom@tromey.com>
6407
6408 * cp-valprint.c (cp_print_value_fields): Update.
6409 (cp_print_value): New function.
6410
64b653ca
TT
64112020-03-13 Tom Tromey <tom@tromey.com>
6412
6413 * m2-valprint.c (m2_value_print_inner): Use
6414 cp_print_value_fields.
6415 * cp-valprint.c (cp_print_value_fields): New function.
6416 * c-valprint.c (c_value_print_struct): New function.
6417 (c_value_print_inner): Use c_value_print_struct.
6418 * c-lang.h (cp_print_value_fields): Declare.
6419
6999f067
TT
64202020-03-13 Tom Tromey <tom@tromey.com>
6421
6422 * c-valprint.c (c_value_print_array): New function.
6423 (c_value_print_inner): Use it.
6424
ce80b8bd
TT
64252020-03-13 Tom Tromey <tom@tromey.com>
6426
6427 * c-valprint.c (c_value_print_memberptr): New function.
6428 (c_value_print_inner): Use it.
6429
2faac269
TT
64302020-03-13 Tom Tromey <tom@tromey.com>
6431
6432 * c-valprint.c (c_value_print_int): New function.
6433 (c_value_print_inner): Use it.
6434
da3e2c29
TT
64352020-03-13 Tom Tromey <tom@tromey.com>
6436
6437 * c-valprint.c (c_value_print_ptr): New function.
6438 (c_value_print_inner): Use it.
6439
50836231
TT
64402020-03-13 Tom Tromey <tom@tromey.com>
6441
6442 * c-valprint.c (c_value_print_inner): Rewrite.
6443
4f412b6e
TT
64442020-03-13 Tom Tromey <tom@tromey.com>
6445
6446 * valprint.c (generic_value_print_complex): New function.
6447 (generic_value_print): Use it.
6448
f5354008
TT
64492020-03-13 Tom Tromey <tom@tromey.com>
6450
6451 * valprint.c (generic_val_print_float): Don't call
6452 val_print_scalar_formatted.
6453 (generic_val_print, generic_value_print): Update.
6454
3eec3b05
TT
64552020-03-13 Tom Tromey <tom@tromey.com>
6456
6457 * valprint.c (generic_value_print_char): New function
6458 (generic_value_print): Use it.
6459
fdddfccb
TT
64602020-03-13 Tom Tromey <tom@tromey.com>
6461
6462 * valprint.c (generic_value_print_int): New function.
6463 (generic_value_print): Use it.
6464
6dde7521
TT
64652020-03-13 Tom Tromey <tom@tromey.com>
6466
6467 * valprint.c (generic_value_print_bool): New function.
6468 (generic_value_print): Use it.
6469
4112d2e6
TT
64702020-03-13 Tom Tromey <tom@tromey.com>
6471
6472 * valprint.c (generic_val_print_func): Simplify.
6473 (generic_val_print, generic_value_print): Update.
6474
65786af6
TT
64752020-03-13 Tom Tromey <tom@tromey.com>
6476
6477 * valprint.c (generic_val_print_flags): Remove.
6478 (generic_val_print, generic_value_print): Update.
6479 (val_print_type_code_flags): Add original_value parameter.
6480
40f3ce18
TT
64812020-03-13 Tom Tromey <tom@tromey.com>
6482
6483 * valprint.c (generic_val_print): Update.
6484 (generic_value_print): Update.
6485 * valprint.c (generic_val_print_enum): Don't call
6486 val_print_scalar_formatted.
6487
2a5b130b
TT
64882020-03-13 Tom Tromey <tom@tromey.com>
6489
6490 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6491 * valprint.c (generic_value_print_ptr): New function.
6492
abc66ce9
TT
64932020-03-13 Tom Tromey <tom@tromey.com>
6494
6495 * valprint.c (generic_value_print): Rewrite.
6496
07a32858
TT
64972020-03-13 Tom Tromey <tom@tromey.com>
6498
6499 * p-valprint.c (pascal_object_print_value_fields)
6500 (pascal_object_print_value): New functions.
6501
64d64d3a
TT
65022020-03-13 Tom Tromey <tom@tromey.com>
6503
6504 * p-valprint.c (pascal_value_print_inner): Rewrite.
6505
6a95a1f5
TT
65062020-03-13 Tom Tromey <tom@tromey.com>
6507
6508 * f-valprint.c (f_value_print_innner): Rewrite.
6509
59fcdac6
TT
65102020-03-13 Tom Tromey <tom@tromey.com>
6511
6512 * m2-valprint.c (m2_print_unbounded_array): New overload.
6513 (m2_print_unbounded_array): Update.
6514 (m2_print_array_contents): Take a struct value.
6515 (m2_value_print_inner): Rewrite.
6516
d133c3e1
TT
65172020-03-13 Tom Tromey <tom@tromey.com>
6518
6519 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6520 (d_value_print_inner): New function.
6521 * d-lang.h (d_value_print_inner): Declare.
6522 * d-lang.c (d_language_defn): Use d_value_print_inner.
6523
23b0f06b
TT
65242020-03-13 Tom Tromey <tom@tromey.com>
6525
6526 * go-valprint.c (go_value_print_inner): New function.
6527 * go-lang.h (go_value_print_inner): Declare.
6528 * go-lang.c (go_language_defn): Use go_value_print_inner.
6529
5f56f7cb
TT
65302020-03-13 Tom Tromey <tom@tromey.com>
6531
6532 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6533 API.
6534 (rust_val_print): Rewrite.
6535 (rust_value_print_inner): New function, from rust_val_print.
6536 (rust_language_defn): Use rust_value_print_inner.
6537
26792ee0
TT
65382020-03-13 Tom Tromey <tom@tromey.com>
6539
6540 * ada-valprint.c (ada_value_print_inner): New function.
6541 * ada-lang.h (ada_value_print_inner): Declare.
6542 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6543
24051bbe
TT
65442020-03-13 Tom Tromey <tom@tromey.com>
6545
6546 * f-valprint.c (f_value_print_innner): New function.
6547 * f-lang.h (f_value_print_innner): Declare.
6548 * f-lang.c (f_language_defn): Use f_value_print_innner.
6549
c0941be6
TT
65502020-03-13 Tom Tromey <tom@tromey.com>
6551
6552 * p-valprint.c (pascal_value_print_inner): New function.
6553 * p-lang.h (pascal_value_print_inner): Declare.
6554 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6555
62c4663d
TT
65562020-03-13 Tom Tromey <tom@tromey.com>
6557
6558 * m2-valprint.c (m2_value_print_inner): New function.
6559 * m2-lang.h (m2_value_print_inner): Declare.
6560 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6561
62182190
TT
65622020-03-13 Tom Tromey <tom@tromey.com>
6563
6564 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6565 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6566 * c-valprint.c (c_value_print_inner): New function.
6567 * c-lang.h (c_value_print_inner): Declare.
6568 * c-lang.c (c_language_defn, cplus_language_defn)
6569 (asm_language_defn, minimal_language_defn): Use
6570 c_value_print_inner.
6571
1e592a8a
TT
65722020-03-13 Tom Tromey <tom@tromey.com>
6573
6574 * p-valprint.c (pascal_object_print_value_fields): Now static.
6575 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6576
7fe471e9
TT
65772020-03-13 Tom Tromey <tom@tromey.com>
6578
6579 * c-valprint.c (c_val_print_array): Simplify.
6580
d121c6ce
TT
65812020-03-13 Tom Tromey <tom@tromey.com>
6582
6583 * valprint.c (value_print_array_elements): New function.
6584 * valprint.h (value_print_array_elements): Declare.
6585
4dba70ee
TT
65862020-03-13 Tom Tromey <tom@tromey.com>
6587
6588 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6589 * mips-tdep.c (mips_print_register): Use
6590 value_print_scalar_formatted.
6591
4f9ae810
TT
65922020-03-13 Tom Tromey <tom@tromey.com>
6593
6594 * valprint.h (value_print_scalar_formatted): Declare.
6595 * valprint.c (value_print_scalar_formatted): New function.
6596
156bfec9
TT
65972020-03-13 Tom Tromey <tom@tromey.com>
6598
6599 * valprint.h (generic_value_print): Declare.
6600 * valprint.c (generic_value_print): New function.
6601
2b4e573d
TT
66022020-03-13 Tom Tromey <tom@tromey.com>
6603
6604 * valprint.c (do_val_print): Call la_value_print_inner, if
6605 available.
6606 * rust-lang.c (rust_language_defn): Update.
6607 * p-lang.c (pascal_language_defn): Update.
6608 * opencl-lang.c (opencl_language_defn): Update.
6609 * objc-lang.c (objc_language_defn): Update.
6610 * m2-lang.c (m2_language_defn): Update.
6611 * language.h (struct language_defn) <la_value_print_inner>: New
6612 member.
6613 * language.c (unknown_language_defn, auto_language_defn): Update.
6614 * go-lang.c (go_language_defn): Update.
6615 * f-lang.c (f_language_defn): Update.
6616 * d-lang.c (d_language_defn): Update.
6617 * c-lang.c (c_language_defn, cplus_language_defn)
6618 (asm_language_defn, minimal_language_defn): Update.
6619 * ada-lang.c (ada_language_defn): Update.
6620
a1f6a07c
TT
66212020-03-13 Tom Tromey <tom@tromey.com>
6622
6623 * c-valprint.c (c_value_print): Use common_val_print.
6624
410cf315
TT
66252020-03-13 Tom Tromey <tom@tromey.com>
6626
6627 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6628
72a45c93
TT
66292020-03-13 Tom Tromey <tom@tromey.com>
6630
6631 * f-valprint.c (f77_print_array_1, f_val_print): Use
6632 common_val_print.
6633
040f66bd
TT
66342020-03-13 Tom Tromey <tom@tromey.com>
6635
6636 * riscv-tdep.c (riscv_print_one_register_info): Use
6637 common_val_print.
6638
a6e05a6c
TT
66392020-03-13 Tom Tromey <tom@tromey.com>
6640
6641 * mi/mi-main.c (output_register): Use common_val_print.
6642
3444c526
TT
66432020-03-13 Tom Tromey <tom@tromey.com>
6644
6645 * infcmd.c (default_print_one_register_info): Use
6646 common_val_print.
6647
c2a44efe
TT
66482020-03-13 Tom Tromey <tom@tromey.com>
6649
6650 * valprint.h (common_val_print_checked): Declare.
6651 * valprint.c (common_val_print_checked): New function.
6652 * stack.c (print_frame_arg): Use common_val_print_checked.
6653
b0c26e99
TT
66542020-03-13 Tom Tromey <tom@tromey.com>
6655
6656 * valprint.c (do_val_print): New function, from val_print.
6657 (val_print): Use do_val_print.
6658 (common_val_print): Use do_val_print.
6659
ce3acbe9
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * valprint.c (value_print): Use scoped_value_mark.
6663
96c7f873
TV
66642020-03-13 Tom de Vries <tdevries@suse.de>
6665
6666 PR symtab/25646
6667 * psymtab.c (partial_symtab::partial_symtab): Don't set
6668 globals_offset and statics_offset. Push element onto
6669 current_global_psymbols and current_static_psymbols stacks.
6670 (concat): New function.
6671 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6672 element from current_global_psymbols and current_static_psymbols
6673 stacks. Concat popped elements to global_psymbols and
6674 static_symbols.
6675 (add_psymbol_to_list): Use current_global_psymbols and
6676 current_static_psymbols stacks.
6677 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6678 current_static_psymbols fields.
6679
6ba0a321
CB
66802020-03-12 Christian Biesinger <cbiesinger@google.com>
6681
6682 * corelow.c (sniff_core_bfd): Remove.
6683 (class core_target) <m_core_vec>: Remove.
6684 (core_target::core_target): Update.
6685 (core_file_fns): Remove.
6686 (deprecated_add_core_fns): Remove.
6687 (default_core_sniffer): Remove.
6688 (sniff_core_bfd): Remove.
6689 (default_check_format): Remove.
6690 (gdb_check_format): Remove.
6691 (core_target_open): Update.
6692 (core_target::get_core_register_section): Update.
6693 (get_core_registers_cb): Update.
6694 (core_target::fetch_registers): Update.
6695 * gdbcore.h (struct core_fns): Remove.
6696 (deprecated_add_core_fns): Remove.
6697 (default_core_sniffer): Remove.
6698 (default_check_format): Remove.
6699
227031b2
TT
67002020-03-12 Tom Tromey <tom@tromey.com>
6701
6702 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6703 CORE_ADDR.
6704 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6705
53807e9f
TT
67062020-03-12 Tom Tromey <tom@tromey.com>
6707
6708 * remote.c (remote_target::download_tracepoint)
6709 (remote_target::enable_tracepoint)
6710 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6711 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6712 sprintf_vma.
6713
64f25102
TT
67142020-03-12 Tom Tromey <tom@tromey.com>
6715
6716 * symfile-mem.c: Update CORE_ADDR size assert.
6717
272cd5a3
SM
67182020-03-12 Simon Marchi <simon.marchi@efficios.com>
6719
6720 * selftest.m4: Move to gdbsupport/.
6721 * acinclude.m4: Update path to selftest.m4.
6722
74cd3f9d
SM
67232020-03-12 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6726 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6727 gdbarch-selfselftests.c and selftest-arch.c.
6728 (SUBDIR_UNITTESTS_OBS): Rename to...
6729 (SELFTESTS_OBS): ... this.
6730 (COMMON_SFILES): Remove disasm-selftests.c and
6731 gdbarch-selftests.c.
6732 * configure.ac: Don't add selftest-arch.{c,o} to
6733 CONFIG_{SRCS,OBS}.
6734 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6735 preprocessor conditions.
6736
db6878ac
SM
67372020-03-12 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * configure.ac: Don't source bfd/development.sh.
6740 * selftest.m4: Modify comment.
6741 * configure: Re-generate.
6742
4d696a5c
SM
67432020-03-12 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6746 not "true" or "false".
6747 * configure: Re-generate.
6748
8dd8e1c7
CB
67492020-03-12 Christian Biesinger <cbiesinger@google.com>
6750
6751 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6752 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6753 renamed to arm_nbsd_supply_gregset.
6754 (fetch_register): Update to call arm_nbsd_supply_gregset.
6755 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6756 (arm_netbsd_nat_target::fetch_registers): Update.
6757 (fetch_elfcore_registers): Removed.
6758 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6759 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6760 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6761 not require NetBSD system headers.
6762 (arm_nbsd_regset): New struct.
6763 (arm_nbsd_iterate_over_regset_sections): New function.
6764 (arm_netbsd_init_abi_common): Updated to call
6765 set_gdbarch_iterate_over_regset_sections.
6766 * arm-nbsd-tdep.h: New file.
6767
dd69bf7a
KB
67682020-03-11 Kevin Buettner <kevinb@redhat.com>
6769
6770 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6771 recursion.
6772
a0761e34
SM
67732020-03-11 Simon Marchi <simon.marchi@efficios.com>
6774
6775 * configure: Re-generate.
6776
e7a82140
TT
67772020-03-11 Tom Tromey <tromey@adacore.com>
6778
6779 * ada-typeprint.c (print_choices): Fix comment.
6780
dcc050c8
AB
67812020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6782
6783 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6784 previous item in the list, when the list has no items.
6785
1c33af77
TV
67862020-03-11 Tom de Vries <tdevries@suse.de>
6787
6788 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6789 PROP_LOCLIST handling code.
6790
8c95582d
AB
67912020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * buildsym-legacy.c (record_line): Pass extra parameter to
6794 record_line.
6795 * buildsym.c (buildsym_compunit::record_line): Take an extra
6796 parameter, reduce duplication in the line table, and record the
6797 is_stmt flag in the line table.
6798 * buildsym.h (buildsym_compunit::record_line): Add extra
6799 parameter.
6800 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6801 non-statement lines.
6802 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6803 this to the symtab builder.
6804 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6805 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6806 through to dwarf_record_line_1.
6807 * infrun.c (process_event_stop_test): When stepping, don't stop at
6808 a non-statement instruction, and only refresh the step info when
6809 we land in the middle of a line's range. Also add an extra
6810 comment.
6811 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6812 field.
6813 * record-btrace.c (btrace_find_line_range): Only record lines
6814 marked as is-statement.
6815 * stack.c (frame_show_address): Show the frame address if we are
6816 in a non-statement sal.
6817 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6818 (maintenance_print_one_line_table): Print a header for the is_stmt
6819 column, and include is_stmt information in the output.
6820 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6821 preference to non-statements.
6822 (find_pcs_for_symtab_line): Prefer is-statement entries.
6823 (find_line_common): Likewise.
6824 * symtab.h (struct linetable_entry): Add is_stmt field.
6825 (struct symtab_and_line): Likewise.
6826 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6827 arranging the line table.
6828
e4003a34
TV
68292020-03-07 Tom de Vries <tdevries@suse.de>
6830
6831 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6832 DIE.
6833
e8932576
TT
68342020-03-07 Tom Tromey <tom@tromey.com>
6835
6836 * valops.c (value_literal_complex): Remove obsolete comment.
6837 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6838 comment.
6839
29734269
SM
68402020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6841
6842 * infrun.h: Forward-declare thread_info.
6843 (set_step_info): Add thread_info parameter, add doc.
6844 * infrun.c (set_step_info): Add thread_info parameter, move doc
6845 to header.
6846 * infrun.c (process_event_stop_test): Pass thread to
6847 set_step_info call.
6848 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6849 set_step_info.
6850 (prepare_one_step): Add thread_info parameter, pass it to
6851 set_step_frame and prepare_one_step (recursive) call.
6852 (step_1): Pass thread to prepare_one_step call.
6853 (step_command_fsm::should_stop): Pass thread to
6854 prepare_one_step.
6855 (until_next_fsm): Pass thread to set_step_frame call.
6856 (finish_command): Pass thread to set_step_info call.
6857
b7d64b29
HD
68582020-03-06 Hannes Domani <ssbssa@yahoo.de>
6859
6860 * windows-tdep.c (windows_solib_create_inferior_hook):
6861 Check if inferior is running.
6862
09f2921c
TV
68632020-03-06 Tom de Vries <tdevries@suse.de>
6864
6865 * NEWS: Fix "the the".
6866 * ctfread.c: Same.
6867
fd760e79
TV
68682020-03-06 Tom de Vries <tdevries@suse.de>
6869
6870 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6871
20ea4a60
AB
68722020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * .dir-locals.el: Add a comment referencing the other copies of
6875 this file.
6876
0afbabf0
JB
68772020-03-05 John Baldwin <jhb@FreeBSD.org>
6878
6879 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6880 psargs.
6881
842806cb
TBA
68822020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6883
6884 * .gitattributes: New file.
6885
be1e3d3e
TT
68862020-03-04 Tom Tromey <tom@tromey.com>
6887
6888 * symmisc.c (print_symbol_bcache_statistics)
6889 (print_objfile_statistics): Update.
6890 * symfile.c (allocate_symtab): Use intern.
6891 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6892 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6893 macro_cache>: Remove.
6894 <string_cache>: New member.
6895 (struct objfile) <intern>: New methods.
6896 * elfread.c (elf_symtab_read): Use intern.
6897 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6898 (dwarf2_compute_name, dwarf2_physname)
6899 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6900 names.
6901 (guess_partial_die_structure_name): Update.
6902 (partial_die_info::fixup): Intern name.
6903 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6904 name.
6905 (dwarf2_name): Intern name. Update.
6906 * buildsym.c (buildsym_compunit::get_macro_table): Use
6907 string_cache.
6908
4e7625fd
TT
69092020-03-04 Tom Tromey <tom@tromey.com>
6910
6911 * jit.c (bfd_open_from_target_memory): Make "target" const.
6912 * corefile.c (gnutarget): Now const.
6913 * gdbcore.h (gnutarget): Now const.
6914
46f9f931
HD
69152020-03-04 Hannes Domani <ssbssa@yahoo.de>
6916
6917 * NEWS: Mention support for WOW64 processes.
6918 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6919 (amd64_windows_segment_register_p): Remove static.
6920 (_initialize_amd64_windows_nat): Update.
6921 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6922 * i386-windows-nat.c (context_offset): Update.
6923 (i386_mappings): Rename and remove static.
6924 (i386_windows_segment_register_p): Remove static.
6925 (_initialize_i386_windows_nat): Update.
6926 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6927 (STATUS_WX86_SINGLE_STEP): New macro.
6928 (EnumProcessModulesEx): New macro.
6929 (Wow64SuspendThread): New macro.
6930 (Wow64GetThreadContext): New macro.
6931 (Wow64SetThreadContext): New macro.
6932 (Wow64GetThreadSelectorEntry): New macro.
6933 (windows_set_context_register_offsets): Add static.
6934 (windows_set_segment_register_p): Likewise.
6935 (windows_add_thread): Adapt for WOW64 processes.
6936 (windows_fetch_one_register): Likewise.
6937 (windows_nat_target::fetch_registers): Likewise.
6938 (windows_store_one_register): Likewise.
6939 (display_selector): Likewise.
6940 (display_selectors): Likewise.
6941 (handle_exception): Likewise.
6942 (windows_continue): Likewise.
6943 (windows_nat_target::resume): Likewise.
6944 (windows_add_all_dlls): Likewise.
6945 (do_initial_windows_stuff): Likewise.
6946 (windows_nat_target::attach): Likewise.
6947 (windows_get_exec_module_filename): Likewise.
6948 (windows_nat_target::create_inferior): Likewise.
6949 (windows_xfer_siginfo): Likewise.
6950 (_initialize_loadable): Initialize Wow64SuspendThread,
6951 Wow64GetThreadContext, Wow64SetThreadContext,
6952 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
6953 * windows-nat.h (windows_set_context_register_offsets):
6954 Remove declaration.
6955 (windows_set_segment_register_p): Likewise.
6956 (i386_windows_segment_register_p): Add declaration.
6957 (amd64_windows_segment_register_p): Likewise.
6958
440cf44e
LM
69592020-03-04 Luis Machado <luis.machado@linaro.org>
6960
6961 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
6962 in "info registers" for AArch64/ARM.
6963
6964 The change caused "info registers" to not print GPR's.
6965
6966 gdb/ChangeLog:
6967
6968 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6969
6970 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6971 when reg->group is empty and reggroup is not.
6972
1009d92f
TT
69732020-03-03 Tom Tromey <tromey@adacore.com>
6974
6975 * dwarf2/frame.c (struct dwarf2_frame_cache)
6976 <checked_tailcall_bottom, entry_cfa_sp_offset,
6977 entry_cfa_sp_offset_p>: Remove members.
6978 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
6979 (dwarf2_frame_prev_register): Don't call
6980 dwarf2_tailcall_sniffer_first.
6981 (dwarf2_append_unwinders): Don't append tailcall unwinder.
6982 * frame-unwind.c (add_unwinder): New fuction.
6983 (frame_unwind_init): Use it. Add tailcall unwinder.
6984
5e5d66b6
AB
69852020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
6986 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6987
6988 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
6989 value should be printed as true.
6990
584cf46d
HD
69912020-03-03 Hannes Domani <ssbssa@yahoo.de>
6992
6993 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
6994 (windows_init_abi): Set and use windows_so_ops.
6995
7b973adc
SDJ
69962020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
6997
6998 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
6999 when verifying if dealing with a convenience variable.
7000
bb7b70ab
LM
70012020-03-03 Luis Machado <luis.machado@linaro.org>
7002
7003 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7004
9822cb57
SM
70052020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7006
7007 * infrun.c (gdbarch_supports_displaced_stepping): New.
7008 (use_displaced_stepping): Break up conditions in smaller pieces.
7009 Use gdbarch_supports_displaced_stepping.
7010 (displaced_step_prepare_throw): Use
7011 gdbarch_supports_displaced_stepping.
7012
63e163f2
AB
70132020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7014
7015 * NEWS: Mention new behaviour of the history filename.
7016 * top.c (write_history_p): Add comment.
7017 (show_write_history_p): Add header comment, give a different
7018 message when history writing is on, but the history filename is
7019 empty.
7020 (history_filename): Add comment.
7021 (history_filename_empty): New function.
7022 (show_history_filename): Add header comment, give a different
7023 message when the filename is empty.
7024 (init_history): Compare history_filename against nullptr, and only
7025 read history if the filename is not empty.
7026 (set_history_filename): Add header comment, and only make
7027 non-empty filenames absolute.
7028 (init_main): Make the filename argument to 'set history filename'
7029 optional.
7030
81b86b97
CB
70312020-03-02 Christian Biesinger <cbiesinger@google.com>
7032
7033 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7034 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7035 (fetch_fp_register): Update.
7036 (fetch_fp_regs): Update.
7037 (store_fp_register): Update.
7038 (store_fp_regs): Update.
7039 (arm_netbsd_nat_target::read_description): New function.
7040 (fetch_elfcore_registers): Update.
7041
24ed6739
AB
70422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7043
7044 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7045 general_thread if the stop reply is missing a thread-id.
7046 (remote_target::process_stop_reply): Use the first non-exited
7047 thread if the target didn't pass a thread-id.
7048 * infrun.c (do_target_wait): Move call to
7049 switch_to_inferior_no_thread to ....
7050 (do_target_wait_1): ... here.
7051
a84bb2a0
JT
70522020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7053
7054 * debuginfod-support.c: Include defs.h first.
7055
658dadf0
TV
70562020-02-28 Tom de Vries <tdevries@suse.de>
7057
7058 * symfile.c (set_initial_language): Use default language for lookup.
7059
4ebe4877
SM
70602020-02-28 Simon Marchi <simon.marchi@efficios.com>
7061
7062 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7063 reader variable, pass `this` to read_cutu_die_from_dwo.
7064
e5da1139
AM
70652020-02-27 Aaron Merey <amerey@redhat.com>
7066
7067 * source.c (open_source_file): Check for nullptr when computing
7068 srcpath.
7069
317f7127
TT
70702020-02-27 Tom Tromey <tromey@adacore.com>
7071
7072 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7073 member.
7074 (dwarf2_add_field): Don't update nfields.
7075 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7076
3104d9ee
AB
70772020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7078
7079 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7080 abs.
7081
b83470bf
TT
70822020-02-26 Tom Tromey <tom@tromey.com>
7083
7084 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7085 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7086 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7087 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7088 per_cu_data.
7089
edfe0a0c
TT
70902020-02-26 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2/index-write.c (psym_index_map): Change type.
7093 (add_address_entry_worker, write_one_signatured_type)
7094 (recursively_count_psymbols, recursively_write_psymbols)
7095 (class debug_names, psyms_seen_size, write_gdbindex)
7096 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7097
0d79cdc4
AM
70982020-02-26 Aaron Merey <amerey@redhat.com>
7099
7100 * Makefile.in: Handle optional debuginfod support.
7101 * NEWS: Update.
7102 * README: Add --with-debuginfod summary.
7103 * config.in: Regenerate.
7104 * configure: Regenerate.
7105 * configure.ac: Handle optional debuginfod support.
7106 * debuginfod-support.c: debuginfod helper functions.
7107 * debuginfod-support.h: Ditto.
7108 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7109 summary.
7110 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7111 when a dwz file cannot be found.
7112 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7113 debuginfo file cannot be found.
7114 * source.c (open_source_file): Query debuginfod servers when a
7115 source file cannot be found.
7116 * top.c (print_gdb_configuration): Include
7117 --{with,without}-debuginfod in the output.
7118
b65ce565
JG
71192020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7120
7121 * thread.c (thr_try_catch_cmd): Print thread name.
7122
d4c9a4f8
SM
71232020-02-26 Simon Marchi <simon.marchi@efficios.com>
7124
7125 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7126 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7127 dwarf2_fetch_die_type_sect_off): Move to...
7128 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7129 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7130 dwarf2_fetch_die_type_sect_off): ... here.
7131 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7132 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7133 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7134
0dce4280
TV
71352020-02-26 Tom de Vries <tdevries@suse.de>
7136
7137 PR gdb/25603
7138 * symfile.c (set_initial_language): Exit-early if
7139 language_mode == language_mode_manual.
7140
450a1bfc
SM
71412020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7144 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7145 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7146
9e80cfa1
AB
71472020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7148
7149 * gdbtypes.c (create_array_type_with_stride): Handle negative
7150 array strides.
7151 * valarith.c (value_subscripted_rvalue): Likewise.
7152
09624f1f
LM
71532020-02-25 Luis Machado <luis.machado@linaro.org>
7154
7155 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7156
8cb5117c
SM
71572020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7158
7159 * loc.h (dwarf2_get_die_type): Move to...
7160 * read.h (dwarf2_get_die_type): ... here.
7161 * read.c (dwarf2_get_die_type): Move doc to header.
7162
c325c44e
JB
71632020-02-25 Joel Brobecker <brobecker@adacore.com>
7164
7165 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7166 'gnulib/Makefile.in' to the list.
7167
4ac93832
TT
71682020-02-24 Tom Tromey <tom@tromey.com>
7169
7170 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7171 Remove.
7172 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7173 XOBNEWVEC.
7174
197400e8
TT
71752020-02-24 Tom Tromey <tom@tromey.com>
7176
7177 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7178 New method.
7179 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7180 (dw2_do_instantiate_symtab, dw2_get_file_names)
7181 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7182
76935768
TT
71832020-02-24 Tom Tromey <tom@tromey.com>
7184
7185 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7186 make_scoped_restore.
7187 (dwarf2_psymtab::read_symtab): Don't clear
7188 reading_partial_symbols.
7189
a88ef40d
TV
71902020-02-24 Tom de Vries <tdevries@suse.de>
7191
7192 PR gdb/25592
7193 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7194
c9af6521
TV
71952020-02-24 Tom de Vries <tdevries@suse.de>
7196
7197 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7198 commands layout next/prev/regs.
7199
5707a07a
TT
72002020-02-22 Tom Tromey <tom@tromey.com>
7201
7202 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7203 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7204
3b0fb49e
TT
72052020-02-22 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7208
283be8bf
TT
72092020-02-22 Tom Tromey <tom@tromey.com>
7210
7211 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7212 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7213 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7214 * tui/tui.c (_initialize_tui): Add usage text.
7215
ca793b96
TT
72162020-02-22 Tom Tromey <tom@tromey.com>
7217
7218 * tui/tui-win.c (tui_set_focus_command)
7219 (tui_set_win_height_command): Use error_no_arg.
7220 (_initialize_tui_win): Update help text.
7221 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7222
432b5c40
TT
72232020-02-22 Tom Tromey <tom@tromey.com>
7224
7225 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7226 * tui/tui-disasm.h (struct tui_disasm_window)
7227 <display_start_addr>: Declare.
7228 * tui/tui-source.h (struct tui_source_window)
7229 <display_start_addr>: Declare.
7230 * tui/tui-winsource.h (struct tui_source_window_base)
7231 <show_source_line, display_start_addr>: New methods.
7232 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7233 Rename and move to protected section.
7234 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7235 (tui_source_window_base::do_erase_source_content): Update.
7236 (tui_source_window_base::show_source_line): Now a method.
7237 (tui_source_window_base::show_source_content)
7238 (tui_source_window_base::tui_source_window_base)
7239 (tui_source_window_base::rerender)
7240 (tui_source_window_base::refill)
7241 (tui_source_window_base::do_scroll_horizontal)
7242 (tui_source_window_base::set_is_exec_point_at)
7243 (tui_source_window_base::update_breakpoint_info)
7244 (tui_source_window_base::update_exec_info): Update.
7245 * tui/tui-source.c (tui_source_window::set_contents)
7246 (tui_source_window::showing_source_p)
7247 (tui_source_window::do_scroll_vertical)
7248 (tui_source_window::location_matches_p)
7249 (tui_source_window::line_is_displayed): Update.
7250 (tui_source_window::display_start_addr): New method.
7251 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7252 (tui_disasm_window::do_scroll_vertical)
7253 (tui_disasm_window::location_matches_p): Update.
7254 (tui_disasm_window::display_start_addr): New method.
7255
01b1af32
TT
72562020-02-22 Tom Tromey <tom@tromey.com>
7257
7258 * NEWS: Add entry for gdb.register_window_type.
7259 * tui/tui-layout.h (window_factory): New typedef.
7260 (tui_register_window): Declare.
7261 * tui/tui-layout.c (saved_tui_windows): New global.
7262 (tui_apply_current_layout): Use it.
7263 (tui_register_window): New function.
7264 * python/python.c (do_start_initialization): Call
7265 gdbpy_initialize_tui.
7266 (python_GdbMethods): Add "register_window_type" function.
7267 * python/python-internal.h (gdbpy_register_tui_window)
7268 (gdbpy_initialize_tui): Declare.
7269 * python/py-tui.c: New file.
7270 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7271
fc96d20b
TT
72722020-02-22 Tom Tromey <tom@tromey.com>
7273
7274 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7275
935c78c0
TT
72762020-02-22 Tom Tromey <tom@tromey.com>
7277
7278 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7279 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7280 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7281 (tui_set_win_focus_to): Move from tui-win.c.
7282
0240c8f1
TT
72832020-02-22 Tom Tromey <tom@tromey.com>
7284
7285 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7286 functions.
7287 (known_window_types): New global.
7288 (tui_get_window_by_name): Reimplement.
7289 (initialize_known_windows): New function.
7290 (validate_window_name): Rewrite.
7291 (_initialize_tui_layout): Call initialize_known_windows.
7292
fdb01f0c
TT
72932020-02-22 Tom Tromey <tom@tromey.com>
7294
7295 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7296 Remove constants.
7297 * tui/tui-winsource.h (struct tui_source_window_base)
7298 <tui_source_window_base>: Remove parameter.
7299 * tui/tui-winsource.c
7300 (tui_source_window_base::tui_source_window_base): Remove
7301 parameter.
7302 (tui_source_window_base::refill): Update.
7303 * tui/tui-stack.h (struct tui_locator_window)
7304 <tui_locator_window>: Update.
7305 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7306 Default the constructor.
7307 * tui/tui-regs.h (struct tui_data_item_window)
7308 <tui_data_item_window>: Default the constructor.
7309 (struct tui_data_window) <tui_data_window>: Likewise.
7310 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7311 Default the constructor.
7312 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7313 Default the constructor.
7314 <type>: Remove.
7315 (struct tui_win_info) <tui_win_info>: Default the constructor.
7316 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7317 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7318 Default the constructor.
7319
865a5aec
TT
73202020-02-22 Tom Tromey <tom@tromey.com>
7321
7322 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7323 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7324 * tui/tui-win.c (tui_resize_all): Don't call
7325 tui_delete_invisible_windows.
7326 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7327 done.
7328 (tui_set_layout): Update.
7329 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7330 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7331 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7332
e098d18c
TT
73332020-02-22 Tom Tromey <tom@tromey.com>
7334
7335 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7336 correctly.
7337
eb9c8874
TT
73382020-02-22 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7341
7eed1a8e
TT
73422020-02-22 Tom Tromey <tom@tromey.com>
7343
7344 * tui/tui-winsource.h (struct tui_source_window_iterator)
7345 <inner_iterator>: New etytypedef.
7346 <tui_source_window_iterator>: Take "end" parameter.
7347 <tui_source_window_iterator>: Take iterator.
7348 <operator*, advance>: Update.
7349 <m_iter>: Change type.
7350 <m_end>: New field.
7351 (struct tui_source_windows) <begin, end>: Update.
7352 * tui/tui-layout.c (tui_windows): New global.
7353 (tui_apply_current_layout): Clear tui_windows.
7354 (tui_layout_window::apply): Update tui_windows.
7355 * tui/tui-data.h (tui_windows): Declare.
7356 (all_tui_windows): Now inline function.
7357 (class tui_window_iterator, struct all_tui_windows): Remove.
7358
7c043ba6
TT
73592020-02-22 Tom Tromey <tom@tromey.com>
7360
7361 PR tui/17850:
7362 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7363 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7364 "height" argument.
7365 (class tui_layout_window) <get_sizes>: Likewise.
7366 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7367 argument.
7368 <get_sizes>: Add "height" argument.
7369 <m_vertical>: New field.
7370 * tui/tui-layout.c (tui_layout_split::clone): Update.
7371 (tui_layout_split::get_sizes): Add "height" argument.
7372 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7373 (tui_new_layout_command): Parse "-horizontal".
7374 (_initialize_tui_layout): Update help string.
7375 (tui_layout_split::specification): Add "-horizontal" when needed.
7376 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7377 argument.
7378 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7379 New methods.
7380
6bc56648
TT
73812020-02-22 Tom Tromey <tom@tromey.com>
7382
7383 * tui/tui-layout.h (enum tui_adjust_result): New.
7384 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7385 (class tui_layout_window) <adjust_size>: Return
7386 tui_adjust_result. Rewrite.
7387 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7388 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7389
c22fef7e
TT
73902020-02-22 Tom Tromey <tom@tromey.com>
7391
7392 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7393 parameter and return types.
7394 (class tui_layout_base) <specification>: Add "depth".
7395 (class tui_layout_window) <specification>: Add "depth".
7396 (class tui_layout_split) <specification>: Add "depth".
7397 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7398 and return types.
7399 (tui_new_layout_command): Parse sub-layouts.
7400 (_initialize_tui_layout): Update help string.
7401 (tui_layout_window::specification): Add "depth".
7402 (add_layout_command): Update.
7403
ee325b61
TT
74042020-02-22 Tom Tromey <tom@tromey.com>
7405
7406 * NEWS: Add "tui new-layout" item.
7407 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7408 Add new-layout command to help text.
7409 (validate_window_name): New function.
7410 (tui_new_layout_command): New function.
7411 (_initialize_tui_layout): Register "new-layout".
7412 (tui_layout_window::specification): New method.
7413 (tui_layout_window::specification): New method.
7414 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7415 method.
7416 (class tui_layout_window) <specification>: New method.
7417 (class tui_layout_split) <specification>: New method.
7418
416eb92d
TT
74192020-02-22 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7422 * tui/tui-win.c (window_name_completer): Update comment.
7423 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7424 Declare method.
7425 (class tui_layout_window) <replace_window>: Likewise.
7426 (class tui_layout_split) <replace_window>: Likewise.
7427 (tui_set_layout): Don't declare.
7428 (tui_set_initial_layout): Declare function.
7429 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7430 (asm_regs_layout): New globals.
7431 (tui_current_layout, show_layout): Remove.
7432 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7433 (find_layout, tui_apply_layout): New function.
7434 (layout_completer): Remove.
7435 (tui_next_layout): Reimplement.
7436 (tui_next_layout_command): New function.
7437 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7438 (tui_regs_layout): Reimplement.
7439 (tui_regs_layout_command): New function.
7440 (extract_display_start_addr): Rewrite.
7441 (next_layout, prev_layout): Remove.
7442 (tui_layout_window::replace_window): New method.
7443 (tui_layout_split::replace_window): New method.
7444 (destroy_layout): New function.
7445 (layout_list): New global.
7446 (add_layout_command): New function.
7447 (initialize_layouts): Update.
7448 (tui_layout_command): New function.
7449 (_initialize_tui_layout): Install "layout" commands.
7450 * tui/tui-data.h (enum tui_layout_type): Remove.
7451 (tui_current_layout): Don't declare.
7452
0dbc2fc7
TT
74532020-02-22 Tom Tromey <tom@tromey.com>
7454
7455 * tui/tui-regs.c (tui_reg_layout): Remove.
7456 (tui_reg_command): Use tui_regs_layout.
7457 * tui/tui-layout.h (tui_reg_command): Declare.
7458 * tui/tui-layout.c (tui_reg_command): New function.
7459
5afe342e
TT
74602020-02-22 Tom Tromey <tom@tromey.com>
7461
7462 * tui/tui.c (tui_rl_delete_other_windows): Call
7463 tui_remove_some_windows.
7464 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7465 Declare method.
7466 (class tui_layout_window) <remove_windows>: New method.
7467 (class tui_layout_split) <remove_windows>: Declare.
7468 (tui_remove_some_windows): Declare.
7469 * tui/tui-layout.c (tui_remove_some_windows): New function.
7470 (tui_layout_split::remove_windows): New method.
7471
427326a8
TT
74722020-02-22 Tom Tromey <tom@tromey.com>
7473
7474 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7475 * tui/tui-layout.h (tui_next_layout): Declare.
7476 * tui/tui-layout.c (tui_next_layout): New function.
7477
3fe12b6d
TT
74782020-02-22 Tom Tromey <tom@tromey.com>
7479
7480 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7481 correct coordinates.
7482
59b8b5d2
TT
74832020-02-22 Tom Tromey <tom@tromey.com>
7484
7485 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7486 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7487 DATA_WIN case.
7488
2a3d458b
TT
74892020-02-22 Tom Tromey <tom@tromey.com>
7490
7491 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7492 TUI_DISASM_WIN, not tui_win_list.
7493
3f0cbb04
TT
74942020-02-22 Tom Tromey <tom@tromey.com>
7495
7496 * valprint.c (generic_val_print_enum_1)
7497 (val_print_type_code_flags): Style member names.
7498 * rust-lang.c (val_print_struct, rust_print_enum)
7499 (rust_print_struct_def, rust_internal_print_type): Style member
7500 names.
7501 * p-valprint.c (pascal_object_print_value_fields): Style member
7502 names. Only call fprintf_symbol_filtered for static members.
7503 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7504 * f-valprint.c (f_val_print): Style member names.
7505 * f-typeprint.c (f_type_print_base): Style member names.
7506 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7507 call fprintf_symbol_filtered for static members.
7508 (cp_print_class_member): Style member names.
7509 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7510 member names.
7511 * ada-valprint.c (ada_print_scalar): Style enum names.
7512 (ada_val_print_enum): Likewise.
7513 * ada-typeprint.c (print_enum_type): Style enum names.
7514
d4d947ae
TT
75152020-02-21 Tom Tromey <tom@tromey.com>
7516
7517 * psympriv.h (struct partial_symtab): Update comment.
7518
e94e944b
TT
75192020-02-21 Tom Tromey <tromey@adacore.com>
7520
7521 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7522 type is CORE_ADDR.
7523
1eb73179
TV
75242020-02-21 Tom de Vries <tdevries@suse.de>
7525
7526 PR gdb/25534
7527 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7528 if dependencies[i]->user != NULL.
7529
4f180d53
AT
75302020-02-21 Ali Tamur <tamur@google.com>
7531
7532 * dwarf2/read.c (dwarf2_name): Add null check.
7533
22b6cd70
TT
75342020-02-20 Tom Tromey <tom@tromey.com>
7535
7536 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7537 ">=", in binary search.
7538 (dwarf2_find_containing_comp_unit): New overload.
7539 (run_test): New self-test.
7540 (_initialize_dwarf2_read): Register new test.
7541
bd0cf5a6
NC
75422020-02-20 Nelson Chu <nelson.chu@sifive.com>
7543
7544 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7545 * riscv-tdep.h: Likewise.
7546 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7547 rv32-only CSR.
7548 * features/riscv/64bit-csr.xml: Regenerated.
7549
3f702acd
SDJ
75502020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7551 Tom Tromey <tom@tromey.com>
7552
7553 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7554 of 'fputc_unfiltered'.
7555 (putchar_unfiltered): Call 'fputc_unfiltered'.
7556 (fputc_unfiltered): Call 'fputs_unfiltered'.
7557
d13c7322
AB
75582020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7559
7560 * config.in: Regenerate.
7561 * configure: Regenerate.
7562 * configure.ac: Add --with-python-libdir option.
7563 * main.c: Use WITH_PYTHON_LIBDIR.
7564
869d8950
TT
75652020-02-19 Tom Tromey <tom@tromey.com>
7566
7567 * symtab.c (general_symbol_info::compute_and_set_names): Use
7568 obstack_strndup. Simplify call to symbol_set_demangled_name.
7569
298e9637
SM
75702020-02-19 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * dwarf2/read.c (allocate_signatured_type_table,
7573 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7574 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7575 Remove objfile parameter, update all callers.
7576
08410482
DE
75772020-02-19 Doug Evans <dje@google.com>
7578
7579 PR rust/25535
7580 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7581 rust_enum_variant calculation.
7582
dfdeeca1
TT
75832020-02-19 Tom Tromey <tromey@adacore.com>
7584
7585 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7586
2ef5453b
TT
75872020-02-19 Tom Tromey <tromey@adacore.com>
7588
7589 * ada-lang.c (cache_symbol): Use obstack_strdup.
7590
9f1528a1
AB
75912020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7592
7593 * configure: Regenerate.
7594
d3c22fa8
TT
75952020-02-19 Tom Tromey <tromey@adacore.com>
7596
7597 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7598 NULL check.
7599
bf84f706
MR
76002020-02-19 Maciej W. Rozycki <macro@wdc.com>
7601
7602 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7603
d1c9b20f
AB
76042020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7605
7606 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7607 if GDBSERVER is not defined.
7608 (riscv_tdesc_cache): Likewise, also store const target_desc.
7609 (STATIC_IN_GDB): Define.
7610 (riscv_create_target_description): Update declaration with
7611 STATIC_IN_GDB.
7612 (riscv_lookup_target_description): New function, only define if
7613 GDBSERVER is not defined.
7614 * arch/riscv.h (riscv_create_target_description): Declare only
7615 when GDBSERVER is defined.
7616 (riscv_lookup_target_description): New declaration when GDBSERVER
7617 is not defined.
7618 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7619 (riscv_linux_read_features): ...this, and return
7620 riscv_gdbarch_features instead of target_desc.
7621 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7622 (riscv_linux_read_description): Rename to...
7623 (riscv_linux_read_features): ...this.
7624 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7625 Update to use riscv_gdbarch_features and
7626 riscv_lookup_target_description.
7627 * riscv-tdep.c (riscv_find_default_target_description): Use
7628 riscv_lookup_target_description instead of
7629 riscv_create_target_description.
7630
373d7ac0
SM
76312020-02-18 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * valprint.c (generic_val_print_enum_1): When printing a flag
7634 enum with value 0 and there is no enumerator with value 0, print
7635 just "0" instead of "(unknown: 0x0)".
7636
b29a2df0
SM
76372020-02-18 Simon Marchi <simon.marchi@efficios.com>
7638
7639 * valprint.c (generic_val_print_enum_1): Print unknown part of
7640 flag enum in hex.
7641
6740f0cc
SM
76422020-02-18 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7645 flag enums to contain duplicate enumerators.
7646 * valprint.c (generic_val_print_enum_1): Update comment.
7647
edd45eb0
SM
76482020-02-18 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * dwarf2/read.c: Include "count-one-bits.h".
7651 (update_enumeration_type_from_children): If an enumerator has
7652 multiple bits set, don't treat the enumeration as a "flag enum".
7653 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7654 of flag enums have 0 or 1 bit set.
7655
6d0cf446
BE
76562020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7657
7658 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7659 conversion.
7660 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7661 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7662 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7663 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7664 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7665
7001c1b7
SM
76662020-02-18 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7669
fdb61c6c
SM
76702020-02-14 Simon Marchi <simon.marchi@efficios.com>
7671
7672 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7673 displaced_step_closure_up.
7674 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7675 (struct displaced_step_closure_up):
7676 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7677 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7678 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7679 Likewise.
7680 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7681 * gdbarch.c, gdbarch.h: Re-generate.
7682 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7683 displaced_step_closure_up.
7684 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7685 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7686 * infrun.h (displaced_step_closure_up): New type alias.
7687 (struct displaced_step_inferior_state) <step_closure>: Change
7688 type to displaced_step_closure_up.
7689 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7690 displaced_step_closure_up.
7691 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7692
a4a38eb4
TT
76932020-02-14 Tom Tromey <tom@tromey.com>
7694
7695 * minidebug.c (gnu_debug_key): New global.
7696 (find_separate_debug_file_in_section): Use it.
7697
e8217e61
SM
76982020-02-14 Simon Marchi <simon.marchi@efficios.com>
7699
7700 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7701 std::unique_ptr.
7702 * gdbarch.c: Re-generate.
7703 * gdbarch.h: Re-generate.
7704 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7705 change.
7706 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7707 type to std::unique_ptr.
7708 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7709 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7710 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7711 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7712 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7713 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7714 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7715 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7716 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7717
d8d83535
SM
77182020-02-14 Simon Marchi <simon.marchi@efficios.com>
7719
7720 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7721 std::unique_ptr.
7722 (displaced_step_clear): Rename to...
7723 (displaced_step_reset): ... this. Just call displaced->reset ().
7724 (displaced_step_clear_cleanup): Rename to...
7725 (displaced_step_reset_cleanup): ... this.
7726 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7727 (displaced_step_fixup): Likewise.
7728 (resume_1): Likewise.
7729 (handle_inferior_event): Restore child's memory before calling
7730 displaced_step_fixup on the parent.
7731 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7732 to std::unique_ptr.
7733 <step_closure>: Change type to std::unique_ptr.
7734
5f661e03
SM
77352020-02-14 Simon Marchi <simon.marchi@efficios.com>
7736
7737 * arm-tdep.c: Include count-one-bits.h.
7738 (cleanup_block_store_pc): Use count_one_bits.
7739 (cleanup_block_load_pc): Use count_one_bits.
7740 (arm_copy_block_xfer): Use count_one_bits.
7741 (thumb2_copy_block_xfer): Use count_one_bits.
7742 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7743 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7744 (thumb_get_next_pcs_raw): Use count_one_bits.
7745 (arm_get_next_pcs_raw): Use count_one_bits_l.
7746 * arch/arm.c (bitcount): Remove.
7747 * arch/arm.h (bitcount): Remove.
7748
8084e579
TT
77492020-02-14 Tom Tromey <tromey@adacore.com>
7750
7751 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7752 Update.
7753 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7754 * dwarf2/loc.c (call_site_find_chain_1): Return
7755 unique_xmalloc_ptr.
7756 (call_site_find_chain): Likewise.
7757
258bf0ee
RB
77582020-02-14 Richard Biener <rguenther@suse.de>
7759
7760 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7761 on expression with division operators.
7762
f98a8458
AKS
77632020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7764
7765 * MAINTAINERS (Write After Approval): Adding myself.
7766
d1437c0e
TT
77672020-02-12 Tom Tromey <tom@tromey.com>
7768
7769 * event-loop.c (event_data, gdb_event, event_handler_func):
7770 Remove.
7771
3d4560f7
TT
77722020-02-12 Tom Tromey <tom@tromey.com>
7773
7774 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7775 (dwarf2_frame_objfile_data): Add comment.
7776 (find_comp_unit, set_comp_unit): New functions.
7777 (dwarf2_frame_find_fde): Use find_comp_unit.
7778 (dwarf2_build_frame_info): Use set_comp_unit.
7779
21982304
TT
77802020-02-12 Tom Tromey <tom@tromey.com>
7781
7782 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7783 (comp_unit): Don't initialize objfile.
7784 (execute_cfa_program): Add text_offset parameter.
7785 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7786 (dwarf2_frame_cache): Update.
7787 (dwarf2_build_frame_info): Don't set "objfile" member.
7788
4debb237
TT
77892020-02-12 Tom Tromey <tom@tromey.com>
7790
7791 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7792 (decode_frame_entry): Likewise.
7793 (dwarf2_build_frame_info): Update.
7794
0d404d44
TT
77952020-02-12 Tom Tromey <tom@tromey.com>
7796
7797 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7798 (decode_frame_entry_1): Use the comp_unit obstack.
7799
a7a3ae5c
TT
78002020-02-12 Tom Tromey <tom@tromey.com>
7801
7802 * dwarf2/frame.c (struct comp_unit): Add initializers and
7803 constructor.
7804 (dwarf2_frame_objfile_data): Store a comp_unit.
7805 (dwarf2_frame_find_fde): Update.
7806 (dwarf2_build_frame_info): Use "new".
7807
a9d65418
TT
78082020-02-12 Tom Tromey <tom@tromey.com>
7809
7810 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7811 (dwarf2_fde_table): Typedef for std::vector.
7812 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7813 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7814 (decode_frame_entry): Update.
7815 (dwarf2_build_frame_info): Use "new".
7816
7559c217
CB
78172020-02-12 Christian Biesinger <cbiesinger@google.com>
7818
7819 * arm-tdep.c (arm_gdbarch_init): Update.
7820 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7821 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7822 have_neon, is_m>: Change to bool.
7823
aeefc73c
CB
78242020-02-12 Christian Biesinger <cbiesinger@google.com>
7825
7826 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7827
d27b8e5f
TT
78282020-02-12 Tom Tromey <tom@tromey.com>
7829
7830 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7831
cd5900f3
HD
78322020-02-12 Hannes Domani <ssbssa@yahoo.de>
7833
7834 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7835 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7836
f056b22b
TT
78372020-02-11 Tom Tromey <tom@tromey.com>
7838
7839 * psymtab.h: Update comment.
7840
f92ff6b5
TT
78412020-02-11 Tom Tromey <tom@tromey.com>
7842
7843 * gdb_obstack.h (struct auto_obstack): Use
7844 DISABLE_COPY_AND_ASSIGN.
7845
3fd6912b
TT
78462020-02-11 Tom Tromey <tom@tromey.com>
7847
7848 * dwarf2/frame.h (struct objfile): Don't forward declare.
7849
69ed9b74
CB
78502020-02-11 Christian Biesinger <cbiesinger@google.com>
7851
7852 * cris-tdep.c (cris_supply_gregset): Change signature to match
7853 what struct regset expects.
7854 (cris_regset): New struct.
7855 (fetch_core_registers): Remove.
7856 (cris_iterate_over_regset_sections): New function.
7857 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7858 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7859
bda874f6
CB
78602020-02-11 Christian Biesinger <cbiesinger@google.com>
7861
7862 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7863 registers.
7864
754e1564
CB
78652020-02-11 Christian Biesinger <cbiesinger@google.com>
7866
7867 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7868
8ddd8e0e
SM
78692020-02-11 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * configure: Re-generate.
7872
898e7f60
SM
78732020-02-11 Simon Marchi <simon.marchi@efficios.com>
7874
7875 * configure: Re-generate.
7876
58df732b
SM
78772020-02-11 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * acinclude: Update warning.m4 path.
7880 * warning.m4: Move to gdbsupport.
7881
da5bd37e
TT
78822020-02-11 Tom Tromey <tromey@adacore.com>
7883
7884 * remote.c (remote_console_output): Update.
7885 * printcmd.c (printf_command): Update.
7886 * event-loop.c (gdb_wait_for_event): Update.
7887 * linux-nat.c (sigchld_handler): Update.
7888 * remote-sim.c (gdb_os_write_stdout): Update.
7889 (gdb_os_flush_stdout): Update.
7890 (gdb_os_flush_stderr): Update.
7891 (gdb_os_write_stderr): Update.
7892 * exceptions.c (print_exception): Update.
7893 * remote-fileio.c (remote_fileio_func_read): Update.
7894 (remote_fileio_func_write): Update.
7895 * tui/tui.c (tui_enable): Update.
7896 * tui/tui-interp.c (tui_interp::init): Update.
7897 * utils.c (init_page_info): Update.
7898 (putchar_unfiltered, fputc_unfiltered): Update.
7899 (gdb_flush): Update.
7900 (emit_style_escape): Update.
7901 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7902 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7903 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7904 (stderr_file::write): Update.
7905 (stderr_file::puts): Update.
7906 * ui-file.h (ui_file_isatty, ui_file_write)
7907 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7908 (ui_file_puts): Don't declare.
7909
85f0dd3c
TV
79102020-02-10 Tom de Vries <tdevries@suse.de>
7911
7912 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7913 sentinel to char *.
7914
2e927613
TV
79152020-02-09 Tom de Vries <tdevries@suse.de>
7916
7917 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7918 filename if it matches "<artificial>".
7919
6bafc845
HD
79202020-02-09 Hannes Domani <ssbssa@yahoo.de>
7921
7922 * windows-tdep.c (struct enum_value_name): New struct.
7923 (create_enum): New function.
7924 (windows_get_siginfo_type): Create and use enum types.
7925
7928d571
HD
79262020-02-09 Hannes Domani <ssbssa@yahoo.de>
7927
7928 * NEWS: Mention $_siginfo support for Windows.
7929 * windows-nat.c (handle_exception): Set siginfo_er.
7930 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7931 (windows_xfer_siginfo): New function.
7932 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7933 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7934 (init_windows_gdbarch_data): New function.
7935 (get_windows_gdbarch_data): New function.
7936 (windows_get_siginfo_type): New function.
7937 (windows_init_abi): Register windows_get_siginfo_type.
7938 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7939
6751ebae
TT
79402020-02-08 Tom Tromey <tom@tromey.com>
7941
7942 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7943 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7944 <keep>: Declare method.
7945 <m_keep>: Remove member.
7946 <~cutu_reader>: Remove.
7947 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7948 (cutu_reader::cutu_reader): Update.
7949 (cutu_reader::keep): Rename from ~cutu_reader.
7950 (process_psymtab_comp_unit, build_type_psymtabs_1)
7951 (process_skeletonless_type_unit, load_partial_comp_unit)
7952 (load_full_comp_unit, dwarf2_read_addr_index)
7953 (read_signatured_type): Update.
7954
135f5437
TT
79552020-02-08 Tom Tromey <tom@tromey.com>
7956
7957 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
7958 "want_partial_unit" parameter.
7959 (process_psymtab_comp_unit): Change want_partial_unit to bool.
7960 Inline check for DW_TAG_partial_unit.
7961 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
7962
9f66ff1c
TT
79632020-02-08 Tom Tromey <tom@tromey.com>
7964
7965 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
7966 read.c.
7967 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
7968 read.c.
7969
c8a7a66f
TT
79702020-02-08 Tom Tromey <tom@tromey.com>
7971
7972 * dwarf2/read.c (read_address): Move to comp-unit.c.
7973 (dwarf2_rnglists_process, dwarf2_ranges_process)
7974 (read_attribute_value, dwarf_decode_lines_1)
7975 (var_decode_location, decode_locdesc): Update.
7976 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
7977 read.c. Remove "cu" parameter.
7978 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
7979 method.
7980
8266302d
TT
79812020-02-08 Tom Tromey <tom@tromey.com>
7982
7983 * dwarf2/read.c (read_attribute_value, read_indirect_string)
7984 (read_indirect_line_string): Update.
7985 * dwarf2/comp-unit.c (read_offset): Remove.
7986 (read_comp_unit_head): Update.
7987 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
7988 method.
7989 (read_offset): Don't declare.
7990
4057dfde
TT
79912020-02-08 Tom Tromey <tom@tromey.com>
7992
7993 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
7994 * dwarf2/read.c (struct comp_unit_head): Move to
7995 dwarf2/comp-unit.h.
7996 (enum class rcuh_kind): Move to comp-unit.h.
7997 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
7998 (read_comp_unit_head, error_check_comp_unit_head)
7999 (read_and_check_comp_unit_head): Move to comp-unit.c.
8000 (read_offset, dwarf_unit_type_name): Likewise.
8001 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8002 (cutu_reader::cutu_reader, read_call_site_scope)
8003 (find_partial_die, follow_die_offset): Update.
8004 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8005
24aa364d
TT
80062020-02-08 Tom Tromey <tom@tromey.com>
8007
8008 * dwarf2/read.c (read_offset_1): Move to leb.c.
8009 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8010 (dwarf_decode_macro_bytes): Update.
8011 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8012 * dwarf2/leb.h (read_offset): Declare.
8013
2c7d5afc
TT
80142020-02-08 Tom Tromey <tom@tromey.com>
8015
8016 * dwarf2/read.c (dwarf2_section_size): Remove.
8017 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8018 Update.
8019 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8020
4075cb26
TT
80212020-02-08 Tom Tromey <tom@tromey.com>
8022
8023 * dwarf2/read.c (read_initial_length): Move to leb.c.
8024 * dwarf2/leb.h (read_initial_length): Declare.
8025 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8026 handle_nonstd parameter.
8027 * dwarf2/frame.c (read_initial_length): Remove.
8028 (decode_frame_entry_1): Update.
8029
09ba997f
TT
80302020-02-08 Tom Tromey <tom@tromey.com>
8031
8032 * dwarf2/loc.c (dwarf2_find_location_expression)
8033 (dwarf_evaluate_loc_desc::get_tls_address)
8034 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8035 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8036 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8037 (dwarf2_compile_property_to_c)
8038 (dwarf2_loc_desc_get_symbol_read_needs)
8039 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8040 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8041 (loclist_describe_location, loclist_tracepoint_var_ref)
8042 (loclist_generate_c_location): Update.
8043 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8044 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8045 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8046 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8047 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8048 (dwarf2_per_cu_data::addr_size)
8049 (dwarf2_per_cu_data::ref_addr_size)
8050 (dwarf2_per_cu_data::text_offset)
8051 (dwarf2_per_cu_data::addr_type): Now methods.
8052 (per_cu_header_read_in): Make per_cu "const".
8053 (dwarf2_version): Remove.
8054 (dwarf2_per_cu_data::int_type): Now a method.
8055 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8056 (set_die_type, read_array_type, read_subrange_index_type)
8057 (read_tag_string_type, read_subrange_type): Update.
8058 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8059 offset_size, ref_addr_size, text_offset, addr_type, version,
8060 objfile, int_type, addr_sized_int_type>: Declare methods.
8061
96c738c0
TT
80622020-02-08 Tom Tromey <tom@tromey.com>
8063
8064 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8065 Move earlier.
8066
8fdd972c
TT
80672020-02-08 Tom Tromey <tom@tromey.com>
8068
8069 * dwarf2/read.h (dwarf_line_debug): Declare.
8070 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8071 * dwarf2/read.c: Move line_header code to new files.
8072 (dwarf_line_debug): No longer static.
8073 * dwarf2/line-header.c: New file.
8074 * dwarf2/line-header.h: New file.
8075
03075812
TT
80762020-02-08 Tom Tromey <tom@tromey.com>
8077
8078 * dwarf2/read.c (struct line_header) <file_full_name,
8079 file_file_name>: Return unique_xmalloc_ptr.
8080 (line_header::file_file_name): Update.
8081 (line_header::file_full_name): Update.
8082 (dw2_get_file_names_reader): Update.
8083 (macro_start_file): Update.
8084
bb822404
TT
80852020-02-08 Tom Tromey <tom@tromey.com>
8086
8087 * dwarf2/read.c (struct line_header) <file_full_name,
8088 file_file_name>: Declare methods.
8089 (dw2_get_file_names_reader): Update.
8090 (file_file_name): Now a method.
8091 (file_full_name): Likewise.
8092 (macro_start_file): Update.
8093
009b64fc
TT
80942020-02-08 Tom Tromey <tom@tromey.com>
8095
8096 * dwarf2/read.c (dwarf_always_disassemble)
8097 (show_dwarf_always_disassemble): Move to loc.c.
8098 (_initialize_dwarf2_read): Move "always-disassemble" registration
8099 to loc.c.
8100 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8101 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8102 static.
8103 (show_dwarf_always_disassemble): Move from read.c.
8104 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8105
5895093f
TT
81062020-02-08 Tom Tromey <tom@tromey.com>
8107
8108 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8109 (create_quick_file_names_table): Return htab_up.
8110 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8111 Update.
8112 * dwarf2/read.h (struct dwarf2_per_objfile)
8113 <quick_file_names_table>: Now htab_up.
8114
b3b32279
TT
81152020-02-08 Tom Tromey <tom@tromey.com>
8116
8117 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8118
1d33d811
TT
81192020-02-08 Tom Tromey <tom@tromey.com>
8120
8121 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8122 Rewrite.
8123 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8124 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8125 (abbrev_table::abbrev_table): No longer inline.
8126 (ABBREV_HASH_SIZE): Remove.
8127 (abbrev_table::m_abbrevs): Now an htab_up.
8128
86de1d91
TT
81292020-02-08 Tom Tromey <tom@tromey.com>
8130
8131 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8132 (cutu_reader): Update.
8133 (build_type_psymtabs_1): Update.
8134 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8135 (abbrev_table::alloc_abbrev): Update.
8136 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8137 (abbrev_table::read): New static method, renamed from
8138 abbrev_table_read_table.
8139 (abbrev_table::alloc_abbrev)
8140 (abbrev_table::add_abbrev): Now private.
8141 (abbrev_table::abbrev_table): Now private.
8142 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8143
0335378b
TT
81442020-02-08 Tom Tromey <tom@tromey.com>
8145
8146 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8147 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8148 htab_up.
8149
48b490f2
TT
81502020-02-08 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8153 htab_up.
8154 (lookup_dwo_unit_in_dwp): Update.
8155 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8156 on obstack.
8157
bc68fb19
TT
81582020-02-08 Tom Tromey <tom@tromey.com>
8159
8160 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8161 obstack.
8162
d15acc42
TT
81632020-02-08 Tom Tromey <tom@tromey.com>
8164
8165 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8166 line_header_hash.
8167 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8168 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8169 Change type to htab_up.
8170
eaa5fa8b
TT
81712020-02-08 Tom Tromey <tom@tromey.com>
8172
8173 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8174 htab_up. Don't allocate on obstack.
8175 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8176 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8177 Change type to htab_up.
8178
b0b6a987
TT
81792020-02-08 Tom Tromey <tom@tromey.com>
8180
8181 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8182 Change type to htab_up.
8183 * dwarf2/read.c (create_signatured_type_table_from_index)
8184 (create_signatured_type_table_from_debug_names)
8185 (create_all_type_units, add_type_unit)
8186 (lookup_dwo_signatured_type, lookup_signatured_type)
8187 (process_skeletonless_type_unit): Update.
8188 (create_debug_type_hash_table, create_debug_types_hash_table):
8189 Change type of types_htab.
8190 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8191 htab_up. Don't allocate on obstack.
8192 (create_cus_hash_table): Change type of cus_htab parameter.
8193 (struct dwo_file) <cus, tus>: Now htab_up.
8194 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8195 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8196 (queue_and_load_all_dwo_tus): Update.
8197 * dwarf2/index-write.c (write_gdbindex): Update.
8198 (write_debug_names): Update.
8199
39856def
TT
82002020-02-08 Tom Tromey <tom@tromey.com>
8201
8202 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8203 dwarf2/read.c. Remove "next" member. Add constructor ntad
8204 destructor.
8205 (struct dwarf2_per_objfile) <queue>: New member.
8206 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8207 dwarf2/read.h.
8208 (dwarf2_queue, dwarf2_queue_tail): Remove.
8209 (class dwarf2_queue_guard): Add parameter to constructor. Use
8210 DISABLE_COPY_AND_ASSIGN.
8211 <m_per_objfile>: New member.
8212 <~dwarf2_queue_guard>: Rewrite.
8213 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8214 Update.
8215 (~dwarf2_queue_item): New.
8216
3e225074
TT
82172020-02-08 Tom Tromey <tom@tromey.com>
8218
8219 * dwarf2/read.c (struct die_info) <has_children>: New member.
8220 (dw2_get_file_names_reader): Remove has_children.
8221 (dw2_get_file_names): Update.
8222 (read_cutu_die_from_dwo): Remove has_children.
8223 (cutu_reader::init_tu_and_read_dwo_dies)
8224 (cutu_reader::cutu_reader): Update.
8225 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8226 Remove has_children.
8227 (build_type_psymtabs_1, process_skeletonless_type_unit)
8228 (load_partial_comp_unit, load_full_comp_unit): Update.
8229 (create_dwo_cu_reader): Remove has_children.
8230 (create_cus_hash_table, read_die_and_children): Update.
8231 (read_full_die_1,read_full_die): Remove has_children.
8232 (read_signatured_type): Update.
8233 (class cutu_reader) <has_children>: Remove.
8234
82ca8957
TT
82352020-02-08 Tom Tromey <tom@tromey.com>
8236
8237 * dwarf2/expr.c: Rename from dwarf2expr.c.
8238 * dwarf2/expr.h: Rename from dwarf2expr.h.
8239 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8240 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8241 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8242 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8243 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8244 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8245 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8246 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8247 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8248 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8249 * dwarf2/loc.c: Rename from dwarf2loc.c.
8250 * dwarf2/loc.h: Rename from dwarf2loc.h.
8251 * dwarf2/read.c: Rename from dwarf2read.c.
8252 * dwarf2/read.h: Rename from dwarf2read.h.
8253 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8254 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8255 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8256 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8257 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8258 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8259 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8260 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8261 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8262 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8263 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8264 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8265 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8266 Update.
8267 * Makefile.in (COMMON_SFILES): Update.
8268 (HFILES_NO_SRCDIR): Update.
8269
9e35d499
TT
82702020-02-08 Tom Tromey <tom@tromey.com>
8271
8272 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8273 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8274
1eba2311
TT
82752020-02-08 Tom Tromey <tom@tromey.com>
8276
8277 * dwarf2read.h (struct die_info): Don't declare.
8278
e41c2da2
TT
82792020-02-08 Tom Tromey <tom@tromey.com>
8280
8281 * dwarf2read.h (die_info_ptr): Remove typedef.
8282
4fc6c0d5
TT
82832020-02-08 Tom Tromey <tom@tromey.com>
8284
8285 * dwarf2read.c (read_call_site_scope)
8286 (handle_data_member_location, dwarf2_add_member_fn)
8287 (mark_common_block_symbol_computed, read_common_block)
8288 (attr_to_dynamic_prop, partial_die_info::read)
8289 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8290 (dwarf2_symbol_mark_computed, set_die_type): Update.
8291 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8292 method.
8293 (attr_form_is_block): Don't declare.
8294 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8295
cd6c91b4
TT
82962020-02-08 Tom Tromey <tom@tromey.com>
8297
8298 * dwarf2read.c (dwarf2_find_base_address, )
8299 (read_call_site_scope, rust_containing_type)
8300 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8301 (handle_data_member_location, dwarf2_add_member_fn)
8302 (get_alignment, read_structure_type, process_structure_scope)
8303 (mark_common_block_symbol_computed, read_common_block)
8304 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8305 (partial_die_info::read, read_attribute_value, new_symbol)
8306 (lookup_die_type, dwarf2_get_ref_die_offset)
8307 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8308 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8309 (dwarf2_symbol_mark_computed): Update.
8310 * dwarf2/attribute.h (struct attribute) <value_as_address,
8311 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8312 methods.
8313 (value_as_address, attr_form_is_section_offset)
8314 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8315 * dwarf2/attribute.c (attribute::value_as_address)
8316 (attribute::form_is_section_offset, attribute::form_is_constant)
8317 (attribute::form_is_ref): Now methods.
8318
162dce55
TT
83192020-02-08 Tom Tromey <tom@tromey.com>
8320
8321 * dwarf2read.c (struct attribute, DW_STRING)
8322 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8323 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8324 (attr_form_is_block, attr_form_is_section_offset)
8325 (attr_form_is_constant, attr_form_is_ref): Move.
8326 * dwarf2/attribute.h: New file.
8327 * dwarf2/attribute.c: New file, from dwarf2read.c.
8328 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8329
3054dd54
TT
83302020-02-08 Tom Tromey <tom@tromey.com>
8331
8332 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8333 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8334 Move.
8335 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8336 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8337 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8338 abbrev.c.
8339 * dwarf2/abbrev.h: New file.
8340 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8341 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8342
96b79293
TT
83432020-02-08 Tom Tromey <tom@tromey.com>
8344
8345 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8346 (dwarf2_section_size, dwarf2_get_section_info)
8347 (create_signatured_type_table_from_debug_names)
8348 (create_addrmap_from_aranges, read_debug_names_from_section)
8349 (get_gdb_index_contents_from_section, read_comp_unit_head)
8350 (error_check_comp_unit_head, read_abbrev_offset)
8351 (create_debug_type_hash_table, init_cu_die_reader)
8352 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8353 (read_comp_units_from_section, create_cus_hash_table)
8354 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8355 (create_dwp_v2_section, dwarf2_rnglists_process)
8356 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8357 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8358 (read_indirect_string_from_dwz, read_addr_index_1)
8359 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8360 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8361 (fill_in_loclist_baton): Update.
8362 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8363 get_containing_section, get_bfd_owner, get_bfd_section,
8364 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8365 (dwarf2_read_section, get_section_name, get_section_file_name)
8366 (get_containing_section, get_section_bfd_owner)
8367 (get_section_bfd_section, get_section_name, get_section_file_name)
8368 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8369 declare.
8370 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8371 (dwarf2_section_info::get_bfd_owner)
8372 (dwarf2_section_info::get_bfd_section)
8373 (dwarf2_section_info::get_name)
8374 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8375 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8376 (dwarf2_section_info::read): Now methods.
8377 * dwarf-index-write.c (class debug_names): Update.
8378
2c86cff9
TT
83792020-02-08 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8382 Move to dwarf2/section.h.
8383 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8384 (get_section_bfd_section, get_section_name)
8385 (get_section_file_name, get_section_id, get_section_flags)
8386 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8387 dwarf2/section.c.
8388 * dwarf2/section.h: New file.
8389 * dwarf2/section.c: New file, from dwarf2read.c.
8390 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8391
f4382c45
TT
83922020-02-08 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8395 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8396 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8397 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8398 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8399 * dwarf2/leb.h: New file, from dwarf2read.c.
8400 * dwarf2/leb.c: New file, from dwarf2read.c.
8401 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8402 Remove.
8403 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8404 (COMMON_SFILES): Add dwarf2/leb.c.
8405
01840b7a
JB
84062020-02-08 Joel Brobecker <brobecker@adacore.com>
8407
8408 GDB 9.1 released.
8409
dfcb27e4
IB
84102020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8411
8412 PR gdb/25190:
aac66a4c
SM
8413 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8414 * gdb/remote.c (remote_console_output): Update.
8415 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8416 (ui_file_puts): ...this.
8417 * gdb/ui-file.h (ui_file_puts): Add declaration.
8418 * gdb/utils.c (emit_style_escape): Update.
8419 (flush_wrap_buffer): Update.
8420 (fputs_maybe_filtered): Update.
8421 (fputs_unfiltered): Add function.
dfcb27e4 8422
faa17681
IB
84232020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8424
aac66a4c
SM
8425 * gdb/event-loop.c (gdb_wait_for_event): Update.
8426 * gdb/printcmd.c (printf_command): Update.
8427 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8428 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8429 (gdb_os_flush_stderr): Update.
8430 * gdb/remote.c (remote_console_output): Update.
8431 * gdb/ui-file.c (gdb_flush): Rename to...
8432 (ui_file_flush): ...this.
8433 (stderr_file::write): Update.
8434 (stderr_file::puts): Update.
8435 * gdb/ui-file.h (gdb_flush): Rename to...
8436 (ui_file_flush): ...this.
8437 * gdb/utils.c (gdb_flush): Add function.
8438 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8439
5abbbe1d
TT
84402020-02-07 Tom Tromey <tromey@adacore.com>
8441
8442 PR breakpoints/24915:
8443 * source.c (find_and_open_source): Do not check basenames_may_differ.
8444
919adfe8
TT
84452020-02-07 Tom Tromey <tom@tromey.com>
8446
8447 * README: Update gdbserver documentation.
8448 * gdbserver: Move to top level.
8449 * configure.tgt (build_gdbserver): Remove.
8450 * configure.ac: Remove --enable-gdbserver.
8451 * configure: Rebuild.
8452 * Makefile.in (distclean): Don't mention gdbserver.
8453
1d5d29e7
SV
84542020-02-06 Shahab Vahedi <shahab@synopsys.com>
8455
8456 * source-cache.c (source_cache::ensure): Surround
8457 get_plain_source_lines with a try/catch.
8458 (source_cache::get_line_charpos): Get rid of try/catch
8459 and only check for the return value of "ensure".
8460 * tui/tui-source.c (tui_source_window::set_contents):
8461 Simplify "nlines" calculation.
8462
6eb1129c
SV
84632020-02-06 Shahab Vahedi <shahab@synopsys.com>
8464
8465 * MAINTAINERS (Write After Approval): Add myself.
8466
c6a42d11
CB
84672020-02-05 Christian Biesinger <cbiesinger@google.com>
8468
8469 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8470 function call.
8471
c8ecdda6
CB
84722020-02-05 Christian Biesinger <cbiesinger@google.com>
8473
8474 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8475
f6480e70
MR
84762020-02-05 Maciej W. Rozycki <macro@wdc.com>
8477
8478 * nat/riscv-linux-tdesc.h: New file.
8479 * nat/riscv-linux-tdesc.c: New file, taking code from...
8480 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8481 ... here.
8482 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8483 NATDEPFILES.
8484
dcc9fbc6
AB
84852020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8486
8487 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8488 we don't set the fake simulator ptid to the null_ptid.
8489
719546c4
SM
84902020-02-03 Simon Marchi <simon.marchi@efficios.com>
8491
8492 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8493 * gdbthread.h (class thread_info) <resumed>: Likewise.
8494 * infrun.c (resume_1): Likewise.
8495 (proceed): Likewise.
8496 (infrun_thread_stop_requested): Likewise.
8497 (stop_all_threads): Likewise.
8498 (handle_inferior_event): Likewise.
8499 (restart_threads): Likewise.
8500 (finish_step_over): Likewise.
8501 (keep_going_stepped_thread): Likewise.
8502 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8503 (linux_handle_extended_wait): Likewise.
8504 * record-btrace.c (get_thread_current_frame_id): Likewise.
8505 * record-full.c (record_full_wait_1): Likewise.
8506 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8507 * target.c (target_resume): Likewise.
8508 * thread.c (set_running_thread): Likewise.
8509
e409c542
AKS
85102020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8511
8512 * f-valprint.c (f77_print_array_1): Changed datatype of index
8513 variable to LONGEST from int to enable it to contain bound
8514 values correctly.
8515
ee98c0da
MR
85162020-02-03 Maciej W. Rozycki <macro@wdc.com>
8517
8518 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8519 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8520 offsets according to FLEN determined.
8521 (riscv_linux_nat_target::read_description): Determine FLEN
8522 dynamically.
8523 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8524 according to FLEN determined.
8525 (riscv_linux_nat_target::store_registers): Likewise.
8526
aa66aac4
SV
85272020-02-01 Shahab Vahedi <shahab@synopsys.com>
8528
8529 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8530 when reg->group is empty and reggroup is not.
8531
fd9faca8
TT
85322020-01-31 Tom Tromey <tromey@adacore.com>
8533
8534 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8535 Call beneath target's mourn_inferior after unpushing.
8536
42330a68
AB
85372020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8538
8539 PR tui/9765
8540 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8541 have enough lines to fill the screen, still return the lowest
8542 address we found.
8543
7a27a45b
AB
85442020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8545
8546 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8547 '-', '<', and '>' commands.
8548
c47f70e2
PA
85492020-01-29 Pedro Alves <palves@redhat.com>
8550 Sergio Durigan Junior <sergiodj@redhat.com>
8551
8552 * infcmd.c (construct_inferior_arguments): Assert that
8553 'argc' is greater than 0.
8554
5133a315
LM
85552020-01-29 Luis Machado <luis.machado@linaro.org>
8556
8557 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8558 (BRK_INSN_MASK): Define to 0xd4200000.
8559 (aarch64_program_breakpoint_here_p): New function.
8560 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8561 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8562 breakpoint.c.
8563 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8564 breakpoint.h
8565 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8566 call gdbarch_program_breakpoint_here_p.
8567 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8568 default_program_breakpoint_here_p, changed return type to bool and
8569 simplified.
8570 * breakpoint.h (program_breakpoint_here): Moved prototype to
8571 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8572 return type to bool.
8573 * gdbarch.c: Regenerate.
8574 * gdbarch.h: Regenerate.
8575 * gdbarch.sh (program_breakpoint_here_p): New method.
8576 * infrun.c (handle_signal_stop): Call
8577 gdbarch_program_breakpoint_here_p.
8578
168f8c6b
TT
85792020-01-26 Tom Tromey <tom@tromey.com>
8580
8581 * ctfread.c (struct ctf_fp_info): Reindent.
8582 (_initialize_ctfread): Remove.
8583
128a391f
TT
85842020-01-26 Tom Tromey <tom@tromey.com>
8585
8586 * psymtab.c (partial_map_expand_apply)
8587 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8588 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8589 (psym_print_stats, psym_expand_symtabs_for_function)
8590 (psym_map_symbol_filenames, psym_map_matching_symbols)
8591 (psym_expand_symtabs_matching)
8592 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8593 (maintenance_check_psymtabs): Use new methods.
8594 * psympriv.h (struct partial_symtab) <readin_p,
8595 get_compunit_symtab>: New methods.
8596 <readin, compunit_symtab>: Remove members.
8597 (struct standard_psymtab): New.
8598 (struct legacy_psymtab): Derive from standard_psymtab.
8599 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8600 standard_psymtab.
8601 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8602
0494dbec
TT
86032020-01-26 Tom Tromey <tom@tromey.com>
8604
8605 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8606 read_dependencies. Add assert.
8607 * psymtab.c (partial_symtab::read_dependencies): New method.
8608 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8609 method.
8610 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8611 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8612 read_dependencies.
8613 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8614 Add assert.
8615
8566b89b
TT
86162020-01-26 Tom Tromey <tom@tromey.com>
8617
8618 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8619 Call expand_psymtab.
8620 (xcoff_read_symtab): Call expand_psymtab.
8621 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8622 legacy_expand_psymtab.
8623 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8624 method.
8625 (struct legacy_psymtab) <expand_psymtab>: Implement.
8626 <legacy_expand_psymtab>: New member.
8627 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8628 (parse_partial_symbols): Set legacy_expand_psymtab.
8629 (psymtab_to_symtab_1): Change argument order. Call
8630 expand_psymtab.
8631 (new_psymtab): Set legacy_expand_psymtab.
8632 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8633 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8634 expand_psymtab.
8635 (dwarf2_psymtab::expand_psymtab): Rename from
8636 psymtab_to_symtab_1. Call expand_psymtab.
8637 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8638 (dbx_end_psymtab): Likewise.
8639 (dbx_psymtab_to_symtab_1): Change argument order. Call
8640 expand_psymtab.
8641 (dbx_read_symtab): Call expand_psymtab.
8642 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8643 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8644 (ctf_psymtab::read_symtab): Call expand_psymtab.
8645
077cbab2
TT
86462020-01-26 Tom Tromey <tom@tromey.com>
8647
8648 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8649 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8650 messages.
8651 * mdebugread.c (mdebug_read_symtab): Remove prints.
8652 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8653 assert.
8654 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8655
891813be
TT
86562020-01-26 Tom Tromey <tom@tromey.com>
8657
8658 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8659 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8660 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8661 legacy_symtab.
8662 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8663 * psymtab.c (psymtab_to_symtab): Call method.
8664 (dump_psymtab): Update.
8665 * psympriv.h (struct partial_symtab): Add virtual destructor.
8666 <read_symtab>: New method.
8667 (struct legacy_symtab): New.
8668 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8669 (struct pst_map) <pst>: Now a legacy_psymtab.
8670 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8671 (new_psymtab): Use legacy_psymtab.
8672 * dwarf2read.h (struct dwarf2_psymtab): New.
8673 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8674 * dwarf2read.c (dwarf2_create_include_psymtab)
8675 (dwarf2_build_include_psymtabs, create_type_unit_group)
8676 (create_partial_symtab, process_psymtab_comp_unit_reader)
8677 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8678 (set_partial_user): Use dwarf2_psymtab.
8679 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8680 (psymtab_to_symtab_1, process_full_comp_unit)
8681 (process_full_type_unit, dwarf2_ranges_read)
8682 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8683 (dwarf_decode_lines): Use dwarf2_psymtab.
8684 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8685 (add_address_entry_worker, write_one_signatured_type)
8686 (recursively_count_psymbols, recursively_write_psymbols)
8687 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8688 (write_debug_names): Likewise.
8689 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8690 <pst>: Now a legacy_psymtab.
8691 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8692 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8693 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8694 * ctfread.c (struct ctf_psymtab): New.
8695 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8696 ctf_psymtab.
8697 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8698 (create_partial_symtab): Return a ctf_psymtab.
8699 (scan_partial_symbols): Update.
8700
c3693a1d
TT
87012020-01-26 Tom Tromey <tom@tromey.com>
8702
8703 * xcoffread.c (xcoff_start_psymtab): Use new.
8704 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8705 renamed from start_psymtab_common.
8706 * psympriv.h (struct partial_symtab): Add new constructor.
8707 (start_psymtab_common): Don't declare.
8708 * mdebugread.c (parse_partial_symbols): Use new.
8709 * dwarf2read.c (create_partial_symtab): Use new.
8710 * dbxread.c (start_psymtab): Use new.
8711 * ctfread.c (create_partial_symtab): Use new.
8712
32caafd0
TT
87132020-01-26 Tom Tromey <tom@tromey.com>
8714
8715 * xcoffread.c (xcoff_end_psymtab): Use new.
8716 * psymtab.c (start_psymtab_common): Use new.
8717 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8718 Update.
8719 * psympriv.h (struct partial_symtab): Add parameters to
8720 constructor. Don't inline.
8721 (allocate_psymtab): Don't declare.
8722 * mdebugread.c (new_psymtab): Use new.
8723 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8724 * dbxread.c (dbx_end_psymtab): Use new.
8725
abaa2f23
TT
87262020-01-26 Tom Tromey <tom@tromey.com>
8727
8728 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8729 allocate_psymtab. Update documentation.
8730 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8731 allocate_psymtab. Do not use new.
8732 (allocate_psymtab): Use new. Update.
8733
6d94535f
TT
87342020-01-26 Tom Tromey <tom@tromey.com>
8735
8736 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8737 * psymtab.c (psym_print_stats): Update.
8738 * psympriv.h (struct partial_symtab) <readin,
8739 psymtabs_addrmap_supported, anonymous>: Now bool.
8740 * mdebugread.c (psymtab_to_symtab_1): Update.
8741 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8742 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8743 (process_full_comp_unit, process_full_type_unit): Update.
8744 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8745 * ctfread.c (psymtab_to_symtab): Update.
8746
6f17252b
TT
87472020-01-26 Tom Tromey <tom@tromey.com>
8748
8749 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8750 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8751 * psymtab.c (psymtab_storage): Delete psymtabs.
8752 (psymtab_storage::allocate_psymtab): Use new.
8753 (psymtab_storage::discard_psymtab): Use delete.
8754 * psympriv.h (struct partial_symtab): Add constructor and
8755 initializers.
8756
f6f1cebc
TT
87572020-01-26 Tom Tromey <tom@tromey.com>
8758
8759 * machoread.c: Do not include psympriv.h.
8760
e47e48f6
PW
87612020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8762
8763 * NEWS: Mention the new option and the set/show commands.
8764
a2fedca9
PW
87652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8766
8767 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8768 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8769 (validate_exec_file): New variables, enums, functions.
8770 (exec_file_locate_attach, print_section_info): Style the filenames.
8771 (_initialize_exec): Install show_exec_file_mismatch_command and
8772 set_exec_file_mismatch_command.
8773 * gdbcore.h (validate_exec_file): Declare.
8774 * infcmd.c (attach_command): Call validate_exec_file.
8775 * remote.c ( remote_target::remote_add_inferior): Likewise.
8776
7ffa82e1
AB
87772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8778
8779 * frame.c (find_frame_sal): Move call to get_next_frame into more
8780 inner scope.
8781 * inline-frame.c (inilne_state) <inline_state>: Update argument
8782 types.
8783 (inilne_state) <skipped_symbol>: Rename to...
8784 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8785 (skip_inline_frames): Build vector of skipped symbols and use this
8786 to reate the inline_state.
8787 (inline_skipped_symbol): Add a comment and some assertions, fetch
8788 skipped symbol from the list.
8789
3d92a3e3
AB
87902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * buildsym.c (lte_is_less_than): Delete.
8793 (buildsym_compunit::end_symtab_with_blockvector): Create local
8794 lambda function to sort line table entries, and use
8795 std::stable_sort instead of std::sort.
8796 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8797 markers when looking for a previous line.
8798
94a72be7
AB
87992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * dwarf2read.c (lnp_state_machine::record_line): Include
8802 end_sequence parameter in debug print out. Record the line if we
8803 are at an end_sequence marker even if it's not the start of a
8804 statement.
8805 * symmisc.c (maintenance_print_one_line_table): Print end of
8806 sequence markers with 'END' not '0'.
8807
53af73bf
PA
88082020-01-24 Pedro Alves <palves@redhat.com>
8809
8810 PR gdb/25410
8811 * thread.c (scoped_restore_current_thread::restore): Use
8812 switch_to_inferior_no_thread.
8813 * exec.c: Include "progspace-and-thread.h".
8814 (add_target_sections, remove_target_sections):
8815 scoped_restore_current_pspace_and_thread instead of
8816 scoped_restore_current_thread.
8817 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8818 and aspace to the inferior before calling clone_program_space.
8819 Remove stale comment.
8820
3050c6f4
CB
88212020-01-24 Christian Biesinger <cbiesinger@google.com>
8822
8823 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8824 (arm_netbsd_nat_target::fetch_registers): ...this.
8825 (arm_nbsd_nat_target::store_registers): Rename to...
8826 (arm_netbsd_nat_target::store_registers): ...this.
8827
73685c7e
CB
88282020-01-24 Christian Biesinger <cbiesinger@google.com>
8829
8830 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8831 register_t.
8832
89203d40
CB
88332020-01-24 Christian Biesinger <cbiesinger@google.com>
8834
8835 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8836 Update comment.
8837 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8838 Likewise.
8839 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8840 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8841 the correct replacement (iterate_over_regset_sections).
8842 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8843 Update comment.
8844
1ba1ac88
AB
88452020-01-24 Graham Markall <graham.markall@embecosm.com>
8846
8847 PR gdb/23718
8848 * gdb/python/python.c (execute_gdb_command): Call
8849 async_enable_stdin in catch block.
8850
f3364a6d
AB
88512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8852
8853 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8854 SWITCH_THRU_ALL_UIS.
8855
733d0a67
AB
88562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8857
8858 PR tui/9765
8859 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8860 comment, add extra parameter, and update to store previous symbol
8861 when appropriate.
8862 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8863 add extra parameter.
8864 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8865 remove unneeded parameter, add try/catch around gdb_print_insn,
8866 rewrite to add items to asm_lines vector.
8867 (tui_find_backward_disassembly_start_address): New function.
8868 (tui_find_disassembly_address): Updated throughout.
8869 (tui_disasm_window::set_contents): Update for changes to
8870 tui_disassemble.
8871 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8872 number of lines to scroll.
8873
b3b3bada
SM
88742020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8875
8876 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8877 (SECT_OFF_DATA): Likewise.
8878 (SECT_OFF_RODATA): Likewise.
8879 (SECT_OFF_TEXT): Likewise.
8880 (SECT_OFF_BSS): Likewise.
8881 (struct objfile) <text_section_offset, data_section_offset>: New
8882 methods.
8883 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8884 objfile::text_section_offset.
8885 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8886 * coffread.c (coff_symtab_read): Likewise.
8887 (enter_linenos): Likewise.
8888 (process_coff_symbol): Likewise.
8889 * ctfread.c (get_objfile_text_range): Likewise.
8890 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8891 Use objfile::data_section_offset.
8892 * dwarf2-frame.c (execute_cfa_program): Use
8893 objfile::text_section_offset.
8894 (dwarf2_frame_find_fde): Likewise.
8895 * dwarf2read.c (create_addrmap_from_index): Likewise.
8896 (create_addrmap_from_aranges): Likewise.
8897 (dw2_find_pc_sect_compunit_symtab): Likewise.
8898 (process_psymtab_comp_unit_reader): Likewise.
8899 (add_partial_symbol): Likewise.
8900 (add_partial_subprogram): Likewise.
8901 (process_full_comp_unit): Likewise.
8902 (read_file_scope): Likewise.
8903 (read_func_scope): Likewise.
8904 (read_lexical_block_scope): Likewise.
8905 (read_call_site_scope): Likewise.
8906 (dwarf2_rnglists_process): Likewise.
8907 (dwarf2_ranges_process): Likewise.
8908 (dwarf2_ranges_read): Likewise.
8909 (dwarf_decode_lines_1): Likewise.
8910 (new_symbol): Likewise.
8911 (dwarf2_fetch_die_loc_sect_off): Likewise.
8912 (dwarf2_per_cu_text_offset): Likewise.
8913 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8914 * hppa-tdep.c (read_unwind_info): Likewise.
8915 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8916 * psympriv.h (struct partial_symtab): Likewise.
8917 * psymtab.c (find_pc_sect_psymtab): Likewise.
8918 * solib-svr4.c (enable_break): Likewise.
8919 * stap-probe.c (relocate_address): Use
8920 objfile::data_section_offset.
8921 * xcoffread.c (enter_line_range): Use
8922 objfile::text_section_offset.
8923 (read_xcoff_symtab): Likewise.
8924
ab53f382
SM
89252020-01-23 Simon Marchi <simon.marchi@efficios.com>
8926
8927 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8928 declaration to narrower scopes.
8929
e7eee665
SM
89302020-01-23 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * darwin-nat.h (struct darwin_exception_msg, enum
8933 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8934 Move up.
8935 (class darwin_nat_target) <wait_1, check_new_threads,
8936 decode_exception_message, decode_message, stop_inferior,
8937 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8938 * darwin-nat.c (darwin_check_new_threads): Rename to...
8939 (darwin_nat_target::check_new_threads): ... this.
8940 (darwin_suspend_inferior_it): Remove.
8941 (darwin_decode_exception_message): Rename to...
8942 (darwin_nat_target::decode_exception_message): ... this.
8943 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8944 (darwin_decode_message): Rename to...
8945 (darwin_nat_target::decode_message): ... this.
8946 (cancel_breakpoint): Rename to...
8947 (darwin_nat_target::cancel_breakpoint): ... this.
8948 (darwin_wait): Rename to...
8949 (darwin_nat_target::wait_1): ... this. Use range-based for loop
8950 instead of iterate_over_inferiors.
8951 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
8952 (darwin_stop_inferior): Rename to...
8953 (darwin_nat_target::stop_inferior): ... this.
8954 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
8955 (darwin_init_thread_list): Rename to...
8956 (darwin_nat_target::init_thread_list): ... this.
8957 (darwin_ptrace_him): Rename to...
8958 (darwin_nat_target::ptrace_him): ... this.
8959 (darwin_nat_target::create_inferior): Pass lambda function to
8960 fork_inferior.
8961 (darwin_nat_target::detach): Call stop_inferior instead of
8962 darwin_stop_inferior.
8963 * fork-inferior.h (fork_inferior): Change init_trace_fun
8964 parameter to gdb::function_view.
8965 * fork-inferior.c (fork_inferior): Likewise.
8966
c162ed3e
HD
89672020-01-23 Hannes Domani <ssbssa@yahoo.de>
8968
8969 * i386-cygwin-tdep.c (core_process_module_section): Update.
8970 * windows-nat.c (struct lm_info_windows): Add text_offset.
8971 (windows_xfer_shared_libraries): Update.
8972 * windows-tdep.c (windows_xfer_shared_library):
8973 Add text_offset_cached argument.
8974 * windows-tdep.h (windows_xfer_shared_library): Update.
8975
a1237872
SM
89762020-01-21 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * gdbarch.sh: Add declaration for _initialize_gdbarch.
8979
b3ee6dd9
SM
89802020-01-21 Simon Marchi <simon.marchi@efficios.com>
8981
8982 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
8983 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
8984 replace with range-based for.
8985 (gdbsim_interrupt_inferior): Remove.
8986 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
8987 with a range-based for. Inline code from
8988 gdbsim_interrupt_inferior.
8989
f9fac3c8
SM
89902020-01-21 Simon Marchi <simon.marchi@efficios.com>
8991
8992 * infrun.c (proceed): Fix indentation.
8993
f6474de9
TT
89942020-01-21 Tom Tromey <tromey@adacore.com>
8995
8996 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
8997 * python/python.c (python_extension_ops): Update.
8998 (gdbpy_colorize): New function.
8999 * python/lib/gdb/__init__.py (colorize): New function.
9000 * extension.h (ext_lang_colorize): Declare.
9001 * extension.c (ext_lang_colorize): New function.
9002 * extension-priv.h (struct extension_language_ops) <colorize>: New
9003 member.
9004 * cli/cli-style.c (_initialize_cli_style): Update help text.
9005
f0c702d4
LM
90062020-01-21 Luis Machado <luis.machado@linaro.org>
9007
9008 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9009 <cond>: Change type to bool.
9010 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9011 (aarch64_displaced_step_cb): Likewise.
9012 (aarch64_displaced_step_tb): Likewise.
9013
1ab139e5
LM
90142020-01-21 Luis Machado <luis.machado@linaro.org>
9015
9016 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9017 output.
9018
0c271889
LM
90192020-01-21 Luis Machado <luis.machado@linaro.org>
9020
9021 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9022 <pc_adjust>: Adjust the documentation.
9023 (aarch64_displaced_step_fixup): Check if PC really moved before
9024 adjusting it.
9025
4d89c1c7
TT
90262020-01-19 Tom Tromey <tom@tromey.com>
9027
9028 * disasm.c (~gdb_disassembler): New destructor.
9029 (gdb_buffered_insn_length): Call disassemble_free_target.
9030 * disasm.h (class gdb_disassembler): Declare destructor. Use
9031 DISABLE_COPY_AND_ASSIGN.
9032
c0ab21c2
TT
90332020-01-19 Tom Tromey <tom@tromey.com>
9034
9035 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9036 (die_reader_func_ftype): Remove.
9037 (cutu_reader): New class.
9038 (dw2_get_file_names_reader): Remove "data" parameter.
9039 (dw2_get_file_names): Use cutu_reader.
9040 (create_debug_type_hash_table): Update.
9041 (read_cutu_die_from_dwo): Update comment.
9042 (lookup_dwo_unit): Add dwo_name parameter.
9043 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9044 die_reader_func_ftype and data parameters.
9045 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9046 Remove die_reader_func_ftype and data parameters.
9047 (~cutu_reader): New; from init_cutu_and_read_dies.
9048 (cutu_reader::cutu_reader): Rename from
9049 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9050 and data parameters.
9051 (init_cutu_and_read_dies_simple): Remove.
9052 (struct process_psymtab_comp_unit_data): Remove.
9053 (process_psymtab_comp_unit_reader): Remove data parameter; add
9054 want_partial_unit and pretend_language parameters.
9055 (process_psymtab_comp_unit): Use cutu_reader.
9056 (build_type_psymtabs_reader): Remove data parameter.
9057 (build_type_psymtabs_1): Use cutu_reader.
9058 (process_skeletonless_type_unit): Likewise.
9059 (load_partial_comp_unit_reader): Remove.
9060 (load_partial_comp_unit): Use cutu_reader.
9061 (load_full_comp_unit_reader): Remove.
9062 (load_full_comp_unit): Use cutu_reader.
9063 (struct create_dwo_cu_data): Remove.
9064 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9065 dwo_unit parameters.
9066 (create_cus_hash_table): Use cutu_reader.
9067 (struct dwarf2_read_addr_index_data): Remove.
9068 (dwarf2_read_addr_index_reader): Remove.
9069 (dwarf2_read_addr_index): Use cutu_reader.
9070 (read_signatured_type_reader): Remove.
9071 (read_signatured_type): Use cutu_reader.
9072
45bbae5c
TT
90732020-01-19 Tom Tromey <tom@tromey.com>
9074
9075 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9076 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9077 (tui_wrefresh): Declare.
9078 * tui/tui-wingeneral.c (suppress_output): New global.
9079 (tui_suppress_output, ~tui_suppress_output): New constructor and
9080 destructor.
9081 (tui_wrefresh): New function.
9082 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9083 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9084 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9085 method.
9086 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9087 tui_wrefresh.
9088 (tui_data_window::no_refresh): New method.
9089 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9090 (tui_reg_command): Use tui_suppress_output
9091 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9092 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9093 method.
9094 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9095
4f13c1c0
TT
90962020-01-19 Tom Tromey <tom@tromey.com>
9097
9098 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9099 Handle case where symtab is null.
9100
fa47e446
SM
91012020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9102
9103 * linux-fork.c (one_fork_p): Simplify.
9104
26f42329
SM
91052020-01-17 Simon Marchi <simon.marchi@efficios.com>
9106
9107 * top.c (struct qt_args): Remove.
9108 (kill_or_detach): Change return type to void, replace `void *`
9109 parameter with a proper one.
9110 (print_inferior_quit_action): Likewise.
9111 (quit_confirm): Use range-based for loop to iterate over inferiors.
9112 (quit_force): Likewise.
9113
a9ac81b1
SM
91142020-01-17 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9117 `void *` parameter with proper parameters.
9118 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9119 (print_one_inferior): Change return type to void, replace `void *`
9120 parameter with proper parameters.
9121 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9122 inferiors.
9123 (get_other_inferior): Remove.
9124 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9125 inferiors.
9126
788eca49
SM
91272020-01-17 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * mi/mi-interp.c (report_initial_inferior): Remove.
9130 (mi_interp::init): Use range-based for to iterate over inferiors.
9131
d9bc85b6
SM
91322020-01-17 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * python/py-inferior.c (build_inferior_list): Remove.
9135 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9136
40c94099
CB
91372020-01-16 Christian Biesinger <cbiesinger@google.com>
9138
9139 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9140 (btrace_stitch_trace): Likewise.
9141 * charset.c (intermediate_encoding): Likewise (vaild).
9142 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9143 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9144 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9145
e0cdfe3c
HD
91462020-01-16 Hannes Domani <ssbssa@yahoo.de>
9147
9148 * windows-tdep.c (windows_get_tlb_type):
9149 Add rtl_user_process_parameters type.
9150
790f1718 91512020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9152 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9153
9154 PR build/24805
9155 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9156 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9157 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9158 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9159 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9160 (ps_plog): Redeclare exported functions with default visibility.
9161
3112ed97
NA
91622020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9163
9164 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9165 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9166
8dc3273e
SM
91672020-01-15 Simon Marchi <simon.marchi@efficios.com>
9168
9169 * infcmd.c (post_create_inferior): Use get_thread_regcache
9170 instead of get_current_regcache.
9171
ff47f4f0
TT
91722020-01-14 Tom Tromey <tom@tromey.com>
9173
9174 PR symtab/12535:
9175 * python/python.c (gdbpy_decode_line): Treat empty string the same
9176 as no argument.
9177
975f45b7
TT
91782020-01-14 Tom Tromey <tom@tromey.com>
9179
9180 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9181
25e57356
TT
91822020-01-14 Tom Tromey <tom@tromey.com>
9183
9184 * nat/linux-btrace.c: Don't include <config.h>.
9185 * nat/linux-ptrace.c: Don't include <config.h>.
9186 * nat/x86-linux-dregs.c: Don't include <config.h>.
9187
05ea2a05
TT
91882020-01-14 Tom Tromey <tom@tromey.com>
9189
9190 * configure: Rebuild.
9191 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9192
01027315
TT
91932020-01-14 Tom Tromey <tom@tromey.com>
9194
9195 * nat/x86-linux-dregs.c: Include configh.h.
9196 * nat/linux-ptrace.c: Include configh.h.
9197 * nat/linux-btrace.c: Include configh.h.
9198 * defs.h: Include config.h, bfd.h.
9199 * configure.ac: Don't source common.host.
9200 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9201 * configure: Rebuild.
9202 * acinclude.m4: Update path.
9203 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9204 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9205 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9206 (CLIBS): Add LIBSUPPORT.
9207 (CDEPS): Likewise.
9208 (COMMON_SFILES): Remove gdbsupport files.
9209 (HFILES_NO_SRCDIR): Likewise.
9210 (stamp-version): Update path to create-version.sh.
9211 (ALLDEPFILES): Remove gdbsupport files.
9212
b2ceabe8
TT
92132020-01-14 Tom Tromey <tom@tromey.com>
9214
9215 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9216 USE_WIN32API when needed.
9217 * configure.ac (USE_WIN32API): Don't define.
9218 (WIN32LIBS): Use WIN32APILIBS.
9219 * configure: Rebuild.
9220
25c51f71
TT
92212020-01-14 Tom Tromey <tom@tromey.com>
9222
9223 * configure: Rebuild.
9224 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9225
717c684d
BE
92262020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9227
9228 * skip.c (skip_function_command): Make skip w/o arguments use the
9229 name of the inlined function if pc is inside any inlined function.
9230
7da6a5b9
LM
92312020-01-14 Luis Machado <luis.machado@linaro.org>
9232
9233 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9234 * infrun.c (resume_1): Likewise.
9235 (handle_inferior_event): Remove stale comment.
9236 * linux-nat.c (linux_nat_target::resume): Update comments.
9237 (save_stop_reason): Likewise.
9238 (linux_nat_filter_event): Likewise.
9239 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9240
44e4c775
AB
92412020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9242
9243 * elfread.c (record_minimal_symbol): Set section index to 0 for
9244 non-allocatable sections.
9245
18a8505e
AT
9246
92472020-01-13 Ali Tamur <tamur@google.com>
9248
9249 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9250 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9251 to gdb::optional. Update comments.
9252 (dwo_file): Update comments.
9253 (read_attribute): Update API to take an additional out parameter,
9254 need_reprocess. This is used to mark attributes that need other
9255 attributes (e.g. str_offsets_base) for correct computation which may not
9256 have been read yet.
9257 (read_attribute_reprocess): New function declaration.
9258 (read_addr_index): Likewise.
9259 (read_dwo_str_index): Likewise.
9260 (read_stub_str_index): Likewise.
9261 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9262 (lookup_addr_base): New function definition.
9263 (lookup_ranges_base): Likewise.
9264 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9265 lookup_ranges_base.
9266 (init_cutu_and_read_dies): Update comments.
9267 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9268 unit. This is used to inherit parent's str_offsets_base and addr_base.
9269 Update comments.
9270 (init_cutu_and_read_dies_simple): Reflect API changes.
9271 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9272 (create_cus_hash_table): Change API to take parent compile unit.
9273 Reflect API changes.
9274 (open_and_init_dwo_file): Reflect API changes.
9275 (dwarf2_get_pc_bounds): Update comments.
9276 (dwarf2_record_block_ranges): Likewise.
9277 (read_full_die_1): Change implementation to reprocess attributes that
9278 need str_offsets_base and addr_base.
9279 (partial_die_info::read): Likewise.
9280 (read_attribute_reprocess): New function definition.
9281 (read_attribute_value): Change API to take an additional out parameter,
9282 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9283 when a non-dwo compile unit has index based attributes.
9284 (read_attribute): Reflect API changes.
9285 (read_addr_index_1): Reflect API changes. Update comments.
9286 (dwarf2_read_addr_index_data): Reflect API changes.
9287 (dwarf2_read_addr_index): Likewise.
9288 (read_str_index): Change API and implementation. This becomes a helper
9289 to be used by the new string index related methods. Update error
9290 message and comments.
9291 (read_dwo_str_index): New function definition.
9292 (read_stub_str_index): Likewise.
9293 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9294 * symfile.h (dwarf2_debug_sections): Likewise.
9295 * xcoffread.c (dwarf2_debug_sections): Likewise.
9296
0cac9354
SM
92972020-01-13 Simon Marchi <simon.marchi@efficios.com>
9298
9299 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9300 core_reg_sect type to gdb_byte *.
9301 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9302 * cris-tdep.c (fetch_core_registers): Likewise.
9303 * corelow.c (core_target::get_core_register_section): Change
9304 type of `contents` to gdb::byte_vector.
9305
9a6d629c
AB
93062020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9307
9308 * tui/tui-wingeneral.c (box_win): Position the title in the center
9309 of the border.
9310
d8b2f9e3
SM
93112020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9312
9313 * corelow.c (core_target::get_core_register_section): Use
9314 std::vector instead of alloca.
9315
bb564c58
SM
93162020-01-13 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * warning.m4: Add -Wmissing-declarations to build_warnings.
9319 * configure: Re-generate.
9320
6b366111
SM
93212020-01-13 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * python/python.c (init__gdb_module): Add declaration.
9324
6c265988
SM
93252020-01-13 Simon Marchi <simon.marchi@efficios.com>
9326
9327 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9328 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9329 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9330 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9331 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9332 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9333 * ada-exp.y (_initialize_ada_exp): Add declaration.
9334 * ada-lang.c (_initialize_ada_language): Add declaration.
9335 * ada-tasks.c (_initialize_tasks): Add declaration.
9336 * agent.c (_initialize_agent): Add declaration.
9337 * aix-thread.c (_initialize_aix_thread): Add declaration.
9338 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9339 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9340 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9341 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9342 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9343 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9344 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9345 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9346 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9347 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9348 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9349 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9350 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9351 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9352 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9353 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9354 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9355 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9356 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9357 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9358 * annotate.c (_initialize_annotate): Add declaration.
9359 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9360 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9361 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9362 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9363 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9364 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9365 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9366 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9367 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9368 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9369 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9370 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9371 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9372 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9373 * auto-load.c (_initialize_auto_load): Add declaration.
9374 * auxv.c (_initialize_auxv): Add declaration.
9375 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9376 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9377 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9378 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9379 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9380 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9381 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9382 * breakpoint.c (_initialize_breakpoint): Add declaration.
9383 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9384 * btrace.c (_initialize_btrace): Add declaration.
9385 * charset.c (_initialize_charset): Add declaration.
9386 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9387 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9388 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9389 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9390 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9391 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9392 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9393 * coffread.c (_initialize_coffread): Add declaration.
9394 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9395 * compile/compile.c (_initialize_compile): Add declaration.
9396 * complaints.c (_initialize_complaints): Add declaration.
9397 * completer.c (_initialize_completer): Add declaration.
9398 * copying.c (_initialize_copying): Add declaration.
9399 * corefile.c (_initialize_core): Add declaration.
9400 * corelow.c (_initialize_corelow): Add declaration.
9401 * cp-abi.c (_initialize_cp_abi): Add declaration.
9402 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9403 * cp-support.c (_initialize_cp_support): Add declaration.
9404 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9405 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9406 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9407 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9408 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9409 * ctfread.c (_initialize_ctfread): Add declaration.
9410 * d-lang.c (_initialize_d_language): Add declaration.
9411 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9412 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9413 * dbxread.c (_initialize_dbxread): Add declaration.
9414 * dcache.c (_initialize_dcache): Add declaration.
9415 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9416 * disasm.c (_initialize_disasm): Add declaration.
9417 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9418 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9419 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9420 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9421 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9422 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9423 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9424 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9425 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9426 * elfread.c (_initialize_elfread): Add declaration.
9427 * exec.c (_initialize_exec): Add declaration.
9428 * extension.c (_initialize_extension): Add declaration.
9429 * f-lang.c (_initialize_f_language): Add declaration.
9430 * f-valprint.c (_initialize_f_valprint): Add declaration.
9431 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9432 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9433 * filesystem.c (_initialize_filesystem): Add declaration.
9434 * findcmd.c (_initialize_mem_search): Add declaration.
9435 * findvar.c (_initialize_findvar): Add declaration.
9436 * fork-child.c (_initialize_fork_child): Add declaration.
9437 * frame-base.c (_initialize_frame_base): Add declaration.
9438 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9439 * frame.c (_initialize_frame): Add declaration.
9440 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9441 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9442 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9443 * gcore.c (_initialize_gcore): Add declaration.
9444 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9445 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9446 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9447 * gdbarch.c (_initialize_gdbarch): Add declaration.
9448 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9449 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9450 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9451 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9452 * go-lang.c (_initialize_go_language): Add declaration.
9453 * go32-nat.c (_initialize_go32_nat): Add declaration.
9454 * guile/guile.c (_initialize_guile): Add declaration.
9455 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9456 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9457 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9458 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9459 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9460 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9461 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9462 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9463 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9464 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9465 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9466 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9467 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9468 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9469 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9470 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9471 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9472 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9473 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9474 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9475 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9476 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9477 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9478 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9479 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9480 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9481 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9482 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9483 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9484 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9485 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9486 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9487 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9488 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9489 * infcall.c (_initialize_infcall): Add declaration.
9490 * infcmd.c (_initialize_infcmd): Add declaration.
9491 * inflow.c (_initialize_inflow): Add declaration.
9492 * infrun.c (_initialize_infrun): Add declaration.
9493 * interps.c (_initialize_interpreter): Add declaration.
9494 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9495 * jit.c (_initialize_jit): Add declaration.
9496 * language.c (_initialize_language): Add declaration.
9497 * linux-fork.c (_initialize_linux_fork): Add declaration.
9498 * linux-nat.c (_initialize_linux_nat): Add declaration.
9499 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9500 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9501 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9502 * m2-lang.c (_initialize_m2_language): Add declaration.
9503 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9504 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9505 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9506 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9507 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9508 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9509 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9510 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9511 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9512 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9513 * machoread.c (_initialize_machoread): Add declaration.
9514 * macrocmd.c (_initialize_macrocmd): Add declaration.
9515 * macroscope.c (_initialize_macroscope): Add declaration.
9516 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9517 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9518 * maint.c (_initialize_maint_cmds): Add declaration.
9519 * mdebugread.c (_initialize_mdebugread): Add declaration.
9520 * memattr.c (_initialize_mem): Add declaration.
9521 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9522 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9523 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9524 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9525 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9526 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9527 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9528 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9529 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9530 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9531 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9532 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9533 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9534 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9535 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9536 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9537 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9538 * mipsread.c (_initialize_mipsread): Add declaration.
9539 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9540 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9541 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9542 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9543 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9544 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9545 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9546 * nto-procfs.c (_initialize_procfs): Add declaration.
9547 * objc-lang.c (_initialize_objc_language): Add declaration.
9548 * observable.c (_initialize_observer): Add declaration.
9549 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9550 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9551 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9552 * osabi.c (_initialize_gdb_osabi): Add declaration.
9553 * osdata.c (_initialize_osdata): Add declaration.
9554 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9555 * parse.c (_initialize_parse): Add declaration.
9556 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9557 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9558 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9559 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9560 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9561 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9562 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9563 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9564 * printcmd.c (_initialize_printcmd): Add declaration.
9565 * probe.c (_initialize_probe): Add declaration.
9566 * proc-api.c (_initialize_proc_api): Add declaration.
9567 * proc-events.c (_initialize_proc_events): Add declaration.
9568 * proc-service.c (_initialize_proc_service): Add declaration.
9569 * procfs.c (_initialize_procfs): Add declaration.
9570 * producer.c (_initialize_producer): Add declaration.
9571 * psymtab.c (_initialize_psymtab): Add declaration.
9572 * python/python.c (_initialize_python): Add declaration.
9573 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9574 * record-btrace.c (_initialize_record_btrace): Add declaration.
9575 * record-full.c (_initialize_record_full): Add declaration.
9576 * record.c (_initialize_record): Add declaration.
9577 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9578 * regcache.c (_initialize_regcache): Add declaration.
9579 * reggroups.c (_initialize_reggroup): Add declaration.
9580 * remote-notif.c (_initialize_notif): Add declaration.
9581 * remote-sim.c (_initialize_remote_sim): Add declaration.
9582 * remote.c (_initialize_remote): Add declaration.
9583 * reverse.c (_initialize_reverse): Add declaration.
9584 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9585 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9586 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9587 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9588 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9589 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9590 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9591 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9592 Add declaration.
9593 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9594 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9595 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9596 * rust-exp.y (_initialize_rust_exp): Add declaration.
9597 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9598 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9599 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9600 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9601 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9602 * score-tdep.c (_initialize_score_tdep): Add declaration.
9603 * ser-go32.c (_initialize_ser_dos): Add declaration.
9604 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9605 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9606 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9607 * ser-uds.c (_initialize_ser_socket): Add declaration.
9608 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9609 * serial.c (_initialize_serial): Add declaration.
9610 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9611 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9612 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9613 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9614 * skip.c (_initialize_step_skip): Add declaration.
9615 * sol-thread.c (_initialize_sol_thread): Add declaration.
9616 * solib-aix.c (_initialize_solib_aix): Add declaration.
9617 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9618 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9619 * solib-frv.c (_initialize_frv_solib): Add declaration.
9620 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9621 * solib-target.c (_initialize_solib_target): Add declaration.
9622 * solib.c (_initialize_solib): Add declaration.
9623 * source-cache.c (_initialize_source_cache): Add declaration.
9624 * source.c (_initialize_source): Add declaration.
9625 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9626 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9627 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9628 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9629 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9630 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9631 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9632 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9633 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9634 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9635 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9636 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9637 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9638 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9639 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9640 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9641 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9642 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9643 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9644 * stabsread.c (_initialize_stabsread): Add declaration.
9645 * stack.c (_initialize_stack): Add declaration.
9646 * stap-probe.c (_initialize_stap_probe): Add declaration.
9647 * std-regs.c (_initialize_frame_reg): Add declaration.
9648 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9649 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9650 * symfile.c (_initialize_symfile): Add declaration.
9651 * symmisc.c (_initialize_symmisc): Add declaration.
9652 * symtab.c (_initialize_symtab): Add declaration.
9653 * target.c (_initialize_target): Add declaration.
9654 * target-connection.c (_initialize_target_connection): Add
9655 declaration.
9656 * target-dcache.c (_initialize_target_dcache): Add declaration.
9657 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9658 * thread.c (_initialize_thread): Add declaration.
9659 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9660 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9661 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9662 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9663 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9664 * tracectf.c (_initialize_ctf): Add declaration.
9665 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9666 * tracefile.c (_initialize_tracefile): Add declaration.
9667 * tracepoint.c (_initialize_tracepoint): Add declaration.
9668 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9669 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9670 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9671 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9672 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9673 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9674 * tui/tui.c (_initialize_tui): Add declaration.
9675 * typeprint.c (_initialize_typeprint): Add declaration.
9676 * ui-style.c (_initialize_ui_style): Add declaration.
9677 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9678 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9679 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9680 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9681 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9682 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9683 * unittests/filtered_iterator-selftests.c
9684 (_initialize_filtered_iterator_selftests): Add declaration.
9685 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9686 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9687 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9688 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9689 * unittests/main-thread-selftests.c
9690 (_initialize_main_thread_selftests): Add declaration.
9691 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9692 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9693 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9694 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9695 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9696 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9697 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9698 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9699 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9700 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9701 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9702 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9703 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9704 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9705 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9706 declaration.
9707 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9708 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9709 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9710 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9711 * user-regs.c (_initialize_user_regs): Add declaration.
9712 * utils.c (_initialize_utils): Add declaration.
9713 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9714 * valops.c (_initialize_valops): Add declaration.
9715 * valprint.c (_initialize_valprint): Add declaration.
9716 * value.c (_initialize_values): Add declaration.
9717 * varobj.c (_initialize_varobj): Add declaration.
9718 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9719 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9720 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9721 * windows-nat.c (_initialize_windows_nat): Add declaration.
9722 (_initialize_check_for_gdb_ini): Add declaration.
9723 (_initialize_loadable): Add declaration.
9724 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9725 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9726 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9727 * xcoffread.c (_initialize_xcoffread): Add declaration.
9728 * xml-support.c (_initialize_xml_support): Add declaration.
9729 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9730 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9731 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9732 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9733
e2de1eec
SM
97342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9735
9736 * regformats/regdat.sh: Generate declaration for init function.
9737
e0037b4c
SM
97382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9739
9740 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9741 up.
9742 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9743 close_one_inferior>: New methods.
9744 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9745 pass down target to find_inferior_pid.
9746 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9747 Pass down target to find_inferior_ptid.
9748 (gdbsim_target::create_inferior): Pass down target to
9749 add_thread_silent.
9750 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9751 target down to find_inferior_ptid and switch_to_thread.
9752 (gdbsim_target::close): Update to call close_one_inferior.
9753 (struct resume_data): Remove.
9754 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9755 directly, rather than through a void pointer.
9756 (gdbsim_target::resume): Update to call resume_one_inferior.
9757
58920b5b
SM
97582020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9759
9760 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9761
4ec89149
PA
97622020-01-12 Pedro Alves <palves@redhat.com>
9763
9764 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9765 directly for the current inferior instead of
9766 discard_all_inferiors.
9767 (discard_all_inferiors): Delete.
9768
7c392d1d
TT
97692020-01-11 Tom Tromey <tom@tromey.com>
9770
9771 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9772 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9773 deprecated_safe_get_selected_frame.
9774
d9ebdab7
TBA
97752020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9776
9777 * inferior.c (print_inferior): Switch inferior before printing it.
9778
f3c469b9
PA
97792020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9780 Pedro Alves <palves@redhat.com>
9781
9782 * progspace-and-thread.c (switch_to_program_space_and_thread):
9783 Assert there's an inferior for PSPACE. Use
9784 switch_to_inferior_no_thread to switch the inferior too.
9785 * progspace.c (program_space::~program_space): Call
9786 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9787 (program_space::free_all_objfiles): Don't call clear_symtab_users
9788 here.
9789 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9790
65c574f6
PA
97912020-01-10 Pedro Alves <palves@redhat.com>
9792
9793 * NEWS: Mention multi-target debugging, "info connections", and
9794 "add-inferior -no-connection".
9795
2f4fcf00
PA
97962020-01-10 Pedro Alves <palves@redhat.com>
9797
9798 * infrun.c: Include "target-connection.h".
9799 (check_multi_target_resumption): New.
9800 (proceed): Call it.
9801 * target-connection.c (make_target_connection_string): Make
9802 extern.
9803 * target-connection.h (make_target_connection_string): Declare.
9804
121b3efd
PA
98052020-01-10 Pedro Alves <palves@redhat.com>
9806
9807 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9808 * inferior.c (uiout_field_connection): New function.
9809 (print_inferior): Add new "connection-id" column.
9810 (add_inferior_command): Show connection number/string of added
9811 inferior.
9812 * process-stratum-target.h
9813 (process_stratum_target::connection_string): New virtual method.
9814 (process_stratum_target::connection_number): New field.
9815 * remote.c (remote_target::connection_string): New override.
9816 * target-connection.c: New file.
9817 * target-connection.h: New file.
9818 * target.c (decref_target): Remove process_stratum targets from
9819 the connection list.
9820 (target_stack::push): Add process_stratum targets to the
9821 connection list.
9822
4f837581
PA
98232020-01-10 Pedro Alves <palves@redhat.com>
9824
9825 Revert:
9826 2016-04-12 Pedro Alves <palves@redhat.com>
9827 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9828 Remove references to name.
9829 * serial.h (struct serial) <name>: Delete.
9830
f4ec508e
PA
98312020-01-10 Pedro Alves <palves@redhat.com>
9832
9833 * gdbarch-selftests.c (register_to_value_test): Remove "target
9834 already pushed" check.
9835
5b6d1e4f
PA
98362020-01-10 Pedro Alves <palves@redhat.com>
9837 John Baldwin <jhb@FreeBSD.org>
9838
9839 * aarch64-linux-nat.c
9840 (aarch64_linux_nat_target::thread_architecture): Adjust.
9841 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9842 (task_command_1): Likewise.
9843 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9844 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9845 (aix_thread_target::store_registers)
9846 (aix_thread_target::thread_alive): Adjust.
9847 * amd64-fbsd-tdep.c: Include "inferior.h".
9848 (amd64fbsd_get_thread_local_address): Pass down target.
9849 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9850 thread's gdbarch instead of target_gdbarch.
9851 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9852 get_last_target_status.
9853 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9854 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9855 inferiors.
9856 (update_inserted_breakpoint_locations): Skip if inferiors with no
9857 execution.
9858 (update_global_location_list): When handling moribund locations,
9859 find representative inferior for location's pspace, and use thread
9860 count of its process_stratum target.
9861 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9862 * bsd-uthread.c (bsd_uthread_target::wait): Use
9863 as_process_stratum_target and adjust thread_change_ptid and
9864 add_thread calls.
9865 (bsd_uthread_target::update_thread_list): Use
9866 as_process_stratum_target and adjust find_thread_ptid,
9867 thread_change_ptid and add_thread calls.
9868 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9869 find_thread_ptid call.
9870 * corelow.c (add_to_thread_list): Adjust add_thread call.
9871 (core_target_open): Adjust add_thread_silent and thread_count
9872 calls.
9873 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9874 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9875 * event-top.c (async_disconnect): Pop targets from all inferiors.
9876 * exec.c (add_target_sections): Push exec target on all inferiors
9877 sharing the program space.
9878 (remove_target_sections): Remove the exec target from all
9879 inferiors sharing the program space.
9880 (exec_on_vfork): New.
9881 * exec.h (exec_on_vfork): Declare.
9882 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9883 Pass it down.
9884 (fbsd_nat_target::update_thread_list): Adjust.
9885 (fbsd_nat_target::resume): Adjust.
9886 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9887 down.
9888 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9889 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9890 get_thread_arch_regcache call.
9891 * fork-child.c (gdb_startup_inferior): Pass target down to
9892 startup_inferior and set_executing.
9893 * gdbthread.h (struct process_stratum_target): Forward declare.
9894 (add_thread, add_thread_silent, add_thread_with_info)
9895 (in_thread_list): Add process_stratum_target parameter.
9896 (find_thread_ptid(inferior*, ptid_t)): New overload.
9897 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9898 parameter.
9899 (all_threads()): Delete overload.
9900 (all_threads, all_non_exited_threads): Add process_stratum_target
9901 parameter.
9902 (all_threads_safe): Use brace initialization.
9903 (thread_count): Add process_stratum_target parameter.
9904 (set_resumed, set_running, set_stop_requested, set_executing)
9905 (threads_are_executing, finish_thread_state): Add
9906 process_stratum_target parameter.
9907 (switch_to_thread): Use is_current_thread.
9908 * i386-fbsd-tdep.c: Include "inferior.h".
9909 (i386fbsd_get_thread_local_address): Pass down target.
9910 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9911 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9912 have_inferiors check.
9913 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9914 (inf_ptrace_target::attach): Adjust.
9915 * infcall.c (run_inferior_call): Adjust.
9916 * infcmd.c (run_command_1): Pass target to
9917 scoped_finish_thread_state.
9918 (proceed_thread_callback): Skip inferiors with no execution.
9919 (continue_command): Rename 'all_threads' local to avoid hiding
9920 'all_threads' function. Adjust get_last_target_status call.
9921 (prepare_one_step): Adjust set_running call.
9922 (signal_command): Use user_visible_resume_target. Compare thread
9923 pointers instead of inferior_ptid.
9924 (info_program_command): Adjust to pass down target.
9925 (attach_command): Mark target's 'thread_executing' flag.
9926 (stop_current_target_threads_ns): New, factored out from ...
9927 (interrupt_target_1): ... this. Switch inferior before making
9928 target calls.
9929 * inferior-iter.h
9930 (struct all_inferiors_iterator, struct all_inferiors_range)
9931 (struct all_inferiors_safe_range)
9932 (struct all_non_exited_inferiors_range): Filter on
9933 process_stratum_target too. Remove explicit.
9934 * inferior.c (inferior::inferior): Push dummy target on target
9935 stack.
9936 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9937 Add process_stratum_target parameter, and pass it down.
9938 (have_live_inferiors): Adjust.
9939 (switch_to_inferior_and_push_target): New.
9940 (add_inferior_command, clone_inferior_command): Handle
9941 "-no-connection" parameter. Use
9942 switch_to_inferior_and_push_target.
9943 (_initialize_inferior): Mention "-no-connection" option in
9944 the help of "add-inferior" and "clone-inferior" commands.
9945 * inferior.h: Include "process-stratum-target.h".
9946 (interrupt_target_1): Use bool.
9947 (struct inferior) <push_target, unpush_target, target_is_pushed,
9948 find_target_beneath, top_target, process_target, target_at,
9949 m_stack>: New.
9950 (discard_all_inferiors): Delete.
9951 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
9952 (all_inferiors, all_non_exited_inferiors): Add
9953 process_stratum_target parameter.
9954 * infrun.c: Include "gdb_select.h" and <unordered_map>.
9955 (target_last_proc_target): New global.
9956 (follow_fork_inferior): Push target on new inferior. Pass target
9957 to add_thread_silent. Call exec_on_vfork. Handle target's
9958 reference count.
9959 (follow_fork): Adjust get_last_target_status call. Also consider
9960 target.
9961 (follow_exec): Push target on new inferior.
9962 (struct execution_control_state) <target>: New field.
9963 (user_visible_resume_target): New.
9964 (do_target_resume): Call target_async.
9965 (resume_1): Set target's threads_executing flag. Consider resume
9966 target.
9967 (commit_resume_all_targets): New.
9968 (proceed): Also consider resume target. Skip threads of inferiors
9969 with no execution. Commit resumtion in all targets.
9970 (start_remote): Pass current inferior to wait_for_inferior.
9971 (infrun_thread_stop_requested): Consider target as well. Pass
9972 thread_info pointer to clear_inline_frame_state instead of ptid.
9973 (infrun_thread_thread_exit): Consider target as well.
9974 (random_pending_event_thread): New inferior parameter. Use it.
9975 (do_target_wait): Rename to ...
9976 (do_target_wait_1): ... this. Add inferior parameter, and pass it
9977 down.
9978 (threads_are_resumed_pending_p, do_target_wait): New.
9979 (prepare_for_detach): Adjust calls.
9980 (wait_for_inferior): New inferior parameter. Handle it. Use
9981 do_target_wait_1 instead of do_target_wait.
9982 (fetch_inferior_event): Adjust. Switch to representative
9983 inferior. Pass target down.
9984 (set_last_target_status): Add process_stratum_target parameter.
9985 Save target in global.
9986 (get_last_target_status): Add process_stratum_target parameter and
9987 handle it.
9988 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
9989 (context_switch): Check inferior_ptid == null_ptid before calling
9990 inferior_thread().
9991 (get_inferior_stop_soon): Pass down target.
9992 (wait_one): Rename to ...
9993 (poll_one_curr_target): ... this.
9994 (struct wait_one_event): New.
9995 (wait_one): New.
9996 (stop_all_threads): Adjust.
9997 (handle_no_resumed, handle_inferior_event): Adjust to consider the
9998 event's target.
9999 (switch_back_to_stepped_thread): Also consider target.
10000 (print_stop_event): Update.
10001 (normal_stop): Update. Also consider the resume target.
10002 * infrun.h (wait_for_inferior): Remove declaration.
10003 (user_visible_resume_target): New declaration.
10004 (get_last_target_status, set_last_target_status): New
10005 process_stratum_target parameter.
10006 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10007 process_stratum_target parameter, and use it.
10008 (clear_inline_frame_state (thread_info*)): New.
10009 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10010 process_stratum_target parameter.
10011 (clear_inline_frame_state (thread_info*)): Declare.
10012 * linux-fork.c (delete_checkpoint_command): Pass target down to
10013 find_thread_ptid.
10014 (checkpoint_command): Adjust.
10015 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10016 instead of just tweaking inferior_ptid.
10017 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10018 (exit_lwp): Pass target down to find_thread_ptid.
10019 (attach_proc_task_lwp_callback): Pass target down to
10020 add_thread/set_running/set_executing.
10021 (linux_nat_target::attach): Pass target down to
10022 thread_change_ptid.
10023 (get_detach_signal): Pass target down to find_thread_ptid.
10024 Consider last target status's target.
10025 (linux_resume_one_lwp_throw, resume_lwp)
10026 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10027 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10028 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10029 (linux_nat_target::async_wait_fd): New.
10030 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10031 target down.
10032 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10033 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10034 * linux-thread-db.c (struct thread_db_info::process_target): New
10035 field.
10036 (add_thread_db_info): Save target.
10037 (get_thread_db_info): New process_stratum_target parameter. Also
10038 match target.
10039 (delete_thread_db_info): New process_stratum_target parameter.
10040 Also match target.
10041 (thread_from_lwp): Adjust to pass down target.
10042 (thread_db_notice_clone): Pass down target.
10043 (check_thread_db_callback): Pass down target.
10044 (try_thread_db_load_1): Always push the thread_db target.
10045 (try_thread_db_load, record_thread): Pass target down.
10046 (thread_db_target::detach): Pass target down. Always unpush the
10047 thread_db target.
10048 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10049 target down. Always unpush the thread_db target.
10050 (find_new_threads_callback, thread_db_find_new_threads_2)
10051 (thread_db_target::update_thread_list): Pass target down.
10052 (thread_db_target::pid_to_str): Pass current inferior down.
10053 (thread_db_target::get_thread_local_address): Pass target down.
10054 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10055 target down.
10056 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10057 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10058 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10059 (procfs_init_inferior): Rename to ...
10060 (procfs_target::procfs_init_inferior): ... this and adjust.
10061 (procfs_target::create_inferior, procfs_notice_thread)
10062 (procfs_do_thread_registers): Adjust.
10063 * ppc-fbsd-tdep.c: Include "inferior.h".
10064 (ppcfbsd_get_thread_local_address): Pass down target.
10065 * proc-service.c (ps_xfer_memory): Switch current inferior and
10066 program space as well.
10067 (get_ps_regcache): Pass target down.
10068 * process-stratum-target.c
10069 (process_stratum_target::thread_address_space)
10070 (process_stratum_target::thread_architecture): Pass target down.
10071 * process-stratum-target.h
10072 (process_stratum_target::threads_executing): New field.
10073 (as_process_stratum_target): New.
10074 * ravenscar-thread.c
10075 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10076 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10077 down.
10078 * record-btrace.c (record_btrace_target::info_record): Adjust.
10079 (record_btrace_target::record_method)
10080 (record_btrace_target::record_is_replaying)
10081 (record_btrace_target::fetch_registers)
10082 (get_thread_current_frame_id, record_btrace_target::resume)
10083 (record_btrace_target::wait, record_btrace_target::stop): Pass
10084 target down.
10085 * record-full.c (record_full_wait_1): Switch to event thread.
10086 Pass target down.
10087 * regcache.c (regcache::regcache)
10088 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10089 process_stratum_target parameter and handle it.
10090 (current_thread_target): New global.
10091 (get_thread_regcache): Add process_stratum_target parameter and
10092 handle it. Switch inferior before calling target method.
10093 (get_thread_regcache): Pass target down.
10094 (get_thread_regcache_for_ptid): Pass target down.
10095 (registers_changed_ptid): Add process_stratum_target parameter and
10096 handle it.
10097 (registers_changed_thread, registers_changed): Pass target down.
10098 (test_get_thread_arch_aspace_regcache): New.
10099 (current_regcache_test): Define a couple local test_target_ops
10100 instances and use them for testing.
10101 (readwrite_regcache): Pass process_stratum_target parameter.
10102 (cooked_read_test, cooked_write_test): Pass mock_target down.
10103 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10104 (get_thread_arch_aspace_regcache): Add process_stratum_target
10105 parameter.
10106 (regcache::target): New method.
10107 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10108 (regcache::registers_changed_ptid): Add process_stratum_target
10109 parameter.
10110 (regcache::m_target): New field.
10111 (registers_changed_ptid): Add process_stratum_target parameter.
10112 * remote.c (remote_state::supports_vCont_probed): New field.
10113 (remote_target::async_wait_fd): New method.
10114 (remote_unpush_and_throw): Add remote_target parameter.
10115 (get_current_remote_target): Adjust.
10116 (remote_target::remote_add_inferior): Push target.
10117 (remote_target::remote_add_thread)
10118 (remote_target::remote_notice_new_inferior)
10119 (get_remote_thread_info): Pass target down.
10120 (remote_target::update_thread_list): Skip threads of inferiors
10121 bound to other targets. (remote_target::close): Don't discard
10122 inferiors. (remote_target::add_current_inferior_and_thread)
10123 (remote_target::process_initial_stop_replies)
10124 (remote_target::start_remote)
10125 (remote_target::remote_serial_quit_handler): Pass down target.
10126 (remote_target::remote_unpush_target): New remote_target
10127 parameter. Unpush the target from all inferiors.
10128 (remote_target::remote_unpush_and_throw): New remote_target
10129 parameter. Pass it down.
10130 (remote_target::open_1): Check whether the current inferior has
10131 execution instead of checking whether any inferior is live. Pass
10132 target down.
10133 (remote_target::remote_detach_1): Pass down target. Use
10134 remote_unpush_target.
10135 (extended_remote_target::attach): Pass down target.
10136 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10137 (remote_target::append_resumption): Pass down target.
10138 (remote_target::append_pending_thread_resumptions)
10139 (remote_target::remote_resume_with_hc, remote_target::resume)
10140 (remote_target::commit_resume): Pass down target.
10141 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10142 (remote_target::interrupt_query)
10143 (remote_target::remove_new_fork_children)
10144 (remote_target::check_pending_events_prevent_wildcard_vcont)
10145 (remote_target::remote_parse_stop_reply)
10146 (remote_target::process_stop_reply): Pass down target.
10147 (first_remote_resumed_thread): New remote_target parameter. Pass
10148 it down.
10149 (remote_target::wait_as): Pass down target.
10150 (unpush_and_perror): New remote_target parameter. Pass it down.
10151 (remote_target::readchar, remote_target::remote_serial_write)
10152 (remote_target::getpkt_or_notif_sane_1)
10153 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10154 down target.
10155 (remote_target::mourn_inferior): Pass down target. Use
10156 remote_unpush_target.
10157 (remote_target::core_of_thread)
10158 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10159 (remote_target::pid_to_exec_file)
10160 (remote_target::thread_handle_to_thread_info): Pass down target.
10161 (remote_target::async_wait_fd): New.
10162 * riscv-fbsd-tdep.c: Include "inferior.h".
10163 (riscv_fbsd_get_thread_local_address): Pass down target.
10164 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10165 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10166 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10167 Adjust.
10168 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10169 * solib-svr4.c (enable_break): Pass down target.
10170 * spu-multiarch.c (parse_spufs_run): Pass down target.
10171 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10172 * target-delegates.c: Regenerate.
10173 * target.c (g_target_stack): Delete.
10174 (current_top_target): Return the current inferior's top target.
10175 (target_has_execution_1): Refer to the passed-in inferior's top
10176 target.
10177 (target_supports_terminal_ours): Check whether the initial
10178 inferior was already created.
10179 (decref_target): New.
10180 (target_stack::push): Incref/decref the target.
10181 (push_target, push_target, unpush_target): Adjust.
10182 (target_stack::unpush): Defref target.
10183 (target_is_pushed): Return bool. Adjust to refer to the current
10184 inferior's target stack.
10185 (dispose_inferior): Delete, and inline parts ...
10186 (target_preopen): ... here. Only dispose of the current inferior.
10187 (target_detach): Hold strong target reference while detaching.
10188 Pass target down.
10189 (target_thread_name): Add assertion.
10190 (target_resume): Pass down target.
10191 (target_ops::beneath, find_target_at): Adjust to refer to the
10192 current inferior's target stack.
10193 (get_dummy_target): New.
10194 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10195 has a thread running.
10196 (initialize_targets): Rename to ...
10197 (_initialize_target): ... this.
10198 * target.h: Include "gdbsupport/refcounted-object.h".
10199 (struct target_ops): Inherit refcounted_object.
10200 (target_ops::shortname, target_ops::longname): Make const.
10201 (target_ops::async_wait_fd): New method.
10202 (decref_target): Declare.
10203 (struct target_ops_ref_policy): New.
10204 (target_ops_ref): New typedef.
10205 (get_dummy_target): Declare function.
10206 (target_is_pushed): Return bool.
10207 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10208 (all_matching_threads_iterator::all_matching_threads_iterator):
10209 Handle filter target.
10210 * thread-iter.h (struct all_matching_threads_iterator, struct
10211 all_matching_threads_range, class all_non_exited_threads_range):
10212 Filter by target too. Remove explicit.
10213 * thread.c (threads_executing): Delete.
10214 (inferior_thread): Pass down current inferior.
10215 (clear_thread_inferior_resources): Pass down thread pointer
10216 instead of ptid_t.
10217 (add_thread_silent, add_thread_with_info, add_thread): Add
10218 process_stratum_target parameter. Use it for thread and inferior
10219 searches.
10220 (is_current_thread): New.
10221 (thread_info::deletable): Use it.
10222 (find_thread_ptid, thread_count, in_thread_list)
10223 (thread_change_ptid, set_resumed, set_running): New
10224 process_stratum_target parameter. Pass it down.
10225 (set_executing): New process_stratum_target parameter. Pass it
10226 down. Adjust reference to 'threads_executing'.
10227 (threads_are_executing): New process_stratum_target parameter.
10228 Adjust reference to 'threads_executing'.
10229 (set_stop_requested, finish_thread_state): New
10230 process_stratum_target parameter. Pass it down.
10231 (switch_to_thread): Also match inferior.
10232 (switch_to_thread): New process_stratum_target parameter. Pass it
10233 down.
10234 (update_threads_executing): Reimplement.
10235 * top.c (quit_force): Pop targets from all inferior.
10236 (gdb_init): Don't call initialize_targets.
10237 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10238 Declare.
10239 (windows_add_thread, windows_delete_thread): Adjust.
10240 (get_windows_debug_event): Rename to ...
10241 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10242 * tracefile-tfile.c (tfile_target_open): Pass down target.
10243 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10244 Forward declare.
10245 (switch_to_thread): Add process_stratum_target parameter.
10246 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10247 parameter. Use it.
10248 (mi_on_resume): Pass target down.
10249 * nat/fork-inferior.c (startup_inferior): Add
10250 process_stratum_target parameter. Pass it down.
10251 * nat/fork-inferior.h (startup_inferior): Add
10252 process_stratum_target parameter.
10253 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10254
75c6c844
PA
102552020-01-10 Pedro Alves <palves@redhat.com>
10256
10257 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10258 directly. Instead find the first thread in the thread list and
10259 use switch_to_thread.
10260
78f2c40a
PA
102612020-01-10 Pedro Alves <palves@redhat.com>
10262
10263 * remote.c (remote_target::remote_add_inferior): Don't bind a
10264 process to the current inferior if the current inferior is already
10265 bound to a process.
10266
e7af6c70
TBA
102672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10268 Pedro Alves <palves@redhat.com>
10269
10270 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10271 If no process is specified, return null_ptid instead of
10272 inferior_ptid.
10273 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10274 TARGET_WAITKIND_SIGNALLED with no pid.
10275
31ba933e
PA
102762020-01-10 Pedro Alves <palves@redhat.com>
10277
10278 * remote.c (first_remote_resumed_thread): New.
10279 (remote_target::wait_as): Use it as default event_ptid instead of
10280 inferior_ptid.
10281
735fc2ca
PA
102822020-01-10 Pedro Alves <palves@redhat.com>
10283
10284 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10285
c17e02e1
PA
102862020-01-10 Pedro Alves <palves@redhat.com>
10287
10288 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10289 not -1.
10290
ab1ddbcf
PA
102912020-01-10 Pedro Alves <palves@redhat.com>
10292
10293 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10294 ptid to get_last_target_status.
10295 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10296 ptid to get_last_target_status.
10297 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10298 get_last_target_status.
10299 (info_program_command): Don't pass a target_waitstatus to
10300 get_last_target_status.
10301 * infrun.c (init_wait_for_inferior): Use
10302 nullify_last_target_wait_ptid.
10303 (get_last_target_status): Handle nullptr arguments.
10304 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10305 (print_stop_event): Don't pass a ptid to get_last_target_status.
10306 (normal_stop): Don't pass a ptid to get_last_target_status.
10307 * infrun.h (get_last_target_status, set_last_target_status): Move
10308 comments here and update.
10309 (nullify_last_target_wait_ptid): Declare.
10310 * linux-fork.c (fork_load_infrun_state): Remove local extern
10311 declaration of nullify_last_target_wait_ptid.
10312 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10313 to get_last_target_status.
10314
f3f8ece4
PA
103152020-01-10 Pedro Alves <palves@redhat.com>
10316
10317 * gdbthread.h (scoped_restore_current_thread)
10318 <dont_restore, restore, m_dont_restore>: Declare.
10319 * thread.c (thread_alive): Add assertion. Return bool.
10320 (switch_to_thread_if_alive): New.
10321 (prune_threads): Switch inferior/thread.
10322 (print_thread_info_1): Switch thread before calling target methods.
10323 (scoped_restore_current_thread::restore): New, factored out from
10324 ...
10325 (scoped_restore_current_thread::~scoped_restore_current_thread):
10326 ... this.
10327 (scoped_restore_current_thread::scoped_restore_current_thread):
10328 Add assertion.
10329 (thread_apply_all_command, thread_select): Use
10330 switch_to_thread_if_alive.
10331 * infrun.c (proceed, restart_threads, handle_signal_stop)
10332 (switch_back_to_stepped_thread): Switch current thread before
10333 calling target methods.
10334
db2d40f7
PA
103352020-01-10 Pedro Alves <palves@redhat.com>
10336
10337 * inferior.c (switch_to_inferior_no_thread): New function,
10338 factored out from ...
10339 (inferior_command): ... here.
10340 * inferior.h (switch_to_inferior_no_thread): Declare.
10341 * mi/mi-main.c (run_one_inferior): Use
10342 switch_to_inferior_no_thread.
10343
bd420a2d
PA
103442020-01-10 Pedro Alves <palves@redhat.com>
10345
10346 * infcmd.c (kill_command): Remove dead code.
10347
ddf5db90
PA
103482020-01-10 Pedro Alves <palves@redhat.com>
10349
10350 * remote.c (remote_target::mourn_inferior): No longer check
10351 whether the target is running.
10352
5018ce90
PA
103532020-01-10 Pedro Alves <palves@redhat.com>
10354
10355 * corelow.c (core_target::has_execution): Change parameter type to
10356 inferior pointer.
10357 * inferior.c (number_of_live_inferiors): Use
10358 inferior::has_execution instead of target_has_execution_1.
10359 * inferior.h (inferior::has_execution): New.
10360 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10361 inferior::has_execution instead of target_has_execution_1.
10362 * process-stratum-target.c
10363 (process_stratum_target::has_execution): Change parameter type to
10364 inferior pointer. Check the inferior's PID instead of
10365 inferior_ptid.
10366 * process-stratum-target.h
10367 (process_stratum_target::has_execution): Change parameter type to
10368 inferior pointer.
10369 * record-full.c (record_full_core_target::has_execution): Change
10370 parameter type to inferior pointer.
10371 * target.c (target_has_execution_1): Change parameter type to
10372 inferior pointer.
10373 (target_has_execution_current): Adjust.
10374 * target.h (target_ops::has_execution): Change parameter type to
10375 inferior pointer.
10376 (target_has_execution_1): Change parameter type to inferior
10377 pointer. Change return type to bool.
10378 * tracefile.h (tracefile_target::has_execution): Change parameter
10379 type to inferior pointer.
10380
74375d18
PA
103812020-01-10 Pedro Alves <palves@redhat.com>
10382
10383 * exceptions.c (print_flush): Remove current_top_target() check.
10384
acdf84a6
PA
103852020-01-10 Pedro Alves <palves@redhat.com>
10386
10387 * remote.c (show_remote_exec_file): Show the current inferior's
10388 exec-file instead of the command variable's value.
10389
ec506636
PA
103902020-01-10 Pedro Alves <palves@redhat.com>
10391
10392 * record-full.c (record_full_resume_ptid): New global.
10393 (record_full_target::resume): Set it.
10394 (record_full_wait_1): Use record_full_resume_ptid instead of
10395 inferior_ptid.
10396
873657b9
PA
103972020-01-10 Pedro Alves <palves@redhat.com>
10398
10399 * gdbthread.h (scoped_restore_current_thread)
10400 <dont_restore, restore, m_dont_restore>: Declare.
10401 * thread.c (thread_alive): Add assertion. Return bool.
10402 (switch_to_thread_if_alive): New.
10403 (prune_threads): Switch inferior/thread.
10404 (print_thread_info_1): Switch thread before calling target methods.
10405 (scoped_restore_current_thread::restore): New, factored out from
10406 ...
10407 (scoped_restore_current_thread::~scoped_restore_current_thread):
10408 ... this.
10409 (scoped_restore_current_thread::scoped_restore_current_thread):
10410 Add assertion.
10411 (thread_apply_all_command, thread_select): Use
10412 switch_to_thread_if_alive.
10413
7f0ae84c
GB
104142020-01-10 George Barrett <bob@bob131.so>
10415
10416 * stap-probe.c (stap_modify_semaphore): Don't check for null
10417 semaphores.
10418 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10419 for null semaphores.
10420
f5a7c406
AB
104212020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10422
10423 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10424 all source windows, and maintain horizontal scroll status while
10425 doing so.
10426
9ae6bf64
TT
104272020-01-09 Tom Tromey <tom@tromey.com>
10428
10429 PR tui/18932:
10430 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10431 update_source_window, not print_source_lines.
10432
b2efe70c
AB
104332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10434
10435 * tui/tui.c (tui_enable): Register tui hooks after calling
10436 tui_display_main.
10437
5f23a082
CB
104382020-01-09 Christian Biesinger <cbiesinger@google.com>
10439
10440 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10441
3061113b
SM
104422020-01-08 Simon Marchi <simon.marchi@efficios.com>
10443
10444 * thread.c (print_thread_info_1): Fix indentation.
10445
57d75002
CB
104462020-01-09 Christian Biesinger <cbiesinger@google.com>
10447
10448 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10449 unique_xmalloc_ptr outside the if to always free the demangled name.
10450
6a053cb1
TT
104512020-01-08 Tom Tromey <tromey@adacore.com>
10452
10453 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10454 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10455 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10456 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10457 Remove.
10458 (section_offsets): New typedef.
10459 * symtab.c (fixup_section, get_msymbol_address): Update.
10460 * symmisc.c (dump_msymbols): Update.
10461 * symfile.h (relative_addr_info_to_section_offsets)
10462 (symfile_map_offsets_to_segments): Update.
10463 * symfile.c (build_section_addr_info_from_objfile)
10464 (init_objfile_sect_indices): Update.
10465 (struct place_section_arg): Change type of "offsets".
10466 (place_section): Update.
10467 (relative_addr_info_to_section_offsets): Change type of
10468 "section_offsets". Remove "num_sections" parameter.
10469 (default_symfile_offsets, syms_from_objfile_1)
10470 (set_objfile_default_section_offset): Update.
10471 (reread_symbols): No need to preserve section offsets by hand.
10472 (symfile_map_offsets_to_segments): Change type of "offsets".
10473 * stap-probe.c (relocate_address): Update.
10474 * stabsread.h (process_one_symbol): Update.
10475 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10476 (solib_target_relocate_section_addresses): Update.
10477 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10478 Update.
10479 * solib-frv.c (frv_relocate_main_executable): Update.
10480 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10481 * solib-aix.c (solib_aix_get_section_offsets): Change return
10482 type.
10483 (solib_aix_solib_create_inferior_hook): Update.
10484 * remote.c (remote_target::get_offsets): Update.
10485 * psymtab.c (find_pc_sect_psymtab): Update.
10486 * psympriv.h (struct partial_symbol) <address, text_low,
10487 text_high>: Update.
10488 * objfiles.h (obj_section_offset): Update.
10489 (struct objfile) <section_offsets>: Change type.
10490 <num_sections>: Remove.
10491 (objfile_relocate): Update.
10492 * objfiles.c (entry_point_address_query): Update
10493 (relocate_one_symbol): Change type of "section_offsets".
10494 (objfile_relocate1, objfile_relocate1): Change type of
10495 "new_offsets".
10496 (objfile_rebase1): Update.
10497 * mipsread.c (mipscoff_symfile_read): Update.
10498 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10499 parameter.
10500 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10501 (parse_external, psymtab_to_symtab_1): Update.
10502 * machoread.c (macho_symfile_offsets): Update.
10503 * ia64-tdep.c (ia64_find_unwind_table): Update.
10504 * hppa-tdep.c (read_unwind_info): Update.
10505 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10506 * dwarf2read.c (create_addrmap_from_index)
10507 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10508 (process_psymtab_comp_unit_reader, add_partial_symbol)
10509 (add_partial_subprogram, process_full_comp_unit)
10510 (read_file_scope, read_func_scope, read_lexical_block_scope)
10511 (read_call_site_scope, dwarf2_rnglists_process)
10512 (dwarf2_ranges_process, dwarf2_ranges_read)
10513 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10514 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10515 Update.
10516 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10517 Update.
10518 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10519 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10520 (process_one_symbol): Change type of "section_offsets".
10521 * ctfread.c (get_objfile_text_range): Update.
10522 * coffread.c (coff_symtab_read, enter_linenos)
10523 (process_coff_symbol): Update.
10524 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10525 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10526
456e800a
TT
105272020-01-08 Tom Tromey <tromey@adacore.com>
10528
10529 * dwarf2read.c (parse_macro_definition): Use std::string.
10530 (parse_macro_definition): Likewise.
10531
6dfa2fc2
TT
105322020-01-08 Tom Tromey <tromey@adacore.com>
10533
10534 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10535 (ATTR_ALLOC_CHUNK): Remove.
10536
421d1616
TT
105372020-01-08 Tom Tromey <tromey@adacore.com>
10538
10539 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10540
43816ebc
TT
105412020-01-08 Tom Tromey <tromey@adacore.com>
10542
10543 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10544 (dwarf2_compute_name, open_dwo_file): Likewise.
10545 (process_enumeration_scope): Use std::vector.
10546 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10547 (partial_die_info::fixup, dwarf2_start_subfile)
10548 (guess_full_die_structure_name, dwarf2_name): Likewise.
10549 (determine_prefix): Update.
10550 (guess_full_die_structure_name): Make return type const.
10551 (partial_die_full_name): Return unique_xmalloc_ptr.
10552 (DW_FIELD_ALLOC_CHUNK): Remove.
10553
4212d509
TT
105542020-01-07 Tom Tromey <tromey@adacore.com>
10555
10556 PR build/24937:
10557 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10558
06a6207a
JT
105592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10560
10561 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10562
153d79c4
AB
105632020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10564
10565 * stack.c (print_frame_info): Move disassemble_next_line code
10566 inside source_print block.
10567
66182876
EZ
105682020-01-06 Eli Zaretskii <eliz@gnu.org>
10569
10570 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10571 gdb/signals.h, as we are now using native signal symbols.
10572
cbfa8581
SV
105732020-01-06 Shahab Vahedi <shahab@synopsys.com>
10574
10575 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10576 overflow by an early check of content vs threshold.
aac66a4c 10577 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10578 Likewise.
10579
3f602821
EZ
105802020-01-06 Eli Zaretskii <eliz@gnu.org>
10581
10582 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10583
a08c904d
JT
105842020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10585
10586 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10587 export table if no section contains it's RVA.
10588
89a65580
EZ
105892020-01-06 Eli Zaretskii <eliz@gnu.org>
10590
10591 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10592
8b7fcda2
HD
105932020-01-06 Hannes Domani <ssbssa@yahoo.de>
10594
10595 * source.c (print_source_lines_base): Set last_line_listed.
10596
a61b4f69
SV
105972020-01-06 Shahab Vahedi <shahab@synopsys.com>
10598
10599 * tui/tui-disasm.c: Remove trailing spaces.
10600
559e7e50
EZ
106012020-01-06 Eli Zaretskii <eliz@gnu.org>
10602 Pedro Alves <palves@redhat.com>
10603
10604 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10605 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10606 (windows_gdb_signal_to_target): New function, uses the above
10607 enumeration to convert GDB internal signal codes to equivalent
10608 Windows codes.
10609 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10610 * windows-nat.c: Include "gdb_wait.h".
10611 (get_windows_debug_event): Extract the fatal exception from the
10612 exit status and convert to the equivalent Posix signal number.
10613 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10614 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10615 * gdbsupport/gdb_wait.c: New file, implements
10616 windows_status_to_termsig.
10617 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10618 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10619
f2302a34
AB
106202020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10621
10622 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10623 show_layout.
10624
6a5206eb
LM
106252020-01-05 Luis Machado <luis.machado@linaro.org>
10626
10627 * aarch64-linux-nat.c
10628 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10629 and bfd_mach_aarch64.
10630
6ec1d75e
PW
106312020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10632
10633 * ui-file.c (stdio_file::can_emit_style_escape)
10634 (tee_file::can_emit_style_escape): Ensure style is used also on
10635 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10636 to gdb_stdout.
10637 * main.c (set_gdb_data_directory): Use file style to output the
10638 warning that the given pathname is not a directory.
10639 * top.c (show_history_filename, gdb_safe_append_history)
10640 (show_gdb_datadir): Use file style.
10641
44f81a76
HD
106422020-01-03 Hannes Domani <ssbssa@yahoo.de>
10643
10644 * solib-target.c (struct lm_info_target):
10645 Change offsets to be a unique_xmalloc_ptr.
10646 (solib_target_relocate_section_addresses): Update.
10647
25057eb0
HD
106482020-01-03 Hannes Domani <ssbssa@yahoo.de>
10649
10650 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10651
6e2118f5
BE
106522020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10653
10654 * MAINTAINERS (Write After Approval): Add myself.
10655
8133c7dc
LM
106562020-01-02 Luis Machado <luis.machado@linaro.org>
10657
10658 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10659 Cell BE architecture.
10660 * target.h (struct target_ops) <thread_architecture>: Likewise.
10661
48189bec
HD
106622020-01-01 Hannes Domani <ssbssa@yahoo.de>
10663
10664 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10665
ead1063b
HD
106662020-01-01 Hannes Domani <ssbssa@yahoo.de>
10667
10668 * MAINTAINERS (Write After Approval): Add myself.
10669
e5d78223
JB
106702020-01-01 Joel Brobecker <brobecker@adacore.com>
10671
10672 * gdbarch.sh: Update copyright year range of generated files.
10673
b811d2c2
JB
106742020-01-01 Joel Brobecker <brobecker@adacore.com>
10675
10676 Update copyright year range in all GDB files.
10677
5f4def5c
JB
106782020-01-01 Joel Brobecker <brobecker@adacore.com>
10679
10680 * copyright.py: Convert to Python 3.
10681
51fd4002
JB
106822020-01-01 Joel Brobecker <brobecker@adacore.com>
10683
10684 * copyright.py: Adapt after move of gnulib directory from gdb
10685 directory to toplevel directory.
10686
5fb651f2
JB
106872020-01-01 Joel Brobecker <brobecker@adacore.com>
10688
10689 * copyright.py (main): Exit if run from the wrong directory.
10690
5dd8bf88
JB
106912020-01-01 Joel Brobecker <brobecker@adacore.com>
10692
10693 * top.c (print_gdb_version): Change copyright year to 2020.
10694
9f71dacb 106952020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10696
9f71dacb 10697 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10698
9f71dacb 10699For older changes see ChangeLog-2019.
c906108c
SS
10700\f
10701Local Variables:
10702mode: change-log
10703left-margin: 8
10704fill-column: 74
10705version-control: never
57da7796 10706coding: utf-8
c906108c 10707End: