]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Move some code out of tui-data.h
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e555083f
TT
12020-07-01 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5 (struct tui_line_or_address): Move from tui-data.h.
6 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
8 (tui_cmd_window, tui_source_window_base, tui_source_window)
9 (tui_disasm_window): Don't declare.
10 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
11 to tui-winsource.h.
12 (SINGLE_KEY): Move to tui-stack.c.
13
7a02bab7
TT
142020-07-01 Tom Tromey <tom@tromey.com>
15
16 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
17 std::string.
18 * tui/tui-regs.c (class tab_expansion_file): New.
19 (tab_expansion_file::write): New method.
20 (tui_register_format): Change return type. Use
21 tab_expansion_file.
22 (tui_get_register, tui_data_window::display_registers_from)
23 (tui_data_item_window::rerender): Update.
24 * tui/tui-io.h (tui_expand_tabs): Don't declare.
25 * tui/tui-io.c (tui_expand_tabs): Remove.
26
ea68593b
TT
272020-07-01 Tom Tromey <tom@tromey.com>
28
29 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
30
a8caed5d
FS
312020-07-01 Fangrui Song <maskray@google.com>
32
33 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
34
9cdf9820
AKS
352020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
36
37 * dwarf2/read.c (set_die_type): Removed conditions to restrict
38 forms for DW_AT_associated and DW_AT_allocated attributes,
39 which is already checked in function attr_to_dynamic_prop.
40
a1520ad8
TT
412020-06-30 Tom Tromey <tromey@adacore.com>
42
43 * dwarf2/read.c (quirk_rust_enum): Correctly call
44 alloc_rust_variant for default-less enum.
45
5ac58899
TT
462020-06-30 Tom Tromey <tromey@adacore.com>
47
48 PR build/26183:
49 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
50 gdb::to_string.
51
19b187a9
SM
522020-06-29 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbarch.sh (displaced_step_copy_insn): Update doc.
55 * gdbarch.h: Re-generate.
56
cd4c4c07
TT
572020-06-28 Tom Tromey <tom@tromey.com>
58
59 * command.h (cmd_types): Remove.
60 (cmd_type): Don't declare.
61 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
62 typedef.
63 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
64 * cli/cli-decode.c (cmd_type): Remove.
65
05779d57
PA
662020-06-27 Pedro Alves <palves@redhat.com>
67
68 * fork-child.c (prefork_hook): Adjust.
69 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
70 Delete.
71 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
72 * inferior.c (inferior::set_tty, inferior::tty): New methods.
73 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
74 Remove declarations.
75 (struct inferior) <set_tty, tty>: New methods.
76 (struct inferior) <terminal>: Rename to ...
77 (struct inferior) <m_terminal>: ... this and make private.
78 * main.c (captured_main_1): Adjust.
79 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
80 (mi_cmd_inferior_tty_show): Adjust.
81 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
82 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
83
1776e3e5
NA
842020-06-26 Nick Alcock <nick.alcock@oracle.com>
85
86 * configure.ac: Add --enable-libctf: handle --disable-static
87 properly.
88 * acinclude.m4: sinclude ../config/enable.m4.
89 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
90 (LIBCTF): Substitute in.
91 (CTF_DEPS): New, likewise.
92 (CLIBS): libctf needs symbols from libbfd: move earlier.
93 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
94 flags.
95 * ctfread.c: Surround in ENABLE_LIBCTF.
96 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
97 * configure: Regenerate.
98 * config.in: Likewise.
99
58373b80
SM
1002020-06-25 Simon Marchi <simon.marchi@efficios.com>
101
102 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
103
277474ee
SM
1042020-06-25 Simon Marchi <simon.marchi@efficios.com>
105
106 * inferior.h (struct inferior) <terminal>: Change type to
107 gdb::unique_xmalloc_ptr<char>.
108 * inferior.c (inferior::~inferior): Don't free inf->terminal.
109 * infcmd.c (set_inferior_io_terminal): Don't free terminal
110 field, adjust to unique pointer.
111 (get_inferior_io_terminal): Adjust to unique pointer.
112
6d74da72
AB
1132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
114
115 * riscv-tdep.c (riscv_print_registers_info): Loop over all
116 registers, not just the known core set of registers.
117
2e52d038
AB
1182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
121 fflags, frm, and fcsr registers.
122 (riscv_register_reggroup_p): Remove unknown CSRs from save and
123 restore groups.
124 (riscv_tdesc_unknown_reg): New function.
125 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
126 tdesc_use_registers.
127 * riscv-tdep.h (struct gdbarch_tdep): Add
128 unknown_csrs_first_regnum, unknown_csrs_count,
129 duplicate_fflags_regnum, duplicate_frm_regnum, and
130 duplicate_fcsr_regnum fields.
131
be64fd07
AB
1322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 * target-descriptions.c (tdesc_use_registers): Add new parameter a
135 callback, use the callback (when not null) to help number unknown
136 registers.
137 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
138 (tdesc_use_registers): Add extra parameter to declaration.
139
3b9fce96
AB
1402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
143 in the file.
144 (class riscv_pending_register_alias): Likewise.
145 (riscv_register_feature::register_info): Change 'required_p' field
146 to 'required', and change its type. Add 'check' member function.
147 (riscv_register_feature::register_info::check): Define new member
148 function.
149 (riscv_xreg_feature): Change initialisation of 'required' field.
150 (riscv_freg_feature): Likewise.
151 (riscv_virtual_feature): Likewise.
152 (riscv_csr_feature): Likewise.
153 (riscv_check_tdesc_feature): Take extra parameter, the csr
154 tdesc_feature, rewrite the function to use the new
155 riscv_register_feature::register_info::check function.
156 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
157
865bad26
AB
1582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
159
160 * features/Makefile: Remove all references to the deleted files
161 below.
162 * features/riscv/32bit-csr.c: Deleted.
163 * features/riscv/32bit-csr.xml: Deleted.
164 * features/riscv/64bit-csr.c: Deleted.
165 * features/riscv/64bit-csr.xml: Deleted.
166 * features/riscv/rebuild-csr-xml.sh: Deleted.
167
ed69cbc8
AB
1682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
171 whitespace error for declaration of names member variable.
172 (struct riscv_register_feature): Add new prefer_first_name member
173 variable, and fix whitespace error in declaration of registers.
174 (riscv_xreg_feature): Initialize prefer_first_name field.
175 (riscv_freg_feature): Likewise.
176 (riscv_virtual_feature): Likewise.
177 (riscv_csr_feature): Likewise.
178 (riscv_register_name): Expand on comments. Remove register name
179 modifications for CSR and virtual registers.
180
4445e8f5
AB
1812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
184 errors.
185
767a879e
AB
1862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
187
188 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
189 riscv-opc.h.
190 (class riscv_pending_register_alias): New class.
191 (riscv_check_tdesc_feature): Take vector of pending aliases and
192 populate it as appropriate.
193 (riscv_setup_register_aliases): Delete.
194 (riscv_gdbarch_init): Create vector of pending aliases and pass it
195 to riscv_check_tdesc_feature in all cases. Use the vector to
196 create the register aliases.
197
bb6e55f3
RO
1982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
199
200 * sol2-tdep.c (sol2_static_transform_name): Remove.
201 (sol2_init_abi): Don't register it.
202 * gdbarch.sh (static_transform_name): Remove.
203 * gdbarch.c, gdbarch.h: Regenerate.
204
205 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
206 gdbarch_static_transform_name.
207 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
208 * stabsread.c (define_symbol) <'X'>: Remove.
209 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
210 handling.
211 <'V'>: Likewise.
212 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
213 <'S'>: Remove call to gdbarch_static_transform_name.
214
c6d36836
RO
2152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
216
217 * procfs.c (procfs_pre_trace): New function.
218 (procfs_target::create_inferior): Pass it to fork_inferior.
219
a7e6196b
RO
2202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
221
222 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
223 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
224 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
225 sol2-tdep.o, sparc-sol2-tdep.o.
226 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
227 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
228 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
229 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
230
d412e696
RO
2312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232
233 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
234 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
235 Call sol2_init_abi.
236 Remove calls to set_gdbarch_skip_solib_resolver,
237 set_gdbarch_core_pid_to_str.
238 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
239 (i386_sol2_static_transform_name): Remove.
240 (i386_sol2_init_abi): Call sol2_init_abi.
241 Remove calls to set_gdbarch_sofun_address_maybe_missing,
242 set_gdbarch_static_transform_name,
243 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
244 Use sol2_sigtramp_p.
245 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
246 (sol2_sigtramp_p): New function.
247 (sol2_static_transform_name): New function.
248 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
249 (sol2_init_abi): New function.
250 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
251 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
252 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
253 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
254 (sparc_sol2_static_transform_name): Remove.
255 (sparc32_sol2_init_abi): Call sol2_init_abi.
256 Remove calls to set_gdbarch_sofun_address_maybe_missing,
257 set_gdbarch_static_transform_name,
258 set_gdbarch_skip_solib_resolver,
259 set_gdbarch_core_pid_to_str.
260 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
261 (sparc_sol2_static_transform_name): Remove
262 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
263 call sol2_sigtramp_p.
264 (sparc64_sol2_init_abi): Call sol2_init_abi.
265 Remove calls to set_gdbarch_sofun_address_maybe_missing,
266 set_gdbarch_static_transform_name,
267 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
268
a8654e7d
PW
2692020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
270
271 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
272 * exec.c (validate_exec_file): If from_tty, set both
273 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
274 * symfile.c (symbol_file_add_with_addrs): if always_confirm
275 and from_tty, unconditionally ask a confirmation.
276
caa7fd04
AB
2772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * target-descriptions.c (tdesc_architecture_name): Protect against
280 NULL pointer dereference.
281 (maint_print_xml_tdesc_cmd): New function.
282 (_initialize_target_descriptions): Register new 'maint print
283 xml-tdesc' command and give it the filename completer.
284 * NEWS: Mention new 'maint print xml-tdesc' command.
285
fbf42f4e
AB
2862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * target-descriptions.c (class tdesc_compatible_info): New class.
289 (struct target_desc): Change type of compatible vector.
290 (tdesc_compatible_p): Update for change in type of
291 target_desc::compatible.
292 (tdesc_compatible_info_list): New function.
293 (tdesc_compatible_info_arch_name): New function.
294 (tdesc_add_compatible): Update for change in type of
295 target_desc::compatible.
296 (print_c_tdesc::visit_pre): Likewise.
297
20821f4e
AB
2982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
301 whitespace to underscore.
302 (maint_print_c_tdesc_cmd): Use fake filename for target
303 descriptions that came from the target.
304 (_initialize_target_descriptions): Add filename command completion
305 for 'maint print c-tdesc'.
306
1fb5ee62
SM
3072020-06-23 Simon Marchi <simon.marchi@efficios.com>
308
309 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
310 lines.
311
fc3ecb3e
SM
3122020-06-23 Simon Marchi <simon.marchi@efficios.com>
313
314 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
315 lines.
316 (dwarf2_find_location_expression): Likewise.
317 (call_site_parameter_matches): Likewise.
318 (dwarf2_compile_expr_to_ax): Likewise.
319 (disassemble_dwarf_expression): Likewise.
320 (loclist_describe_location): Likewise.
321
236ef034
PA
3222020-06-23 Pedro Alves <palves@redhat.com>
323
324 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
325 progspace-and-thread.h. Include scoped-mock-context.h instead.
326 (register_to_value_test): Use scoped_mock_context.
327 * regcache.c: Include "scoped-mock-context.h".
328 (cooked_read_test): Don't error out if a target is already pushed.
329 Use scoped_mock_context. Adjust.
330 * scoped-mock-context.h: New file.
331
39e7ecca
AB
3322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
335 initializer.
336 (ada_language::is_string_type_p): New member function.
337 * c-lang.c (c_language_data): Delete la_is_string_type_p
338 initializer.
339 (cplus_language_data): Likewise.
340 (asm_language_data): Likewise.
341 (minimal_language_data): Likewise.
342 * d-lang.c (d_language_data): Likewise.
343 * f-lang.c (f_is_string_type_p): Delete function, implementation
344 moved to f_language::is_string_type_p.
345 (f_language_data): Delete la_is_string_type_p initializer.
346 (f_language::is_string_type_p): New member function,
347 implementation from f_is_string_type_p.
348 * go-lang.c (go_is_string_type_p): Delete function, implementation
349 moved to go_language::is_string_type_p.
350 (go_language_data): Delete la_is_string_type_p initializer.
351 (go_language::is_string_type_p): New member function,
352 implementation from go_is_string_type_p.
353 * language.c (language_defn::is_string_type_p): Define new member
354 function.
355 (default_is_string_type_p): Make static, add comment copied from
356 header file.
357 (unknown_language_data): Delete la_is_string_type_p initializer.
358 (unknown_language::is_string_type_p): New member function.
359 (auto_language_data): Delete la_is_string_type_p initializer.
360 (auto_language::is_string_type_p): New member function.
361 * language.h (language_data): Delete la_is_string_type_p field.
362 (language_defn::is_string_type_p): Declare new function.
363 (default_is_string_type_p): Delete desclaration, move comment to
364 definition.
365 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
366 moved to m2_language::is_string_type_p.
367 (m2_language_data): Delete la_is_string_type_p initializer.
368 (m2_language::is_string_type_p): New member function,
369 implementation from m2_is_string_type_p.
370 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
371 initializer.
372 * opencl-lang.c (opencl_language_data): Likewise.
373 * p-lang.c (pascal_is_string_type_p): Delete function,
374 implementation moved to pascal_language::is_string_type_p.
375 (pascal_language_data): Delete la_is_string_type_p initializer.
376 (pascal_language::is_string_type_p): New member function,
377 implementation from pascal_is_string_type_p.
378 * rust-lang.c (rust_is_string_type_p): Delete function,
379 implementation moved to rust_language::is_string_type_p.
380 (rust_language_data): Delete la_is_string_type_p initializer.
381 (rust_language::is_string_type_p): New member function,
382 implementation from rust_is_string_type_p.
383 * valprint.c (val_print_scalar_or_string_type_p): Update call to
384 is_string_type_p.
385
4ffc13fb
AB
3862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * ada-lang.c (ada_language_data): Delete la_print_typedef
389 initializer.
390 (ada_language::print_typedef): New member function.
391 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
392 (cplus_language_data): Likewise.
393 (asm_language_data): Likewise.
394 (minimal_language_data): Likewise.
395 * d-lang.c (d_language_data): Likewise.
396 * f-lang.c (f_language_data): Likewise.
397 (f_language::print_typedef): New member function.
398 * go-lang.c (go_language_data): Delete la_print_typedef
399 initializer.
400 * language.c (language_defn::print_typedef): Define member
401 function.
402 (unknown_language_data): Delete la_print_typedef initializer.
403 (unknown_language::print_typedef): New member function.
404 (auto_language_data): Delete la_print_typedef initializer.
405 (auto_language::print_typedef): New member function.
406 * language.h (language_data): Delete la_print_typedef field.
407 (language_defn::print_typedef): Declare new member function.
408 (LA_PRINT_TYPEDEF): Update call to print_typedef.
409 (default_print_typedef): Delete declaration.
410 * m2-lang.c (m2_language_data): Delete la_print_typedef
411 initializer.
412 (m2_language::print_typedef): New member function.
413 * objc-lang.c (objc_language_data): Delete la_print_typedef
414 initializer.
415 * opencl-lang.c (opencl_language_data): Likewise.
416 * p-lang.c (pascal_language_data): Likewise.
417 (pascal_language::print_typedef): New member function.
418 * rust-lang.c (rust_print_typedef): Delete function,
419 implementation moved to rust_language::print_typedef.
420 (rust_language): Delete la_print_typedef initializer.
421 (rust_language::print_typedef): New member function,
422 implementation from rust_print_typedef.
423 * typeprint.c (default_print_typedef): Delete.
424
d711ee67
AB
4252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
428 (ada_language::printstr): New member function.
429 * c-lang.c (c_language_data): Delete la_printstr initializer.
430 (cplus_language_data): Likewise.
431 (asm_language_data): Likewise.
432 (minimal_language_data): Likewise.
433 * d-lang.c (d_language_data): Likewise.
434 * f-lang.c (f_printstr): Rename to f_language::printstr.
435 (f_language_data): Delete la_printstr initializer.
436 (f_language::printstr): New member function, implementation from
437 f_printstr.
438 * go-lang.c (go_language_data): Delete la_printstr initializer.
439 * language.c (language_defn::printstr): Define new member
440 function.
441 (unk_lang_printstr): Delete.
442 (unknown_language_data): Delete la_printstr initializer.
443 (unknown_language::printstr): New member function.
444 (auto_language_data): Delete la_printstr initializer.
445 (auto_language::printstr): New member function.
446 * language.h (language_data): Delete la_printstr field.
447 (language_defn::printstr): Declare new member function.
448 (LA_PRINT_STRING): Update call to printstr.
449 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
450 (m2_language_data): Delete la_printstr initializer.
451 (m2_language::printstr): New member function, implementation from
452 m2_printstr.
453 * objc-lang.c (objc_language_data): Delete la_printstr
454 initializer.
455 * opencl-lang.c (opencl_language_data): Likewise.
456 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
457 (pascal_language_data): Delete la_printstr initializer.
458 (pascal_language::printstr): New member function, implementation
459 from pascal_printstr.
460 * p-lang.h (pascal_printstr): Delete declaration.
461 * rust-lang.c (rust_printstr): Update header comment.
462 (rust_language_data): Delete la_printstr initializer.
463 (rust_language::printstr): New member function.
464
52b50f2c
AB
4652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
468 (ada_language::printchar): New member function.
469 * c-lang.c (c_language_data): Delete la_printchar initializer.
470 (cplus_language_data): Likewise.
471 (asm_language_data): Likewise.
472 (minimal_language_data): Likewise.
473 * d-lang.c (d_language_data): Likewise.
474 * f-lang.c (f_printchar): Rename to f_language::printchar.
475 (f_language_data): Delete la_printchar initializer.
476 (f_language::printchar): New member function, implementation from
477 f_printchar.
478 * go-lang.c (go_language_data): Delete la_printchar initializer.
479 * language.c (unk_lang_printchar): Delete.
480 (language_defn::printchar): Define new member function.
481 (unknown_language_data): Delete la_printchar initializer.
482 (unknown_language::printchar): New member function.
483 (auto_language_data): Delete la_printchar initializer.
484 (auto_language::printchar): New member function.
485 * language.h (language_data): Delete la_printchar field.
486 (language_defn::printchar): Declare new member function.
487 (LA_PRINT_CHAR): Update call to printchar.
488 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
489 (m2_language::printchar): New member function.
490 * objc-lang.c (objc_language_data): Delete la_printchar
491 initializer.
492 * opencl-lang.c (opencl_language_data): Likewise.
493 * p-lang.c (pascal_language_data): Delete la_printchar
494 initializer.
495 (pascal_language::printchar): New member function.
496 * rust-lang.c (rust_printchar): Rename to
497 rust_language::printchar.
498 (rust_language_data): Delete la_printchar initializer.
499 (rust_language::printchar): New member function, implementation
500 from rust_printchar.
501
ec8cec5b
AB
5022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
505 (ada_language_data): Delete la_emitchar initializer.
506 (ada_language::emitchar): New member function, implementation from
507 emit_char.
508 * c-lang.c (c_language_data): Delete la_emitchar initializer.
509 (cplus_language_data): Likewise.
510 (asm_language_data): Likewise.
511 (minimal_language_data): Likewise.
512 * d-lang.c (d_language_data): Likewise.
513 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
514 (f_language_data): Delete la_emitchar initializer.
515 (f_language::emitchar): New member function, implementation from
516 f_emit_char.
517 * go-lang.c (go_language_data): Delete la_emitchar initializer.
518 * language.c (unk_lang_emit_char): Delete.
519 (language_defn::emitchar): New member function definition.
520 (unknown_language_data): Delete la_emitchar initializer.
521 (unknown_language::emitchar): New member function.
522 (auto_language_data): Delete la_emitchar initializer.
523 (auto_language::emitchar): New member function.
524 * language.h (language_data): Delete la_emitchar field.
525 (language_defn::emitchar): New member field declaration.
526 (LA_EMIT_CHAR): Update call to emitchar.
527 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
528 (m2_language_data): Delete la_emitchar initializer.
529 (m2_language::emitchar): New member function, implementation from
530 m2_emit_char.
531 * objc-lang.c (objc_language_data): Delete la_emitchar
532 initializer.
533 * opencl-lang.c (opencl_language_data): Likewise.
534 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
535 (pascal_language_data): Delete la_emitchar initializer.
536 (pascal_language::emitchar): New member function, implementation
537 from pascal_emit_char.
538 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
539 (rust_language_data): Delete la_emitchar initializer.
540 (rust_language::emitchar): New member function, implementation
541 from rust_emitchar.
542
1bf9c363
AB
5432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * ada-lang.c (resolve): Rename to ada_language::post_parser.
546 (ada_language_data): Delete la_post_parser initializer.
547 (ada_language::post_parser): New member function.
548 * c-lang.c (c_language_data): Delete la_post_parser initializer.
549 (cplus_language_data): Likewise.
550 (asm_language_data): Likewise.
551 (minimal_language_data): Likewise.
552 * d-lang.c (d_language_data): Likewise.
553 * f-lang.c (f_language_data): Likewise.
554 * go-lang.c (go_language_data): Likewise.
555 * language.c (unknown_language_data): Likewise.
556 (auto_language_data): Likewise.
557 * language.h (language_data): Delete la_post_parser field.
558 (language_defn::post_parser): New member function.
559 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
560 * objc-lang.c (objc_language_data): Likewise.
561 * opencl-lang.c (opencl_language_data): Likewise.
562 * p-lang.c (pascal_language_data): Likewise.
563 * parse.c (parse_exp_in_context): Update call to post_parser.
564 (null_post_parser): Delete definition.
565 * parser-defs.h (null_post_parser): Delete declaration.
566 * rust-lang.c (rust_language_data): Delete la_post_parser
567 initializer.
568
87afa652
AB
5692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * ada-lang.c (parse): Rename to ada_language::parser.
572 (ada_language_data): Delete la_parser initializer.
573 (ada_language::parser): New member function, implementation from
574 parse.
575 * c-lang.c (c_language_data): Delete la_parser initializer.
576 (cplus_language_data): Likewise.
577 (asm_language_data): Likewise.
578 (minimal_language_data): Likewise.
579 * d-lang.c (d_language_data): Likewise.
580 (d_language::parser): New member function.
581 * f-lang.c (f_language_data): Delete la_parser initializer.
582 (f_language::parser): New member function.
583 * go-lang.c (go_language_data): Delete la_parser initializer.
584 (go_language::parser): New member function.
585 * language.c (unk_lang_parser): Delete.
586 (language_defn::parser): Define new member function.
587 (unknown_language_data): Delete la_parser initializer.
588 (unknown_language::parser): New member function.
589 (auto_language_data): Delete la_parser initializer.
590 (auto_language::parser): New member function.
591 * language.h (language_data): Delete la_parser field.
592 (language_defn::parser): Declare new member function.
593 * m2-lang.c (m2_language_data): Delete la_parser initializer.
594 (m2_language::parser): New member function.
595 * objc-lang.c (objc_language_data): Delete la_parser initializer.
596 * opencl-lang.c (opencl_language_data): Likewise.
597 * p-lang.c (pascal_language_data): Likewise.
598 (pascal_language::parser): New member function.
599 * parse.c (parse_exp_in_context): Update call to parser.
600 * rust-lang.c (rust_language_data): Delete la_parser initializer.
601 (rust_language::parser): New member function.
602
37825800
AB
6032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * top.c (print_gdb_configuration): Print --with-python-libdir
606 configuration value.
607
5b860c93
PW
6082020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
609
610 * NEWS: Mention change to the alias command.
611
cf00cd6f
PW
6122020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
613
614 * cli/cli-cmds.c (lookup_cmd_for_default_args)
615 (alias_command_completer)
616 (make_alias_options_def_group): New functions.
617 (alias_opts, alias_option_defs): New struct and array.
618 (alias_usage_error): Update usage.
619 (alias_command): Handles optional DEFAULT-ARGS... arguments.
620 Use option framework.
621 (_initialize_cli_cmds): Update alias command help.
622 Update aliases command help.
623 (show_user):
624 Add NULL for new default_args lookup_cmd argument.
625 (valid_command_p): Rename to validate_aliased_command.
626 Add NULL for new default_args lookup_cmd argument. Verify that the
627 aliased_command has no default args.
628 * cli/cli-decode.c (help_cmd): Show aliases definitions.
629 (lookup_cmd_1, lookup_cmd): New argument default_args.
630 (add_alias_cmd):
631 Add NULL for new default_args lookup_cmd argument.
632 (print_help_for_command): Show default args under the layout
633 alias some_alias = some_aliased_cmd some_alias_default_arg.
634 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
635 xfree default_args in destructor.
636 * cli/cli-script.c (process_next_line, do_define_command):
637 Add NULL for new default_args lookup_cmd argument.
638 * command.h: Declare new default_args argument in lookup_cmd
639 and lookup_cmd_1.
640 * completer.c (complete_line_internal_1):
641 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
642 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
643 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
644 Likewise.
645 * infcmd.c (_initialize_infcmd): Likewise.
646 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
647 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
648 * python/py-param.c (add_setshow_generic): Likewise.
649 * remote.c (_initialize_remote): Likewise.
650 * top.c (execute_command): Prepend default_args if command has some.
651 (set_verbose):
652 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
653 * tracepoint.c (validate_actionline, encode_actions_1):
654 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
655
bd920864
TBA
6562020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
657
658 * jit.c (jit_read_descriptor): Use bool as the return type.
659 (jit_breakpoint_re_set_internal): Use bool as the return type.
660 Invert the return value logic; return true if the jit breakpoint
661 has been successfully initialized.
662 (jit_inferior_init): Update the call to
663 jit_breakpoint_re_set_internal.
664
f8098322
PA
6652020-06-22 Pedro Alves <palves@redhat.com>
666
667 PR gdb/25939
668 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
669 Use the current inferior instead. Don't return
670 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
671 wait again.
672 * sol-thread.c (sol_thread_target::wait): Don't reference
673 inferior_ptid.
674 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
675 (sol_update_thread_list_callback): Use the current inferior's pid
676 instead of inferior_ptid.
677
196535a6
RO
6782020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
679
680 * procfs.c: Cleanup many comments.
681
682 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
683 (AFTER_WATCHFLAG): Replace by value.
684
685 (MAIN_PROC_NAME_FORMAT): Inline ...
686 (create_procinfo): ... here.
687
688 (procfs_debug_inferior): Remove SYS_exec handling.
689 (syscall_is_exec): Likewise.
690 (procfs_set_exec_trap): Likewise.
691
692 (syscall_is_lwp_exit): Inline in callers.
693 (syscall_is_exit): Likewise.
694 (syscall_is_exec): Likewise.
695 (syscall_is_lwp_create): Likewise.
696
697 (invalidate_cache): Remove #if 0 code.
698
699 (make_signal_thread_runnable): Remove.
700 (procfs_target::resume): Remove #if 0 code.
701
cf6f3e86
RO
7022020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
703
704 PR gdb/25939
705 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
706 call ...
707 (procfs_target::create_inferior): ... here.
708
48e9cc84
PW
7092020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
710
711 * exec.c (validate_exec_file): Ensure the build-id is up to
712 date by calling reopen_exec_file (that checks file timestamp
713 to decide to re-read the file).
714
3922b302
PA
7152020-06-18 Pedro Alves <palves@redhat.com>
716
717 PR gdb/25412
718 * gdbthread.h (delete_thread, delete_thread_silent)
719 (find_thread_ptid): Update comments.
720 * thread.c (current_thread_): New global.
721 (is_current_thread): Move higher, and reimplement.
722 (inferior_thread): Reimplement.
723 (set_thread_exited): Use bool. Add assertions.
724 (add_thread_silent): Simplify thread-reuse handling by always
725 calling delete_thread.
726 (delete_thread): Remove intro comment.
727 (find_thread_ptid): Skip exited threads.
728 (switch_to_thread_no_regs): Write to current_thread_.
729 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
730 INFERIOR_PTID. Clear current_thread_.
731
6dbdab44
PA
7322020-06-18 Pedro Alves <palves@redhat.com>
733
734 * aix-thread.c (pd_update): Use switch_to_thread.
735
2da4b788
PA
7362020-06-18 Pedro Alves <palves@redhat.com>
737
738 * ravenscar-thread.c (ravenscar_thread_target): Update.
739 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
740 (ravenscar_thread_target::add_active_thread): ... this. Don't
741 set m_base_ptid here. Update to avoid referencing inferior_ptid.
742 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
743
50838d1b
PA
7442020-06-18 Pedro Alves <palves@redhat.com>
745
746 * nat/windows-nat.c (current_windows_thread): Remove.
747 * nat/windows-nat.h (current_windows_thread): Remove.
748 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
749 Adjust.
750 (display_selectors): Adjust to fetch the current
751 windows_thread_info based on inferior_ptid.
752 (fake_create_process): No longer write to current_windows_thread.
753 (windows_nat_target::get_windows_debug_event):
754 Don't set inferior_ptid or current_windows_thread.
755 (windows_nat_target::wait): Adjust to not rely on
756 current_windows_thread.
757 (do_initial_windows_stuff): Now a method of windows_nat_target.
758 Switch to the last_ptid thread.
759 (windows_nat_target::attach): Adjust.
760 (windows_nat_target::detach): Use switch_to_no_thread instead of
761 writing to inferior_ptid directly.
762 (windows_nat_target::create_inferior): Adjust.
763
31ce04e9
PA
7642020-06-18 Pedro Alves <palves@redhat.com>
765
766 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
767
1ee1a363
PA
7682020-06-18 Pedro Alves <palves@redhat.com>
769
770 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
771 after creating it, instead of writing to inferior_ptid. Don't
772 write to inferior_ptid.
773
6d350754
PA
7742020-06-18 Pedro Alves <palves@redhat.com>
775
776 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
777
5d971d48
PA
7782020-06-18 Pedro Alves <palves@redhat.com>
779
780 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
781 it, instead of writing to inferior_ptid.
782
86e57d1b
PA
7832020-06-18 Pedro Alves <palves@redhat.com>
784
785 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
786 to inferior_ptid.
787
f2e1c129
PA
7882020-06-18 Pedro Alves <palves@redhat.com>
789
790 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
791 instead of writing to inferior_ptid directly.
792
60db1b85
PA
7932020-06-18 Pedro Alves <palves@redhat.com>
794
795 * corelow.c (core_target::close): Use switch_to_no_thread instead
796 of writing to inferior_ptid directly.
797 (add_to_thread_list, core_target_open): Use switch_to_thread
798 instead of writing to inferior_ptid directly.
799
fe7d6a8d
PA
8002020-06-18 Pedro Alves <palves@redhat.com>
801
802 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
803 inferior_ptid.
804 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
805 inferior_ptid.
806 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
807 inferior_ptid directly.
808 (darwin_nat_target::init_thread_list): Switch to thread, instead
809 of writing to inferior_ptid.
810 (darwin_nat_target::attach): Don't write to inferior_ptid.
811 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
812
975f8708
PA
8132020-06-18 Pedro Alves <palves@redhat.com>
814
815 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
816 thread.
817 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
818 Instead use switch_to_thread.
819 (gnu_nat_target::detach): Use switch_to_no_thread
820 instead of writing to inferior_ptid directly. Used passed-in
821 inferior instead of looking up the inferior by pid.
822
1a204730
PA
8232020-06-18 Pedro Alves <palves@redhat.com>
824
825 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
826 inferior_ptid.
827
ebe84f23
PA
8282020-06-18 Pedro Alves <palves@redhat.com>
829
830 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
831 inferior_ptid.
832 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
833 thread.
834 (nto_procfs_target::detach): Avoid referencing
835 inferior_ptid. Use switch_to_no_thread instead of writing to
836 inferior_ptid directly.
837 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
838 instead of writing to inferior_ptid directly.
839 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
840 to thread.
841
191f02e5
PA
8422020-06-18 Pedro Alves <palves@redhat.com>
843
844 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
845 after creating it, instead of writing to inferior_ptid.
846 (gdbsim_target_open): Use switch_to_no_thread instead of writing
847 to inferior_ptid directly.
848 (gdbsim_target::wait): Don't write to inferior_ptid.
849
0ac55310
PA
8502020-06-18 Pedro Alves <palves@redhat.com>
851
852 * remote.c (remote_target::remote_notice_new_inferior): Use
853 switch_to_thread instead of writing to inferior_ptid directly.
854 (remote_target::add_current_inferior_and_thread): Use
855 switch_to_no_thread instead of writing to inferior_ptid directly.
856 (extended_remote_target::attach): Use switch_to_inferior_no_thread
857 and switch_to_thread instead of using set_current_inferior or
858 writing to inferior_ptid directly.
859
5233f39b
PA
8602020-06-18 Pedro Alves <palves@redhat.com>
861
862 * tracectf.c (ctf_target_open): Switch to added thread instead of
863 writing to inferior_ptid directly.
864 (ctf_target::close): Use switch_to_no_thread instead of writing to
865 inferior_ptid directly.
866
087e161b
PA
8672020-06-18 Pedro Alves <palves@redhat.com>
868
869 * tracefile-tfile.c (tfile_target_open): Don't write to
870 inferior_ptid directly, instead switch to added thread.
871 (tfile_target::close): Use switch_to_no_thread instead of writing
872 to inferior_ptid directly.
873
7fb43e53
PA
8742020-06-18 Pedro Alves <palves@redhat.com>
875
876 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
877 (procfs_target::detach): Use switch_to_no_thread
878 instead of writing to inferior_ptid directly.
879 (do_attach): Change return type to void. Switch to the added
880 thread.
881 (procfs_target::create_inferior): Switch to the added thread.
882 (procfs_do_thread_registers): Don't write to inferior_ptid.
883
18493a00
PA
8842020-06-18 Pedro Alves <palves@redhat.com>
885
886 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
887 of writing to inferior_ptid.
888 (scoped_restore_exited_inferior): Delete.
889 (handle_vfork_child_exec_or_exit): Simplify using
890 scoped_restore_current_pspace_and_thread. Use switch_to_thread
891 instead of writing to inferior_ptid.
892 (THREAD_STOPPED_BY): Delete.
893 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
894 (thread_stopped_by_hw_breakpoint): Delete.
895 (save_waitstatus): Use
896 scoped_restore_current_thread+switch_to_thread, and call
897 target_stopped_by_watchpoint instead of
898 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
899 instead of thread_stopped_by_sw_breakpoint, and
900 target_stopped_by_hw_breakpoint instead of
901 thread_stopped_by_hw_breakpoint.
902 (handle_inferior_event)
903 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
904 inferior_ptid directly, nor
905 set_current_inferior/set_current_program_space. Use
906 switch_to_thread / switch_to_inferior_no_thread instead.
907
a0776b13
PA
9082020-06-18 Pedro Alves <palves@redhat.com>
909
910 * target.c (generic_mourn_inferior): Use switch_to_no_thread
911 instead of writing to inferior_ptid.
912
6155c136
PA
9132020-06-18 Pedro Alves <palves@redhat.com>
914
915 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
916 added thread.
917 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
918 to the added thread.
919 (inf_ptrace_target::detach_success): Use switch_to_no_thread
920 instead of writing to inferior_ptid.
921
c5316fc6
PA
9222020-06-18 Pedro Alves <palves@redhat.com>
923
924 * gdbarch-selftests.c: Include "progspace-and-thread.h".
925 (register_to_value_test): Mock a program_space too. Heap-allocate
926 the address space. Don't write to inferior_ptid. Use
927 switch_to_thread instead.
928
8df01799
PA
9292020-06-18 Pedro Alves <palves@redhat.com>
930
931 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
932 Delete.
933 (find_signalled_thread()): New, factored out from
934 linux_make_corefile_notes and adjusted to handle exited threads.
935 (linux_make_corefile_notes): Adjust to use the new
936 find_signalled_thread.
937
41792d68
PA
9382020-06-18 Pedro Alves <palves@redhat.com>
939
940 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
941 of saving/restoring inferior_ptid.
942
612f258a
TT
9432020-06-17 Tom Tromey <tom@tromey.com>
944
945 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
946 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
947 declare.
948 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
949
efb763a5
SM
9502020-06-15 Simon Marchi <simon.marchi@efficios.com>
951
952 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
953 of partial symtabs.
954
2951f6c0
SM
9552020-06-17 Simon Marchi <simon.marchi@efficios.com>
956
957 * regformats/reg-arm.dat: Remove.
958 * regformats/reg-bfin.dat: Remove.
959 * regformats/reg-cris.dat: Remove.
960 * regformats/reg-crisv32.dat: Remove.
961 * regformats/reg-m32r.dat: Remove.
962 * regformats/reg-tilegx.dat: Remove.
963 * regformats/reg-tilegx32.dat: Remove.
964
7d458ea5
SM
9652020-06-17 Simon Marchi <simon.marchi@efficios.com>
966
967 * features/Makefile (WHICH): Remove arm files.
968 * regformats/arm/arm-with-iwmmxt.dat: Remove.
969 * regformats/arm/arm-with-neon.dat: Remove.
970 * regformats/arm/arm-with-vfpv2.dat: Remove.
971 * regformats/arm/arm-with-vfpv3.dat: Remove.
972
3af96c0d
SM
9732020-06-17 Simon Marchi <simon.marchi@efficios.com>
974
975 * features/Makefile (XMLTOC): Remove rx.xml.
976
b25e22fd
PA
9772020-06-17 Pedro Alves <palves@redhat.com>
978
979 * gdbthread.h (thread_control_state) <trap_expected> Update
980 comments.
981
a78a19b1
AB
9822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
985 ada_language::lookup_symbol_nonlocal.
986 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
987 (ada_language::lookup_symbol_nonlocal): New member function,
988 implementation from ada_lookup_symbol_nonlocal.
989 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
990 initializer.
991 (cplus_language_data): Delete la_lookup_symbol_nonlocal
992 initializer.
993 (cplus_language::lookup_symbol_nonlocal): New member function.
994 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
995 (minimal_language_data) Likewise.
996 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
997 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
998 initializer.
999 (d_language::lookup_symbol_nonlocal): New member function.
1000 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1001 initializer.
1002 (f_language::lookup_symbol_nonlocal): New member function.
1003 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1004 initializer.
1005 * language.c (unknown_language_data): Likewise.
1006 (auto_language_data): Likewise.
1007 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1008 field.
1009 (language_defn::lookup_symbol_nonlocal): New member function.
1010 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1011 initializer.
1012 * objc-lang.c (objc_language_data): Likewise.
1013 * opencl-lang.c (opencl_language_data): Likewise.
1014 * p-lang.c (pascal_language_data): Likewise.
1015 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1016 rust_language::lookup_symbol_nonlocal.
1017 (rust_language_data): Delete la_lookup_symbol_nonlocal
1018 initializer.
1019 (rust_language::lookup_symbol_nonlocal): New member function,
1020 implementation from rust_lookup_symbol_nonlocal.
1021 * symtab.c (lookup_symbol_aux): Update call to
1022 lookup_symbol_nonlocal.
1023 (basic_lookup_symbol_nonlocal): Rename to...
1024 (language_defn::lookup_symbol_nonlocal): ...this, and update
1025 header comment. Remove language_defn parameter, and replace with
1026 uses of `this'.
1027 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1028
ebe2334e
AB
10292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1032 initializer.
1033 (ada_language::value_print_inner): New member function.
1034 * c-lang.c (c_language_data): Delete la_value_print_inner
1035 initializer.
1036 (cplus_language_data): Likewise.
1037 (asm_language_data): Likewise.
1038 (minimal_language_data): Likewise.
1039 * d-lang.c (d_language_data): Likewise.
1040 (d_language::value_print_inner): New member function.
1041 * f-lang.c (f_language_data): Delete la_value_print_inner
1042 initializer.
1043 (f_language::value_print_inner): New member function.
1044 * f-lang.h (f_value_print_innner): Rename to...
1045 (f_value_print_inner): ...this (note spelling of 'inner').
1046 * f-valprint.c (f_value_print_innner): Rename to...
1047 (f_value_print_inner): ...this (note spelling of 'inner').
1048 * go-lang.c (go_language_data): Delete la_value_print_inner
1049 initializer.
1050 (go_language::value_print_inner): New member function.
1051 * language.c (language_defn::value_print_inner): Define new member
1052 function.
1053 (unk_lang_value_print_inner): Delete.
1054 (unknown_language_data): Delete la_value_print_inner initializer.
1055 (unknown_language::value_print_inner): New member function.
1056 (auto_language_data): Delete la_value_print_inner initializer.
1057 (auto_language::value_print_inner): New member function.
1058 * language.h (language_data): Delete la_value_print_inner field.
1059 (language_defn::value_print_inner): Delcare new member function.
1060 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1061 initializer.
1062 (m2_language::value_print_inner): New member function.
1063 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1064 initializer.
1065 * opencl-lang.c (opencl_language_data): Likewise.
1066 * p-lang.c (pascal_language_data): Likewise.
1067 (pascal_language::value_print_inner): New member function.
1068 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1069 initializer.
1070 (rust_language::value_print_inner): New member function.
1071 * valprint.c (do_val_print): Update call to value_print_inner.
1072
a1d1fa3e
AB
10732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1074
1075 * ada-lang.c (ada_language_data): Delete la_value_print
1076 initializer.
1077 (ada_language::value_print): New member function.
1078 * c-lang.c (c_language_data): Delete la_value_print initializer.
1079 (cplus_language_data): Likewise.
1080 (asm_language_data): Likewise.
1081 (minimal_language_data): Likewise.
1082 * d-lang.c (d_language_data): Likewise.
1083 * f-lang.c (f_language_data): Likewise.
1084 * go-lang.c (go_language_data): Likewise.
1085 * language.c (unk_lang_value_print): Delete.
1086 (language_defn::value_print): Define new member function.
1087 (unknown_language_data): Delete la_value_print initializer.
1088 (unknown_language::value_print): New member function.
1089 (auto_language_data): Delete la_value_print initializer.
1090 (auto_language::value_print): New member function.
1091 * language.h (language_data): Delete la_value_print field.
1092 (language_defn::value_print): Declare new member function.
1093 (LA_VALUE_PRINT): Update call to value_print.
1094 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1095 * objc-lang.c (objc_language_data): Likewise.
1096 * opencl-lang.c (opencl_language_data): Likewise.
1097 * p-lang.c (pascal_language_data): Likewise.
1098 (pascal_language::value_print): New member function.
1099 * rust-lang.c (rust_language_data): Delete la_value_print
1100 initializer.
1101
f16a9f57
AB
11022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * ada-lang.c (ada_watch_location_expression): Rename to
1105 ada_language::watch_location_expression.
1106 (ada_language_data): Delete la_watch_location_expression
1107 initializer.
1108 (ada_language::watch_location_expression): New member function,
1109 implementation from ada_watch_location_expression.
1110 * breakpoint.c (watch_command_1): Update call to
1111 watch_location_expression.
1112 * c-lang.c (c_watch_location_expression): Rename to
1113 language_defn::watch_location_expression.
1114 (c_language_data): Delete la_watch_location_expression
1115 initializer.
1116 (cplus_language_data): Likewise.
1117 (asm_language_data): Likewise.
1118 (minimal_language_data): Likewise.
1119 * c-lang.h (c_watch_location_expression): Delete declaration.
1120 * d-lang.c (d_language_data): Delete la_watch_location_expression
1121 initializer.
1122 * f-lang.c (f_language_data): Likewise.
1123 * go-lang.c (go_language_data): Likewise.
1124 * language.c (language_defn::watch_location_expression): Member
1125 function implementation from c_watch_location_expression.
1126 (unknown_language_data): Delete la_watch_location_expression
1127 initializer.
1128 (auto_language_data): Likewise.
1129 * language.h (language_data): Delete la_watch_location_expression
1130 field.
1131 (language_defn::watch_location_expression): Declare new member
1132 function.
1133 * m2-lang.c (m2_language_data): Delete
1134 la_watch_location_expression initializer.
1135 * objc-lang.c (objc_language_data): Likewise.
1136 * opencl-lang.c (opencl_language_data): Likewise.
1137 * p-lang.c (pascal_language_data): Likewise.
1138 * rust-lang.c (rust_watch_location_expression): Rename to
1139 rust_language::watch_location_expression.
1140 (rust_language_data): Delete la_watch_location_expression
1141 initializer.
1142 (rust_language::watch_location_expression): New member function,
1143 implementation from rust_watch_location_expression.
1144
7e56227d
AB
11452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1148 ada_language::collect_symbol_completion_matches.
1149 (ada_language_data): Delete la_collect_symbol_completion_matches
1150 initializer.
1151 (ada_language::collect_symbol_completion_matches): New member
1152 function, implementation from
1153 ada_collect_symbol_completion_matches.
1154 * c-lang.c (c_language_data): Delete
1155 la_collect_symbol_completion_matches initializer.
1156 (cplus_language_data): Likewise.
1157 (asm_language_data): Likewise.
1158 (minimal_language_data): Likewise.
1159 * d-lang.c (d_language_data): Likewise.
1160 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1161 f_language::collect_symbol_completion_matches.
1162 (f_language_data): Delete la_collect_symbol_completion_matches
1163 initializer.
1164 (f_language::collect_symbol_completion_matches) New member
1165 function, implementation from f_collect_symbol_completion_matches.
1166 * go-lang.c (go_language_data): Delete
1167 la_collect_symbol_completion_matches initializer.
1168 * language.c (unknown_language_data): Likewise.
1169 (auto_language_data): Likewise.
1170 * language.h (language_data): Delete
1171 la_collect_symbol_completion_matches field.
1172 (language_defn::collect_symbol_completion_matches): New member
1173 function.
1174 * m2-lang.c (m2_language_data): Delete
1175 la_collect_symbol_completion_matches initializer.
1176 * objc-lang.c (objc_language_data): Likewise.
1177 * opencl-lang.c (opencl_language_data): Likewise.
1178 * p-lang.c (pascal_language_data): Likewise.
1179 * rust-lang.c (rust_language_data): Likewise.
1180 * symtab.c (default_collect_symbol_completion_matches): Delete.
1181 (collect_symbol_completion_matches): Update call to
1182 collect_symbol_completion_matches.
1183 (collect_symbol_completion_matches_type): Likewise.
1184 * symtab.h (default_collect_symbol_completion_matches): Delete
1185 declaration.
1186
53fc67f8
AB
11872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1190 (ada_language_data): Delete la_word_break_characters initializer.
1191 (ada_language::word_break_characters): New member function.
1192 * c-lang.c (c_language_data): Delete la_word_break_characters
1193 initializer.
1194 (cplus_language_data): Likewise.
1195 (asm_language_data): Likewise.
1196 (minimal_language_data): Likewise.
1197 * completer.c: Update global comment.
1198 (advance_to_expression_complete_word_point): Update call to
1199 word_break_characters.
1200 (complete_files_symbols): Likewise.
1201 (complete_line_internal_1): Likewise.
1202 (default_completer_handle_brkchars): Likewise.
1203 (skip_quoted_chars): Likewise.
1204 * d-lang.c (d_language_data): Delete la_word_break_characters
1205 initializer.
1206 * f-lang.c (f_word_break_characters): Delete.
1207 (f_language_data): Delete la_word_break_characters initializer.
1208 (f_language::word_break_characters): New member function.
1209 * go-lang.c (go_language_data): Delete la_word_break_characters
1210 initializer.
1211 * language.c (unknown_language_data): Likewise.
1212 (auto_language_data): Likewise.
1213 * language.h (default_word_break_characters): Move declaration to
1214 earlier in the file.
1215 (language_data): Delete la_word_break_characters field.
1216 (language_defn::word_break_characters): New member function.
1217 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1218 initializer.
1219 * objc-lang.c (objc_language_data): Likewise.
1220 * opencl-lang.c (opencl_language_data): Likewise.
1221 * p-lang.c (pascal_language_data): Likewise.
1222 * rust-lang.c (rust_language_data): Likewise.
1223
c9debfb9
AB
12242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1225
1226 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1227 (ada_language_data): Delete la_get_symbol_name_matcher
1228 initializer.
1229 (language_defn::get_symbol_name_matcher_inner): New member
1230 function.
1231 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1232 initializer.
1233 (cplus_language_data): Likewise.
1234 (cplus_language::get_symbol_name_matcher_inner): New member
1235 function.
1236 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1237 (minimal_language_data): Likewise.
1238 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1239 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1240 initializer.
1241 * dictionary.c (iter_match_first_hashed): Update call to
1242 get_symbol_name_matcher.
1243 (iter_match_next_hashed): Likewise.
1244 (iter_match_next_linear): Likewise.
1245 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1246 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1247 initializer.
1248 (f_language::get_symbol_name_matcher_inner): New member function.
1249 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1250 initializer.
1251 * language.c (default_symbol_name_matcher): Update header comment,
1252 make static.
1253 (language_defn::get_symbol_name_matcher): New definition.
1254 (language_defn::get_symbol_name_matcher_inner): Likewise.
1255 (get_symbol_name_matcher): Delete.
1256 (unknown_language_data): Delete la_get_symbol_name_matcher
1257 initializer.
1258 (auto_language_data): Likewise.
1259 * language.h (language_data): Delete la_get_symbol_name_matcher
1260 field.
1261 (language_defn::get_symbol_name_matcher): New member function.
1262 (language_defn::get_symbol_name_matcher_inner): Likewise.
1263 (default_symbol_name_matcher): Delete declaration.
1264 * linespec.c (find_methods): Update call to
1265 get_symbol_name_matcher.
1266 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1267 initializer.
1268 * minsyms.c (lookup_minimal_symbol): Update call to
1269 get_symbol_name_matcher.
1270 (iterate_over_minimal_symbols): Likewise.
1271 * objc-lang.c (objc_language_data): Delete
1272 la_get_symbol_name_matcher initializer.
1273 * opencl-lang.c (opencl_language_data): Likewise.
1274 * p-lang.c (pascal_language_data): Likewise.
1275 * psymtab.c (psymbol_name_matches): Update call to
1276 get_symbol_name_matcher.
1277 * rust-lang.c (rust_language_data): Delete
1278 la_get_symbol_name_matcher initializer.
1279 * symtab.c (symbol_matches_search_name): Update call to
1280 get_symbol_name_matcher.
1281 (compare_symbol_name): Likewise.
1282
9a49ad8c
AB
12832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * ada-lang.c (ada_language_data): Delete la_compute_program
1286 initializer.
1287 * c-lang.c (c_language_data): Likewise.
1288 (c_language::compute_program): New member function.
1289 (cplus_language_data): Delete la_compute_program initializer.
1290 (cplus_language::compute_program): New member function.
1291 (asm_language_data): Delete la_compute_program initializer.
1292 (minimal_language_data): Likewise.
1293 * c-lang.h (c_compute_program): Update comment.
1294 (cplus_compute_program): Likewise.
1295 * compile/compile-c-support.c (c_compute_program): Likewise.
1296 (cplus_compute_program): Likewise.
1297 * compile/compile.c (compile_to_object): Update call to
1298 la_compute_program.
1299 * d-lang.c (d_language_data): Delete la_compute_program
1300 initializer.
1301 * f-lang.c (f_language_data): Likewise.
1302 * go-lang.c (go_language_data): Likewise.
1303 * language.c (unknown_language_data): Likewise.
1304 (auto_language_data): Likewise.
1305 * language.h (language_data): Delete la_compute_program field.
1306 (language_defn::compute_program): New member function.
1307 * m2-lang.c (m2_language_data): Delete la_compute_program
1308 initializer.
1309 * objc-lang.c (objc_language_data): Likewise.
1310 * opencl-lang.c (opencl_language_data): Likewise.
1311 * p-lang.c (pascal_language_data): Likewise.
1312 * rust-lang.c (rust_language_data): Likewise.
1313
eff93b4d
AB
13142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * ada-lang.c (ada_language_data) Delete
1317 la_class_name_from_physname initializer.
1318 * c-lang.c (c_language_data): Likewise.
1319 (cplus_language_data): Likewise.
1320 (cplus_language::class_name_from_physname): New member function.
1321 (asm_language_data): Delete la_class_name_from_physname
1322 initializer.
1323 (minimal_language_data): Likewise.
1324 * d-lang.c (d_language_data): Likewise.
1325 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1326 method on language_defn class.
1327 (guess_full_die_structure_name): Likewise.
1328 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1329 initializer.
1330 * go-lang.c (go_language_data): Likewise.
1331 * language.c (language_class_name_from_physname): Delete.
1332 (unk_lang_class_name): Delete.
1333 (unknown_language_data): Delete la_class_name_from_physname
1334 initializer.
1335 (auto_language_data): Likewise.
1336 * language.h (language_data): Delete la_class_name_from_physname
1337 field.
1338 (language_defn::class_name_from_physname): New function.
1339 (language_class_name_from_physname): Delete declaration.
1340 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1341 initializer.
1342 * objc-lang.c (objc_language_data): Likewise.
1343 * opencl-lang.c (opencl_language_data): Likewise.
1344 * p-lang.c (pascal_language_data): Likewise.
1345 * rust-lang.c (rust_language_data): Likewise.
1346
de543742
TT
13472020-06-16 Tom Tromey <tom@tromey.com>
1348
1349 * tui/tui-data.h (STATUS_NAME): New macro.
1350 * tui/tui-layout.c (tui_remove_some_windows)
1351 (initialize_known_windows, tui_register_window)
1352 (tui_layout_split::remove_windows, initialize_layouts)
1353 (tui_new_layout_command): Don't use hard-coded window names.
1354
a350efd4
TT
13552020-06-16 Tom Tromey <tom@tromey.com>
1356
1357 PR tui/25348:
1358 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1359 tui_initialize_readline. Only run once. Call rl_initialize.
1360 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1361 tui_initialize_readline.
1362 * tui/tui-io.c (tui_setup_io): Call
1363 tui_ensure_readline_initialized.
1364 * tui/tui-interp.c (tui_interp::init): Update.
1365
39ec0490
TT
13662020-06-16 Tom Tromey <tom@tromey.com>
1367
1368 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1369 Also preserve the status window.
1370
d2d1ea20
TT
13712020-06-16 Tom Tromey <tom@tromey.com>
1372
1373 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1374 where m_window==nullptr.
1375
66920317
TT
13762020-06-15 Tom Tromey <tromey@adacore.com>
1377
1378 * windows-nat.c (windows_nat::handle_output_debug_string):
1379 Update.
1380 (windows_nat::handle_ms_vc_exception): Update.
1381 * target.h (target_read_string): Change API.
1382 * target.c (target_read_string): Change API.
1383 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1384 Update.
1385 * solib-frv.c (frv_current_sos): Update.
1386 * solib-dsbt.c (dsbt_current_sos): Update.
1387 * solib-darwin.c (darwin_current_sos): Update.
1388 * linux-thread-db.c (inferior_has_bug): Update.
1389 * expprint.c (print_subexp_standard): Update.
1390 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1391 (ada_exception_message_1): Update.
1392
a5d871dd
TT
13932020-06-15 Tom Tromey <tromey@adacore.com>
1394
1395 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1396
670e35fa
TT
13972020-06-15 Tom Tromey <tromey@adacore.com>
1398
1399 * valprint.c (read_string): Update comment.
1400 * target.c (MIN): Remove.
1401 (target_read_string): Rewrite.
1402
f5272a3b
TT
14032020-06-15 Tom Tromey <tromey@adacore.com>
1404
1405 * corefile.c (read_memory_string): Remove.
1406 * ada-valprint.c (ada_value_print_ptr): Update.
1407 * ada-lang.h (ada_tag_name): Change return type.
1408 * ada-lang.c (type_from_tag): Update.
1409 (ada_tag_name_from_tsd): Change return type. Use
1410 target_read_string.
1411 (ada_tag_name): Likewise.
1412 * gdbcore.h (read_memory_string): Don't declare.
1413
2c074f49
HD
14142020-06-14 Hannes Domani <ssbssa@yahoo.de>
1415
1416 * symtab.c (rbreak_command): Ignore Windows drive colon.
1417
6a17d503
SM
14182020-06-12 Simon Marchi <simon.marchi@efficios.com>
1419
1420 * NEWS: Mention removed GDBserver host support.
1421
453c733f
NC
14222020-06-12 Nelson Chu <nelson.chu@sifive.com>
1423
1424 * features/riscv/rebuild-csr-xml.sh: Updated.
1425
2b4e6a3f
TT
14262020-06-11 Tom Tromey <tom@tromey.com>
1427
1428 PR gdb/18318:
1429 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1430
4412332f
JG
14312020-06-09 Jonny Grant <jg@jguk.org>
14322020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 * main.c (captured_main_1): Don't print new line after help.
1435 (print_gdb_help): add mailing list and IRC channel information
1436 to --help. Add new lines between items in the footer. Remove
1437 quotes around bug url.
1438
2f33032a
KS
14392020-06-11 Keith Seitz <keiths@redhat.com>
1440
1441 PR gdb/21356
1442 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1443 Resolve typedefs for type length calculations.
1444
7ab96794
TV
14452020-06-10 Tom de Vries <tdevries@suse.de>
1446
1447 PR ada/24713
1448 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1449 (write_psymbols): Enable .gdb_index for ada.
1450 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1451 ada.
1452
e5f3ece2
TV
14532020-06-10 Tom de Vries <tdevries@suse.de>
1454
1455 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1456 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1457 namei" instead of "const char *name" argument.
1458 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1459 dw2_symtab_iter_init.
1460
940da03e
SM
14612020-06-08 Simon Marchi <simon.marchi@efficios.com>
1462
1463 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1464 to use type::field and field::type instead.
1465
b6cdac4b
SM
14662020-06-08 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1469 to use field::type instead.
1470
5d14b6e5
SM
14712020-06-08 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.h (struct field) <type, set_type>: New methods.
1474 Rename `type` field to...
1475 <m_type>: ... this. Change references throughout to use type or
1476 set_type methods.
1477 (FIELD_TYPE): Use field::type. Change call sites that modify
1478 the field's type to use field::set_type instead.
1479
3d967001
SM
14802020-06-08 Simon Marchi <simon.marchi@efficios.com>
1481
1482 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1483 to use type::index_type instead.
1484
262abc0d
SM
14852020-06-08 Simon Marchi <simon.marchi@efficios.com>
1486
1487 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1488 methods.
1489 (TYPE_INDEX_TYPE): Use type::index_type.
1490 * gdbtypes.c (create_array_type_with_stride): Likewise.
1491
82836c92
TT
14922020-06-07 Tom Tromey <tom@tromey.com>
1493
1494 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1495 parameter.
1496 (generic_value_print): Update.
1497
940dace9
AB
14982020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 Revert commit 982a38f60b0.
1501 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1502
982a38f6
AB
15032020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1504
1505 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1506 avoid use after free.
1507
82f06518
TV
15082020-06-05 Tom de Vries <tdevries@suse.de>
1509
1510 * NEWS: Fix typos.
1511
f8c41851
SM
15122020-06-04 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1515 the per_bfd object.
1516 (dwarf2_read_debug_names): Likewise.
1517 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1518 object when re-using a per_bfd object with an index.
1519
f9b5d5ea
TV
15202020-06-03 Tom de Vries <tdevries@suse.de>
1521
1522 PR symtab/26046
1523 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1524 children for C++.
1525 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1526 DW_TAG_subprogram.
1527
f6eee2d0
AB
15282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * ada-lang.c (ada_language_data): Delete skip_trampoline
1531 initializer.
1532 * c-lang.c (c_language_data): Likewise.
1533 (cplus_language_data): Likewise.
1534 (cplus_language::skip_trampoline): New member function.
1535 (asm_language_data): Delete skip_trampoline initializer.
1536 (minimal_language_data): Likewise.
1537 * d-lang.c (d_language_data): Likewise.
1538 * f-lang.c (f_language_data): Likewise.
1539 * go-lang.c (go_language_data): Likewise.
1540 * language.c (unk_lang_trampoline): Delete function.
1541 (skip_language_trampoline): Update.
1542 (unknown_language_data): Delete skip_trampoline initializer.
1543 (auto_language_data): Likewise.
1544 * language.h (language_data): Delete skip_trampoline field.
1545 (language_defn::skip_trampoline): New function.
1546 * m2-lang.c (m2_language_data): Delete skip_trampoline
1547 initializer.
1548 * objc-lang.c (objc_skip_trampoline): Delete function, move
1549 implementation to objc_language::skip_trampoline.
1550 (objc_language_data): Delete skip_trampoline initializer.
1551 (objc_language::skip_trampoline): New member function with
1552 implementation from objc_skip_trampoline.
1553 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1554 initializer.
1555 * p-lang.c (pascal_language_data): Likewise.
1556 * rust-lang.c (rust_language_data): Likewise.
1557
0a50df5d
AB
15582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1561 (ada_language::demangle): New member function.
1562 * c-lang.c (c_language_data): Delete la_demangle initializer.
1563 (cplus_language_data): Delete la_demangle initializer.
1564 (cplus_language::demangle): New member function.
1565 (asm_language_data): Delete la_demangle initializer.
1566 (minimal_language_data): Delete la_demangle initializer.
1567 * d-lang.c (d_language_data): Delete la_demangle initializer.
1568 (d_language::demangle): New member function.
1569 * f-lang.c (f_language_data): Delete la_demangle initializer.
1570 (f_language::demangle): New member function.
1571 * go-lang.c (go_language_data): Delete la_demangle initializer.
1572 (go_language::demangle): New member function.
1573 * language.c (language_demangle): Update.
1574 (unk_lang_demangle): Delete.
1575 (unknown_language_data): Delete la_demangle initializer.
1576 (unknown_language::demangle): New member function.
1577 (auto_language_data): Delete la_demangle initializer.
1578 (auto_language::demangle): New member function.
1579 * language.h (language_data): Delete la_demangle field.
1580 (language_defn::demangle): New function.
1581 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1582 * objc-lang.c (objc_language_data): Delete la_demangle
1583 initializer.
1584 (objc_language::demangle): New member function.
1585 * opencl-lang.c (opencl_language_data): Delete la_demangle
1586 initializer.
1587 * p-lang.c (pascal_language_data): Likewise.
1588 * rust-lang.c (rust_language_data): Likewise.
1589 (rust_language::demangle): New member function.
1590
fbfb0a46
AB
15912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1592
1593 * ada-lang.c (ada_language_data): Delete la_print_type
1594 initializer.
1595 (ada_language::print_type): New member function.
1596 * c-lang.c (c_language_data): Delete la_print_type initializer.
1597 (c_language::print_type): New member function.
1598 (cplus_language_data): Delete la_print_type initializer.
1599 (cplus_language::print_type): New member function.
1600 (asm_language_data): Delete la_print_type initializer.
1601 (asm_language::print_type): New member function.
1602 (minimal_language_data): Delete la_print_type initializer.
1603 (minimal_language::print_type): New member function.
1604 * d-lang.c (d_language_data): Delete la_print_type initializer.
1605 (d_language::print_type): New member function.
1606 * f-lang.c (f_language_data): Delete la_print_type initializer.
1607 (f_language::print_type): New member function.
1608 * go-lang.c (go_language_data): Delete la_print_type initializer.
1609 (go_language::print_type): New member function.
1610 * language.c (unk_lang_print_type): Delete.
1611 (unknown_language_data): Delete la_print_type initializer.
1612 (unknown_language::print_type): New member function.
1613 (auto_language_data): Delete la_print_type initializer.
1614 (auto_language::print_type): New member function.
1615 * language.h (language_data): Delete la_print_type field.
1616 (language_defn::print_type): New function.
1617 (LA_PRINT_TYPE): Update.
1618 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1619 (m2_language::print_type): New member function.
1620 * objc-lang.c (objc_language_data): Delete la_print_type
1621 initializer.
1622 (objc_language::print_type): New member function.
1623 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1624 to opencl_language::print_type.
1625 (opencl_language_data): Delete la_print_type initializer.
1626 (opencl_language::print_type): New member function, implementation
1627 from opencl_print_type.
1628 * p-lang.c (pascal_language_data): Delete la_print_type
1629 initializer.
1630 (pascal_language::print_type): New member function.
1631 * rust-lang.c (rust_print_type): Delete, implementation moved to
1632 rust_language::print_type.
1633 (rust_language_data): Delete la_print_type initializer.
1634 (rust_language::print_type): New member function, implementation
1635 from rust_print_type.
1636
6f827019
AB
16372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1640 implementation moves to...
1641 (ada_language::sniff_from_mangled_name): ...here. Update return
1642 type.
1643 (ada_language_data): Delete la_sniff_from_mangled_name
1644 initializer.
1645 * c-lang.c (c_language_data): Likewise.
1646 (cplus_language_data): Likewise.
1647 (cplus_language::sniff_from_mangled_name): New member function,
1648 implementation taken from gdb_sniff_from_mangled_name.
1649 (asm_language_data): Delete la_sniff_from_mangled_name
1650 initializer.
1651 (minimal_language_data): Likewise.
1652 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1653 implementation moves to cplus_language::sniff_from_mangled_name.
1654 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1655 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1656 moves to...
1657 (d_language::sniff_from_mangled_name): ...here.
1658 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1659 * f-lang.c (f_language_data): Likewise.
1660 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1661 moves to...
1662 (go_language::sniff_from_mangled_name): ...here.
1663 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1664 * language.c (language_sniff_from_mangled_name): Delete.
1665 (unknown_language_data): Delete la_sniff_from_mangled_name
1666 initializer.
1667 (auto_language_data): Likewise.
1668 * language.h (language_data): Delete la_sniff_from_mangled_name
1669 field.
1670 (language_defn::sniff_from_mangled_name): New function.
1671 (language_sniff_from_mangled_name): Delete declaration.
1672 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1673 field.
1674 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1675 implementation moves to...
1676 (objc_language::sniff_from_mangled_name): ...here.
1677 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1678 * opencl-lang.c (opencl_language_data): Likewise.
1679 * p-lang.c (pascal_language_data): Likewise.
1680 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1681 implementation moves to...
1682 (rust_language::sniff_from_mangled_name): ...here.
1683 (rust_language_data): Delete la_sniff_from_mangled_name
1684 initializer.
1685 * symtab.c (symbol_find_demangled_name): Call
1686 sniff_from_mangled_name member function.
1687
fb8006fd
AB
16882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1691 initializer.
1692 * c-lang.c (c_language_data): Likewise.
1693 (cplus_language_data): Likewise.
1694 (cplus_language::search_name_hash): New member function.
1695 (asm_language_data): Delete la_search_name_hash initializer.
1696 (minimal_language_data): Likewise.
1697 * d-lang.c (d_language_data): Likewise.
1698 * dictionary.c (default_search_name_hash): Rename to...
1699 (language_defn::search_name_hash): ...this.
1700 * f-lang.c (f_language_data): Likewise.
1701 (f_language::search_name_hash): New member function.
1702 * go-lang.c (go_language_data): Delete la_search_name_hash
1703 initializer.
1704 * language.c (unknown_language_data): Likewise.
1705 (auto_language_data): Likewise.
1706 * language.h (struct language_data): Delete la_search_name_hash
1707 field.
1708 (language_defn::search_name_hash): Declare new member function.
1709 (default_search_name_hash): Delete declaration.
1710 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1711 initializer.
1712 * objc-lang.c (objc_language_data): Likewise.
1713 * opencl-lang.c (opencl_language_data): Likewise.
1714 * p-lang.c (pascal_language_data): Likewise.
1715 * rust-lang.c (rust_language_data): Likewise.
1716 * symtab.c (search_name_hash): Update call.
1717
8e25bafe
AB
17182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1721 initializer.
1722 * c-lang.c (class compile_instance): Declare.
1723 (c_language_data): Delete la_get_compile_instance initializer.
1724 (c_language::get_compile_instance): New member function.
1725 (cplus_language_data): Delete la_get_compile_instance initializer.
1726 (cplus_language::get_compile_instance): New member function.
1727 (asm_language_data): Delete la_get_compile_instance initializer.
1728 (minimal_language_data): Likewise.
1729 * c-lang.h (c_get_compile_context): Update comment.
1730 (cplus_get_compile_context): Update comment.
1731 * compile/compile.c (compile_to_object): Update calls, don't rely
1732 on function pointer being NULL.
1733 * d-lang.c (d_language_data): Delete la_get_compile_instance
1734 initializer.
1735 * f-lang.c (f_language_data): Likewise.
1736 * go-lang.c (go_language_data): Likewise.
1737 * language.c (unknown_language_data): Likewise.
1738 (auto_language_data): Likewise.
1739 * language.h (language_data): Delete la_get_compile_instance field.
1740 (language_defn::get_compile_instance): New member function.
1741 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1742 initializer.
1743 * objc-lang.c (objc_language_data): Likewise.
1744 * opencl-lang.c (opencl_language_data): Likewise.
1745 * p-lang.c (pascal_language_data): Likewise.
1746 * rust-lang.c (rust_language_data): Likewise.
1747
4009ee92
AB
17482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * ada-lang.c (ada_add_all_symbols): Update comment.
1751 (ada_iterate_over_symbols): Delete, move implementation to...
1752 (ada_language::iterate_over_symbols): ...here, a new member
1753 function, rewrite to use range based for loop.
1754 (ada_language_data): Delete la_iterate_over_symbols initializer.
1755 * c-lang.c (c_language_data): Likewise.
1756 (cplus_language_data): Likewise.
1757 (asm_language_data): Likewise.
1758 (minimal_language_data): Likewise.
1759 * d-lang.c (d_language_data): Likewise.
1760 * f-lang.c (f_language_data): Likewise.
1761 * go-lang.c (go_language_data): Likewise.
1762 * language.c (unknown_language_data): Likewise.
1763 (auto_language_data): Likewise.
1764 * language.h (language_data): Delete la_iterate_over_symbols field.
1765 (language_defn::iterate_over_symbols): New member function.
1766 (LA_ITERATE_OVER_SYMBOLS): Update.
1767 * linespec.c (iterate_over_all_matching_symtabs): Update.
1768 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1769 initializer.
1770 * objc-lang.c (objc_language_data): Likewise.
1771 * opencl-lang.c (opencl_language_data): Likewise.
1772 * p-lang.c (pascal_language_data): Likewise.
1773 * rust-lang.c (rust_language_data): Likewise.
1774
54f4ca46
AB
17752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1776
1777 * ada-lang.c (ada_language_data): Delete
1778 la_lookup_transparent_type initializer.
1779 * c-lang.c (c_language_data): Likewise.
1780 (cplus_language_data): Likewise.
1781 (cplus_language::lookup_transparent_type): New member function.
1782 (asm_language_data): Delete la_lookup_transparent_type
1783 initializer.
1784 (minimal_language_data): Likewise.
1785 * d-lang.c (d_language_data): Likewise.
1786 * f-lang.c (f_language_data): Likewise.
1787 * go-lang.c (go_language_data): Likewise.
1788 * language.c (unknown_language_data): Likewise.
1789 (auto_language_data): Likewise.
1790 * language.h (struct language_data): Delete
1791 la_lookup_transparent_type field.
1792 (language_defn::lookup_transparent_type): New member function.
1793 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1794 initializer.
1795 * objc-lang.c (objc_language_data): Likewise.
1796 * opencl-lang.c (opencl_language_data): Likewise.
1797 * p-lang.c (pascal_language_data): Likewise.
1798 * rust-lang.c (rust_language_data): Likewise.
1799 * symtab.c (symbol_matches_domain): Update call.
1800
1fb314aa
AB
18012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * ada-lang.c (ada_language_arch_info): Delete function, move
1804 implementation to...
1805 (ada_language::language_arch_info): ...here, a new member
1806 function.
1807 (ada_language_data): Delete la_language_arch_info.
1808 * c-lang.c (c_language_data): Likewise.
1809 (c_language::language_arch_info): New member function.
1810 (cplus_language_arch_info): Delete function, move
1811 implementation to...
1812 (cplus_language::language_arch_info): ...here, a new member
1813 function.
1814 (cplus_language_data): Delete la_language_arch_info.
1815 (asm_language_data): Likewise.
1816 (asm_language::language_arch_info): New member function.
1817 (minimal_language_data): Delete la_language_arch_info.
1818 (minimal_language::language_arch_info): New member function.
1819 * d-lang.c (d_language_arch_info): Delete function, move
1820 implementation to...
1821 (d_language::language_arch_info): ...here, a new member
1822 function.
1823 (d_language_data): Delete la_language_arch_info.
1824 * f-lang.c (f_language_arch_info): Delete function, move
1825 implementation to...
1826 (f_language::language_arch_info): ...here, a new member
1827 function.
1828 (f_language_data): Delete la_language_arch_info.
1829 * go-lang.c (go_language_arch_info): Delete function, move
1830 implementation to...
1831 (go_language::language_arch_info): ...here, a new member
1832 function.
1833 (go_language_data): Delete la_language_arch_info.
1834 * language.c (unknown_language_data): Likewise.
1835 (unknown_language::language_arch_info): New member function.
1836 (auto_language_data): Delete la_language_arch_info.
1837 (auto_language::language_arch_info): New member function.
1838 (language_gdbarch_post_init): Update call to
1839 la_language_arch_info.
1840 * language.h (language_data): Delete la_language_arch_info
1841 function pointer.
1842 (language_defn::language_arch_info): New function.
1843 * m2-lang.c (m2_language_arch_info): Delete function, move
1844 implementation to...
1845 (m2_language::language_arch_info): ...here, a new member
1846 function.
1847 (m2_language_data): Delete la_language_arch_info.
1848 * objc-lang.c (objc_language_arch_info): Delete function, move
1849 implementation to...
1850 (objc_language::language_arch_info): ...here, a new member
1851 function.
1852 (objc_language_data): Delete la_language_arch_info.
1853 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1854 implementation to...
1855 (opencl_language::language_arch_info): ...here, a new member
1856 function.
1857 (opencl_language_data): Delete la_language_arch_info.
1858 * p-lang.c (pascal_language_arch_info): Delete function, move
1859 implementation to...
1860 (pascal_language::language_arch_info): ...here, a new member
1861 function.
1862 (pascal_language_data): Delete la_language_arch_info.
1863 * rust-lang.c (rust_language_arch_info): Delete function, move
1864 implementation to...
1865 (rust_language::language_arch_info): ...here, a new member
1866 function.
1867 (rust_language_data): Delete la_language_arch_info.
1868
48448202
AB
18692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1872 initializer.
1873 * c-lang.c (c_language_data): Likewise.
1874 (cplus_language_data): Likewise.
1875 (cplus_language::pass_by_reference_info): New method.
1876 (asm_language_data): Delete la_pass_by_reference initializer.
1877 (minimal_language_data): Likewise.
1878 * cp-abi.c (cp_pass_by_reference): Remove use of
1879 default_pass_by_reference.
1880 * d-lang.c (d_language_data): Likewise.
1881 * f-lang.c (f_language_data): Likewise.
1882 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1883 default_pass_by_reference.
1884 * go-lang.c (go_language_data): Likewise.
1885 * language.c (language_pass_by_reference): Update.
1886 (default_pass_by_reference): Delete.
1887 (unknown_language_data): Delete la_pass_by_reference
1888 initializer.
1889 (auto_language_data): Likewise.
1890 * language.h (struct language_data): Delete la_pass_by_reference
1891 field.
1892 (language_defn::pass_by_reference_info): New member function.
1893 (default_pass_by_reference): Delete declaration.
1894 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1895 initializer.
1896 * objc-lang.c (objc_language_data): Likewise.
1897 * opencl-lang.c (opencl_language_data): Likewise.
1898 * p-lang.c (pascal_language_data): Likewise.
1899 * rust-lang.c (rust_language_data): Likewise.
1900
15e5fd35
AB
19012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * ada-lang.c (ada_read_var_value): Delete function, move
1904 implementation to...
1905 (ada_language::read_var_value): ...here.
1906 (ada_language_data): Delete la_read_var_value initializer.
1907 * c-lang.c (c_language_data): Likewise.
1908 (cplus_language_data): Likewise.
1909 (minimal_language_data): Likewise.
1910 * d-lang.c (d_language_data): Likewise.
1911 * f-lang.c (f_language_data): Likewise.
1912 * findvar.c (default_read_var_value): Rename to...
1913 (language_defn::read_var_value): ...this.
1914 * findvar.c (read_var_value): Update header comment, and change to
1915 call member function instead of function pointer.
1916 * go-lang.c (go_language_data): Likewise.
1917 * language.c (unknown_language_data): Delete la_read_var_value
1918 initializer.
1919 (auto_language_data): Likewise.
1920 * language.h (struct language_data): Delete la_read_var_value
1921 field.
1922 (language_defn::read_var_value): New member function.
1923 (default_read_var_value): Delete declaration.
1924 * m2-lang.c (m2_language_data): Delete la_read_var_value
1925 initializer.
1926 * objc-lang.c (objc_language_data): Likewise.
1927 * opencl-lang.c (opencl_language_data): Likewise.
1928 * p-lang.c (pascal_language_data): Likewise.
1929 * rust-lang.c (rust_language_data): Likewise.
1930 * value.h (default_read_var_value): Delete declaration.
1931
5bd40f2a
AB
19322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1933
1934 * ada-lang.c (ada_print_array_index): Delete function, move
1935 implementation to...
1936 (ada_language::print_array_index): ...here.
1937 (ada_language_data): Delete la_print_array_index initializer.
1938 * c-lang.c (c_language_data): Likewise.
1939 (cplus_language_data): Likewise.
1940 (minimal_language_data): Likewise.
1941 * d-lang.c (d_language_data): Likewise.
1942 * f-lang.c (f_language_data): Likewise.
1943 * go-lang.c (go_language_data): Likewise.
1944 * language.c (default_print_array_index): Delete function, move
1945 implementation to...
1946 (language_defn::print_array_index): ...here.
1947 (unknown_language_data): Delete la_print_array_index initializer.
1948 (auto_language_data): Likewise.
1949 * language.h (struct language_data): Delete la_print_array_index
1950 field.
1951 (language_defn::print_array_index): New member function.
1952 (LA_PRINT_ARRAY_INDEX): Update.
1953 (default_print_array_index): Delete declaration.
1954 * m2-lang.c (m2_language_data): Delete la_print_array_index
1955 initializer.
1956 * objc-lang.c (objc_language_data): Likewise.
1957 * opencl-lang.c (opencl_language_data): Likewise.
1958 * p-lang.c (pascal_language_data): Likewise.
1959 * rust-lang.c (rust_language_data): Likewise.
1960
0874fd07
AB
19612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1962
1963 * gdb/ada-lang.c (ada_language_defn): Convert to...
1964 (ada_language_data): ...this.
1965 (class ada_language): New class.
1966 (ada_language_defn): New static global.
1967 * gdb/c-lang.c (c_language_defn): Convert to...
1968 (c_language_data): ...this.
1969 (class c_language): New class.
1970 (c_language_defn): New static global.
1971 (cplus_language_defn): Convert to...
1972 (cplus_language_data): ...this.
1973 (class cplus_language): New class.
1974 (cplus_language_defn): New static global.
1975 (asm_language_defn): Convert to...
1976 (asm_language_data): ...this.
1977 (class asm_language): New class.
1978 (asm_language_defn): New static global.
1979 (minimal_language_defn): Convert to...
1980 (minimal_language_data): ...this.
1981 (class minimal_language): New class.
1982 (minimal_language_defn): New static global.
1983 * gdb/d-lang.c (d_language_defn): Convert to...
1984 (d_language_data): ...this.
1985 (class d_language): New class.
1986 (d_language_defn): New static global.
1987 * gdb/f-lang.c (f_language_defn): Convert to...
1988 (f_language_data): ...this.
1989 (class f_language): New class.
1990 (f_language_defn): New static global.
1991 * gdb/go-lang.c (go_language_defn): Convert to...
1992 (go_language_data): ...this.
1993 (class go_language): New class.
1994 (go_language_defn): New static global.
1995 * gdb/language.c (unknown_language_defn): Remove declaration.
1996 (current_language): Initialize to nullptr, real initialization is
1997 moved to _initialize_language.
1998 (languages): Delete global.
1999 (language_defn::languages): Define.
2000 (set_language_command): Use language_defn::languages.
2001 (set_language): Likewise.
2002 (range_error): Likewise.
2003 (language_enum): Likewise.
2004 (language_def): Likewise.
2005 (add_set_language_command): Use language_def::languages for the
2006 language list, and language_def to lookup language pointers.
2007 (skip_language_trampoline): Use language_defn::languages.
2008 (unknown_language_defn): Convert to...
2009 (unknown_language_data): ...this.
2010 (class unknown_language): New class.
2011 (unknown_language_defn): New static global.
2012 (auto_language_defn): Convert to...
2013 (auto_language_data): ...this.
2014 (class auto_language): New class.
2015 (auto_language_defn): New static global.
2016 (language_gdbarch_post_init): Use language_defn::languages.
2017 (_initialize_language): Initialize current_language.
2018 * gdb/language.h (struct language_defn): Rename to...
2019 (struct language_data): ...this.
2020 (struct language_defn): New.
2021 (auto_language_defn): Delete.
2022 (unknown_language_defn): Delete.
2023 (minimal_language_defn): Delete.
2024 (ada_language_defn): Delete.
2025 (asm_language_defn): Delete.
2026 (c_language_defn): Delete.
2027 (cplus_language_defn): Delete.
2028 (d_language_defn): Delete.
2029 (f_language_defn): Delete.
2030 (go_language_defn): Delete.
2031 (m2_language_defn): Delete.
2032 (objc_language_defn): Delete.
2033 (opencl_language_defn): Delete.
2034 (pascal_language_defn): Delete.
2035 (rust_language_defn): Delete.
2036 * gdb/m2-lang.c (m2_language_defn): Convert to...
2037 (m2_language_data): ...this.
2038 (class m2_language): New class.
2039 (m2_language_defn): New static global.
2040 * gdb/objc-lang.c (objc_language_defn): Convert to...
2041 (objc_language_data): ...this.
2042 (class objc_language): New class.
2043 (objc_language_defn): New static global.
2044 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2045 (opencl_language_data): ...this.
2046 (class opencl_language): New class.
2047 (opencl_language_defn): New static global.
2048 * gdb/p-lang.c (pascal_language_defn): Convert to...
2049 (pascal_language_data): ...this.
2050 (class pascal_language): New class.
2051 (pascal_language_defn): New static global.
2052 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2053 language pointer, update comment format.
2054 * gdb/rust-lang.c (rust_language_defn): Convert to...
2055 (rust_language_data): ...this.
2056 (class rust_language): New class.
2057 (rust_language_defn): New static global.
2058
1313c56e
AB
20592020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2062 member variable.
2063 <m_stmt_at_address>: New member variable.
2064 (lnp_state_machine::record_line): Don't record some lines, update
2065 tracking of is_stmt at the same address.
2066 (lnp_state_machine::lnp_state_machine): Initialise new member
2067 variables.
2068
b7ed9f3d
ST
20692020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2070
2071 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2072 "-include gnu-nat-mig.h".
2073 * gnu-nat-mig.h: New file.
2074 * gnu-nat.c: Include "gnu-nat-mig.h".
2075 (exc_server, msg_reply_server, notify_server,
2076 process_reply_server): Remove declarations.
2077
14a8ad62
ST
20782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2079
2080 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2081 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2082 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2083 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2084 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2085 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2086 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2087 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2088 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2089 to gnu_nat_target class.
2090 * gnu-nat.c: Likewise.
2091 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2092 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2093 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2094 object.
2095 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2096 instead of `gnu_target'.
2097
0af5e106
ST
20982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2099
2100 * i386-gnu-tdep.c: Include "gdbcore.h"
2101 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2102 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2103 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2104 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2105 i386_gnu_sigcontext_addr): New functions
2106 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2107 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2108 tdep.
2109
078f2fc9
ST
21102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2111
2112 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2113 before fork_inferior call. Avoid calling it if target_is_pushed returns
2114 true.
2115
53dff92c
ST
21162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2117
2118 * gnu-nat.h (gnu_target): New variable declaration.
2119 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2120 gnu_target.
2121 * gnu-nat.c (gnu_target): New variable.
2122 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2123 add_thread_silent, and add_thread calls.
2124 (gnu_nat_target::create_inferior): Pass gnu_target to
2125 add_thread_silent, thread_change_ptid call.
2126 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2127 call.
2128
5a8b8627
ST
21292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2130
2131 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2132 (gnu_nat_target::find_memory_regions): Remove unused
2133 `old_address' variable.
2134
366f550a
ST
21352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2136
2137 * gnu-nat.c: Include "gdbarch.h".
2138
f14871bf
ST
21392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2140
2141 * reply_mig_hack.awk (Error return): Cast function through
2142 void *, to bypass compiler function call check.
2143
c6887cfb
ST
21442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2145
2146 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2147 $(srcdir)/reply_mig_hack.awk.
2148
6930bffe
ST
21492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2150
2151 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2152
112c22ed
JG
21532020-05-30 Jonny Grant <jg@jguk.org>
2154
2155 * configure.ac (ACX_BUGURL): change bug URL to https.
2156
f68f85b5
PA
21572020-05-30 Pedro Alves <palves@redhat.com>
2158
2159 * cp-support.c (replace_typedefs_template): New.
2160 (replace_typedefs_qualified_name): Handle
2161 DEMANGLE_COMPONENT_TEMPLATE.
2162
976ca316
SM
21632020-05-29 Simon Marchi <simon.marchi@efficios.com>
2164
2165 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2166 dwarf2/index-cache.h, dwarf2/index-write.c,
2167 dwarf2/index-write.h, dwarf2/line-header.c,
2168 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2169 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2170 variables and fields from `dwarf2_per_objfile` to just
2171 `per_objfile` throughout.
2172
989ade05
SM
21732020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2174
2175 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2176 <push_dwarf_reg_entry_value>: Add comment.
2177
c47bae85
KB
21782020-05-28 Kevin Buettner <kevinb@redhat.com>
2179 Keith Seitz <keiths@redhat.com>
2180
2181 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2182 instead of PyEval_ReleaseLock.
2183 (class gdbpy_gil): Move to earlier in file.
2184 (finalize_python): Set gdb_python_initialized.
2185 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2186 when not initialized.
2187
44486dcf
SM
21882020-05-28 Simon Marchi <simon.marchi@efficios.com>
2189
2190 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2191 <push_dwarf_reg_entry_value>: Remove assert. Override
2192 per_objfile with caller_per_objfile.
2193
f030440d
TV
21942020-05-28 Tom de Vries <tdevries@suse.de>
2195
2196 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2197 PR gold/15646 workaround to symbol kind "type".
2198
f0fbb768
TT
21992020-05-27 Tom Tromey <tromey@adacore.com>
2200
2201 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2202
af0b2a3e
TT
22032020-05-27 Tom Tromey <tromey@adacore.com>
2204
2205 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2206 Use htab_find_with_hash.
2207 <add_abbrev>: Remove "abbrev_number" parameter.
2208 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2209 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2210 (hash_abbrev): Add comment.
2211 (abbrev_table::lookup_abbrev): Move to header file.
2212 (abbrev_table::read): Update.
2213
7d00ffec
TT
22142020-05-27 Tom Tromey <tromey@adacore.com>
2215
2216 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2217 method.
2218 <canonical_name>: New member.
2219 <raw_name>: Rename from "name".
2220 (partial_die_info): Initialize canonical_name.
2221 (scan_partial_symbols): Check raw_name.
2222 (partial_die_parent_scope, partial_die_full_name)
2223 (add_partial_symbol, add_partial_subprogram)
2224 (add_partial_enumeration, load_partial_dies): Use "name" method.
2225 (partial_die_info::name): New method.
2226 (partial_die_info::read, guess_partial_die_structure_name)
2227 (partial_die_info::fixup): Update.
2228
697bba18
TT
22292020-05-27 Tom Tromey <tromey@adacore.com>
2230
2231 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2232 <get_ref_die_offset>: Inline.
2233 <get_ref_die_offset_complaint>: New method.
2234 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2235 (attribute::get_ref_die_offset_complaint): Rename from
2236 get_ref_die_offset. Just issue complaint.
2237
c17ace43
HD
22382020-05-27 Hannes Domani <ssbssa@yahoo.de>
2239
2240 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2241
96445f0b
HD
22422020-05-27 Hannes Domani <ssbssa@yahoo.de>
2243
2244 * exec.c (exec_file_attach): Use errno value of first openp failure.
2245
ac637ec3
HD
22462020-05-27 Hannes Domani <ssbssa@yahoo.de>
2247
2248 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2249 Don't close thread handle.
2250
17ee85fc
TT
22512020-05-27 Tom Tromey <tom@tromey.com>
2252 Simon Marchi <simon.marchi@efficios.com>
2253
2254 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2255 shared_ptr.
2256 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2257 member.
2258 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2259 dwarf2_per_bfd_objfile_data_key>: New globals.
2260 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2261 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2262 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2263 shared.
2264 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2265 short-circuit when sharing.
2266 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2267 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2268
39b16f87
SM
22692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2270
2271 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2272 to...
2273 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2274 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2275
fcf23d5b
SM
22762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2279 build_name_components, find_name_components_bounds>:
2280 Add per_objfile parameter.
2281 (struct mapped_index) <symbol_name_at>: Likewise.
2282 (struct mapped_debug_names): Remove constructor.
2283 <dwarf2_per_objfile>: Remove field.
2284 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2285 (mapped_index_base::find_name_components_bounds,
2286 mapped_index_base::build_name_components,
2287 dw2_expand_symtabs_matching_symbol): Likewise.
2288 (class mock_mapped_index) <symbol_name_at>: Likewise.
2289 (check_match): Likewise.
2290 (check_find_bounds_finds): Likewise.
2291 (test_mapped_index_find_name_component_bounds): Update.
2292 (CHECK_MATCH): Update.
2293 (dw2_expand_symtabs_matching): Update.
2294 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2295 per_objfile parameter.
2296 <find_vec_in_debug_names>: Likewise.
2297 <m_per_objfile>: New field.
2298 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2299 parameter.
2300 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2301 (dw2_debug_names_iterator::next): Update.
2302 (dw2_debug_names_lookup_symbol): Update.
2303 (dw2_debug_names_expand_symtabs_for_function): Update.
2304 (dw2_debug_names_map_matching_symbols): Update.
2305 (dw2_debug_names_expand_symtabs_matching): Update.
2306 (dwarf2_read_debug_names): Update.
2307
7188ed02
SM
23082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2311 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2312 move to dwarf2_per_objfile.
2313 <read_in_chain>: Remove.
2314 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2315 remove_all_cus, age_comp_units>: New methods.
2316 <m_dwarf2_cus>: New member.
2317 (struct dwarf2_per_cu_data) <cu>: Remove.
2318 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2319 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2320 moved to methods of dwarf2_per_objfile.
2321 (dwarf2_clear_marks): Remove.
2322 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2323 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2324 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2325 (dwarf2_per_objfile::remove_all_cus): New.
2326 (class free_cached_comp_units) <~free_cached_comp_units>:
2327 Update.
2328 (load_cu): Update.
2329 (dw2_do_instantiate_symtab): Adjust.
2330 (fill_in_sig_entry_from_dwo_entry): Adjust.
2331 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2332 (cutu_reader::cutu_reader): Likewise.
2333 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2334 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2335 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2336 and dwarf2_per_objfile::age_comp_units.
2337 (load_partial_comp_unit): Update.
2338 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2339 (process_queue): Likewise.
2340 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2341 backlink.
2342 (dwarf2_read_addr_index): Likewise.
2343 (follow_die_offset): Likewise.
2344 (dwarf2_fetch_die_loc_sect_off): Likewise.
2345 (dwarf2_fetch_constant_bytes): Likewise.
2346 (dwarf2_fetch_die_type_sect_off): Likewise.
2347 (follow_die_sig_1): Likewise.
2348 (load_full_type_unit): Likewise.
2349 (read_signatured_type): Likewise.
2350 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2351 (dwarf2_cu::~dwarf2_cu): Remove.
2352 (dwarf2_per_objfile::get_cu): New.
2353 (dwarf2_per_objfile::set_cu): New.
2354 (age_cached_comp_units): Rename to...
2355 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2356 to std::unordered_map.
2357 (free_one_cached_comp_unit): Rename to...
2358 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2359 to std::unordered_map.
2360 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2361 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2362 a dwarf2_per_objfile in data.
2363 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2364 (dwarf2_clear_marks): Remove.
2365
2e671100
SM
23662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2369 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2370 (init_tu_and_read_dwo_dies): Likewise.
2371 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2372 (cutu_reader::cutu_reader): Likewise.
2373 (load_partial_comp_unit): Likewise.
2374 (process_psymtab_comp_unit): Update.
2375 (build_type_psymtabs_1): Update.
2376 (process_skeletonless_type_unit): Update.
2377 (load_full_comp_unit): Update.
2378 (find_partial_die): Update.
2379 (dwarf2_read_addr_index): Update.
2380 (read_signatured_type): Update.
2381
2e6a9f79
SM
23822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2385 m_header_read_in>: New fields.
2386 <get_header>: New method.
2387 * dwarf2/read.c (per_cu_header_read_in): Remove.
2388 (dwarf2_per_cu_data::get_header): New.
2389 (dwarf2_per_cu_data::addr_size): Update.
2390 (dwarf2_per_cu_data::offset_size): Update.
2391 (dwarf2_per_cu_data::ref_addr_size): Update.
2392
1b555f17
SM
23932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2394
2395 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2396 (dw2_do_instantiate_symtab): Update.
2397 (queue_and_load_all_dwo_tus): Change parameter from
2398 dwarf2_per_cu_data to dwarf2_cu.
2399 (dwarf2_fetch_die_loc_sect_off): Update.
2400 (dwarf2_fetch_constant_bytes): Update.
2401 (dwarf2_fetch_die_type_sect_off): Update.
2402
8fc0b21d
SM
24032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2404
2405 * dwarf2/read.c (process_full_comp_unit,
2406 process_full_type_unit): Remove per_cu, per_objfile paramters.
2407 Add dwarf2_cu parameter.
2408 (process_queue): Update.
2409
168c9250
SM
24102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * dwarf2/read.c (create_cu_from_index_list): Replace
2413 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2414 (create_cus_from_index_list): Likewise.
2415 (create_cus_from_index): Likewise.
2416 (create_signatured_type_table_from_index): Likewise.
2417 (create_cus_from_debug_names_list): Likewise.
2418 (create_cus_from_debug_names): Likewise.
2419 (dwarf2_read_gdb_index): Update.
2420 (dwarf2_read_debug_names): Update.
2421
e286671b
TT
24222020-05-27 Tom Tromey <tom@tromey.com>
2423 Simon Marchi <simon.marchi@efficios.com>
2424
2425 * dwarf2/read.h (struct dwarf2_per_objfile)
2426 <get_type_for_signatured_type, set_type_for_signatured_type>:
2427 New methods.
2428 <m_type_map>: New member.
2429 (struct signatured_type) <type>: Remove.
2430 * dwarf2/read.c
2431 (dwarf2_per_objfile::get_type_for_signatured_type,
2432 dwarf2_per_objfile::set_type_for_signatured_type): New.
2433 (get_signatured_type): Use new methods.
2434
8adb8487
TT
24352020-05-27 Tom Tromey <tom@tromey.com>
2436 Simon Marchi <simon.marchi@efficios.com>
2437
2438 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2439 (struct dwarf2_per_objfile) <type_units>: New member.
2440 <get_type_unit_group_unshareable>: New method.
2441 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2442 num_symtabs, symtabs>: Remove; move to
2443 type_unit_group_unshareable.
2444 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2445 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2446 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2447
127bbf4b
SM
24482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2449
2450 * dwarf2/read.h (struct dwarf2_per_cu_data):
2451 <dwarf2_per_objfile>: Remove.
2452 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2453 dwarf2_per_objfile.
2454 (create_signatured_type_table_from_index): Likewise.
2455 (create_signatured_type_table_from_debug_names): Likewise.
2456 (create_debug_type_hash_table): Likewise.
2457 (fill_in_sig_entry_from_dwo_entry): Likewise.
2458 (create_type_unit_group): Likewise.
2459 (read_comp_units_from_section): Likewise.
2460 (create_cus_hash_table): Likewise.
2461
f6e649dd
SM
24622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2463
2464 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2465 dwarf2_per_cu_data::dwarf2_per_objfile.
2466 (compute_compunit_symtab_includes): Likewise.
2467 (dwarf2_cu::start_symtab): Likewise.
2468
aa66c379
SM
24692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2470
2471 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2472 parameter.
2473 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2474 (read_namespace_alias): Update.
2475 (lookup_die_type): Update.
2476 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2477 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2478 Update.
2479 (disassemble_dwarf_expression): Update.
2480
120ce1b5
SM
24812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * dwarf2/read.h (struct dwarf2_queue_item): Add
2484 dwarf2_per_objfile parameter, assign new parameter.
2485 <per_objfile>: New field.
2486 * dwarf2/read.c (free_one_cached_comp_unit): Add
2487 dwarf2_per_objfile parameter.
2488 (queue_comp_unit): Likewise.
2489 (dw2_do_instantiate_symtab): Update.
2490 (process_psymtab_comp_unit): Update.
2491 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2492 (process_imported_unit_die): Update.
2493 (queue_and_load_dwo_tu): Update.
2494 (follow_die_offset): Update.
2495 (follow_die_sig_1): Update.
2496
9f47c707
SM
24972020-05-27 Simon Marchi <simon.marchi@efficios.com>
2498
2499 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2500 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2501 (read_call_site_scope): Assign per_objfile.
2502 (dwarf2_per_cu_data::objfile): Remove.
2503 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2504 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2505 dwarf2_per_objfile parameter.
2506 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2507 dwarf2_per_objfile parameter.
2508 (dwarf_expr_reg_to_entry_parameter): Add output
2509 dwarf2_per_objfile parameter.
2510 (locexpr_get_frame_base): Update.
2511 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2512 <push_dwarf_reg_entry_value>: Update.
2513 <call_site_to_target_addr>: Update.
2514 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2515 parameter.
2516 (value_of_dwarf_reg_entry): Update.
2517 (rw_pieced_value): Update.
2518 (indirect_synthetic_pointer): Update.
2519 (dwarf2_evaluate_property): Update.
2520 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2521 parameter.
2522 (locexpr_read_variable): Update.
2523 (locexpr_get_symbol_read_needs): Update.
2524 (loclist_read_variable): Update.
2525
14095eb3
SM
25262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2529 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2530 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2531 parameter.
2532 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2533 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2534 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2535 parameter.
2536 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2537 sect_variable_value): Add dwarf2_per_objfile parameter.
2538 (class dwarf_evaluate_loc_desc) <dwarf_call,
2539 dwarf_variable_value>: Update.
2540 (fetch_const_value_from_synthetic_pointer): Add
2541 dwarf2_per_objfile parameter.
2542 (fetch_const_value_from_synthetic_pointer): Update.
2543 (coerced_pieced_ref): Update.
2544 (class symbol_needs_eval_context) <dwarf_call,
2545 dwarf_variable_value>: Update.
2546 (dwarf2_compile_expr_to_ax): Update.
2547
3c3cd3d4
SM
25482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2551 parameter.
2552 (dwarf2_evaluate_loc_desc_full): Update.
2553
82ca3f51
SM
25542020-05-27 Simon Marchi <simon.marchi@efficios.com>
2555
2556 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2557 parameter.
2558 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2559 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2560 dwarf2_per_objfile parameter.
2561 (decode_debug_loc_dwo_addresses): Likewise.
2562 (dwarf2_find_location_expression): Update.
2563 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2564 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2565 parameter.
2566 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2567 parameter.
2568 (locexpr_describe_location_1): Likewise.
2569 (locexpr_describe_location): Update.
2570
4b167ea1
SM
25712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2574 Remove.
2575 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2576 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2577 (dwarf2_compile_property_to_c): Update.
2578 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2579 use text offset from objfile.
2580 (locexpr_tracepoint_var_ref): Update.
2581 (locexpr_generate_c_location): Update.
2582 (loclist_describe_location): Update.
2583 (loclist_tracepoint_var_ref): Update.
2584 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2585 dwarf2_per_objfile parameter.
2586 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2587 use text offset from objfile.
2588 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2589
89b07335
SM
25902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * dwarf2/expr.h (struct dwarf_expr_context)
2593 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2594 <offset>: Remove.
2595 <per_objfile>: New member.
2596 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2597 dwarf2_per_objfile parameter. Don't set offset, set
2598 per_objfile.
2599 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2600 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2601 a dwarf2_per_objfile object instead of an offset.
2602 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2603 constructor.
2604 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2605 to dwarf2_expr_executor constructor. Don't set offset.
2606 (dwarf2_fetch_cfa_info): Update.
2607 (struct dwarf2_frame_cache) <text_offset>: Remove.
2608 <per_objfile>: New field.
2609 (dwarf2_frame_cache): Update.
2610 (dwarf2_frame_prev_register): Update.
2611 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2612 <dwarf_evaluate_loc_desc>: Add constructor.
2613 (dwarf2_evaluate_loc_desc_full): Update.
2614 (dwarf2_locexpr_baton_eval): Update.
2615 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2616 Add constructor.
2617 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2618
293e7e51
SM
26192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2620
2621 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2622 addr_sized_int_type>: Move to dwarf2_cu.
2623 <int_type>: Move to dwarf2_per_objfile.
2624 (struct dwarf2_per_objfile) <int_type>: Move here.
2625 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2626 addr_sized_int_type>: Move here.
2627 (read_func_scope): Update.
2628 (read_array_type): Update.
2629 (read_tag_string_type): Update.
2630 (attr_to_dynamic_prop): Update.
2631 (dwarf2_per_cu_data::int_type): Rename to...
2632 (dwarf2_per_objfile::int_type): ... this.
2633 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2634 (dwarf2_cu::addr_sized_int_type): ... this.
2635 (read_subrange_type): Update.
2636 (dwarf2_per_cu_data::addr_type): Rename to...
2637 (dwarf2_cu::addr_type): ... this.
2638 (set_die_type): Update.
2639
64874a40
SM
26402020-05-27 Simon Marchi <simon.marchi@efficios.com>
2641
2642 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2643 data through per_cu->cu.
2644
4ab09049
SM
26452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2646
2647 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2648 dwarf2_per_cu_data parameter fo dwarf2_cu.
2649 (lookup_dwo_type_unit): Likewise.
2650 (read_cutu_die_from_dwo): Likewise.
2651 (lookup_dwo_unit): Likewise.
2652 (open_and_init_dwo_file): Likewise.
2653 (lookup_dwo_cutu): Likewise.
2654 (lookup_dwo_comp_unit): Likewise.
2655 (lookup_dwo_type_unit): Likewise.
2656 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2657 (cutu_reader::cutu_reader): Update.
2658
47b14e86
SM
26592020-05-27 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2662 parameter.
2663 (process_full_type_unit): Likewise.
2664 (process_queue): Update.
2665
43182c09
SM
26662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2667
2668 * dwarf2/read.c (recursively_compute_inclusions): Add
2669 dwarf2_per_objfile parameter.
2670 (compute_compunit_symtab_includes): Likewise.
2671 (process_cu_includes): Update.
2672
7aa104c4
SM
26732020-05-27 Simon Marchi <simon.marchi@efficios.com>
2674
2675 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2676 parameter.
2677 (create_type_unit_group): Update.
2678 (process_psymtab_comp_unit_reader): Update.
2679 (build_type_psymtabs_reader): Update.
2680
e3beb21d
SM
26812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2684 object through m_this_cu->cu.
2685
d460f660
SM
26862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2689 the info parameter.
2690 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2691
ab432490
SM
26922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2695 per_objfile parameter.
2696 (load_full_type_unit): Add per_objfile parameter.
2697 (read_signatured_type): Likewise.
2698 (load_full_comp_unit): Likewise.
2699 (load_cu): Likewise.
2700 (dw2_do_instantiate_symtab): Likewise.
2701 (dw2_get_file_names): Likewise.
2702 (dw2_map_symtabs_matching_filename): Update.
2703 (dw_expand_symtabs_matching_file_matcher): Update.
2704 (dw2_map_symbol_filenames): Update.
2705 (process_psymtab_comp_unit): Add per_objfile parameter.
2706 (build_type_psymtabs_1): Update.
2707 (process_skeletonless_type_unit): Update.
2708 (dwarf2_build_psymtabs_hard): Update.
2709 (load_partial_comp_unit): Add per_objfile parameter.
2710 (scan_partial_symbols): Update.
2711 (load_full_comp_unit): Add per_objfile parameter.
2712 (process_imported_unit_die): Update.
2713 (create_cus_hash_table): Update.
2714 (find_partial_die): Update.
2715 (dwarf2_read_addr_index): Update.
2716 (follow_die_offset): Update.
2717 (dwarf2_fetch_die_loc_sect_off): Update.
2718 (dwarf2_fetch_constant_bytes): Update.
2719 (dwarf2_fetch_die_type_sect_off): Update.
2720 (follow_die_sig_1): Update.
2721 (load_full_type_unit): Add per_objfile parameter.
2722 (read_signatured_type): Likewise.
2723
313bad1b
SM
27242020-05-27 Simon Marchi <simon.marchi@efficios.com>
2725
2726 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2727 of objfile_name.
2728
c3699833
SM
27292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2730
2731 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2732 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2733 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2734 field.
2735 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2736 (create_cus_from_index): Update.
2737 (dwarf2_read_gdb_index): Update.
2738 (create_cus_from_debug_names): Update.
2739 (dwarf2_read_debug_names): Update.
2740 (get_abbrev_section_for_cu): Update.
2741 (create_all_comp_units): Update.
2742 (read_attribute_value): Update.
2743 (get_debug_line_section): Update.
2744 * dwarf2/index-cache.c (index_cache::store): Update.
2745 * dwarf2/index-write.c (save_gdb_index_command): Update.
2746 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2747
1859c670
SM
27482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2749
2750 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2751 member.
2752 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2753 dwarf2_per_cu_data::per_bfd.
2754 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2755 (create_type_unit_group): Likewise.
2756 (queue_comp_unit): Remove reference to
2757 per_cu->dwarf2_per_objfile.
2758 (maybe_queue_comp_unit): Likewise.
2759 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2760 (create_cus_hash_table): Assign new field.
2761
5e22e966
SM
27622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2763
2764 * dwarf2/read.c: Replace
2765 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2766 dwarf2_cu->per_objfile throughout.
2767
97a1449a
SM
27682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2769
2770 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2771 parameter, don't use per_cu->dwarf2_per_objfile.
2772 (dw2_instantiate_symtab): Likewise.
2773 (dw2_find_last_source_symtab): Update.
2774 (dw2_map_expand_apply): Update.
2775 (dw2_lookup_symbol): Update.
2776 (dw2_expand_symtabs_for_function): Update.
2777 (dw2_expand_all_symtabs): Update.
2778 (dw2_expand_symtabs_with_fullname): Update.
2779 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2780 don't use per_cu->dwarf2_per_objfile.
2781 (dw2_expand_marked_cus): Update.
2782 (dw2_find_pc_sect_compunit_symtab): Update.
2783 (dw2_debug_names_lookup_symbol): Update.
2784 (dw2_debug_names_expand_symtabs_for_function): Update.
2785 (dw2_debug_names_map_matching_symbols): Update.
2786 (dwarf2_psymtab::expand_psymtab): Update.
2787
9e021579
SM
27882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2791 <per_objfile>: New member.
2792 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2793 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2794 call to dwarf2_cu.
2795 (cutu_reader::cutu_reader): Update.
2796 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2797
ae090bdb
SM
27982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2801 struct dwarf2_per_objfile.
2802 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2803 dwarf2_per_bfd.
2804 * dwarf2/read.c (set_die_type): Update.
2805 (get_die_type_at_offset): Update.
2806
af758d11
SM
28072020-05-27 Tom Tromey <tom@tromey.com>
2808 Simon Marchi <simon.marchi@efficios.com>
2809
2810 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2811 method.
2812 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2813 get_symtab, set_symtab>: New methods.
2814 <m_symtabs>: New field.
2815 (struct dwarf2_psymtab): Derive from partial_symtab.
2816 <readin_p, get_compunit_symtab>: Declare methods.
2817 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2818 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2819 New methods.
2820 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2821 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2822 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2823 (dw2_symtab_iter_next, dw2_print_stats)
2824 (dw2_expand_symtabs_with_fullname)
2825 (dw2_expand_symtabs_matching_one)
2826 (dw_expand_symtabs_matching_file_matcher)
2827 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2828 (dw2_debug_names_iterator::next)
2829 (dw2_debug_names_map_matching_symbols)
2830 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2831 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2832 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2833 New methods.
2834 (get_compunit_symtab, process_full_comp_unit)
2835 (process_full_type_unit): Update.
2836 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2837
5989a64e
SM
28382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2839
2840 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2841 then introduce a new dwarf2_per_objfile type.
2842 <read_line_string>: Move to the new dwarf2_per_objfile type.
2843 <objfile>: Likewise.
2844 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2845 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2846 dwarf2_per_objfile->per_bfd.
2847 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2848 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2849 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2850 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2851 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2852 (dwarf2_per_objfile::locate_sections): Rename to...
2853 (dwarf2_per_bfd::locate_sections): ... this.
2854 (dwarf2_per_objfile::get_cutu): Rename to...
2855 (dwarf2_per_bfd::get_cutu): ... this.
2856 (dwarf2_per_objfile::get_cu): Rename to...
2857 (dwarf2_per_bfd::get_cu): ... this.
2858 (dwarf2_per_objfile::get_tu): Rename to...
2859 (dwarf2_per_bfd::get_tu): ... this.
2860 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2861 (dwarf2_per_bfd::allocate_per_cu): ... this.
2862 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2863 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2864 (get_gdb_index_contents_ftype): Change parameter from
2865 dwarf2_per_objfile to dwarf2_per_bfd.
2866 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2867 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2868
a50264ba
TT
28692020-05-27 Tom Tromey <tom@tromey.com>
2870 Simon Marchi <simon.marchi@efficios.com>
2871
2872 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2873 (allocate_piece_closure): Set "per_objfile" member.
2874 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2875 (locexpr_describe_location, loclist_describe_location): Use new
2876 member.
2877 * dwarf2/read.c (read_call_site_scope)
2878 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2879 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2880 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2881 handle_data_member_location): Set per_objfile member.
2882 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2883 member.
2884 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2885
d3473f0c
TT
28862020-05-27 Tom Tromey <tom@tromey.com>
2887
2888 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2889 allocate_signatured_type>: Declare new methods.
2890 <m_num_psymtabs>: New member.
2891 (struct dwarf2_per_cu_data) <index>: New member.
2892 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2893 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2894 (create_cu_from_index_list): Use allocate_per_cu.
2895 (create_signatured_type_table_from_index)
2896 (create_signatured_type_table_from_debug_names)
2897 (create_debug_type_hash_table, add_type_unit)
2898 (read_comp_units_from_section): Use allocate_signatured_type.
2899
5717c425
TT
29002020-05-27 Tom Tromey <tom@tromey.com>
2901
2902 * psymtab.c (partial_map_expand_apply)
2903 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2904 (psym_lookup_global_symbol_language)
2905 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2906 (psym_print_stats, psym_expand_symtabs_for_function)
2907 (psym_map_symbol_filenames, psym_map_matching_symbols)
2908 (psym_expand_symtabs_matching)
2909 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2910 (maintenance_check_psymtabs): Update.
2911 * psympriv.h (struct partial_symtab) <readin_p,
2912 get_compunit_symtab>: Add objfile parameter.
2913 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2914 Likewise.
2915 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2916 get_compunit_symtab>: Likewise.
2917 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2918
45940949
TT
29192020-05-27 Tom Tromey <tom@tromey.com>
2920
2921 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2922 member.
2923 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2924 (create_cu_from_index_list)
2925 (create_signatured_type_table_from_index)
2926 (create_signatured_type_table_from_debug_names)
2927 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2928 (dwarf2_create_include_psymtab)
2929 (create_debug_type_hash_table, add_type_unit)
2930 (create_type_unit_group, read_comp_units_from_section)
2931 (dwarf2_compute_name, create_cus_hash_table)
2932 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2933 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2934 obstack.
2935 (dw2_get_real_path): Likewise. Change argument to
2936 dwarf2_per_objfile.
2937
f8c6d152
LM
29382020-05-27 Luis Machado <luis.machado@linaro.org>
2939
2940 PR tdep/26000
2941 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2942 for ldrd (immediate).
2943
e98d2e6d
PW
29442020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2945
2946 * command.h: Add comment giving the name of class_tui.
2947 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2948 create the fake command for the help for class_tui.
2949
53a47a3e
TT
29502020-05-26 Tom Tromey <tromey@adacore.com>
2951
2952 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2953 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2954 (val_atr): New function.
2955 (value_val_atr): Use it.
2956 * ada-valprint.c (print_optional_low_bound): Change low bound
2957 handling for enums.
2958 (val_print_packed_array_elements): Don't call discrete_position.
2959 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2960 discrete_position for enum types.
2961 * language.c (default_print_array_index): Change type.
2962 * language.h (struct language_defn) <la_print_array_index>: Add
2963 index_type parameter, change type of index_value.
2964 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
2965 (default_print_array_index): Update.
2966 * valprint.c (maybe_print_array_index): Don't call
2967 value_from_longest. Update.
2968 (value_print_array_elements): Don't call discrete_position.
2969
0bc2354b
TT
29702020-05-26 Tom Tromey <tromey@adacore.com>
2971
2972 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
2973 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
2974
1218a4bf
CDA
29752020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
2976
2977 PR gdb/13519
2978 * avr-tdep.c (avr_integer_to_address): Return data or code
2979 address accordingly to the second 'type' argument of the
2980 function.
2981
92651b1d
MW
29822020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2983
2984 * infcmd.c, inferior.h: (construct_inferior_arguments):
2985 Moved function from here to gdbsupport/common-inferior.{h,cc}
2986
0a4f5f8c
TT
29872020-05-23 Tom Tromey <tom@tromey.com>
2988
2989 Revert commit eca1f90c:
2990 * NEWS: Remove entry for completion styling.
2991 * completer.c (_rl_completion_prefix_display_length): Move
2992 declaration later.
2993 (gdb_fnprint): Revert.
2994 (gdb_display_match_list_1): Likewise.
2995 * cli/cli-style.c (completion_prefix_style)
2996 (completion_difference_style, completion_suffix_style): Remove.
2997 (_initialize_cli_style): Revert.
2998 * cli/cli-style.h (completion_prefix_style)
2999 (completion_difference_style, completion_suffix_style): Don't
3000 declare.
3001
e08bd6c5
PA
30022020-05-24 Pedro Alves <palves@redhat.com>
3003
3004 * symtab.c (completion_list_add_name): Return boolean indication
3005 of whether the symbol matched.
3006 (completion_list_add_symbol): Don't try to remove C++ aliases if
3007 the symbol didn't match in the first place.
3008 * symtab.h (completion_list_add_name): Return bool.
3009
ceacbf6e
SM
30102020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3011
3012 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3013 type::field.
3014
26f16254
JB
30152020-05-23 Joel Brobecker <brobecker@adacore.com>
3016
3017 GDB 9.2 released.
3018
eca1f90c
TT
30192020-05-23 Tom Tromey <tom@tromey.com>
3020
3021 * NEWS: Add entry for completion styling.
3022 * completer.c (_rl_completion_prefix_display_length): Move
3023 declaration earlier.
3024 (gdb_fnprint): Use completion_style.
3025 (gdb_display_match_list_1): Likewise.
3026 * cli/cli-style.c (completion_prefix_style)
3027 (completion_difference_style, completion_suffix_style): New
3028 globals.
3029 (_initialize_cli_style): Register new globals.
3030 * cli/cli-style.h (completion_prefix_style)
3031 (completion_difference_style, completion_suffix_style): Declare.
3032
51e2cfa2
PA
30332020-05-23 Pedro Alves <palves@redhat.com>
3034
3035 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3036 (parse_escape): Use ISDIGIT instead of isdigit.
3037 (puts_debug): Use gdb_isprint instead of isprint.
3038 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3039 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3040 ISSPACE instead of isspace.
3041 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3042 instead of isspace.
3043 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3044 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3045 instead of isxdigit and ISDIGIT instead of isdigit.
3046
80fc5e77
SM
30472020-05-22 Simon Marchi <simon.marchi@efficios.com>
3048
3049 * gdbtypes.h (struct type) <field>: New method.
3050 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3051 or type::field.
3052
3cabb6b0
SM
30532020-05-22 Simon Marchi <simon.marchi@efficios.com>
3054
3055 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3056 (TYPE_FIELDS): Use type::fields. Change all call sites that
3057 modify the propery to use type::set_fields instead.
3058
1f704f76
SM
30592020-05-22 Simon Marchi <simon.marchi@efficios.com>
3060
3061 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3062 type::num_fields instead.
3063
5e33d5f4
SM
30642020-05-22 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3067 methods.
3068 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3069 that modify the number of fields to use type::set_num_fields
3070 instead.
3071
9392ebb3
TT
30722020-05-22 Tom Tromey <tromey@adacore.com>
3073
3074 * compile/compile-object-load.h (munmap_list_free): Don't
3075 declare.
3076
7c13f4e8
AB
30772020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * annotate.c (annotate_source_line): Update return type, add call
3080 to update current symtab and line.
3081 * annotate.h (annotate_source_line): Update return type, and
3082 extend header comment.
3083 * source.c (info_line_command): Check annotation_level before
3084 calling annotate_source_line.
3085 * stack.c (print_frame_info): If calling annotate_source_line
3086 returns true, then don't print any other source line information.
3087
aa370940
SM
30882020-05-21 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3091
84d53fa9
SM
30922020-05-21 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * coffread.c (patch_type): Remove NULL check before xfree.
3095 * corefile.c (set_gnutarget): Likewise.
3096 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3097 * exec.c (build_section_table): Likewise.
3098 * remote.c (remote_target::pass_signals): Likewise.
3099 * utils.c (n_spaces): Likewise.
3100 * cli/cli-script.c (document_command): Likewise.
3101 * i386-windows-tdep.c (core_process_module_section): Likewise.
3102 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3103
9d428aae
SM
31042020-05-20 Simon Marchi <simon.marchi@efficios.com>
3105
3106 * symfile.c (reread_symbols): Clear objfile's section_offsets
3107 vector and section indices, re-compute them by calling
3108 sym_offsets.
3109
250106a7
TT
31102020-05-20 Tom Tromey <tromey@adacore.com>
3111
3112 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3113 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3114
9a0bacfb
TV
31152020-05-20 Tom de Vries <tdevries@suse.de>
3116
3117 PR symtab/25833
3118 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3119
7b958a48
AM
31202020-05-20 Alan Modra <amodra@gmail.com>
3121
3122 PR 25993
3123 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3124 bfd_set_filename.
3125 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3126 passed to bfd_set_filename.
3127 * symfile-mem.c (add_vsyscall_page): Likewise for string
3128 passed to symbol_file_add_from_memory.
3129 (symbol_file_add_from_memory): Make name param a const char* and
3130 don't strdup.
3131
c7e97679
AM
31322020-05-20 Alan Modra <amodra@gmail.com>
3133
3134 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3135 rather than accessing bfd->filename directly.
3136 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3137 and use bfd_section_name.
3138 * dwarf2/frame.c (decode_frame_entry): Likewise.
3139 * exec.c (exec_set_section_address): Likewise.
3140 * solib-aix.c (solib_aix_bfd_open): Likewise.
3141 * stap-probe.c (get_stap_base_address): Likewise.
3142 * symfile.c (reread_symbols): Likewise.
3143
563c591b
TT
31442020-05-19 Tom Tromey <tromey@adacore.com>
3145
3146 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3147
f408d82c
SM
31482020-05-19 Simon Marchi <simon.marchi@efficios.com>
3149
3150 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3151
98c59b52
PA
31522020-05-19 Pedro Alves <palves@redhat.com>
3153
3154 * NEWS (set exec-file-mismatch): Adjust entry.
3155 * exec.c: Include "build-id.h".
3156 (validate_exec_file): Try to match build IDs instead of filenames.
3157 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3158 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3159 and pass down 'warn_if_slow'.
3160 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3161 gdb_bfd_open_closure to pass it down.
3162 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3163
4111f652
PA
31642020-05-19 Pedro Alves <palves@redhat.com>
3165
3166 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3167 * target.c (target_fileio_open_1): Rename to target_fileio_open
3168 and make extern. Use bool.
3169 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3170 (target_fileio_read_alloc_1): Adjust.
3171 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3172 (target_fileio_open_warn_if_slow): Delete declaration.
3173
ad80db5b
PA
31742020-05-19 Pedro Alves <palves@redhat.com>
3175
3176 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3177 Adjust all callers.
3178
1d6ce4d3
YS
31792020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3180
3181 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3182 whether disp is negative.
3183
9005fbbb
SM
31842020-05-19 Simon Marchi <simon.marchi@efficios.com>
3185
3186 * symfile.h (struct symfile_segment_data)
3187 <~symfile_segment_data>: Remove.
3188 <segment_info>: Change to std::vector.
3189 * symfile.c (default_symfile_segments): Update.
3190 * elfread.c (elf_symfile_segments): Update.
3191
68b888ff
SM
31922020-05-19 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3195 <segments>: New.
3196 <segment_bases, segment_sizes>: Remove.
3197 * symfile.c (default_symfile_segments): Update.
3198 * elfread.c (elf_symfile_segments): Update.
3199 * remote.c (remote_target::get_offsets): Update.
3200 * solib-target.c (solib_target_relocate_section_addresses):
3201 Update.
3202
62982abd
SM
32032020-05-19 Simon Marchi <simon.marchi@efficios.com>
3204
3205 * symfile.h (struct symfile_segment_data): Initialize fields.
3206 <~symfile_segment_data>: Add.
3207 (symfile_segment_data_up): New.
3208 (struct sym_fns) <sym_segments>: Return a
3209 symfile_segment_data_up.
3210 (default_symfile_segments): Return a symfile_segment_data_up.
3211 (free_symfile_segment_data): Remove.
3212 (get_symfile_segment_data): Return a symfile_segment_data_up.
3213 * symfile.c (default_symfile_segments): Likewise.
3214 (get_symfile_segment_data): Likewise.
3215 (free_symfile_segment_data): Remove.
3216 (symfile_find_segment_sections): Update.
3217 * elfread.c (elf_symfile_segments): Return a
3218 symfile_segment_data_up.
3219 * remote.c (remote_target::get_offsets): Update.
3220 * solib-target.c (solib_target_relocate_section_addresses):
3221 Update.
3222 * symfile-debug.c (debug_sym_segments): Return a
3223 symfile_segment_data_up.
3224
7f204339
RO
32252020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3226
e52a0f1b
RO
3227 PR build/25981
3228 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3229 Hardcode register numbers.
3230
7f204339
RO
3231 PR build/25981
3232 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3233 procfs_find_LDT_entry): Remove.
3234 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3235 procfs_find_LDT_entry): Remove.
3236 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3237 Remove.
3238
7f32a4d5
PA
32392020-05-17 Pedro Alves <palves@redhat.com>
3240 Andrew Burgess <andrew.burgess@embecosm.com>
3241 Keno Fischer <keno@juliacomputing.com>
3242
3243 PR gdb/25741
3244 * breakpoint.c (build_target_condition_list): Update comments.
3245 (build_target_command_list): Update comments and skip matching
3246 locations.
3247 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3248 a separate function. Simplify "set breakpoint auto-hw off"
3249 handling.
3250 (insert_breakpoints): Update comment.
3251 (tracepoint_locations_match): New parameter. For breakpoints,
3252 compare location types too, if the caller wants to.
3253 (handle_automatic_hardware_breakpoints): New functions.
3254 (bp_location_is_less_than): Also sort by location type and
3255 hardware breakpoint length.
3256 (update_global_location_list): Handle "set breakpoint auto-hw on"
3257 here.
3258 (update_breakpoint_locations): Ask breakpoint_locations_match to
3259 ignore location types.
3260
7d93a1e0
SM
32612020-05-16 Simon Marchi <simon.marchi@efficios.com>
3262
3263 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3264 type::name instead.
3265
d0e39ea2
SM
32662020-05-16 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * gdbtypes.h (struct type) <name, set_name>: New methods.
3269 (TYPE_CODE): Use type::name. Change all call sites used to set
3270 the name to use type::set_name instead.
3271
2dab0c7b
TT
32722020-05-16 Tom Tromey <tom@tromey.com>
3273
3274 * top.c (quit_force): Update.
3275 * infrun.c (handle_no_resumed): Update.
3276 * top.h (all_uis): New function.
3277 (ALL_UIS): Remove.
3278
59f7bd8d
SM
32792020-05-16 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3282
9bf058f0
PA
32832020-05-16 Pedro Alves <palves@redhat.com>
3284
3285 * ia64-linux-nat.c
3286 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3287 Declare method.
3288 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3289
8f86ae1a
SM
32902020-05-15 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3293 (sparc64_adi_info): Likewise.
3294
d6bc0792
TT
32952020-05-15 Tom Tromey <tom@tromey.com>
3296
3297 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3298 block_objfile.
3299 (lookup_objfile_from_block): Remove.
3300 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3301 (lookup_global_symbol): Use block_objfile.
3302 * symtab.h (lookup_objfile_from_block): Don't declare.
3303 * printcmd.c (clear_dangling_display_expressions): Use
3304 block_objfile.
3305 * parse.c (operator_check_standard): Use block_objfile.
3306
8c14c3a3
TT
33072020-05-15 Tom Tromey <tom@tromey.com>
3308
3309 * language.c (language_alloc_type_symbol): Set
3310 SYMBOL_SECTION.
3311 * symtab.c (initialize_objfile_symbol): Remove.
3312 (allocate_symbol): Remove.
3313 (allocate_template_symbol): Remove.
3314 * dwarf2/read.c (fixup_go_packaging): Use "new".
3315 (new_symbol): Use "new".
3316 (read_variable): Don't call initialize_objfile_symbol. Use
3317 "new".
3318 (read_func_scope): Use "new".
3319 * xcoffread.c (process_xcoff_symbol): Don't call
3320 initialize_objfile_symbol.
3321 (SYMBOL_DUP): Remove.
3322 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3323 "new".
3324 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3325 (allocate_template_symbol): Don't declare.
3326 (struct symbol): Add copy constructor. Change defaults.
3327 * jit.c (finalize_symtab): Use "new".
3328 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3329 Use "new".
3330 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3331 (common_block_end): Use "new".
3332 * mdebugread.c (parse_symbol): Use "new".
3333 (new_symbol): Likewise.
3334
5b4a1a8d
PW
33352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3336
3337 * NEWS: Mention changes to help and apropos.
3338
57b4f16e
PW
33392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3340
3341 * command.h (enum command_class): Improve comments, document
3342 that class_alias is for user-defined aliases, give the class
3343 name for each class, remove unused class_xdb.
3344 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3345 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3346 by a precise class.
3347 * infcmd.c (_initialize_infcmd): Likewise.
3348 * reverse.c (_initialize_reverse): Likewise.
3349 * stack.c (_initialize_stack): Likewise.
3350 * symfile.c (_initialize_symfile): Likewise.
3351 * tracepoint.c (_initialize_tracepoint): Likewise.
3352
7c05caf7
PW
33532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3354
3355 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3356 when their aliased command is traversed.
3357 (help_cmd): Add fput_command_names_styled call to
3358 output command name and aliases when command has an alias.
3359
3b3aaacb
PW
33602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3361
3362 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3363 * cli/cli-decode.c (help_cmd_list): Declare as static,
3364 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3365 a command together with the command.
3366 (fput_command_name_styled, fput_command_names_styled): New functions.
3367 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3368 fput_command_name_styled.
3369 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3370 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3371
7aa1b46f
PW
33722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3373
3374 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3375 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3376 * command.h (cmd_show_list): Likewise.
3377 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3378 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3379
89bcba74
PW
33802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3381
3382 * unittests/command-def-selftests.c (traverse_command_structure):
3383 Verify all commands of a list have the same prefix command and
3384 that only the top cmdlist commands have a null prefix.
3385
3f4d92eb
PW
33862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3387
3388 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3389 as prefix, not one of its aliases.
3390 (set_cmd_prefix): Remove.
3391 (do_add_cmd): Centralize the setting of the prefix of a command, when
3392 command is defined after its full chain of prefix commands.
3393 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3394 (add_setshow_cmd_full): Likewise.
3395 (update_prefix_field_of_prefixed_commands): New function.
3396 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3397 update_prefix_field_of_prefixed_commands.
3398 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3399 addresses of remote_set_cmdlist and remote_show_cmdlist given
3400 as argument, not the address of an argument.
3401 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3402 * gdb/remote.c (_initialize_remote): Likewise.
3403
0605465f
PW
34042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3405
3406 * cli/cli-cmds.c (alias_command): Check for an existing alias
3407 using lookup_cmd_composition, as valid_command_p is too strict
3408 and forbids aliases that are the prefix of an existing alias
3409 or command.
3410 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3411 command is properly recognised as a valid command.
3412
58e6ac70
PW
34132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3414
3415 * unittests/help-doc-selftests.c: Rename to
3416 unittests/command-def-selftests.c
3417 * unittests/command-def-selftests.c (help_doc_tests): Update some
3418 comments.
3419 (command_structure_tests, traverse_command_structure): New namespace
3420 and function.
3421 (command_structure_invariants_tests): New function.
3422 (_initialize_command_def_selftests) Renamed from
3423 _initialize_help_doc_selftests, register command_structure_invariants
3424 selftest.
3425
a7b9ceb8
PW
34262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3427
3428 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3429 an alias of 'show'.
3430
b2188a06
JB
34312020-05-15 Joel Brobecker <brobecker@adacore.com>
3432
3433 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3434 ada_is_fixed_point_type. Update all callers.
3435 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3436 all callers.
3437 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3438 Update all callers.
3439 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3440 print_fixed_point_type. Update all callers.
3441 * ada-valprint.c (ada_value_print_num): Replace call to
3442 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3443
a51951c2
KB
34442020-05-14 Kevin Buettner <kevinb@redhat.com>
3445
3446 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3447 processors.
3448 (cpu_supports_bts): Add CV_AMD case.
3449
29d6859f
LM
34502020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3451 Simon Marchi <simon.marchi@efficios.com>
3452
3453 * infrun.c (stop_all_threads): Collect multiple wait events at
3454 each pass.
3455
78134374
SM
34562020-05-14 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3459 type::code instead.
3460
67607e24
SM
34612020-05-14 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * gdbtypes.h (struct type) <code, set_code>: New methods.
3464 (TYPE_CODE): Use type::code. Change all call sites used to set
3465 the code to use type::set_code instead.
3466
a05575d3
TBA
34672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468 Tom de Vries <tdevries@suse.de>
3469 Pedro Alves <palves@redhat.com>
3470
3471 PR threads/25478
3472 * infrun.c (stop_all_threads): Do NOT ignore
3473 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3474 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3475 received.
3476 (handle_no_resumed): Remove code handling a live inferior with no
3477 threads.
3478 * remote.c (has_single_non_exited_thread): New.
3479 (remote_target::update_thread_list): Do not delete a thread if is
3480 the last thread of the process.
3481 * thread.c (thread_select): Call delete_exited_threads instead of
3482 prune_threads.
3483
6ad82919
TBA
34842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3485
3486 * infrun.c (stop_all_threads): Enable/disable thread events of all
3487 targets. Move a debug message denoting the end of the function
3488 into the SCOPED_EXIT block.
3489
d890404b
TBA
34902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3491
3492 * process-stratum-target.h: Include <set>.
3493 (all_non_exited_process_targets, switch_to_target_no_thread): New
3494 function declarations.
3495 * process-stratum-target.c (all_non_exited_process_targets)
3496 (switch_to_target_no_thread): New function implementations.
3497
293b3ebc
TBA
34982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3499
3500 * infrun.c (handle_inferior_event): Extract out a piece of code
3501 into...
3502 (mark_non_executing_threads): ...this new function.
3503
7ca9b62a
TBA
35042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3505
3506 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3507 use.
3508
fc75c28b
TBA
35092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3510
3511 * regcache.c (regcache_read_pc_protected): New function
3512 implementation that returns 0 if the PC cannot read via
3513 'regcache_read_pc'.
3514 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3515 instead of 'regcache_read_pc'.
3516 (keep_going_pass_signal): Ditto.
3517
a89febbd
TT
35182020-05-13 Tom Tromey <tromey@adacore.com>
3519
3520 * ada-lang.c (align_value): Remove.
3521 (ada_template_to_fixed_record_type_1): Use align_up.
3522
f7e23710
TBA
35232020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3524
3525 * async-event.c: Update the copyright year.
3526 * async-event.h: Update the copyright year.
3527
02ff80c2
SM
35282020-05-12 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * objfiles.h (is_addr_in_objfile,
3531 shared_objfile_contains_address_p): Return bool.
3532 * objfile.c (is_addr_in_objfile,
3533 shared_objfile_contains_address_p): Return bool.
3534
4fd6c7e8
TT
35352020-05-11 Tom Tromey <tromey@adacore.com>
3536
3537 * cli/cli-cmds.c (info_command): Restore.
3538 (_initialize_cli_cmds): Use add_prefix_command for "info".
3539 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3540
5eb68a39
TT
35412020-05-11 Tom Tromey <tromey@adacore.com>
3542
3543 * ada-lang.c (ada_value_primitive_field): Now public.
3544 * ada-lang.h (ada_value_primitive_field): Declare.
3545 * ada-valprint.c (print_field_values): Use
3546 ada_value_primitive_field for wrapper fields.
3547
7666722f
TV
35482020-05-11 Tom de Vries <tdevries@suse.de>
3549
3550 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3551 MODULE_DOMAIN.
3552
3ee6bb11
TV
35532020-05-11 Tom de Vries <tdevries@suse.de>
3554
3555 PR symtab/25941
3556 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3557 with length 0, if not gdb-produced.
3558 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3559
43434996
TV
35602020-05-09 Tom de Vries <tdevries@suse.de>
3561
3562 PR gdb/25955
3563 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3564 calculation.
3565
2f78cffc
TT
35662020-05-09 Tom Tromey <tom@tromey.com>
3567
3568 * top.c (server_command): Now bool.
3569 * top.h (server_command): Now bool.
3570
4f7bc5ed
TT
35712020-05-08 Tom Tromey <tromey@adacore.com>
3572
3573 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3574 already being processed.
3575
8be4b118
TT
35762020-05-08 Tom Tromey <tom@tromey.com>
3577
3578 * printcmd.c (struct display) <next>: Remove.
3579 <display>: New constructor.
3580 <exp_string>: Now a std::string.
3581 <enabled_p>: Now a bool.
3582 (display_number): Move definition earlier.
3583 (displays): Rename from display_chain. Now a std::vector.
3584 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3585 (display_command): Update.
3586 (do_one_display, disable_display)
3587 (enable_disable_display_command, do_enable_disable_display):
3588 Update.
3589 (free_display): Remove.
3590 (clear_displays): Rewrite.
3591 (delete_display): Update.
3592 (map_display_numbers): Use function_view. Remove "data"
3593 parameter. Update.
3594 (do_delete_display): Remove.
3595 (undisplay_command): Update.
3596 (do_one_display, do_displays, disable_display)
3597 (info_display_command): Update.
3598 (do_enable_disable_display): Remove.
3599 (enable_disable_display_command)
3600 (clear_dangling_display_expressions): Update.
3601
94c93c35
TT
36022020-05-08 Tom Tromey <tom@tromey.com>
3603
3604 * symtab.c (set_symbol_cache_size)
3605 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3606 (maintenance_print_symbol_cache_statistics): Update.
3607 * symmisc.c (print_symbol_bcache_statistics)
3608 (print_objfile_statistics, maintenance_print_objfiles)
3609 (maintenance_info_symtabs, maintenance_check_symtabs)
3610 (maintenance_expand_symtabs, maintenance_info_line_tables):
3611 Update.
3612 * symfile-debug.c (set_debug_symfile): Update.
3613 * source.c (forget_cached_source_info): Update.
3614 * python/python.c (gdbpy_progspaces): Update.
3615 * psymtab.c (maintenance_info_psymtabs): Update.
3616 * probe.c (parse_probes): Update.
3617 * linespec.c (iterate_over_all_matching_symtabs)
3618 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3619 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3620 * exec.c (exec_target::close): Update.
3621 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3622 * breakpoint.c (print_one_breakpoint_location)
3623 (create_longjmp_master_breakpoint)
3624 (create_std_terminate_master_breakpoint): Update.
3625 * progspace.c (program_spaces): Now a std::vector.
3626 (maybe_new_address_space): Update.
3627 (add_program_space): Remove.
3628 (program_space::program_space): Update.
3629 (remove_program_space): Update.
3630 (number_of_program_spaces): Remove.
3631 (print_program_space, update_address_spaces): Update.
3632 * progspace.h (program_spaces): Change type.
3633 (ALL_PSPACES): Remove.
3634 (number_of_program_spaces): Don't declare.
3635 (struct program_space) <next>: Remove.
3636
a1fd1ac9
TT
36372020-05-08 Tom Tromey <tom@tromey.com>
3638
3639 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3640 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3641 (enable_break): Update.
3642 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3643 (frv_fdpic_find_canonical_descriptor): Update.
3644 (frv_fetch_objfile_link_map): Update.
3645 * progspace.c (program_space::free_all_objfiles): Update.
3646 (program_space::solibs): New method.
3647 * progspace.h (struct program_space) <solibs>: New method.
3648 * solist.h (master_so_list): Don't declare.
3649 (ALL_SO_LIBS): Remove.
3650 * solib.h (so_list_head): Remove.
3651 (update_solib_list): Update comment.
3652 * solib.c (master_so_list): Remove.
3653 (solib_used, update_solib_list, solib_add)
3654 (info_sharedlibrary_command, clear_solib)
3655 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3656
38eae084
TT
36572020-05-08 Tom Tromey <tom@tromey.com>
3658
3659 * extension.c (extension_languages): Now a std::array.
3660 (ALL_EXTENSION_LANGUAGES): Remove.
3661 (get_ext_lang_defn, get_ext_lang_of_file)
3662 (eval_ext_lang_from_control_command): Update.
3663 (finish_ext_lang_initialization)
3664 (auto_load_ext_lang_scripts_for_objfile)
3665 (ext_lang_type_printers::ext_lang_type_printers)
3666 (apply_ext_lang_type_printers)
3667 (ext_lang_type_printers::~ext_lang_type_printers)
3668 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3669 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3670 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3671 (get_matching_xmethod_workers, ext_lang_colorize)
3672 (ext_lang_before_prompt): Update.
3673 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3674
596dc4ad
TT
36752020-05-08 Tom Tromey <tom@tromey.com>
3676
3677 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3678 overload.
3679 <swap_string, m_string>: Remove.
3680 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3681 Update.
3682 * stabsread.c (define_symbol, read_type): Update.
3683 * linespec.c (find_linespec_symbols): Update.
3684 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3685 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3686 * dbxread.c (read_dbx_symtab): Update.
3687 * cp-support.h (cp_canonicalize_string_full)
3688 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3689 Return unique_xmalloc_ptr.
3690 * cp-support.c (inspect_type): Update.
3691 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3692 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3693 Likewise.
3694 * c-typeprint.c (print_name_maybe_canonical): Update.
3695 * break-catch-throw.c (check_status_exception_catchpoint):
3696 Update.
3697
bf4cb9be
TV
36982020-05-08 Tom de Vries <tdevries@suse.de>
3699
3700 * infrun.c (follow_fork): Copy current_line and current_symtab to
3701 child thread.
3702
a1b68f28
SM
37032020-05-07 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * async-event.c (struct async_signal_handler, struct
3706 async_event_handler): Reformat, remove typedef.
3707
98d48915
SM
37082020-05-07 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3711 access thistype->main_type->dyn_prop_list directly.
3712
7aa91313
SM
37132020-05-07 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3716 (remove_dyn_prop): Remove. Update all users to use
3717 type::remove_dyn_prop.
3718 * gdbtypes.c (remove_dyn_prop): Rename to...
3719 (type::remove_dyn_prop): ... this.
3720
5c54719c
SM
37212020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3722
3723 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3724 (add_dyn_prop): Remove. Update all users to use
3725 type::add_dyn_prop.
3726 * gdbtypes.c (add_dyn_prop): Rename to...
3727 (type::add_dyn_prop): ... this.
3728
24e99c6c
SM
37292020-05-07 Simon Marchi <simon.marchi@efficios.com>
3730
3731 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3732 (get_dyn_prop): Remove. Update all users to use
3733 type::dyn_prop.
3734 * gdbtypes.c (get_dyn_prop): Rename to...
3735 (type::dyn_prop): ... this.
3736
0d4bf016
SM
37372020-05-06 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3740
ac4a4f1c
SM
37412020-05-06 Simon Marchi <simon.marchi@efficios.com>
3742
3743 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3744 instruction, skip it if it's there.
3745
a3bbacc1
SM
37462020-05-05 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3749
c3236f84
SM
37502020-05-04 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3753 * gdbtypes.c (recursive_dump_type): Remove use of
3754 TYPE_INCOMPLETE.
3755
3b6acaee
TT
37562020-05-03 Tom Tromey <tom@tromey.com>
3757
3758 * breakpoint.c (catch_command, tcatch_command): Remove.
3759 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3760 add_show_prefix_cmd.
3761 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3762 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3763 Remove.
3764 (add_internal_problem_command): Use add_basic_prefix_cmd,
3765 add_show_prefix_cmd.
3766 * mips-tdep.c (set_mipsfpu_command): Remove.
3767 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3768 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3769 (_initialize_index_cache): Use add_basic_prefix_cmd.
3770 * memattr.c (dummy_cmd): Remove.
3771 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3772 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3773 (_initialize_tui_win): Use add_basic_prefix_cmd,
3774 add_show_prefix_cmd.
3775 * cli/cli-logging.c (set_logging_command): Remove.
3776 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3777 add_show_prefix_cmd.
3778 (show_logging_command): Remove.
3779 * target.c (target_command): Remove.
3780 (add_target): Use add_basic_prefix_cmd.
3781
a51119cd
HD
37822020-05-02 Hannes Domani <ssbssa@yahoo.de>
3783
3784 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3785
652fc23a 37862020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3787
652fc23a
PW
3788 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3789 info_command.
3790
117539e6
KR
37912020-04-30 Kamil Rytarowski <n54@gmx.com>
3792
3793 * nbsd-nat.c (nbsd_enable_proc_events)
3794 (nbsd_nat_target::post_startup_inferior): Add.
3795 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3796 (nbsd_nat_target::update_thread_list): Rewrite.
3797 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3798 "PTRACE_LWP_CREATE".
3799 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3800
102e38eb 38012020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3802
102e38eb
PW
3803 * stack.c (_initialize_stack): Remove duplicated creation
3804 of "frame" command and "f" alias.
3805
ee9d1e5f
HD
38062020-04-30 Hannes Domani <ssbssa@yahoo.de>
3807
3808 PR gdb/18706
3809 * gdbtypes.c (check_typedef): Calculate size of array of
3810 stubbed type.
3811
627c7fb8
HD
38122020-04-30 Hannes Domani <ssbssa@yahoo.de>
3813
3814 PR gdb/15559
3815 * i386-tdep.c (i386_push_dummy_call): Call
3816 i386_thiscall_push_dummy_call.
3817 (i386_thiscall_push_dummy_call): New function.
3818 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3819 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3820 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3821
ffc2844e
SM
38222020-04-29 Simon Marchi <simon.marchi@efficios.com>
3823
3824 * gdbarch.sh (do_read): Add shellcheck disable directive for
3825 warning SC2162.
3826
1207375d
SM
38272020-04-29 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3830 "referenced but not assigned" warning.
3831
9fdb2916
SM
38322020-04-29 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * gdbarch.sh: Remove code that sets fallbackdefault.
3835
759cea5e
SM
38362020-04-29 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * gdbarch.sh: Use shell operators && and || instead of
3839 -a and -o.
3840
cb02ab24
SM
38412020-04-29 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * gdbarch.sh: Use $(...) instead of `...`.
3844
a6fc5ffc
SM
38452020-04-29 Simon Marchi <simon.marchi@efficios.com>
3846
3847 * gdbarch.sh: Use double quotes around variables.
3848
8d113d13
SM
38492020-04-29 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * gdbarch.sh: Use %s with printf, instead of variables in the
3852 format string.
3853
ed6acedd
TT
38542020-04-29 Tom Tromey <tromey@adacore.com>
3855
3856 PR ada/25875:
3857 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3858 type fields here.
3859 (read_enumeration_type): Call
3860 update_enumeration_type_from_children later. Update comments.
3861 (process_enumeration_scope): Don't create type fields.
3862
b68b1b58
KR
38632020-04-29 Kamil Rytarowski <n54@gmx.com>
3864
3865 * nbsd-tdep.c: Include "xml-syscall.h".
3866 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3867
f94b2e03
KR
38682020-04-29 Kamil Rytarowski <n54@gmx.com>
3869
3870 * nbsd-nat.c: Include "sys/wait.h".
3871 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3872 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3873 (nbsd_nat_target::remove_exec_catchpoint)
3874 (nbsd_nat_target::set_syscall_catchpoint): Add.
3875 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3876 (nbsd_nat_target::insert_exec_catchpoint)
3877 (nbsd_nat_target::remove_exec_catchpoint)
3878 (nbsd_nat_target::set_syscall_catchpoint): Add.
3879 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3880 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3881 `nbsd_get_syscall_number'.
3882
fc49bc72
TT
38832020-04-29 Tom Tromey <tom@tromey.com>
3884
3885 * stack.c (print_block_frame_labels): Remove.
3886
d642b692
HD
38872020-04-29 Hannes Domani <ssbssa@yahoo.de>
3888
3889 PR gdb/17320
3890 * ada-valprint.c (val_print_packed_array_elements): Move array
3891 end bracket to new line.
3892 (ada_val_print_string): Remove extra spaces before first array
3893 element.
3894 * c-valprint.c (c_value_print_array): Likewise.
3895 * m2-valprint.c (m2_print_array_contents): Likewise.
3896 (m2_value_print_inner): Likewise.
3897 * p-valprint.c (pascal_value_print_inner): Likewise.
3898 * valprint.c (generic_val_print_array): Likewise.
3899 (value_print_array_elements): Move first array element and array
3900 end bracket to new line.
3901
ea90f227
TV
39022020-04-29 Tom de Vries <tdevries@suse.de>
3903
3904 PR symtab/25889
3905 * linespec.c (find_method): Fix ix calculation.
3906
4498ef4f
KR
39072020-04-28 Kamil Rytarowski <n54@gmx.com>
3908
3909 * syscalls/update-netbsd.sh: New file.
3910 * syscalls/netbsd.xml: Regenerate.
3911 * data-directory/Makefile.in: Register `netbsd.xml' in
3912 `SYSCALLS_FILES'.
3913
a55e30b5
SM
39142020-04-28 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * syscalls/update-freebsd.sh: Add double quotes.
3917
2b2fbab8
TT
39182020-04-28 Tom Tromey <tom@tromey.com>
3919
3920 * NEWS: Update.
3921 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3922 (cmdpy_init): Allow class_tui.
3923
a65189c9
TV
39242020-04-28 Mark Williams <mark@myosotissp.com>
3925
3926 PR gdb/24480
3927 * dwarf2read.c: Add missing assingments to list_in_scope when
3928 start_symtab was already called.
3929
1b95cdb7
SM
39302020-04-28 Simon Marchi <simon.marchi@efficios.com>
3931
3932 PR gdb/25881
3933 * dwarf2/read.c (offset_map_type): Use
3934 gdb:hash_enum<sect_offset> as hash function.
3935
15cd93d0
TV
39362020-04-28 Tom de Vries <tdevries@suse.de>
3937
3938 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3939 with DW_AT_signature.
3940
1eb39914
SM
39412020-04-27 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * configure.ac: Remove check for fs_base/gs_base in
3944 user_regs_struct.
3945 * configure: Re-generate.
3946 * config.in: Re-generate.
3947 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3948 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3949 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3950
991a3e2e
LM
39512020-04-27 Luis Machado <luis.machado@linaro.org>
3952
3953 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3954 problematic inline frame unwinding situation.
3955 * frame.c (frame_id_computed_p): New function.
3956 * frame.h (frame_id_computed_p): New prototype.
3957
361ba0e8
TT
39582020-04-26 Tom Tromey <tom@tromey.com>
3959
3960 * command.h (enum command_class) <class_pseudo>: Remove.
3961
bc3609fd
PW
39622020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3963
3964 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
3965 and whitespace.
3966
b9771db7
KR
39672020-04-25 Kamil Rytarowski <n54@gmx.com>
3968
ec16513e
SM
3969 * inf-ptrace.c (inf_ptrace_target::wait): Remove
3970 `PT_GET_PROCESS_STATE' block.
b9771db7 3971
7151c1af
TT
39722020-04-24 Tom Tromey <tom@tromey.com>
3973
3974 * symtab.h (symbol_get_demangled_name): Don't declare.
3975 * symtab.c (symbol_get_demangled_name): Remove.
3976 (general_symbol_info::natural_name)
3977 (general_symbol_info::demangled_name): Update.
3978
906bb4c5
TT
39792020-04-24 Tom Tromey <tom@tromey.com>
3980
3981 PR rust/25025:
3982 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
3983
bcfe6157
TT
39842020-04-24 Tom Tromey <tom@tromey.com>
3985
3986 PR symtab/12707:
3987 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
3988 exists.
3989 (new_symbol): Likewise.
3990 * compile/compile-object-load.c (get_out_value_type): Use
3991 symbol_matches_search_name.
3992
f049a313
TT
39932020-04-24 Tom Tromey <tom@tromey.com>
3994
3995 * dwarf2/read.c (add_partial_symbol): Do not call
3996 compute_and_set_names.
3997
76e288d1
TT
39982020-04-24 Tom Tromey <tom@tromey.com>
3999
4000 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4001 overload.
4002
2467f4f6
TT
40032020-04-24 Tom Tromey <tom@tromey.com>
4004
4005 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4006 (add_psymbol_to_list): New overload. Make old overload call new
4007 one.
4008 * psympriv.h (add_psymbol_to_list): New overload.
4009
e61108c9
TT
40102020-04-24 Tom Tromey <tom@tromey.com>
4011
4012 * dwarf2/read.c (partial_die_info::read) <case
4013 DW_AT_linkage_name>: Use value_as_string.
4014 (dwarf2_string_attr): Use value_as_string.
4015 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4016 method.
4017 * dwarf2/attribute.c (attribute::value_as_string): New method.
4018
8c87a452
TT
40192020-04-24 Tom Tromey <tom@tromey.com>
4020
4021 * symtab.c (general_symbol_info::natural_name)
4022 (general_symbol_info::demangled_name): Check for language_rust.
4023
787de330
TT
40242020-04-24 Tom Tromey <tom@tromey.com>
4025
4026 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4027 (dwarf2_physname): ... from here.
4028 (partial_die_info::read): Add Rust "{" hack.
4029
ff985671
TT
40302020-04-24 Tom Tromey <tom@tromey.com>
4031
4032 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4033 method.
4034 (symbol_set_demangled_name): Don't declare.
4035 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4036 symbol_set_demangled_name.
4037 (general_symbol_info::set_language)
4038 (general_symbol_info::compute_and_set_names): Update.
4039 * minsyms.c (minimal_symbol_reader::install): Update.
4040 * dwarf2/read.c (new_symbol): Update.
4041
1acda803
TT
40422020-04-24 Tom Tromey <tromey@adacore.com>
4043
4044 PR python/23662:
4045 * python/py-type.c (convert_field): Handle
4046 FIELD_LOC_KIND_DWARF_BLOCK.
4047 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4048 (typy_get_dynamic): Nw function.
4049 (type_object_getset): Add "dynamic".
4050 * NEWS: Add entry.
4051
d656f129
TT
40522020-04-24 Tom Tromey <tromey@adacore.com>
4053
4054 * ada-typeprint.c (print_choices, print_variant_part)
4055 (print_record_field_types_dynamic): New functions.
4056 (print_record_field_types): Use print_record_field_types_dynamic.
4057
7d79de9a
TT
40582020-04-24 Tom Tromey <tromey@adacore.com>
4059
4060 * dwarf2/read.c (handle_data_member_location): New overload.
4061 (dwarf2_add_field): Use it.
4062 (decode_locdesc): Add "computed" parameter. Update comment.
4063 * gdbtypes.c (is_dynamic_type_internal): Also look for
4064 FIELD_LOC_KIND_DWARF_BLOCK.
4065 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4066 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4067 virtual base classes.
4068 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4069 FIELD_LOC_KIND_DWARF_BLOCK.
4070
f8e89861
TT
40712020-04-24 Tom Tromey <tromey@adacore.com>
4072
4073 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4074 * gdbtypes.c (is_dynamic_type_internal): Check
4075 TYPE_HAS_DYNAMIC_LENGTH.
4076 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4077 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4078 New macros.
4079 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4080 constant.
4081
9c6a1327
TT
40822020-04-24 Tom Tromey <tromey@adacore.com>
4083
4084 * dwarf2/read.c (struct variant_field): Rewrite.
4085 (struct variant_part_builder): New.
4086 (struct nextfield): Remove "variant" field. Add "offset".
4087 (struct field_info): Add "current_variant_part" and
4088 "variant_parts".
4089 (alloc_discriminant_info): Remove.
4090 (alloc_rust_variant): New function.
4091 (quirk_rust_enum): Update.
4092 (dwarf2_add_field): Set "offset" member. Don't handle
4093 DW_TAG_variant_part.
4094 (offset_map_type): New typedef.
4095 (convert_variant_range, create_one_variant)
4096 (create_one_variant_part, create_variant_parts)
4097 (add_variant_property): New functions.
4098 (dwarf2_attach_fields_to_type): Call add_variant_property.
4099 (read_structure_type): Don't handle DW_TAG_variant_part.
4100 (handle_variant_part, handle_variant): New functions.
4101 (handle_struct_member_die): Use them.
4102 (process_structure_scope): Don't handle variant parts.
4103 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4104 (struct discriminant_info): Remove.
4105 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4106 (struct main_type) <flag_discriminated_union>: Remove.
4107 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4108 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4109 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4110 Update.
4111 * valops.c (value_union_variant): Remove.
4112 * value.h (value_union_variant): Don't declare.
4113
b249d2c2
TT
41142020-04-24 Tom Tromey <tromey@adacore.com>
4115
4116 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4117 (ada_value_primitive_packed_val): Update.
4118 * ada-valprint.c (ada_value_print_1): Update.
4119 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4120 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4121 just an address. Use evaluate_for_locexpr_baton.
4122 (dwarf2_evaluate_property): Update.
4123 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4124 array_view.
4125 * findvar.c (default_read_var_value): Update.
4126 * gdbtypes.c (compute_variant_fields_inner)
4127 (resolve_dynamic_type_internal): Update.
4128 (resolve_dynamic_type): Change type of valaddr parameter.
4129 * gdbtypes.h (resolve_dynamic_type): Update.
4130 * valarith.c (value_subscripted_rvalue): Update.
4131 * value.c (value_from_contents_and_address): Update.
4132
61122aa9
TT
41332020-04-24 Tom Tromey <tromey@adacore.com>
4134
4135 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4136 "push_initial_value" parameter.
4137 (dwarf2_evaluate_property): Likewise.
4138 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4139
ef83a141
TT
41402020-04-24 Tom Tromey <tromey@adacore.com>
4141
4142 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4143 (variant::matches, compute_variant_fields_recurse)
4144 (compute_variant_fields_inner, compute_variant_fields): New
4145 functions.
4146 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4147 Use resolved_type after type is made.
4148 (operator==): Add new cases.
4149 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4150 (struct discriminant_range, struct variant, struct variant_part):
4151 New.
4152 (union dynamic_prop_data) <variant_parts, original_type>: New
4153 members.
4154 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4155 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4156 constants.
4157 * value.c (unpack_bits_as_long): Now public.
4158 * value.h (unpack_bits_as_long): Declare.
4159
675127ec
TT
41602020-04-24 Tom Tromey <tromey@adacore.com>
4161
4162 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4163 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4164
9852ceef
HD
41652020-04-24 Hannes Domani <ssbssa@yahoo.de>
4166
4167 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4168
7632c6ce
KR
41692020-04-24 Kamil Rytarowski <n54@gmx.com>
4170
4171 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4172 (remove_fork_catchpoint, post_startup_inferior)
4173 (post_attach): Move...
4174 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4175 (remove_fork_catchpoint, post_startup_inferior)
4176 (post_attach): ...here.
4177 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4178 (remove_fork_catchpoint, post_startup_inferior)
4179 (post_attach): Move...
4180 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4181 (remove_fork_catchpoint, post_startup_inferior)
4182 (post_attach): ...here.
4183
7be2bb4f
TT
41842020-04-24 Tom Tromey <tromey@adacore.com>
4185
4186 * nat/windows-nat.h (struct windows_thread_info)
4187 <pc_adjusted>: New member.
4188 * windows-nat.c (windows_fetch_one_register): Check
4189 pc_adjusted.
4190 (windows_nat_target::get_windows_debug_event)
4191 (windows_nat_target::wait): Set pc_adjusted.
4192
f80cb3b4
TV
41932020-04-24 Tom de Vries <tdevries@suse.de>
4194
4195 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4196 Run gdb-add-index inside temp dir.
4197
29514b87
TT
41982020-04-23 Tom Tromey <tromey@adacore.com>
4199
4200 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4201 in loop.
4202
5939967b
LM
42032020-04-23 Luis Machado <luis.machado@linaro.org>
4204
4205 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4206 get_frame_register instead of gdbarch_unwind_pc.
4207
70bc38f5
TV
42082020-04-23 Tom de Vries <tdevries@suse.de>
4209
4210 * symtab.c (lookup_global_symbol): Prefer def over decl.
4211
de82891c
TV
42122020-04-23 Tom de Vries <tdevries@suse.de>
4213
4214 PR symtab/25807
4215 * block.c (best_symbol, better_symbol): Promote to external.
4216 * block.h (best_symbol, better_symbol): Declare.
4217 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4218 decl.
4219
ecc6c606
TT
42202020-04-23 Tom Tromey <tromey@adacore.com>
4221
4222 PR ada/25837:
4223 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4224 "const char *", not a "const std::string &".
4225 <name_and_matcher::operator==>: Update.
4226 * unittests/lookup_name_info-selftests.c: Change type of
4227 "result".
4228
740480b8
TT
42292020-04-23 Tom Tromey <tom@tromey.com>
4230
4231 * inferior.h (iterate_over_inferiors): Don't declare.
4232 * inferior.c (iterate_over_inferiors): Remove.
4233 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4234 Remove.
4235 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4236 use iterate_over_inferiors.
4237 (darwin_resume_inferior_it)
4238 (struct resume_inferior_threads_param)
4239 (darwin_resume_inferior_threads_it): Remove.
4240 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4241
ae3ab1f0
TV
42422020-04-23 Tom de Vries <tdevries@suse.de>
4243
4244 * blockframe.c (find_pc_partial_function): Use
4245 find_pc_sect_compunit_symtab rather than
4246 objfile->sf->qf->find_pc_sect_compunit_symtab.
4247
317d2668
TV
42482020-04-22 Tom de Vries <tdevries@suse.de>
4249
4250 PR symtab/25764
4251 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4252 in psymtabs.
4253
eea9e357
TV
42542020-04-22 Tom de Vries <tdevries@suse.de>
4255
4256 PR symtab/25801
4257 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4258 symtabs.
4259
3d5afab3
TV
42602020-04-22 Tom de Vries <tdevries@suse.de>
4261
4262 PR symtab/25700
4263 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4264 CU if already created.
4265
d43b7a2d
TBA
42662020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4267
4268 * infrun.c (displaced_step_fixup): Switch to the event_thread
4269 before calling displaced_step_restore, not after.
4270
d89edf9b
MM
42712020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4272
4273 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4274 its inferior is not recorded by us.
4275 (record_btrace_target_open): Replace call to
4276 all_non_exited_threads () with call to current_inferior
4277 ()->non_exited_threads ().
4278 (record_btrace_target::stop_recording): Likewise.
4279 (record_btrace_target::close): Likewise.
4280 (record_btrace_target::wait): Likewise.
4281 (record_btrace_target::record_stop_replaying): Likewise.
4282
5897fd49
MM
42832020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4284
4285 * btrace.c (btrace_enable): Throw an error on double enables and
4286 when enabling recording fails.
4287 (btrace_disable): Throw an error if the thread is not recorded.
4288
1a476b6d
MM
42892020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4290
4291 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4292 request if we do not have a thread_info.
4293
4778a5f8
TV
42942020-04-21 Tom de Vries <tdevries@suse.de>
4295
4296 PR gdb/25471
4297 * thread.c
4298 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4299 exception in get_frame_id.
4300
0fa7617d
TT
43012020-04-20 Tom Tromey <tromey@adacore.com>
4302
4303 * python/python.c (struct gdbpy_event): Mark move constructor as
4304 noexcept.
4305 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4306 constructor as noexcept.
4307 * completer.h (struct completion_result): Mark move constructor as
4308 noexcept.
4309 * completer.c (completion_result::completion_result): Use
4310 initialization style. Don't call reset_match_list.
4311
ad23bda0
MS
43122020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4313
4314 * MAINTAINERS (Write After Approval): Add myself.
4315
45e1f031
TT
43162020-04-18 Tom Tromey <tom@tromey.com>
4317
4318 * windows-tdep.c (init_w32_command_list)
4319 (w32_prefix_command_valid): Restore.
4320 (_initialize_windows_tdep): Call init_w32_command_list.
4321
08feed99
TT
43222020-04-18 Tom Tromey <tom@tromey.com>
4323
4324 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4325 * value.c (value_fn_field): Update.
4326 * valops.c (find_function_in_inferior)
4327 (value_allocate_space_in_inferior): Update.
4328 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4329 Update.
4330 * tui/tui-source.c (tui_source_window::set_contents): Update.
4331 * symtab.c (lookup_global_or_static_symbol)
4332 (find_function_start_sal_1, skip_prologue_sal)
4333 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4334 * symmisc.c (dump_msymbols, dump_symtab_1)
4335 (maintenance_print_one_line_table): Update.
4336 * symfile.c (init_entry_point_info, section_is_mapped)
4337 (list_overlays_command, simple_read_overlay_table)
4338 (simple_overlay_update_1): Update.
4339 * stap-probe.c (handle_stap_probe): Update.
4340 * stabsread.c (dbx_init_float_type, define_symbol)
4341 (read_one_struct_field, read_enum_type, read_range_type): Update.
4342 * source.c (info_line_command): Update.
4343 * python/python.c (gdbpy_source_objfile_script)
4344 (gdbpy_execute_objfile_script): Update.
4345 * python/py-type.c (save_objfile_types): Update.
4346 * python/py-objfile.c (py_free_objfile): Update.
4347 * python/py-inferior.c (python_new_objfile): Update.
4348 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4349 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4350 (maintenance_check_psymtabs): Update.
4351 * printcmd.c (info_address_command): Update.
4352 * objfiles.h (struct objfile) <arch>: New method, from
4353 get_objfile_arch.
4354 (get_objfile_arch): Don't declare.
4355 * objfiles.c (get_objfile_arch): Remove.
4356 (filter_overlapping_sections): Update.
4357 * minsyms.c (msymbol_is_function): Update.
4358 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4359 (output_nondebug_symbol): Update.
4360 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4361 (mdebug_expand_psymtab): Update.
4362 * machoread.c (macho_add_oso_symfile): Update.
4363 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4364 Update.
4365 * linux-fork.c (checkpoint_command): Update.
4366 * linespec.c (convert_linespec_to_sals): Update.
4367 * jit.c (finalize_symtab): Update.
4368 * infrun.c (insert_exception_resume_from_probe): Update.
4369 * ia64-tdep.c (ia64_find_unwind_table): Update.
4370 * hppa-tdep.c (internalize_unwinds): Update.
4371 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4372 Update.
4373 * gcore.c (call_target_sbrk): Update.
4374 * elfread.c (record_minimal_symbol, elf_symtab_read)
4375 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4376 (elf_gnu_ifunc_resolve_by_got): Update.
4377 * dwarf2/read.c (create_addrmap_from_index)
4378 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4379 (read_debug_names_from_section)
4380 (process_psymtab_comp_unit_reader, add_partial_symbol)
4381 (add_partial_subprogram, process_full_comp_unit)
4382 (read_file_scope, read_func_scope, read_lexical_block_scope)
4383 (read_call_site_scope, dwarf2_ranges_read)
4384 (dwarf2_record_block_ranges, dwarf2_add_field)
4385 (mark_common_block_symbol_computed, read_tag_pointer_type)
4386 (read_tag_string_type, dwarf2_init_float_type)
4387 (dwarf2_init_complex_target_type, read_base_type)
4388 (partial_die_info::read, partial_die_info::read)
4389 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4390 (dwarf2_fetch_die_loc_sect_off): Update.
4391 * dwarf2/loc.c (dwarf2_find_location_expression)
4392 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4393 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4394 (dwarf2_loc_desc_get_symbol_read_needs)
4395 (locexpr_describe_location_piece, locexpr_describe_location_1)
4396 (loclist_describe_location): Update.
4397 * dwarf2/index-write.c (write_debug_names): Update.
4398 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4399 * dtrace-probe.c (dtrace_process_dof): Update.
4400 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4401 (process_one_symbol): Update.
4402 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4403 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4404 (coff_read_enum_type): Update.
4405 * cli/cli-cmds.c (edit_command, list_command): Update.
4406 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4407 * breakpoint.c (create_overlay_event_breakpoint)
4408 (create_longjmp_master_breakpoint)
4409 (create_std_terminate_master_breakpoint)
4410 (create_exception_master_breakpoint, get_sal_arch): Update.
4411 * block.c (block_gdbarch): Update.
4412 * annotate.c (annotate_source_line): Update.
4413
0743fc83
TT
44142020-04-17 Tom Tromey <tromey@adacore.com>
4415
4416 * auto-load.c (show_auto_load_cmd): Remove.
4417 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4418 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4419 (maintenance_print_arc_command): Remove.
4420 * tui/tui-win.c (tui_command): Remove.
4421 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4422 * tui/tui-layout.c (tui_layout_command): Remove.
4423 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4424 * python/python.c (user_set_python, user_show_python): Remove.
4425 (_initialize_python): Use add_basic_prefix_cmd,
4426 add_show_prefix_cmd.
4427 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4428 (install_gdb_commands): Use add_basic_prefix_cmd,
4429 add_show_prefix_cmd.
4430 (info_guile_command): Remove.
4431 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4432 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4433 add_show_prefix_cmd.
4434 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4435 Remove do_set and do_show parameters.
4436 * cli/cli-style.c (set_style, show_style): Remove.
4437 (_initialize_cli_style): Use add_basic_prefix_cmd,
4438 add_show_prefix_cmd.
4439 (cli_style_option::add_setshow_commands): Remove do_set and
4440 do_show parameters.
4441 (cli_style_option::add_setshow_commands): Use
4442 add_basic_prefix_cmd, add_show_prefix_cmd.
4443 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4444 (set_style_name): Remove.
4445 * cli/cli-dump.c (dump_command, append_command): Remove.
4446 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4447 (tekhex_dump_command, binary_dump_command)
4448 (binary_append_command): Remove.
4449 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4450 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4451 (init_w32_command_list): Remove; move into ...
4452 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4453 * valprint.c (set_print, show_print, set_print_raw)
4454 (show_print_raw): Remove.
4455 (_initialize_valprint): Use add_basic_prefix_cmd,
4456 add_show_prefix_cmd.
4457 * typeprint.c (set_print_type, show_print_type): Remove.
4458 (_initialize_typeprint): Use add_basic_prefix_cmd,
4459 add_show_prefix_cmd.
4460 * record.c (set_record_command, show_record_command): Remove.
4461 (_initialize_record): Use add_basic_prefix_cmd,
4462 add_show_prefix_cmd.
4463 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4464 add_show_prefix_cmd.
4465 (info_command, show_command, set_debug, show_debug): Remove.
4466 * top.h (set_history, show_history): Don't declare.
4467 * top.c (set_history, show_history): Remove.
4468 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4469 (unset_tdesc_cmd): Remove.
4470 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4471 add_show_prefix_cmd.
4472 * symtab.c (info_module_command): Remove.
4473 (_initialize_symtab): Use add_basic_prefix_cmd.
4474 * symfile.c (overlay_command): Remove.
4475 (_initialize_symfile): Use add_basic_prefix_cmd.
4476 * sparc64-tdep.c (info_adi_command): Remove.
4477 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4478 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4479 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4480 add_show_prefix_cmd.
4481 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4482 (_initialize_serial): Use add_basic_prefix_cmd,
4483 add_show_prefix_cmd.
4484 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4485 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4486 add_show_prefix_cmd.
4487 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4488 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4489 add_show_prefix_cmd.
4490 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4491 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4492 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4493 add_show_prefix_cmd.
4494 * remote.c (remote_command, set_remote_cmd): Remove.
4495 (_initialize_remote): Use add_basic_prefix_cmd.
4496 * record-full.c (set_record_full_command)
4497 (show_record_full_command): Remove.
4498 (_initialize_record_full): Use add_basic_prefix_cmd,
4499 add_show_prefix_cmd.
4500 * record-btrace.c (cmd_set_record_btrace)
4501 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4502 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4503 (cmd_show_record_btrace_pt): Remove.
4504 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4505 add_show_prefix_cmd.
4506 * ravenscar-thread.c (set_ravenscar_command)
4507 (show_ravenscar_command): Remove.
4508 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4509 add_show_prefix_cmd.
4510 * mips-tdep.c (show_mips_command, set_mips_command)
4511 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4512 add_show_prefix_cmd.
4513 * maint.c (maintenance_command, maintenance_info_command)
4514 (maintenance_check_command, maintenance_print_command)
4515 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4516 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4517 add_show_prefix_cmd.
4518 (show_per_command_cmd): Remove.
4519 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4520 Remove.
4521 (maintenance_show_test_settings_cmd): Remove.
4522 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4523 add_show_prefix_cmd.
4524 * maint-test-options.c (maintenance_test_options_command):
4525 Remove.
4526 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4527 * macrocmd.c (macro_command): Remove
4528 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4529 * language.c (set_check, show_check): Remove.
4530 (_initialize_language): Use add_basic_prefix_cmd,
4531 add_show_prefix_cmd.
4532 * infcmd.c (unset_command): Remove.
4533 (_initialize_infcmd): Use add_basic_prefix_cmd.
4534 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4535 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4536 add_show_prefix_cmd.
4537 * go32-nat.c (go32_info_dos_command): Remove.
4538 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4539 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4540 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4541 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4542 (_initialize_frame): Use add_basic_prefix_cmd,
4543 add_show_prefix_cmd.
4544 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4545 (_initialize_dcache): Use add_basic_prefix_cmd,
4546 add_show_prefix_cmd.
4547 * cp-support.c (maint_cplus_command): Remove.
4548 (_initialize_cp_support): Use add_basic_prefix_cmd.
4549 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4550 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4551 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4552 add_basic_prefix_cmd, add_show_prefix_cmd.
4553 * breakpoint.c (save_command): Remove.
4554 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4555 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4556 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4557 add_show_prefix_cmd.
4558 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4559 (set_ada_command, show_ada_command): Remove.
4560 (_initialize_ada_language): Use add_basic_prefix_cmd,
4561 add_show_prefix_cmd.
4562 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4563
3557f442
KR
45642020-04-16 Kamil Rytarowski <n54@gmx.com>
4565
4566 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4567 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4568
16197208
SM
45692020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4570
4571 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4572 warning messages.
4573
00ac85d3
SM
45742020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4575
4576 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4577 import table is not at beginning of .idata section.
4578
381ce63f
PA
45792020-04-16 Pedro Alves <palves@redhat.com>
4580
4581 * inferior.c (delete_inferior): Use delete operator directly
4582 instead of delete_program_space.
4583 * progspace.c (add_program_space): New, factored out from
4584 program_space::program_space.
4585 (remove_program_space): New, factored out from
4586 delete_program_space.
4587 (program_space::program_space): Remove intro comment. Rewrite.
4588 (program_space::~program_space): Remove intro comment. Call
4589 remove_program_space.
4590 (delete_program_space): Delete.
4591 * progspace.h (program_space::program_space): Make explicit. Move
4592 intro comment here, adjusted.
4593 (program_space::~program_space): Move intro comment here,
4594 adjusted.
4595 (delete_program_space): Remove.
4596
a010605f
TT
45972020-04-16 Tom Tromey <tromey@adacore.com>
4598
4599 * windows-nat.c (windows_nat::handle_access_violation): New
4600 function.
4601 * nat/windows-nat.h (handle_access_violation): Declare.
4602 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4603 windows-nat.c. Call handle_access_violation.
4604
efba5c23
TV
46052020-04-16 Tom de Vries <tdevries@suse.de>
4606
4607 PR symtab/25791
4608 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4609 CUs without psymtab.
4610
97ed802d
KB
46112020-04-16 Kevin Buettner <kevinb@redhat.com>
4612
4613 * python/python.c (do_start_initialization): Don't call
4614 PyEval_InitThreads for Python 3.9 and beyond.
4615
c7d64809
KR
46162020-04-15 Kamil Rytarowski <n54@gmx.com>
4617
4618 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4619 thread functions.
4620 (obsd_nat_target::wait): Likewise.
4621
ce127a96
TT
46222020-04-15 Tom Tromey <tromey@adacore.com>
4623
4624 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4625 (DEBUG_EXCEPT): Use debug_printf.
4626
99f1bc6a
AB
46272020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * completer.c (class completion_tracker::completion_hash_entry)
4630 <hash_name>: New member function.
4631 (completion_tracker::discard_completions): New callback to hash a
4632 completion_hash_entry, pass this to htab_create_alloc.
4633
a0e9b532
JT
46342016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4635
4636 * windows-nat.c (windows_make_so): Warn rather than stopping with
4637 an error if realpath() fails.
4638
06ca5dd4
KR
46392020-04-14 Kamil Rytarowski <n54@gmx.com>
4640
4641 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4642 (nbsd_nat_target::info_proc): Add do_status.
4643
194d088f
TV
46442020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4645 Tom de Vries <tdevries@suse.de>
4646
4647 PR symtab/25718
4648 * psympriv.h (struct partial_symtab::read_symtab)
4649 (struct partial_symtab::expand_psymtab)
4650 (struct partial_symtab::read_dependencies): Update comments.
4651 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4652 read_symtab for includer.
4653 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4654 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4655 (struct dwarf2_include_psymtab::m_readin): Remove.
4656 (struct dwarf2_include_psymtab::includer): New member function.
4657 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4658
c1a66c06
TV
46592020-04-14 Tom de Vries <tdevries@suse.de>
4660
4661 PR symtab/25720
4662 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4663 with NULL symbol_matcher and lookup_name.
4664 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4665 and lookup_name.
4666 * dwarf2/read.c (dw2_expand_symtabs_matching)
4667 (dw2_debug_names_expand_symtabs_matching): Same.
4668 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4669 Make lookup_name a pointer. Update comment.
4670 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4671 lookup_name being a pointer.
4672 * symfile.c (expand_symtabs_matching): Same.
4673 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4674 * linespec.c (iterate_over_all_matching_symtabs): Same.
4675
400b5eca
TT
46762020-04-13 Tom Tromey <tom@tromey.com>
4677
4678 * run-on-main-thread.c: Update include.
4679 * unittests/main-thread-selftests.c: Update include.
4680 * tui/tui-win.c: Update include.
4681 * tui/tui-io.c: Update include.
4682 * tui/tui-interp.c: Update include.
4683 * tui/tui-hooks.c: Update include.
4684 * top.h: Update include.
4685 * top.c: Update include.
4686 * ser-base.c: Update include.
4687 * remote.c: Update include.
4688 * remote-notif.c: Update include.
4689 * remote-fileio.c: Update include.
4690 * record-full.c: Update include.
4691 * record-btrace.c: Update include.
4692 * python/python.c: Update include.
4693 * posix-hdep.c: Update include.
4694 * mingw-hdep.c: Update include.
4695 * mi/mi-main.c: Update include.
4696 * mi/mi-interp.c: Update include.
4697 * main.c: Update include.
4698 * linux-nat.c: Update include.
4699 * interps.c: Update include.
4700 * infrun.c: Update include.
4701 * inf-loop.c: Update include.
4702 * event-top.c: Update include.
4703 * event-loop.c: Move to ../gdbsupport/.
4704 * event-loop.h: Move to ../gdbsupport/.
4705 * async-event.h: Update include.
4706 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4707
93b54c8e
TT
47082020-04-13 Tom Tromey <tom@tromey.com>
4709
4710 * tui/tui-win.c: Include async-event.h.
4711 * remote.c: Include async-event.h.
4712 * remote-notif.c: Include async-event.h.
4713 * record-full.c: Include async-event.h.
4714 * record-btrace.c: Include async-event.h.
4715 * infrun.c: Include async-event.h.
4716 * event-top.c: Include async-event.h.
4717 * event-loop.h: Move some declarations to async-event.h.
4718 * event-loop.c: Don't include ser-event.h or top.h. Move some
4719 code to async-event.c.
4720 * async-event.h: New file.
4721 * async-event.c: New file.
4722 * Makefile.in (COMMON_SFILES): Add async-event.c.
4723 (HFILES_NO_SRCDIR): Add async-event.h.
4724
c1cd3163
TT
47252020-04-13 Tom Tromey <tom@tromey.com>
4726
4727 * utils.c (flush_streams): New function.
4728 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4729
29f2bf4f
TT
47302020-04-13 Tom Tromey <tom@tromey.com>
4731
4732 * event-loop.c (handle_file_event): Use warning, not
4733 printf_unfiltered.
4734
98029d02
TT
47352020-04-13 Tom Tromey <tom@tromey.com>
4736
4737 * event-loop.c: Include <chrono>.
4738
06cc9596
TT
47392020-04-13 Tom Tromey <tom@tromey.com>
4740
4741 * gdb_select.h: Move to ../gdbsupport/.
4742 * event-loop.c: Update include path.
4743 * top.c: Update include path.
4744 * ser-base.c: Update include path.
4745 * ui-file.c: Update include path.
4746 * ser-tcp.c: Update include path.
4747 * guile/scm-ports.c: Update include path.
4748 * posix-hdep.c: Update include path.
4749 * ser-unix.c: Update include path.
4750 * gdb_usleep.c: Update include path.
4751 * mingw-hdep.c: Update include path.
4752 * inflow.c: Update include path.
4753 * infrun.c: Update include path.
4754 * event-top.c: Update include path.
4755
8ae8e197
TT
47562020-04-13 Tom Tromey <tom@tromey.com>
4757
4758 * configure: Rebuild.
4759 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4760
58cf28e8
TT
47612020-04-13 Tom Tromey <tom@tromey.com>
4762
4763 * event-loop.h (start_event_loop): Don't declare.
4764 * event-loop.c (start_event_loop): Move...
4765 * main.c (start_event_loop): ...here. Now static.
4766
b7f999ae
SDJ
47672020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4768
4769 * MAINTAINERS: Update my email address.
4770
1085dfd4
KR
47712020-04-12 Kamil Rytarowski <n54@gmx.com>
4772
4773 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4774 IP_ALL.
4775
49d1d1f5
KR
47762020-04-12 Kamil Rytarowski <n54@gmx.com>
4777
4778 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4779 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4780
b4848d2a
KR
47812020-04-12 Kamil Rytarowski <n54@gmx.com>
4782
4783 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4784 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4785
51c133d5
KR
47862020-04-12 Kamil Rytarowski <n54@gmx.com>
4787
4788 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4789
54b8cbd0
KR
47902020-04-11 Kamil Rytarowski <n54@gmx.com>
4791
4792 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4793 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4794 (nbsd_nat_target::info_proc): New functions.
4795 * nbsd-nat.c (kinfo_get_vmmap): New function.
4796 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4797 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4798 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4799 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4800 functions.
4801 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4802 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4803 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4804 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4805 (KINFO_VME_FLAG_GROWS_DOWN): New.
4806
cf83625d
AS
48072020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4808
4809 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4810 bit shift.
4811
0c4311ab
TT
48122020-04-10 Tom Tromey <tromey@adacore.com>
4813
4814 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4815
3e65b3e9
TT
48162020-04-10 Tom Tromey <tromey@adacore.com>
4817
4818 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4819 separate debug files.
4820
13302e95
HD
48212020-04-10 Hannes Domani <ssbssa@yahoo.de>
4822
4823 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4824 Move to...
4825 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4826 ... here.
4827 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4828 Check for STATUS_WX86_BREAKPOINT.
4829 (windows_nat_target::wait): Same.
4830
bdfc1e8a
TV
48312020-04-10 Tom de Vries <tdevries@suse.de>
4832
4833 PR cli/25808
4834 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4835
f4460aec
SM
48362020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4837
4838 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4839 (Write After Approval): Remove Tom de Vries.
4840
a25198bb
BE
48412020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4842
4843 revert partially:
4844 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4845
aac66a4c
SM
4846 * buildsym.c (record_line): Fix undefined behavior and preserve
4847 lines at eof.
a25198bb 4848
206c98a6
KR
48492020-04-09 Kamil Rytarowski <n54@gmx.com>
4850
4851 * auxv.h (svr4_auxv_parse): New.
4852 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4853 and generic_auxv_parse.
4854 (svr4_auxv_parse): Add.
4855 * obsd-tdep.c: Include "auxv.h".
4856 (obsd_auxv_parse): Remove.
4857 (obsd_init_abi): Remove comment.
4858 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4859 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4860 * nbsd-tdep.c: Include "auxv.h".
4861 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4862
71fbdbaf
TT
48632020-04-08 Tom Tromey <tromey@adacore.com>
4864
4865 * nat/windows-nat.h (last_wait_event): Don't declare.
4866 (wait_for_debug_event): Update comment.
4867 * nat/windows-nat.c (last_wait_event): Now static.
4868
2c1d95e8
TT
48692020-04-08 Tom Tromey <tromey@adacore.com>
4870
4871 * windows-nat.c (wait_for_debug_event): Move to
4872 nat/windows-nat.c.
4873 * nat/windows-nat.h (wait_for_debug_event): Declare.
4874 * nat/windows-nat.c (wait_for_debug_event): Move from
4875 windows-nat.c. No longer static.
4876
d2977bc4
TT
48772020-04-08 Tom Tromey <tromey@adacore.com>
4878
4879 * windows-nat.c (get_windows_debug_event): Use
4880 fetch_pending_stop.
4881 * nat/windows-nat.h (fetch_pending_stop): Declare.
4882 * nat/windows-nat.c (fetch_pending_stop): New function.
4883
e758e19c
TT
48842020-04-08 Tom Tromey <tromey@adacore.com>
4885
4886 * windows-nat.c (windows_continue): Use matching_pending_stop and
4887 continue_last_debug_event.
4888 * nat/windows-nat.h (matching_pending_stop)
4889 (continue_last_debug_event): Declare.
4890 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4891 (matching_pending_stop, continue_last_debug_event): New
4892 functions.
4893
8d30e395
TT
48942020-04-08 Tom Tromey <tromey@adacore.com>
4895
4896 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4897 (handle_exception_result): Move to nat/windows-nat.h.
4898 (DEBUG_EXCEPTION_SIMPLE): Remove.
4899 (windows_nat::handle_ms_vc_exception): New function.
4900 (handle_exception): Move to nat/windows-nat.c.
4901 (get_windows_debug_event): Update.
4902 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4903 nat/windows-nat.c.
4904 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4905 (handle_exception_result): Move from windows-nat.c.
4906 (handle_exception): Declare.
4907 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4908 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4909 windows-nat.c.
4910
29de418d
TT
49112020-04-08 Tom Tromey <tromey@adacore.com>
4912
4913 * windows-nat.c (exception_count, event_count): Remove.
4914 (handle_exception, get_windows_debug_event)
4915 (do_initial_windows_stuff): Update.
4916
a816ba18
TT
49172020-04-08 Tom Tromey <tromey@adacore.com>
4918
4919 * windows-nat.c (windows_nat::handle_load_dll)
4920 (windows_nat::handle_unload_dll): Rename. No longer static.
4921 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4922 Declare.
4923
a00caa12
TT
49242020-04-08 Tom Tromey <tromey@adacore.com>
4925
4926 * complaints.h (stop_whining): Declare at top-level.
4927 (complaint): Don't declare stop_whining.
4928
d41b524f
TT
49292020-04-08 Tom Tromey <tromey@adacore.com>
4930
4931 * windows-nat.c (windows_nat::handle_output_debug_string):
4932 Rename. No longer static.
4933 * nat/windows-nat.h (handle_output_debug_string): Declare.
4934
3c76026d
TT
49352020-04-08 Tom Tromey <tromey@adacore.com>
4936
4937 * windows-nat.c (current_process_handle, current_process_id)
4938 (main_thread_id, last_sig, current_event, last_wait_event)
4939 (current_windows_thread, desired_stop_thread_id, pending_stops)
4940 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4941 (display_selectors, fake_create_process)
4942 (get_windows_debug_event): Update.
4943 * nat/windows-nat.h (current_process_handle, current_process_id)
4944 (main_thread_id, last_sig, current_event, last_wait_event)
4945 (current_windows_thread, desired_stop_thread_id, pending_stops)
4946 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4947 * nat/windows-nat.c (current_process_handle, current_process_id)
4948 (main_thread_id, last_sig, current_event, last_wait_event)
4949 (current_windows_thread, desired_stop_thread_id, pending_stops)
4950 (siginfo_er): New globals. Move from windows-nat.c.
4951
9d8679cc
TT
49522020-04-08 Tom Tromey <tromey@adacore.com>
4953
4954 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4955 (handle_load_dll): Update.
4956 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4957
28688adf
TT
49582020-04-08 Tom Tromey <tromey@adacore.com>
4959
4960 * windows-nat.c (enum thread_disposition_type): Move to
4961 nat/windows-nat.h.
4962 (windows_nat::thread_rec): Rename from thread_rec. No longer
4963 static.
4964 (windows_add_thread, windows_nat_target::fetch_registers)
4965 (windows_nat_target::store_registers, handle_exception)
4966 (windows_nat_target::resume, get_windows_debug_event)
4967 (windows_nat_target::get_tib_address)
4968 (windows_nat_target::thread_name)
4969 (windows_nat_target::thread_alive): Update.
4970 * nat/windows-nat.h (enum thread_disposition_type): Move from
4971 windows-nat.c.
4972 (thread_rec): Declare.
4973
4834dad0
TT
49742020-04-08 Tom Tromey <tromey@adacore.com>
4975
4976 * windows-nat.c: Add "using namespace".
4977 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
4978 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
4979
65bafd5b
TT
49802020-04-08 Tom Tromey <tromey@adacore.com>
4981
4982 * nat/windows-nat.h (struct windows_thread_info): Declare
4983 destructor.
4984 * nat/windows-nat.c (~windows_thread_info): New.
4985
0a4afda3
TT
49862020-04-08 Tom Tromey <tromey@adacore.com>
4987
4988 PR gdb/22992
4989 * windows-nat.c (current_event): Update comment.
4990 (last_wait_event, desired_stop_thread_id): New globals.
4991 (struct pending_stop): New.
4992 (pending_stops): New global.
4993 (windows_nat_target) <stopped_by_sw_breakpoint>
4994 <supports_stopped_by_sw_breakpoint>: New methods.
4995 (windows_fetch_one_register): Add assertions. Adjust PC.
4996 (windows_continue): Handle pending stops. Suspend other threads
4997 when stepping. Use last_wait_event
4998 (wait_for_debug_event): New function.
4999 (get_windows_debug_event): Use wait_for_debug_event. Handle
5000 pending stops. Queue spurious stops.
5001 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5002 (windows_nat_target::kill): Use wait_for_debug_event.
5003 * nat/windows-nat.h (struct windows_thread_info)
5004 <stopped_at_software_breakpoint>: New field.
5005 * nat/windows-nat.c (windows_thread_info::resume): Clear
5006 stopped_at_software_breakpoint.
5007
8e61ebec
TT
50082020-04-08 Tom Tromey <tromey@adacore.com>
5009
5010 * windows-nat.c (enum thread_disposition_type): New.
5011 (thread_rec): Replace "get_context" parameter with "disposition";
5012 change type.
5013 (windows_add_thread, windows_nat_target::fetch_registers)
5014 (windows_nat_target::store_registers, handle_exception)
5015 (windows_nat_target::resume, get_windows_debug_event)
5016 (windows_nat_target::get_tib_address)
5017 (windows_nat_target::thread_name)
5018 (windows_nat_target::thread_alive): Update.
5019
98a03287
TT
50202020-04-08 Tom Tromey <tromey@adacore.com>
5021
5022 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5023 (windows_continue): Use windows_continue::resume.
5024 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5025 resume>: Declare new methods.
5026 * nat/windows-nat.c: New file.
5027 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5028
7c7411bc
TT
50292020-04-08 Tom Tromey <tromey@adacore.com>
5030
5031 * windows-nat.c (windows_add_thread, windows_delete_thread)
5032 (windows_nat_target::fetch_registers)
5033 (windows_nat_target::store_registers, fake_create_process)
5034 (windows_nat_target::resume, windows_nat_target::resume)
5035 (get_windows_debug_event, windows_nat_target::wait)
5036 (windows_nat_target::pid_to_str)
5037 (windows_nat_target::get_tib_address)
5038 (windows_nat_target::get_ada_task_ptid)
5039 (windows_nat_target::thread_name)
5040 (windows_nat_target::thread_alive): Use lwp, not tid.
5041
2950fdf7
TT
50422020-04-08 Tom Tromey <tromey@adacore.com>
5043
5044 * windows-nat.c (handle_exception)
5045 (windows_nat_target::thread_name): Update.
5046 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5047 <name>: Now unique_xmalloc_ptr.
5048
62fe396b
TT
50492020-04-08 Tom Tromey <tromey@adacore.com>
5050
5051 * windows-nat.c (thread_rec)
5052 (windows_nat_target::fetch_registers): Update.
5053 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5054 Update comment.
5055 <debug_registers_changed, reload_context>: Now bool.
5056
e9534bd2
TT
50572020-04-08 Tom Tromey <tromey@adacore.com>
5058
5059 * windows-nat.c (windows_add_thread): Use new.
5060 (windows_init_thread_list, windows_delete_thread): Use delete.
5061 (get_windows_debug_event): Update.
5062 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5063 destructor, and initializers.
5064
ae1f8880
TT
50652020-04-08 Tom Tromey <tromey@adacore.com>
5066
5067 * windows-nat.c (struct windows_thread_info): Remove.
5068 * nat/windows-nat.h: New file.
5069
55a1e039
TT
50702020-04-08 Tom Tromey <tromey@adacore.com>
5071
5072 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5073 (thread_rec, windows_add_thread, windows_delete_thread)
5074 (windows_continue): Update.
5075
93366324
TT
50762020-04-08 Tom Tromey <tromey@adacore.com>
5077
5078 * windows-nat.c (struct windows_thread_info): Remove typedef.
5079 (thread_head): Remove.
5080 (thread_list): New global.
5081 (thread_rec, windows_add_thread, windows_init_thread_list)
5082 (windows_delete_thread, windows_continue): Update.
5083
0f2265e2
SM
50842020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5085
5086 * windows-tdep.h (windows_init_abi): Add comment.
5087 (cygwin_init_abi): New declaration.
5088 * windows-tdep.c: Split signal enumeration in two, one for
5089 Windows and one for Cygwin.
5090 (windows_gdb_signal_to_target): Only deal with signal of the
5091 Windows OS ABI.
5092 (cygwin_gdb_signal_to_target): New function.
5093 (windows_init_abi): Rename to windows_init_abi_common, don't set
5094 gdb_signal_to_target gdbarch method. Add new new function with
5095 this name.
5096 (cygwin_init_abi): New function.
5097 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5098 comment. Don't call windows_init_abi.
5099 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5100 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5101 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5102 i386_windows_init_abi_common, don't call windows_init_abi. Add
5103 a new function of this name.
5104 (i386_cygwin_init_abi): New function.
5105 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5106 OS ABI Cygwin.
5107
3810f182
SM
51082020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5109
5110 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5111 parameter.c.
5112 (dwarf2_read_gdb_index): Update.
5113
063f8e80
KR
51142020-04-07 Kamil Rytarowski <n54@gmx.com>
5115
5116 * nbsd-tdep.c: Include "objfiles.h".
5117 (nbsd_skip_solib_resolver): New.
5118 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5119
85a9510c 51202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5121
5122 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5123 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5124 with DW_LLE_base_addressx are being emitted in DWARFv5.
5125 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5126 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5127 unsigned integer.
5128
9fc3eaae 51292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5130
5131 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5132 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5133 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5134 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5135 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5136 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5137 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5138
5139
41144253 51402020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5141
5142 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5143 (read_loclist_index): New function definition.
5144 (lookup_loclist_base): New function definition.
5145 (read_loclist_header): New function definition.
5146 (dwarf2_cu): Add loclist_base and loclist_header field.
5147 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5148 (read_full_die_1): Read the value of DW_AT_loclists_base.
5149 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5150 (read_attribute_value): Handle DW_FORM_loclistx.
5151 (skip_one_die): Handle DW_FORM_loclistx.
5152 (loclist_header): New structure declaration.
5153 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5154
9f4e76a4
SM
51552020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5156
5157 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5158 constructor. Remove `addr` parameter from other constructor and
5159 add `per_cu` parameter.
5160 * dwarf2/read.c (create_partial_symtab): Update.
5161
25c11aca
TV
51622020-04-07 Tom de Vries <tdevries@suse.de>
5163
5164 PR symtab/25796
5165 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5166 (partial_die_info::fixup): Inherit has_const_value.
5167
5707e24b
TV
51682020-04-07 Tom de Vries <tdevries@suse.de>
5169
5170 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5171 symbols without address.
5172
05f00e22
KR
51732020-04-06 Kamil Rytarowski <n54@gmx.com>
5174
5175 * nbsd-nat.h (struct thread_info): Add forward declaration.
5176 (nbsd_nat_target::thread_alive): Add.
5177 (nbsd_nat_target::thread_name): Likewise.
5178 (nbsd_nat_target::update_thread_list): Likewise.
5179 (update_thread_list::post_attach): Likewise.
5180 (post_attach::pid_to_str): Likewise.
5181 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5182 (nbsd_thread_lister): Add.
5183 (nbsd_nat_target::thread_alive): Likewise.
5184 (nbsd_nat_target::thread_name): Likewise.
5185 (nbsd_add_threads): Likewise.
5186 (update_thread_list::post_attach): Likewise.
5187 (nbsd_nat_target::update_thread_list): Likewise.
5188 (post_attach::pid_to_str): Likewise.
5189
6ee448cc
TT
51902020-04-06 Tom Tromey <tromey@adacore.com>
5191
5192 * ada-valprint.c (print_variant_part): Extract the variant field.
5193 (print_field_values): Use the field as the outer value when
5194 recursing.
5195
dea34e8c
TT
51962020-04-06 Tom Tromey <tromey@adacore.com>
5197
5198 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5199 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5200 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5201 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5202 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5203
93689ce9
TT
52042020-04-06 Tom Tromey <tromey@adacore.com>
5205
5206 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5207 TYPE_CODE_ERROR.
5208
79743962
KR
52092020-04-06 Kamil Rytarowski <n54@gmx.com>
5210
5211 * nbsd-tdep.c: Include "gdbarch.h".
5212 Define enum with NetBSD signal numbers.
5213 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5214 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5215 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5216 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5217 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5218 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5219 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5220 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5221 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5222 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5223 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5224 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5225
9e7c9a03
HD
52262020-04-03 Hannes Domani <ssbssa@yahoo.de>
5227
5228 PR gdb/25325
5229 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5230
d9e49b61
TT
52312020-04-03 Tom Tromey <tromey@adacore.com>
5232
5233 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5234 Read constant block.
5235
e0fc5c3f
SM
52362020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5237
5238 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5239 (gdb_bfd_get_full_section_contents): New declaration.
5240 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5241 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5242 gdb_bfd_get_full_section_contents.
5243
e2ff18a0
SM
52442020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5245
5246 * exec.c (build_section_table): Replace internal_error with
5247 gdb_assert.
5248 (section_table_xfer_memory_partial): Likewise.
5249 * mdebugread.c (parse_partial_symbols): Likewise.
5250 * psymtab.c (lookup_partial_symbol): Likewise.
5251 * utils.c (wrap_here): Likewise.
5252
0830d301
TT
52532020-04-02 Tom Tromey <tromey@adacore.com>
5254
5255 * f-lang.c (build_fortran_types): Use arch_type to initialize
5256 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5257
e7da7f8f
TT
52582020-04-02 Tom Tromey <tromey@adacore.com>
5259
5260 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5261 of attributes.
5262
c90d28ac
AB
52632020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5264 Bernd Edlinger <bernd.edlinger@hotmail.de>
5265 Tom Tromey <tromey@adacore.com>
5266
5267 * buildsym.c (buildsym_compunit::record_line): Remove
5268 deduplication code.
5269
1aa98955
TV
52702020-04-02 Tom de Vries <tdevries@suse.de>
5271
5272 PR ada/24671
5273 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5274
d3214198
TV
52752020-04-02 Tom de Vries <tdevries@suse.de>
5276
5277 * dwarf2/read.c (dwarf2_gdb_index_functions,
5278 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5279 NULL.
5280 * psymtab.c (psym_lookup_global_symbol_language): New function.
5281 (psym_functions): Init psym_lookup_global_symbol_language with
5282 psym_lookup_global_symbol_language.
5283 * symfile-debug.c (debug_sym_quick_functions): Init
5284 lookup_global_symbol_language with NULL.
5285 * symfile.c (set_initial_language): Remove fixme comment.
5286 * symfile.h (struct quick_symbol_functions): Add
5287 lookup_global_symbol_language.
5288 * symtab.c (find_quick_global_symbol_language): New function.
5289 (find_main_name): Use find_quick_global_symbol_language.
5290
2836752f
SM
52912020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5292
5293 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5294
64dc2d4b
BE
52952020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5296
5297 * buildsym.c (record_line): Fix undefined behavior and preserve
5298 lines at eof.
5299
bbe3dc41
BE
53002020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5301
5302 * buildsym.c (record_line): Fix the resizing condition.
5303
6b4a335b
TT
53042020-04-01 Tom Tromey <tom@tromey.com>
5305
5306 * value.h (value_literal_complex): Add comment.
5307 * valops.c (value_literal_complex): Refer to value.h.
5308
3638a098
TT
53092020-04-01 Tom Tromey <tom@tromey.com>
5310
5311 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5312 (scalar_type): New rule, from typebase.
5313 (typebase): Use scalar_type. Recognize complex types.
5314 (field_name): Handle FLOAT_KEYWORD.
5315 (ident_tokens): Add _Complex and __complex__.
5316
c34e8714
TT
53172020-04-01 Tom Tromey <tom@tromey.com>
5318
5319 PR exp/25299:
5320 * valarith.c (promotion_type, complex_binop): New functions.
5321 (scalar_binop): Handle complex numbers. Use promotion_type.
5322 (value_pos, value_neg, value_complement): Handle complex numbers.
5323
fa649bb7
TT
53242020-04-01 Tom Tromey <tom@tromey.com>
5325
5326 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5327 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5328 (parse_number): Handle complex numbers.
5329
981c08ce
TT
53302020-04-01 Tom Tromey <tom@tromey.com>
5331
5332 * c-valprint.c (c_decorations): Change complex suffix to "i".
5333
4c99290d
TT
53342020-04-01 Tom Tromey <tom@tromey.com>
5335
5336 * valprint.c (generic_value_print_complex): Use accessors.
5337 * value.h (value_real_part, value_imaginary_part): Declare.
5338 * valops.c (value_real_part, value_imaginary_part): New
5339 functions.
5340 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5341
5b930b45
TT
53422020-04-01 Tom Tromey <tom@tromey.com>
5343
5344 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5345 (read_range_type): Update.
5346 * mdebugread.c (basic_type): Update.
5347 * go-lang.c (build_go_types): Use init_complex_type.
5348 * gdbtypes.h (struct main_type) <complex_type>: New member.
5349 (init_complex_type): Update.
5350 (arch_complex_type): Don't declare.
5351 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5352 Make name if none given. Use alloc_type_copy. Look for cached
5353 complex type.
5354 (arch_complex_type): Remove.
5355 (gdbtypes_post_init): Use init_complex_type.
5356 * f-lang.c (build_fortran_types): Use init_complex_type.
5357 * dwarf2/read.c (read_base_type): Update.
5358 * d-lang.c (build_d_types): Use init_complex_type.
5359 * ctfread.c (read_base_type): Update.
5360
53cccef1
TBA
53612020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5362
5363 * infrun.c (stop_all_threads): Update assertion, plus when
5364 stopping threads, take into account that we might be trying
5365 to stop an all-stop target.
5366 (stop_waiting): Call 'stop_all_threads' if there exists a
5367 non-stop target.
5368
a0714d30
TBA
53692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5370
5371 * target.h (exists_non_stop_target): New function declaration.
5372 * target.c (exists_non_stop_target): New function.
5373
60e22c1e
HD
53742020-04-01 Hannes Domani <ssbssa@yahoo.de>
5375
5376 PR gdb/24789
5377 * eval.c (is_integral_or_integral_reference): New function.
5378 (evaluate_subexp_standard): Allow integer references in
5379 pointer arithmetic.
5380
e139a727
TBA
53812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5382
5383 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5384 check for no ptid in the stop reply when the target is non-stop.
5385
e0802d59
TT
53862020-04-01 Tom Tromey <tromey@adacore.com>
5387
5388 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5389 "name" parameter to rvalue reference. Initialize m_name_holder.
5390 <lookup_name_info>: New overloads.
5391 <name>: Return gdb::string_view.
5392 <c_str>: New method.
5393 <make_ignore_params>: Update.
5394 <search_name_hash>: Update.
5395 <language_lookup_name>: Return const char *.
5396 <m_name>: Change type.
5397 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5398 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5399 (lookup_name_info::match_any): Update.
5400 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5401 Update.
5402 * minsyms.c (linkage_name_str): Update.
5403 * language.c (default_symbol_name_matcher): Update.
5404 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5405 Update.
5406 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5407 (ada_lookup_name_info::ada_lookup_name_info): Update.
5408 (literal_symbol_name_matcher): Update.
5409
8c072cb6
TT
54102020-04-01 Tom Tromey <tromey@adacore.com>
5411
5412 * psymtab.c (psymtab_search_name): Remove function.
5413 (psym_lookup_symbol): Create search name and lookup name here.
5414 (lookup_partial_symbol): Remove "name" parameter; add
5415 lookup_name.
5416 (psym_expand_symtabs_for_function): Update.
5417
6f29a534
TT
54182020-03-31 Joel Jones <joelkevinjones@gmail.com>
5419
5420 PR tui/25597:
5421 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5422
af62665e
TT
54232020-03-31 Tom Tromey <tromey@adacore.com>
5424
5425 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5426 memcpy.
5427
d1a89da5
NC
54282020-03-30 Nelson Chu <nelson.chu@sifive.com>
5429
5430 * features/riscv/32bit-csr.xml: Regenerated.
5431 * features/riscv/64bit-csr.xml: Regenerated.
5432
d8af9068
TT
54332020-03-30 Tom Tromey <tromey@adacore.com>
5434
5435 * ada-valprint.c (print_variant_part): Update.
5436 * ada-lang.h (ada_which_variant_applies): Update.
5437 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5438 outer_valaddr parameters; replace with "outer" value parameter.
5439 (to_fixed_variant_branch_type): Update.
5440
227c0bf4
PFC
54412020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5442
5443 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5444 <list>. Remove inclusion of observable.h.
5445 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5446 (struct arch_lwp_info): New struct.
5447 (class ppc_linux_dreg_interface): New class.
5448 (struct ppc_linux_process_info): New struct.
5449 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5450 <low_new_clone, low_forget_process, low_prepare_to_resume>
5451 <copy_thread_dreg_state, mark_thread_stale>
5452 <mark_debug_registers_changed, register_hw_breakpoint>
5453 <clear_hw_breakpoint, register_wp, clear_wp>
5454 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5455 <num_memory_accesses, get_trigger_type>
5456 <create_watchpoint_request, hwdebug_point_cmp>
5457 <init_arch_lwp_info, get_arch_lwp_info>
5458 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5459 methods.
5460 <struct ptid_hash>: New inner struct.
5461 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5462 members.
5463 (saved_dabr_value, hwdebug_info, max_slots_number)
5464 (struct hw_break_tuple, struct thread_points, ppc_threads)
5465 (have_ptrace_hwdebug_interface)
5466 (hwdebug_find_thread_points_by_tid)
5467 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5468 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5469 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5470 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5471 use m_dreg_interface.
5472 (hwdebug_point_cmp): Change to...
5473 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5474 reference arguments instead of pointers.
5475 (ppc_linux_nat_target::ranged_break_num_registers): Use
5476 m_dreg_interface.
5477 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5478 m_dreg_interface. Call register_hw_breakpoint.
5479 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5480 m_dreg_interface. Call clear_hw_breakpoint.
5481 (get_trigger_type): Change to...
5482 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5483 comment.
5484 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5485 use m_dreg_interface. Call register_hw_breakpoint.
5486 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5487 use m_dreg_interface. Call clear_hw_breakpoint.
5488 (can_use_watchpoint_cond_accel): Change to...
5489 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5490 method. Update comment, use m_dreg_interface and
5491 m_process_info.
5492 (calculate_dvc): Change to...
5493 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5494 m_dreg_interface.
5495 (num_memory_accesses): Change to...
5496 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5497 (check_condition): Change to...
5498 (ppc_linux_nat_target::check_condition): ...this method.
5499 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5500 comment, use m_dreg_interface.
5501 (create_watchpoint_request): Change to...
5502 (ppc_linux_nat_target::create_watchpoint_request): ...this
5503 method. Use m_dreg_interface.
5504 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5505 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5506 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5507 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5508 (ppc_linux_nat_target::low_forget_process)
5509 (ppc_linux_nat_target::low_new_fork)
5510 (ppc_linux_nat_target::low_new_clone)
5511 (ppc_linux_nat_target::low_delete_thread)
5512 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5513 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5514 only call mark_thread_stale.
5515 (ppc_linux_thread_exit): Remove.
5516 (ppc_linux_nat_target::stopped_data_address): Change to...
5517 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5518 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5519 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5520 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5521 comment. Call low_stopped_data_address.
5522 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5523 m_dreg_interface.
5524 (ppc_linux_nat_target::masked_watch_num_registers): Use
5525 m_dreg_interface.
5526 (ppc_linux_nat_target::copy_thread_dreg_state)
5527 (ppc_linux_nat_target::mark_thread_stale)
5528 (ppc_linux_nat_target::mark_debug_registers_changed)
5529 (ppc_linux_nat_target::register_hw_breakpoint)
5530 (ppc_linux_nat_target::clear_hw_breakpoint)
5531 (ppc_linux_nat_target::register_wp)
5532 (ppc_linux_nat_target::clear_wp)
5533 (ppc_linux_nat_target::init_arch_lwp_info)
5534 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5535 (_initialize_ppc_linux_nat): Remove observer callback.
5536
4db10d8f
PFC
55372020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5538
5539 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5540 (ppc_linux_nat_target::auxv_parse)
5541 (ppc_linux_nat_target::read_description)
5542 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5543 Move up.
5544
1310c1b0
PFC
55452020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5546
5547 * linux-nat.h (low_new_clone): New method.
5548 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5549
69b037c3
SM
55502020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5551
5552 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5553 (dbx_expand_psymtab): ... this.
5554 (start_psymtab): Update.
5555 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5556 (mdebug_expand_psymtab): ... this.
5557 (parse_partial_symbols): Update.
5558 (new_psymtab): Update.
5559 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5560 (xcoff_expand_psymtab): ... this.
5561 (xcoff_start_psymtab): Update.
5562
48993951
SM
55632020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5566 <expand_dependencies>: ... this.
5567 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5568 (partial_symtab::expand_dependencies): ... this.
5569 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5570 Update.
5571 (dwarf2_psymtab::expand_psymtab): Update.
5572 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5573 * mdebugread.c (psymtab_to_symtab_1): Update.
5574 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5575
3ad83046
SM
55762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5577
5578 * psympriv.h (discard_psymtab): Remove.
5579 * dbxread.c (dbx_end_psymtab): Update.
5580 * xcoffread.c (xcoff_end_psymtab): Update.
5581
4d1b9ab6
TT
55822020-03-28 Tom Tromey <tom@tromey.com>
5583
5584 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5585 comment.
5586
f1749218
TT
55872020-03-28 Tom Tromey <tom@tromey.com>
5588
5589 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5590
ebea7626
HD
55912020-03-27 Hannes Domani <ssbssa@yahoo.de>
5592
5593 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5594
a879b4d5
JB
55952020-03-26 John Baldwin <jhb@FreeBSD.org>
5596
5597 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5598
0826b30a
TT
55992020-03-26 Tom Tromey <tom@tromey.com>
5600
5601 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5602 (mark_common_block_symbol_computed, read_tag_string_type)
5603 (attr_to_dynamic_prop, read_subrange_type): Update.
5604 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5605 to be methods on struct attribute.
5606 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5607 (read_call_site_scope, partial_die_info::read)
5608 (partial_die_info::read, lookup_die_type, follow_die_ref):
5609 Update.
5610 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5611 from dwarf2_get_ref_die_offset.
5612 (attribute::constant_value): New method, from
5613 dwarf2_get_attr_constant_value.
5614 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5615 Declare method.
5616 <constant_value>: New method.
5617
2b2558bf
TT
56182020-03-26 Tom Tromey <tom@tromey.com>
5619
5620 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5621 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5622 (dwarf_type_encoding_name): Move to stringify.c.
5623 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5624 * dwarf2/stringify.c: New file.
5625 * dwarf2/stringify.h: New file.
5626
eeb64781
TT
56272020-03-26 Tom Tromey <tom@tromey.com>
5628
5629 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5630 Rewrite.
5631
a39fdb41
TT
56322020-03-26 Tom Tromey <tom@tromey.com>
5633
5634 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5635 methods.
5636 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5637 (lookup_ranges_base): Likewise.
5638 (read_cutu_die_from_dwo, read_full_die_1): Update.
5639
436c571c
TT
56402020-03-26 Tom Tromey <tom@tromey.com>
5641
5642 * dwarf2/read.c (read_import_statement, read_file_scope)
5643 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5644 (read_lexical_block_scope, read_call_site_scope)
5645 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5646 (handle_struct_member_die, process_structure_scope)
5647 (update_enumeration_type_from_children)
5648 (process_enumeration_scope, read_array_type, read_common_block)
5649 (read_namespace, read_module, read_subroutine_type): Update.
5650 (sibling_die): Remove.
5651
052c8bb8
TT
56522020-03-26 Tom Tromey <tom@tromey.com>
5653
5654 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5655 (build_type_psymtabs_reader, read_structure_type)
5656 (read_enumeration_type, read_full_die_1): Update.
5657 (dwarf2_attr_no_follow): Move to die.h.
5658 * dwarf2/die.h (struct die_info) <attr>: New method.
5659
2b24b6e4
TT
56602020-03-26 Tom Tromey <tom@tromey.com>
5661
5662 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5663 <base_address>: Now an optional.
5664 (dwarf2_find_base_address, dwarf2_rnglists_process)
5665 (dwarf2_ranges_process, fill_in_loclist_baton)
5666 (dwarf2_symbol_mark_computed): Update.
5667
c2d50fd0
TT
56682020-03-26 Tom Tromey <tom@tromey.com>
5669
5670 * dwarf2/read.c (struct die_info): Move to die.h.
5671 * dwarf2/die.h: New file.
5672
0df7ad3a
TT
56732020-03-26 Tom Tromey <tom@tromey.com>
5674
5675 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5676 * dwarf2/read.c
5677 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5678 Move to line-header.c.
5679 (read_checked_initial_length_and_offset, read_formatted_entries):
5680 Likewise.
5681 (dwarf_decode_line_header): Split into two.
5682 * dwarf2/line-header.c
5683 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5684 Move from read.c.
5685 (read_checked_initial_length_and_offset, read_formatted_entries):
5686 Likewise.
5687 (dwarf_decode_line_header): New function, split from read.c.
5688
86c0bb4c
TT
56892020-03-26 Tom Tromey <tom@tromey.com>
5690
5691 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5692 Declare method.
5693 * dwarf2/read.c (read_attribute_value): Update.
5694 (dwarf2_per_objfile::read_line_string): Rename from
5695 read_indirect_line_string.
5696 (read_formatted_entries): Update.
5697
2ef46c2f
TT
56982020-03-26 Tom Tromey <tom@tromey.com>
5699
5700 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5701 variable.
5702
4f9c1eda
TT
57032020-03-26 Tom Tromey <tom@tromey.com>
5704
5705 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5706 const.
5707 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5708 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5709 parameter const.
5710
5a0e026f
TT
57112020-03-26 Tom Tromey <tom@tromey.com>
5712
5713 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5714 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5715 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5716 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5717
8844c11b
TT
57182020-03-26 Tom Tromey <tom@tromey.com>
5719
5720 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5721 file_names_size, file_full_name, file_file_name>: Use const.
5722 <file_name_at, file_names>: Add const overload.
5723 * dwarf2/line-header.c (line_header::file_file_name)
5724 (line_header::file_full_name): Update.
5725
c90ec28a
TT
57262020-03-26 Tom Tromey <tom@tromey.com>
5727
5728 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5729 (macro_start_file, consume_improper_spaces)
5730 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5731 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5732 (dwarf_decode_macros): Move to macro.c.
5733 * dwarf2/macro.c: New file.
5734 * dwarf2/macro.h: New file.
5735 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5736
4f44ae6c
TT
57372020-03-26 Tom Tromey <tom@tromey.com>
5738
5739 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5740 method.
5741 * dwarf2/section.c: New method. From
5742 read_indirect_string_at_offset_from.
5743 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5744 (read_indirect_string_at_offset_from): Move to section.c.
5745 (read_indirect_string_at_offset): Rewrite.
5746 (read_indirect_line_string_at_offset): Remove.
5747 (read_indirect_string, read_indirect_line_string)
5748 (dwarf_decode_macro_bytes): Update.
5749
a0194fa8
TT
57502020-03-26 Tom Tromey <tom@tromey.com>
5751
5752 * dwarf2/section.h (struct dwarf2_section_info)
5753 <overload_complaint>: Declare.
5754 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5755 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5756 Rename from dwarf2_section_buffer_overflow_complaint.
5757 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5758 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5759
3d27bbdb
TT
57602020-03-26 Tom Tromey <tom@tromey.com>
5761
5762 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5763 Declare.
5764 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5765 Move from read.c.
5766 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5767 to section.c.
5768
9eac9650
TT
57692020-03-26 Tom Tromey <tom@tromey.com>
5770
5771 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5772
bf80d710
TT
57732020-03-26 Tom Tromey <tom@tromey.com>
5774
5775 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5776 "builder".
5777 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5778 parameter.
5779 (dwarf_decode_macros): Update.
5780
0314b390
TT
57812020-03-26 Tom Tromey <tom@tromey.com>
5782
5783 * dwarf2/read.c (read_attribute_value): Update.
5784 (read_indirect_string_from_dwz): Move to dwz.c; change into
5785 method.
5786 (dwarf_decode_macro_bytes): Update.
5787 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5788 * dwarf2/dwz.c: New file.
5789 * Makefile.in (COMMON_SFILES): Add dwz.c.
5790
9fda78b6
TT
57912020-03-26 Tom Tromey <tom@tromey.com>
5792
5793 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5794 * dwarf2/read.c: Add include.
5795 * dwarf2/index-write.c: Add include.
5796 * dwarf2/index-cache.c: Add include.
5797 * dwarf2/dwz.h: New file.
5798
33aa3c10
TT
57992020-03-25 Tom Tromey <tom@tromey.com>
5800
5801 * compile/compile-object-load.c (get_out_value_type): Mention
5802 correct symbol name in error message.
5803
d503b685
HD
58042020-03-25 Hannes Domani <ssbssa@yahoo.de>
5805
5806 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5807
7b1eff95
TV
58082020-03-25 Tom de Vries <tdevries@suse.de>
5809
5810 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5811 * symmisc.c (dump_symtab_1): Print user and includes fields.
5812 (maintenance_info_symtabs): Same.
5813
dd895392
AB
58142020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 PR gdb/25534
5817 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5818 (riscv_regcache_cooked_write): New function.
5819 (riscv_push_dummy_call): Use new function.
5820 (riscv_return_value): Likewise.
5821
5ab2fbf1
SM
58222020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5825 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5826 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5827 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5828 * infrun.c (follow_fork): Likewise.
5829 (follow_fork_inferior): Likewise.
5830 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5831 * linux-nat.h (class linux_nat_target): Likewise.
5832 * remote.c (class remote_target) <follow_fork>: Likewise.
5833 (remote_target::follow_fork): Likewise.
5834 * target-delegates.c: Re-generate.
5835 * target.c (default_follow_fork): Likewise.
5836 (target_follow_fork): Likewise.
5837 * target.h (struct target_ops) <follow_fork>: Likewise.
5838 (target_follow_fork): Likewise.
5839
a64fafb5
TV
58402020-03-24 Tom de Vries <tdevries@suse.de>
5841
5842 * psymtab.c (maintenance_info_psymtabs): Print user field.
5843
fe26d3a3
TT
58442020-03-20 Tom Tromey <tromey@adacore.com>
5845
5846 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5847 const.
5848 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5849 const.
5850
c884cc46
SM
58512020-03-20 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * ptrace.m4: Don't check for ptrace declaration.
5854 * config.in: Re-generate.
5855 * configure: Re-generate.
5856 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5857 not defined.
5858
1ff700c2
KR
58592020-03-20 Kamil Rytarowski <n54@gmx.com>
5860
5861 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5862 `PTRACE_TYPE_RET'.
5863 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5864 * sparc-nat.c (gdb_ptrace): Likewise.
5865 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5866
f7d4f0b1
TT
58672020-03-20 Tom Tromey <tromey@adacore.com>
5868
5869 * c-exp.y (lex_one_token): Fix assert.
5870
f67210ff
TT
58712020-03-20 Tom Tromey <tromey@adacore.com>
5872
5873 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5874 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5875 strncpy call.
5876
1773be9e
TT
58772020-03-20 Tom Tromey <tromey@adacore.com>
5878
5879 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5880
70304be9
TT
58812020-03-20 Tom Tromey <tromey@adacore.com>
5882
5883 * ada-valprint.c (print_variant_part): Remove parameters; switch
5884 to value-based API.
5885 (print_field_values): Likewise.
5886 (ada_val_print_struct_union): Likewise.
5887 (ada_value_print_1): Update.
5888
9faa006d
KR
58892020-03-20 Kamil Rytarowski <n54@gmx.com>
5890
5891 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5892 nbsd_nat_target instead of inf_ptrace_target.
5893 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5894 nbsd_nat_target.
5895
4a90f062
KR
58962020-03-20 Kamil Rytarowski <n54@gmx.com>
5897
5898 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5899 it to the ptrace call.
5900 * (store_registers): Likewise.
5901
59022020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5903
5904 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5905 it to the ptrace call.
5906 * (store_registers): Likewise.
5907
2d07da27
LM
59082020-03-19 Luis Machado <luis.machado@linaro.org>
5909
5910 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5911 valid, fetch vg value from ptrace.
5912
f09db380
KR
59132020-03-19 Kamil Rytarowski <n54@gmx.com>
5914 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5915 * inf-ptrace.c: Likewise.
5916 * (gdb_ptrace): Add.
5917 * (inf_ptrace_target::resume): Update.
5918 * (inf_ptrace_target::xfer_partial): Likewise.
5919 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5920 * (inf_ptrace_peek_poke): Update.
5921
fcc7376e
KR
59222020-03-19 Kamil Rytarowski <n54@gmx.com>
5923
5924 * x86-bsd-nat.c (gdb_ptrace): New.
5925 * (x86bsd_dr_set): Add new argument `ptid'.
5926 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5927 x86bsd_dr_set_addr): Update.
5928
cada5fc9
AB
59292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5930
5931 * remote.c (remote_target::process_stop_reply): Handle events for
5932 all threads differently.
5933
19a2740f
AB
59342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5935
5936 * completer.c (completion_tracker::remove_completion): Define new
5937 function.
5938 * completer.h (completion_tracker::remove_completion): Declare new
5939 function.
5940 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5941 when adding a C++ function symbol.
5942
724fd9ba
AB
59432020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5944
5945 * completer.c (completion_tracker::completion_hash_entry): Define
5946 new class.
5947 (advance_to_filename_complete_word_point): Call
5948 recompute_lowest_common_denominator.
5949 (completion_tracker::completion_tracker): Call discard_completions
5950 to setup the hash table.
5951 (completion_tracker::discard_completions): Allow for being called
5952 from the constructor, pass new equal function, and element deleter
5953 when constructing the hash table. Initialise new class member
5954 variables.
5955 (completion_tracker::maybe_add_completion): Remove use of
5956 m_entries_vec, and store more information into m_entries_hash.
5957 (completion_tracker::recompute_lcd_visitor): New function, most
5958 content taken from...
5959 (completion_tracker::recompute_lowest_common_denominator):
5960 ...here, this now just visits each item in the hash calling the
5961 above visitor.
5962 (completion_tracker::build_completion_result): Remove use of
5963 m_entries_vec, call recompute_lowest_common_denominator.
5964 * completer.h (completion_tracker::have_completions): Remove use
5965 of m_entries_vec.
5966 (completion_tracker::completion_hash_entry): Declare new class.
5967 (completion_tracker::recompute_lowest_common_denominator): Change
5968 function signature.
5969 (completion_tracker::recompute_lcd_visitor): Declare new function.
5970 (completion_tracker::m_entries_vec): Delete.
5971 (completion_tracker::m_entries_hash): Initialize to NULL.
5972 (completion_tracker::m_lowest_common_denominator_valid): New
5973 member variable.
5974 (completion_tracker::m_lowest_common_denominator_max_length): New
5975 member variable.
5976
5a82b8a1
KR
59772020-03-17 Kamil Rytarowski <n54@gmx.com>
5978
5979 * regformats/regdef.h: Put reg in gdb namespace.
5980
fb516a69
KR
59812020-03-17 Kamil Rytarowski <n54@gmx.com>
5982
5983 * i386-bsd-nat.c (gdb_ptrace): New.
5984 * (i386bsd_fetch_inferior_registers,
5985 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5986 * (i386bsd_fetch_inferior_registers,
5987 i386bsd_store_inferior_registers) Use gdb_ptrace.
5988
1c0aa1fb
KR
59892020-03-17 Kamil Rytarowski <n54@gmx.com>
5990
5991 * amd64-bsd-nat.c (gdb_ptrace): New.
5992 * (amd64bsd_fetch_inferior_registers,
5993 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5994 * (amd64bsd_fetch_inferior_registers,
5995 amd64bsd_store_inferior_registers) Use gdb_ptrace.
5996
5ccd2fb7
KR
59972020-03-17 Kamil Rytarowski <n54@gmx.com>
5998
5999 * user-regs.c (user_reg::read): Rename to...
6000 (user_reg::xread): ...this.
6001 * (append_user_reg): Rename argument `read' to `xread'.
6002 * (user_reg_add_builtin): Likewise.
6003 * (user_reg_add): Likewise.
6004 * (value_of_user_reg): Likewise.
6005
2108a63a
KR
60062020-03-17 Kamil Rytarowski <n54@gmx.com>
6007
6008 * sparc-nat.c (gdb_ptrace): New.
6009 * sparc-nat.c (sparc_fetch_inferior_registers)
6010 (sparc_store_inferior_registers) Remove obsolete comment.
6011 * sparc-nat.c (sparc_fetch_inferior_registers)
6012 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6013 * sparc-nat.c (sparc_fetch_inferior_registers)
6014 (sparc_store_inferior_registers) Use gdb_ptrace.
6015
a225c9a8
KR
60162020-03-17 Kamil Rytarowski <n54@gmx.com>
6017
6018 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6019 it to the ptrace call.
6020 * sh-nbsd-nat.c (store_registers): Likewise.
6021
98097623
KR
60222020-03-17 Kamil Rytarowski <n54@gmx.com>
6023
6024 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6025 nbsd_nat_target instead of inf_ptrace_target.
6026 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6027 nbsd_nat_target.
6028
9e38d619
KR
60292020-03-17 Kamil Rytarowski <n54@gmx.com>
6030
6031 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6032
a2ecbe9f
KR
60332020-03-17 Kamil Rytarowski <n54@gmx.com>
6034
6035 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6036 <sys/sysctl.h>.
6037 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6038
58990295
TV
60392020-03-17 Tom de Vries <tdevries@suse.de>
6040
6041 PR gdb/23710
6042 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6043 fields.
6044 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6045 fields.
6046 (process_imported_unit_die): Skip import of c++ CUs.
6047
771dd3a8
TT
60482020-03-16 Tom Tromey <tom@tromey.com>
6049
6050 * p-valprint.c (pascal_object_print_value): Initialize
6051 base_value.
6052
817a7585
AK
60532020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6054 Shahab Vahedi <shahab@synopsys.com>
6055
6056 * Makefile.in: Add arch/arc.o
6057 * configure.tgt: Likewise.
6058 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6059 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6060 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6061 * arc-tdep.h (arc_read_description): Add proto type.
6062 * arch/arc.c: New file.
6063 * arch/arc.h: Likewise.
6064 * features/Makefile: Replace old target descriptions with new.
6065 * features/arc-arcompact.c: Remove.
6066 * features/arc-arcompact.xml: Likewise.
6067 * features/arc-v2.c: Likewise
6068 * features/arc-v2.xml: Likewise
6069 * features/arc/aux-arcompact.xml: New file.
6070 * features/arc/aux-v2.xml: Likewise.
6071 * features/arc/core-arcompact.xml: Likewise.
6072 * features/arc/core-v2.xml: Likewise.
6073 * features/arc/aux-arcompact.c: Generate.
6074 * features/arc/aux-v2.c: Likewise.
6075 * features/arc/core-arcompact.c: Likewise.
6076 * features/arc/core-v2.c: Likewise.
6077 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6078
67430cd0
TT
60792020-03-16 Tom Tromey <tromey@adacore.com>
6080
6081 PR gdb/25663:
6082 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6083 putting value into bcache.
6084
30efb6c7
SM
60852020-03-16 Simon Marchi <simon.marchi@efficios.com>
6086
6087 PR gdb/21500
6088 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6089 to...
6090 (amd64_windows_init_abi_common): ... this. Don't set size of
6091 long type.
6092 (amd64_windows_init_abi): New function.
6093 (amd64_cygwin_init_abi): New function.
6094 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6095 the Cygwin OS ABI.
6096 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6097 comment.
6098
8db52437
SM
60992020-03-16 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6102 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6103 (pe_import_directory_entry): New struct type.
6104 (is_linked_with_cygwin_dll): New function.
6105 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6106 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6107 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6108
5982a56a
SM
61092020-03-16 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6112 i386_cygwin_core_osabi_sniffer.
6113
7a1998df
SM
61142020-03-16 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * i386-cygwin-tdep.c: Rename to...
6117 * i386-windows-tdep.c: ... this.
6118 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6119 i386-windows-tdep.c.
6120 * configure.tgt: Likewise.
6121
053205cc
SM
61222020-03-16 Simon Marchi <simon.marchi@efficios.com>
6123
6124 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6125 * osabi.c (gdb_osabi_names): Add "Windows".
6126 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6127 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6128 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6129 i386_cygwin_osabi_sniffer.
6130 (_initialize_i386_cygwin_tdep): Register OS ABI
6131 GDB_OSABI_WINDOWS for i386.
6132 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6133 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6134 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6135 for x86-64.
6136 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6137 when the target matches '*-*-mingw*'.
6138
fe4b2ee6
SM
61392020-03-16 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * defs.h (enum gdb_osabi): Move to...
6142 * osabi.h (enum gdb_osabi): ... here.
6143 * gdbarch.sh: Include osabi.h in gdbarch.h.
6144 * gdbarch.h: Re-generate.
6145
cb9b645d
SM
61462020-03-16 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6149 function.
6150 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6151
3293bbaf
TT
61522020-03-14 Tom Tromey <tom@tromey.com>
6153
6154 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6155 for C++.
6156 (c_type_print_modifier): Likewise. Add "language" parameter.
6157 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6158 (c_type_print_base_1): Update.
6159 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6160 constants.
6161 * type-stack.c (type_stack::insert): Handle tp_atomic and
6162 tp_restrict.
6163 (type_stack::follow_type_instance_flags): Likewise.
6164 (type_stack::follow_types): Likewise. Merge type-following code.
6165 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6166 (space_identifier, cv_with_space_id)
6167 (const_or_volatile_or_space_identifier_noopt)
6168 (const_or_volatile_or_space_identifier): Remove.
6169 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6170 rules.
6171 (ptr_operator, typebase): Update.
6172 (enum token_flag) <FLAG_C>: New constant.
6173 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6174 "_Atomic".
6175 (lex_one_token): Handle FLAG_C.
6176
154151a6
KR
61772020-03-14 Kamil Rytarowski <n54@gmx.com>
6178
6179 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6180 it to the ptrace call.
6181 * m68k-bsd-nat.c (store_registers): Likewise.
6182
bc107784
KR
61832020-03-14 Kamil Rytarowski <n54@gmx.com>
6184
6185 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6186 gdb_byte *.
6187 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6188 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6189 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6190
01a80117
KR
61912020-03-14 Kamil Rytarowski <n54@gmx.com>
6192
6193 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6194 nbsd_nat_target instead of inf_ptrace_target.
6195 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6196 nbsd_nat_target.
6197
f90280ca
KR
61982020-03-14 Kamil Rytarowski <n54@gmx.com>
6199
6200 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6201 register_t.
6202
6def66f1
KR
62032020-03-14 Kamil Rytarowski <n54@gmx.com>
6204
6205 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6206 it to the ptrace call.
6207 * alpha-bsd-nat.c (store_registers): Likewise.
6208
66eaca97
KR
62092020-03-14 Kamil Rytarowski <n54@gmx.com>
6210
6211 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6212 includes.
6213 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6214 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6215 fill_fpregset): Likewise.
6216
4fed520b
KR
62172020-03-14 Kamil Rytarowski <n54@gmx.com>
6218
6219 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6220 nbsd_nat_target instead of inf_ptrace_target.
6221 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6222 nbsd_nat_target.
6223
2190cf06
KR
62242020-03-14 Kamil Rytarowski <n54@gmx.com>
6225
6226 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6227 register_t.
6228
75c56d3d
KR
62292020-03-14 Kamil Rytarowski <n54@gmx.com>
6230
6231 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6232 it to the ptrace call.
6233 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6234 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6235 * arm-nbsd-nat.c (store_register): Likewise.
6236 * arm-nbsd-nat.c (store_regs): Likewise.
6237 * arm-nbsd-nat.c (store_fp_register): Likewise.
6238 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6239
6018d381
KR
62402020-03-14 Kamil Rytarowski <n54@gmx.com>
6241
6242 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6243 nbsd_nat_target instead of inf_ptrace_target.
6244 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6245 nbsd_nat_target.
6246
013f99f0
KR
62472020-03-14 Kamil Rytarowski <n54@gmx.com>
6248
6249 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6250 it to the ptrace call.
6251 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6252
12753073
KR
62532020-03-14 Kamil Rytarowski <n54@gmx.com>
6254
6227b330
KR
6255 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6256 it to the ptrace call.
6257 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6258
62592020-03-14 Kamil Rytarowski <n54@gmx.com>
6260
6261 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6262 gdb_byte *.
12753073
KR
6263 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6264
d5be5fa4
KR
62652020-03-14 Kamil Rytarowski <n54@gmx.com>
6266
6267 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6268 instead of inf_ptrace_target.
6269 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6270 nbsd_nat_target.
6271
8110f842
KR
62722020-03-14 Kamil Rytarowski <n54@gmx.com>
6273
6274 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6275 register_t.
6276
52feded7
KR
62772020-03-14 Kamil Rytarowski <n54@gmx.com>
6278
6279 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6280 register_t.
6281
25567eee
KR
62822020-03-14 Kamil Rytarowski <n54@gmx.com>
6283
6284 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6285 register_t.
6286
426a9c18
TT
62872020-03-13 Tom Tromey <tom@tromey.com>
6288
6289 * value.h (val_print): Don't declare.
6290 * valprint.h (val_print_array_elements)
6291 (val_print_scalar_formatted, generic_val_print): Don't declare.
6292 * valprint.c (generic_val_print_array): Take a struct value.
6293 (generic_val_print_ptr, generic_val_print_memberptr)
6294 (generic_val_print_bool, generic_val_print_int)
6295 (generic_val_print_char, generic_val_print_complex)
6296 (generic_val_print): Remove.
6297 (generic_value_print): Update.
6298 (do_val_print): Remove unused parameters. Don't call
6299 la_val_print.
6300 (val_print): Remove.
6301 (common_val_print): Update. Don't call value_check_printable.
6302 (val_print_scalar_formatted, val_print_array_elements): Remove.
6303 * rust-lang.c (rust_val_print): Remove.
6304 (rust_language_defn): Update.
6305 * p-valprint.c (pascal_val_print): Remove.
6306 (pascal_value_print_inner): Update.
6307 (pascal_object_print_val_fields, pascal_object_print_val):
6308 Remove.
6309 (pascal_object_print_static_field): Update.
6310 * p-lang.h (pascal_val_print): Don't declare.
6311 * p-lang.c (pascal_language_defn): Update.
6312 * opencl-lang.c (opencl_language_defn): Update.
6313 * objc-lang.c (objc_language_defn): Update.
6314 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6315 * m2-lang.h (m2_val_print): Don't declare.
6316 * m2-lang.c (m2_language_defn): Update.
6317 * language.h (struct language_defn) <la_val_print>: Remove.
6318 * language.c (unk_lang_value_print_inner): Rename. Change
6319 argument types.
6320 (unknown_language_defn, auto_language_defn): Update.
6321 * go-valprint.c (go_val_print): Remove.
6322 * go-lang.h (go_val_print): Don't declare.
6323 * go-lang.c (go_language_defn): Update.
6324 * f-valprint.c (f_val_print): Remove.
6325 * f-lang.h (f_value_print): Don't declare.
6326 * f-lang.c (f_language_defn): Update.
6327 * d-valprint.c (d_val_print): Remove.
6328 * d-lang.h (d_value_print): Don't declare.
6329 * d-lang.c (d_language_defn): Update.
6330 * cp-valprint.c (cp_print_value_fields)
6331 (cp_print_value_fields_rtti, cp_print_value): Remove.
6332 (cp_print_static_field): Update.
6333 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6334 (c_val_print_struct, c_val_print_union, c_val_print_int)
6335 (c_val_print_memberptr, c_val_print): Remove.
6336 * c-lang.h (c_val_print_array, cp_print_value_fields)
6337 (cp_print_value_fields_rtti): Don't declare.
6338 * c-lang.c (c_language_defn, cplus_language_defn)
6339 (asm_language_defn, minimal_language_defn): Update.
6340 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6341 (ada_val_print_enum): Take a struct value.
6342 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6343 (ada_val_print): Remove.
6344 (ada_value_print_1): Update.
6345 (printable_val_type): Remove.
6346 * ada-lang.h (ada_val_print): Don't declare.
6347 * ada-lang.c (ada_language_defn): Update.
6348
42331a1e
TT
63492020-03-13 Tom Tromey <tom@tromey.com>
6350
6351 * valprint.c (do_val_print): Update.
6352 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6353 a struct value.
6354 (value_to_value_object_no_release): Declare.
6355 * python/py-value.c (value_to_value_object_no_release): New
6356 function.
6357 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6358 struct value.
6359 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6360 function.
6361 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6362 a struct value.
6363 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6364 Declare.
6365 (gdbscm_apply_val_pretty_printer): Take a struct value.
6366 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6367 value.
6368 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6369 value.
6370 * extension-priv.h (struct extension_language_ops)
6371 <apply_val_pretty_printer>: Take a struct value.
6372 * cp-valprint.c (cp_print_value): Create a struct value.
6373 (cp_print_value): Update.
6374
3a916a97
TT
63752020-03-13 Tom Tromey <tom@tromey.com>
6376
6377 * ada-valprint.c (print_field_values): Call common_val_print.
6378
b59eac37
TT
63792020-03-13 Tom Tromey <tom@tromey.com>
6380
6381 * ada-valprint.c (val_print_packed_array_elements): Remove
6382 bitoffset and val parameters. Call common_val_print.
6383 (ada_val_print_string): Remove offset, address, and original_value
6384 parameters.
6385 (ada_val_print_array): Update.
6386 (ada_value_print_array): New function.
6387 (ada_value_print_1): Call it.
6388
03371129
TT
63892020-03-13 Tom Tromey <tom@tromey.com>
6390
6391 * ada-valprint.c (ada_value_print): Use common_val_print.
6392
2e088f8b
TT
63932020-03-13 Tom Tromey <tom@tromey.com>
6394
6395 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6396
39ef85a8
TT
63972020-03-13 Tom Tromey <tom@tromey.com>
6398
6399 * ada-valprint.c (ada_value_print_num): New function.
6400 (ada_value_print_1): Use it.
6401
b9fa6e07
TT
64022020-03-13 Tom Tromey <tom@tromey.com>
6403
6404 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6405
416595d6
TT
64062020-03-13 Tom Tromey <tom@tromey.com>
6407
6408 * ada-valprint.c (ada_value_print_ptr): New function.
6409 (ada_value_print_1): Use it.
6410
5b5e15ec
TT
64112020-03-13 Tom Tromey <tom@tromey.com>
6412
6413 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6414 call common_val_print.
6415 (ada_val_print_1): Update.
6416 (ada_value_print_1): New function.
6417 (ada_value_print_inner): Rewrite.
6418
fbf54e75
TT
64192020-03-13 Tom Tromey <tom@tromey.com>
6420
6421 * cp-valprint.c (cp_print_value_fields): Update.
6422 (cp_print_value): New function.
6423
64b653ca
TT
64242020-03-13 Tom Tromey <tom@tromey.com>
6425
6426 * m2-valprint.c (m2_value_print_inner): Use
6427 cp_print_value_fields.
6428 * cp-valprint.c (cp_print_value_fields): New function.
6429 * c-valprint.c (c_value_print_struct): New function.
6430 (c_value_print_inner): Use c_value_print_struct.
6431 * c-lang.h (cp_print_value_fields): Declare.
6432
6999f067
TT
64332020-03-13 Tom Tromey <tom@tromey.com>
6434
6435 * c-valprint.c (c_value_print_array): New function.
6436 (c_value_print_inner): Use it.
6437
ce80b8bd
TT
64382020-03-13 Tom Tromey <tom@tromey.com>
6439
6440 * c-valprint.c (c_value_print_memberptr): New function.
6441 (c_value_print_inner): Use it.
6442
2faac269
TT
64432020-03-13 Tom Tromey <tom@tromey.com>
6444
6445 * c-valprint.c (c_value_print_int): New function.
6446 (c_value_print_inner): Use it.
6447
da3e2c29
TT
64482020-03-13 Tom Tromey <tom@tromey.com>
6449
6450 * c-valprint.c (c_value_print_ptr): New function.
6451 (c_value_print_inner): Use it.
6452
50836231
TT
64532020-03-13 Tom Tromey <tom@tromey.com>
6454
6455 * c-valprint.c (c_value_print_inner): Rewrite.
6456
4f412b6e
TT
64572020-03-13 Tom Tromey <tom@tromey.com>
6458
6459 * valprint.c (generic_value_print_complex): New function.
6460 (generic_value_print): Use it.
6461
f5354008
TT
64622020-03-13 Tom Tromey <tom@tromey.com>
6463
6464 * valprint.c (generic_val_print_float): Don't call
6465 val_print_scalar_formatted.
6466 (generic_val_print, generic_value_print): Update.
6467
3eec3b05
TT
64682020-03-13 Tom Tromey <tom@tromey.com>
6469
6470 * valprint.c (generic_value_print_char): New function
6471 (generic_value_print): Use it.
6472
fdddfccb
TT
64732020-03-13 Tom Tromey <tom@tromey.com>
6474
6475 * valprint.c (generic_value_print_int): New function.
6476 (generic_value_print): Use it.
6477
6dde7521
TT
64782020-03-13 Tom Tromey <tom@tromey.com>
6479
6480 * valprint.c (generic_value_print_bool): New function.
6481 (generic_value_print): Use it.
6482
4112d2e6
TT
64832020-03-13 Tom Tromey <tom@tromey.com>
6484
6485 * valprint.c (generic_val_print_func): Simplify.
6486 (generic_val_print, generic_value_print): Update.
6487
65786af6
TT
64882020-03-13 Tom Tromey <tom@tromey.com>
6489
6490 * valprint.c (generic_val_print_flags): Remove.
6491 (generic_val_print, generic_value_print): Update.
6492 (val_print_type_code_flags): Add original_value parameter.
6493
40f3ce18
TT
64942020-03-13 Tom Tromey <tom@tromey.com>
6495
6496 * valprint.c (generic_val_print): Update.
6497 (generic_value_print): Update.
6498 * valprint.c (generic_val_print_enum): Don't call
6499 val_print_scalar_formatted.
6500
2a5b130b
TT
65012020-03-13 Tom Tromey <tom@tromey.com>
6502
6503 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6504 * valprint.c (generic_value_print_ptr): New function.
6505
abc66ce9
TT
65062020-03-13 Tom Tromey <tom@tromey.com>
6507
6508 * valprint.c (generic_value_print): Rewrite.
6509
07a32858
TT
65102020-03-13 Tom Tromey <tom@tromey.com>
6511
6512 * p-valprint.c (pascal_object_print_value_fields)
6513 (pascal_object_print_value): New functions.
6514
64d64d3a
TT
65152020-03-13 Tom Tromey <tom@tromey.com>
6516
6517 * p-valprint.c (pascal_value_print_inner): Rewrite.
6518
6a95a1f5
TT
65192020-03-13 Tom Tromey <tom@tromey.com>
6520
6521 * f-valprint.c (f_value_print_innner): Rewrite.
6522
59fcdac6
TT
65232020-03-13 Tom Tromey <tom@tromey.com>
6524
6525 * m2-valprint.c (m2_print_unbounded_array): New overload.
6526 (m2_print_unbounded_array): Update.
6527 (m2_print_array_contents): Take a struct value.
6528 (m2_value_print_inner): Rewrite.
6529
d133c3e1
TT
65302020-03-13 Tom Tromey <tom@tromey.com>
6531
6532 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6533 (d_value_print_inner): New function.
6534 * d-lang.h (d_value_print_inner): Declare.
6535 * d-lang.c (d_language_defn): Use d_value_print_inner.
6536
23b0f06b
TT
65372020-03-13 Tom Tromey <tom@tromey.com>
6538
6539 * go-valprint.c (go_value_print_inner): New function.
6540 * go-lang.h (go_value_print_inner): Declare.
6541 * go-lang.c (go_language_defn): Use go_value_print_inner.
6542
5f56f7cb
TT
65432020-03-13 Tom Tromey <tom@tromey.com>
6544
6545 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6546 API.
6547 (rust_val_print): Rewrite.
6548 (rust_value_print_inner): New function, from rust_val_print.
6549 (rust_language_defn): Use rust_value_print_inner.
6550
26792ee0
TT
65512020-03-13 Tom Tromey <tom@tromey.com>
6552
6553 * ada-valprint.c (ada_value_print_inner): New function.
6554 * ada-lang.h (ada_value_print_inner): Declare.
6555 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6556
24051bbe
TT
65572020-03-13 Tom Tromey <tom@tromey.com>
6558
6559 * f-valprint.c (f_value_print_innner): New function.
6560 * f-lang.h (f_value_print_innner): Declare.
6561 * f-lang.c (f_language_defn): Use f_value_print_innner.
6562
c0941be6
TT
65632020-03-13 Tom Tromey <tom@tromey.com>
6564
6565 * p-valprint.c (pascal_value_print_inner): New function.
6566 * p-lang.h (pascal_value_print_inner): Declare.
6567 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6568
62c4663d
TT
65692020-03-13 Tom Tromey <tom@tromey.com>
6570
6571 * m2-valprint.c (m2_value_print_inner): New function.
6572 * m2-lang.h (m2_value_print_inner): Declare.
6573 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6574
62182190
TT
65752020-03-13 Tom Tromey <tom@tromey.com>
6576
6577 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6578 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6579 * c-valprint.c (c_value_print_inner): New function.
6580 * c-lang.h (c_value_print_inner): Declare.
6581 * c-lang.c (c_language_defn, cplus_language_defn)
6582 (asm_language_defn, minimal_language_defn): Use
6583 c_value_print_inner.
6584
1e592a8a
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * p-valprint.c (pascal_object_print_value_fields): Now static.
6588 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6589
7fe471e9
TT
65902020-03-13 Tom Tromey <tom@tromey.com>
6591
6592 * c-valprint.c (c_val_print_array): Simplify.
6593
d121c6ce
TT
65942020-03-13 Tom Tromey <tom@tromey.com>
6595
6596 * valprint.c (value_print_array_elements): New function.
6597 * valprint.h (value_print_array_elements): Declare.
6598
4dba70ee
TT
65992020-03-13 Tom Tromey <tom@tromey.com>
6600
6601 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6602 * mips-tdep.c (mips_print_register): Use
6603 value_print_scalar_formatted.
6604
4f9ae810
TT
66052020-03-13 Tom Tromey <tom@tromey.com>
6606
6607 * valprint.h (value_print_scalar_formatted): Declare.
6608 * valprint.c (value_print_scalar_formatted): New function.
6609
156bfec9
TT
66102020-03-13 Tom Tromey <tom@tromey.com>
6611
6612 * valprint.h (generic_value_print): Declare.
6613 * valprint.c (generic_value_print): New function.
6614
2b4e573d
TT
66152020-03-13 Tom Tromey <tom@tromey.com>
6616
6617 * valprint.c (do_val_print): Call la_value_print_inner, if
6618 available.
6619 * rust-lang.c (rust_language_defn): Update.
6620 * p-lang.c (pascal_language_defn): Update.
6621 * opencl-lang.c (opencl_language_defn): Update.
6622 * objc-lang.c (objc_language_defn): Update.
6623 * m2-lang.c (m2_language_defn): Update.
6624 * language.h (struct language_defn) <la_value_print_inner>: New
6625 member.
6626 * language.c (unknown_language_defn, auto_language_defn): Update.
6627 * go-lang.c (go_language_defn): Update.
6628 * f-lang.c (f_language_defn): Update.
6629 * d-lang.c (d_language_defn): Update.
6630 * c-lang.c (c_language_defn, cplus_language_defn)
6631 (asm_language_defn, minimal_language_defn): Update.
6632 * ada-lang.c (ada_language_defn): Update.
6633
a1f6a07c
TT
66342020-03-13 Tom Tromey <tom@tromey.com>
6635
6636 * c-valprint.c (c_value_print): Use common_val_print.
6637
410cf315
TT
66382020-03-13 Tom Tromey <tom@tromey.com>
6639
6640 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6641
72a45c93
TT
66422020-03-13 Tom Tromey <tom@tromey.com>
6643
6644 * f-valprint.c (f77_print_array_1, f_val_print): Use
6645 common_val_print.
6646
040f66bd
TT
66472020-03-13 Tom Tromey <tom@tromey.com>
6648
6649 * riscv-tdep.c (riscv_print_one_register_info): Use
6650 common_val_print.
6651
a6e05a6c
TT
66522020-03-13 Tom Tromey <tom@tromey.com>
6653
6654 * mi/mi-main.c (output_register): Use common_val_print.
6655
3444c526
TT
66562020-03-13 Tom Tromey <tom@tromey.com>
6657
6658 * infcmd.c (default_print_one_register_info): Use
6659 common_val_print.
6660
c2a44efe
TT
66612020-03-13 Tom Tromey <tom@tromey.com>
6662
6663 * valprint.h (common_val_print_checked): Declare.
6664 * valprint.c (common_val_print_checked): New function.
6665 * stack.c (print_frame_arg): Use common_val_print_checked.
6666
b0c26e99
TT
66672020-03-13 Tom Tromey <tom@tromey.com>
6668
6669 * valprint.c (do_val_print): New function, from val_print.
6670 (val_print): Use do_val_print.
6671 (common_val_print): Use do_val_print.
6672
ce3acbe9
TT
66732020-03-13 Tom Tromey <tom@tromey.com>
6674
6675 * valprint.c (value_print): Use scoped_value_mark.
6676
96c7f873
TV
66772020-03-13 Tom de Vries <tdevries@suse.de>
6678
6679 PR symtab/25646
6680 * psymtab.c (partial_symtab::partial_symtab): Don't set
6681 globals_offset and statics_offset. Push element onto
6682 current_global_psymbols and current_static_psymbols stacks.
6683 (concat): New function.
6684 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6685 element from current_global_psymbols and current_static_psymbols
6686 stacks. Concat popped elements to global_psymbols and
6687 static_symbols.
6688 (add_psymbol_to_list): Use current_global_psymbols and
6689 current_static_psymbols stacks.
6690 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6691 current_static_psymbols fields.
6692
6ba0a321
CB
66932020-03-12 Christian Biesinger <cbiesinger@google.com>
6694
6695 * corelow.c (sniff_core_bfd): Remove.
6696 (class core_target) <m_core_vec>: Remove.
6697 (core_target::core_target): Update.
6698 (core_file_fns): Remove.
6699 (deprecated_add_core_fns): Remove.
6700 (default_core_sniffer): Remove.
6701 (sniff_core_bfd): Remove.
6702 (default_check_format): Remove.
6703 (gdb_check_format): Remove.
6704 (core_target_open): Update.
6705 (core_target::get_core_register_section): Update.
6706 (get_core_registers_cb): Update.
6707 (core_target::fetch_registers): Update.
6708 * gdbcore.h (struct core_fns): Remove.
6709 (deprecated_add_core_fns): Remove.
6710 (default_core_sniffer): Remove.
6711 (default_check_format): Remove.
6712
227031b2
TT
67132020-03-12 Tom Tromey <tom@tromey.com>
6714
6715 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6716 CORE_ADDR.
6717 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6718
53807e9f
TT
67192020-03-12 Tom Tromey <tom@tromey.com>
6720
6721 * remote.c (remote_target::download_tracepoint)
6722 (remote_target::enable_tracepoint)
6723 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6724 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6725 sprintf_vma.
6726
64f25102
TT
67272020-03-12 Tom Tromey <tom@tromey.com>
6728
6729 * symfile-mem.c: Update CORE_ADDR size assert.
6730
272cd5a3
SM
67312020-03-12 Simon Marchi <simon.marchi@efficios.com>
6732
6733 * selftest.m4: Move to gdbsupport/.
6734 * acinclude.m4: Update path to selftest.m4.
6735
74cd3f9d
SM
67362020-03-12 Simon Marchi <simon.marchi@efficios.com>
6737
6738 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6739 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6740 gdbarch-selfselftests.c and selftest-arch.c.
6741 (SUBDIR_UNITTESTS_OBS): Rename to...
6742 (SELFTESTS_OBS): ... this.
6743 (COMMON_SFILES): Remove disasm-selftests.c and
6744 gdbarch-selftests.c.
6745 * configure.ac: Don't add selftest-arch.{c,o} to
6746 CONFIG_{SRCS,OBS}.
6747 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6748 preprocessor conditions.
6749
db6878ac
SM
67502020-03-12 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * configure.ac: Don't source bfd/development.sh.
6753 * selftest.m4: Modify comment.
6754 * configure: Re-generate.
6755
4d696a5c
SM
67562020-03-12 Simon Marchi <simon.marchi@efficios.com>
6757
6758 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6759 not "true" or "false".
6760 * configure: Re-generate.
6761
8dd8e1c7
CB
67622020-03-12 Christian Biesinger <cbiesinger@google.com>
6763
6764 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6765 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6766 renamed to arm_nbsd_supply_gregset.
6767 (fetch_register): Update to call arm_nbsd_supply_gregset.
6768 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6769 (arm_netbsd_nat_target::fetch_registers): Update.
6770 (fetch_elfcore_registers): Removed.
6771 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6772 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6773 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6774 not require NetBSD system headers.
6775 (arm_nbsd_regset): New struct.
6776 (arm_nbsd_iterate_over_regset_sections): New function.
6777 (arm_netbsd_init_abi_common): Updated to call
6778 set_gdbarch_iterate_over_regset_sections.
6779 * arm-nbsd-tdep.h: New file.
6780
dd69bf7a
KB
67812020-03-11 Kevin Buettner <kevinb@redhat.com>
6782
6783 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6784 recursion.
6785
a0761e34
SM
67862020-03-11 Simon Marchi <simon.marchi@efficios.com>
6787
6788 * configure: Re-generate.
6789
e7a82140
TT
67902020-03-11 Tom Tromey <tromey@adacore.com>
6791
6792 * ada-typeprint.c (print_choices): Fix comment.
6793
dcc050c8
AB
67942020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6795
6796 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6797 previous item in the list, when the list has no items.
6798
1c33af77
TV
67992020-03-11 Tom de Vries <tdevries@suse.de>
6800
6801 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6802 PROP_LOCLIST handling code.
6803
8c95582d
AB
68042020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 * buildsym-legacy.c (record_line): Pass extra parameter to
6807 record_line.
6808 * buildsym.c (buildsym_compunit::record_line): Take an extra
6809 parameter, reduce duplication in the line table, and record the
6810 is_stmt flag in the line table.
6811 * buildsym.h (buildsym_compunit::record_line): Add extra
6812 parameter.
6813 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6814 non-statement lines.
6815 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6816 this to the symtab builder.
6817 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6818 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6819 through to dwarf_record_line_1.
6820 * infrun.c (process_event_stop_test): When stepping, don't stop at
6821 a non-statement instruction, and only refresh the step info when
6822 we land in the middle of a line's range. Also add an extra
6823 comment.
6824 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6825 field.
6826 * record-btrace.c (btrace_find_line_range): Only record lines
6827 marked as is-statement.
6828 * stack.c (frame_show_address): Show the frame address if we are
6829 in a non-statement sal.
6830 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6831 (maintenance_print_one_line_table): Print a header for the is_stmt
6832 column, and include is_stmt information in the output.
6833 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6834 preference to non-statements.
6835 (find_pcs_for_symtab_line): Prefer is-statement entries.
6836 (find_line_common): Likewise.
6837 * symtab.h (struct linetable_entry): Add is_stmt field.
6838 (struct symtab_and_line): Likewise.
6839 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6840 arranging the line table.
6841
e4003a34
TV
68422020-03-07 Tom de Vries <tdevries@suse.de>
6843
6844 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6845 DIE.
6846
e8932576
TT
68472020-03-07 Tom Tromey <tom@tromey.com>
6848
6849 * valops.c (value_literal_complex): Remove obsolete comment.
6850 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6851 comment.
6852
29734269
SM
68532020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * infrun.h: Forward-declare thread_info.
6856 (set_step_info): Add thread_info parameter, add doc.
6857 * infrun.c (set_step_info): Add thread_info parameter, move doc
6858 to header.
6859 * infrun.c (process_event_stop_test): Pass thread to
6860 set_step_info call.
6861 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6862 set_step_info.
6863 (prepare_one_step): Add thread_info parameter, pass it to
6864 set_step_frame and prepare_one_step (recursive) call.
6865 (step_1): Pass thread to prepare_one_step call.
6866 (step_command_fsm::should_stop): Pass thread to
6867 prepare_one_step.
6868 (until_next_fsm): Pass thread to set_step_frame call.
6869 (finish_command): Pass thread to set_step_info call.
6870
b7d64b29
HD
68712020-03-06 Hannes Domani <ssbssa@yahoo.de>
6872
6873 * windows-tdep.c (windows_solib_create_inferior_hook):
6874 Check if inferior is running.
6875
09f2921c
TV
68762020-03-06 Tom de Vries <tdevries@suse.de>
6877
6878 * NEWS: Fix "the the".
6879 * ctfread.c: Same.
6880
fd760e79
TV
68812020-03-06 Tom de Vries <tdevries@suse.de>
6882
6883 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6884
20ea4a60
AB
68852020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6886
6887 * .dir-locals.el: Add a comment referencing the other copies of
6888 this file.
6889
0afbabf0
JB
68902020-03-05 John Baldwin <jhb@FreeBSD.org>
6891
6892 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6893 psargs.
6894
842806cb
TBA
68952020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6896
6897 * .gitattributes: New file.
6898
be1e3d3e
TT
68992020-03-04 Tom Tromey <tom@tromey.com>
6900
6901 * symmisc.c (print_symbol_bcache_statistics)
6902 (print_objfile_statistics): Update.
6903 * symfile.c (allocate_symtab): Use intern.
6904 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6905 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6906 macro_cache>: Remove.
6907 <string_cache>: New member.
6908 (struct objfile) <intern>: New methods.
6909 * elfread.c (elf_symtab_read): Use intern.
6910 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6911 (dwarf2_compute_name, dwarf2_physname)
6912 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6913 names.
6914 (guess_partial_die_structure_name): Update.
6915 (partial_die_info::fixup): Intern name.
6916 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6917 name.
6918 (dwarf2_name): Intern name. Update.
6919 * buildsym.c (buildsym_compunit::get_macro_table): Use
6920 string_cache.
6921
4e7625fd
TT
69222020-03-04 Tom Tromey <tom@tromey.com>
6923
6924 * jit.c (bfd_open_from_target_memory): Make "target" const.
6925 * corefile.c (gnutarget): Now const.
6926 * gdbcore.h (gnutarget): Now const.
6927
46f9f931
HD
69282020-03-04 Hannes Domani <ssbssa@yahoo.de>
6929
6930 * NEWS: Mention support for WOW64 processes.
6931 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6932 (amd64_windows_segment_register_p): Remove static.
6933 (_initialize_amd64_windows_nat): Update.
6934 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6935 * i386-windows-nat.c (context_offset): Update.
6936 (i386_mappings): Rename and remove static.
6937 (i386_windows_segment_register_p): Remove static.
6938 (_initialize_i386_windows_nat): Update.
6939 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6940 (STATUS_WX86_SINGLE_STEP): New macro.
6941 (EnumProcessModulesEx): New macro.
6942 (Wow64SuspendThread): New macro.
6943 (Wow64GetThreadContext): New macro.
6944 (Wow64SetThreadContext): New macro.
6945 (Wow64GetThreadSelectorEntry): New macro.
6946 (windows_set_context_register_offsets): Add static.
6947 (windows_set_segment_register_p): Likewise.
6948 (windows_add_thread): Adapt for WOW64 processes.
6949 (windows_fetch_one_register): Likewise.
6950 (windows_nat_target::fetch_registers): Likewise.
6951 (windows_store_one_register): Likewise.
6952 (display_selector): Likewise.
6953 (display_selectors): Likewise.
6954 (handle_exception): Likewise.
6955 (windows_continue): Likewise.
6956 (windows_nat_target::resume): Likewise.
6957 (windows_add_all_dlls): Likewise.
6958 (do_initial_windows_stuff): Likewise.
6959 (windows_nat_target::attach): Likewise.
6960 (windows_get_exec_module_filename): Likewise.
6961 (windows_nat_target::create_inferior): Likewise.
6962 (windows_xfer_siginfo): Likewise.
6963 (_initialize_loadable): Initialize Wow64SuspendThread,
6964 Wow64GetThreadContext, Wow64SetThreadContext,
6965 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
6966 * windows-nat.h (windows_set_context_register_offsets):
6967 Remove declaration.
6968 (windows_set_segment_register_p): Likewise.
6969 (i386_windows_segment_register_p): Add declaration.
6970 (amd64_windows_segment_register_p): Likewise.
6971
440cf44e
LM
69722020-03-04 Luis Machado <luis.machado@linaro.org>
6973
6974 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
6975 in "info registers" for AArch64/ARM.
6976
6977 The change caused "info registers" to not print GPR's.
6978
6979 gdb/ChangeLog:
6980
6981 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6982
6983 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6984 when reg->group is empty and reggroup is not.
6985
1009d92f
TT
69862020-03-03 Tom Tromey <tromey@adacore.com>
6987
6988 * dwarf2/frame.c (struct dwarf2_frame_cache)
6989 <checked_tailcall_bottom, entry_cfa_sp_offset,
6990 entry_cfa_sp_offset_p>: Remove members.
6991 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
6992 (dwarf2_frame_prev_register): Don't call
6993 dwarf2_tailcall_sniffer_first.
6994 (dwarf2_append_unwinders): Don't append tailcall unwinder.
6995 * frame-unwind.c (add_unwinder): New fuction.
6996 (frame_unwind_init): Use it. Add tailcall unwinder.
6997
5e5d66b6
AB
69982020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
6999 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7000
7001 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7002 value should be printed as true.
7003
584cf46d
HD
70042020-03-03 Hannes Domani <ssbssa@yahoo.de>
7005
7006 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7007 (windows_init_abi): Set and use windows_so_ops.
7008
7b973adc
SDJ
70092020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7010
7011 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7012 when verifying if dealing with a convenience variable.
7013
bb7b70ab
LM
70142020-03-03 Luis Machado <luis.machado@linaro.org>
7015
7016 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7017
9822cb57
SM
70182020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7019
7020 * infrun.c (gdbarch_supports_displaced_stepping): New.
7021 (use_displaced_stepping): Break up conditions in smaller pieces.
7022 Use gdbarch_supports_displaced_stepping.
7023 (displaced_step_prepare_throw): Use
7024 gdbarch_supports_displaced_stepping.
7025
63e163f2
AB
70262020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7027
7028 * NEWS: Mention new behaviour of the history filename.
7029 * top.c (write_history_p): Add comment.
7030 (show_write_history_p): Add header comment, give a different
7031 message when history writing is on, but the history filename is
7032 empty.
7033 (history_filename): Add comment.
7034 (history_filename_empty): New function.
7035 (show_history_filename): Add header comment, give a different
7036 message when the filename is empty.
7037 (init_history): Compare history_filename against nullptr, and only
7038 read history if the filename is not empty.
7039 (set_history_filename): Add header comment, and only make
7040 non-empty filenames absolute.
7041 (init_main): Make the filename argument to 'set history filename'
7042 optional.
7043
81b86b97
CB
70442020-03-02 Christian Biesinger <cbiesinger@google.com>
7045
7046 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7047 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7048 (fetch_fp_register): Update.
7049 (fetch_fp_regs): Update.
7050 (store_fp_register): Update.
7051 (store_fp_regs): Update.
7052 (arm_netbsd_nat_target::read_description): New function.
7053 (fetch_elfcore_registers): Update.
7054
24ed6739
AB
70552020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7058 general_thread if the stop reply is missing a thread-id.
7059 (remote_target::process_stop_reply): Use the first non-exited
7060 thread if the target didn't pass a thread-id.
7061 * infrun.c (do_target_wait): Move call to
7062 switch_to_inferior_no_thread to ....
7063 (do_target_wait_1): ... here.
7064
a84bb2a0
JT
70652020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7066
7067 * debuginfod-support.c: Include defs.h first.
7068
658dadf0
TV
70692020-02-28 Tom de Vries <tdevries@suse.de>
7070
7071 * symfile.c (set_initial_language): Use default language for lookup.
7072
4ebe4877
SM
70732020-02-28 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7076 reader variable, pass `this` to read_cutu_die_from_dwo.
7077
e5da1139
AM
70782020-02-27 Aaron Merey <amerey@redhat.com>
7079
7080 * source.c (open_source_file): Check for nullptr when computing
7081 srcpath.
7082
317f7127
TT
70832020-02-27 Tom Tromey <tromey@adacore.com>
7084
7085 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7086 member.
7087 (dwarf2_add_field): Don't update nfields.
7088 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7089
3104d9ee
AB
70902020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7093 abs.
7094
b83470bf
TT
70952020-02-26 Tom Tromey <tom@tromey.com>
7096
7097 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7098 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7099 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7100 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7101 per_cu_data.
7102
edfe0a0c
TT
71032020-02-26 Tom Tromey <tom@tromey.com>
7104
7105 * dwarf2/index-write.c (psym_index_map): Change type.
7106 (add_address_entry_worker, write_one_signatured_type)
7107 (recursively_count_psymbols, recursively_write_psymbols)
7108 (class debug_names, psyms_seen_size, write_gdbindex)
7109 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7110
0d79cdc4
AM
71112020-02-26 Aaron Merey <amerey@redhat.com>
7112
7113 * Makefile.in: Handle optional debuginfod support.
7114 * NEWS: Update.
7115 * README: Add --with-debuginfod summary.
7116 * config.in: Regenerate.
7117 * configure: Regenerate.
7118 * configure.ac: Handle optional debuginfod support.
7119 * debuginfod-support.c: debuginfod helper functions.
7120 * debuginfod-support.h: Ditto.
7121 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7122 summary.
7123 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7124 when a dwz file cannot be found.
7125 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7126 debuginfo file cannot be found.
7127 * source.c (open_source_file): Query debuginfod servers when a
7128 source file cannot be found.
7129 * top.c (print_gdb_configuration): Include
7130 --{with,without}-debuginfod in the output.
7131
b65ce565
JG
71322020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7133
7134 * thread.c (thr_try_catch_cmd): Print thread name.
7135
d4c9a4f8
SM
71362020-02-26 Simon Marchi <simon.marchi@efficios.com>
7137
7138 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7139 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7140 dwarf2_fetch_die_type_sect_off): Move to...
7141 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7142 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7143 dwarf2_fetch_die_type_sect_off): ... here.
7144 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7146 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7147
0dce4280
TV
71482020-02-26 Tom de Vries <tdevries@suse.de>
7149
7150 PR gdb/25603
7151 * symfile.c (set_initial_language): Exit-early if
7152 language_mode == language_mode_manual.
7153
450a1bfc
SM
71542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7155
7156 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7157 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7158 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7159
9e80cfa1
AB
71602020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * gdbtypes.c (create_array_type_with_stride): Handle negative
7163 array strides.
7164 * valarith.c (value_subscripted_rvalue): Likewise.
7165
09624f1f
LM
71662020-02-25 Luis Machado <luis.machado@linaro.org>
7167
7168 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7169
8cb5117c
SM
71702020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * loc.h (dwarf2_get_die_type): Move to...
7173 * read.h (dwarf2_get_die_type): ... here.
7174 * read.c (dwarf2_get_die_type): Move doc to header.
7175
c325c44e
JB
71762020-02-25 Joel Brobecker <brobecker@adacore.com>
7177
7178 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7179 'gnulib/Makefile.in' to the list.
7180
4ac93832
TT
71812020-02-24 Tom Tromey <tom@tromey.com>
7182
7183 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7184 Remove.
7185 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7186 XOBNEWVEC.
7187
197400e8
TT
71882020-02-24 Tom Tromey <tom@tromey.com>
7189
7190 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7191 New method.
7192 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7193 (dw2_do_instantiate_symtab, dw2_get_file_names)
7194 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7195
76935768
TT
71962020-02-24 Tom Tromey <tom@tromey.com>
7197
7198 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7199 make_scoped_restore.
7200 (dwarf2_psymtab::read_symtab): Don't clear
7201 reading_partial_symbols.
7202
a88ef40d
TV
72032020-02-24 Tom de Vries <tdevries@suse.de>
7204
7205 PR gdb/25592
7206 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7207
c9af6521
TV
72082020-02-24 Tom de Vries <tdevries@suse.de>
7209
7210 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7211 commands layout next/prev/regs.
7212
5707a07a
TT
72132020-02-22 Tom Tromey <tom@tromey.com>
7214
7215 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7216 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7217
3b0fb49e
TT
72182020-02-22 Tom Tromey <tom@tromey.com>
7219
7220 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7221
283be8bf
TT
72222020-02-22 Tom Tromey <tom@tromey.com>
7223
7224 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7225 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7226 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7227 * tui/tui.c (_initialize_tui): Add usage text.
7228
ca793b96
TT
72292020-02-22 Tom Tromey <tom@tromey.com>
7230
7231 * tui/tui-win.c (tui_set_focus_command)
7232 (tui_set_win_height_command): Use error_no_arg.
7233 (_initialize_tui_win): Update help text.
7234 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7235
432b5c40
TT
72362020-02-22 Tom Tromey <tom@tromey.com>
7237
7238 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7239 * tui/tui-disasm.h (struct tui_disasm_window)
7240 <display_start_addr>: Declare.
7241 * tui/tui-source.h (struct tui_source_window)
7242 <display_start_addr>: Declare.
7243 * tui/tui-winsource.h (struct tui_source_window_base)
7244 <show_source_line, display_start_addr>: New methods.
7245 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7246 Rename and move to protected section.
7247 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7248 (tui_source_window_base::do_erase_source_content): Update.
7249 (tui_source_window_base::show_source_line): Now a method.
7250 (tui_source_window_base::show_source_content)
7251 (tui_source_window_base::tui_source_window_base)
7252 (tui_source_window_base::rerender)
7253 (tui_source_window_base::refill)
7254 (tui_source_window_base::do_scroll_horizontal)
7255 (tui_source_window_base::set_is_exec_point_at)
7256 (tui_source_window_base::update_breakpoint_info)
7257 (tui_source_window_base::update_exec_info): Update.
7258 * tui/tui-source.c (tui_source_window::set_contents)
7259 (tui_source_window::showing_source_p)
7260 (tui_source_window::do_scroll_vertical)
7261 (tui_source_window::location_matches_p)
7262 (tui_source_window::line_is_displayed): Update.
7263 (tui_source_window::display_start_addr): New method.
7264 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7265 (tui_disasm_window::do_scroll_vertical)
7266 (tui_disasm_window::location_matches_p): Update.
7267 (tui_disasm_window::display_start_addr): New method.
7268
01b1af32
TT
72692020-02-22 Tom Tromey <tom@tromey.com>
7270
7271 * NEWS: Add entry for gdb.register_window_type.
7272 * tui/tui-layout.h (window_factory): New typedef.
7273 (tui_register_window): Declare.
7274 * tui/tui-layout.c (saved_tui_windows): New global.
7275 (tui_apply_current_layout): Use it.
7276 (tui_register_window): New function.
7277 * python/python.c (do_start_initialization): Call
7278 gdbpy_initialize_tui.
7279 (python_GdbMethods): Add "register_window_type" function.
7280 * python/python-internal.h (gdbpy_register_tui_window)
7281 (gdbpy_initialize_tui): Declare.
7282 * python/py-tui.c: New file.
7283 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7284
fc96d20b
TT
72852020-02-22 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7288
935c78c0
TT
72892020-02-22 Tom Tromey <tom@tromey.com>
7290
7291 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7292 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7293 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7294 (tui_set_win_focus_to): Move from tui-win.c.
7295
0240c8f1
TT
72962020-02-22 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7299 functions.
7300 (known_window_types): New global.
7301 (tui_get_window_by_name): Reimplement.
7302 (initialize_known_windows): New function.
7303 (validate_window_name): Rewrite.
7304 (_initialize_tui_layout): Call initialize_known_windows.
7305
fdb01f0c
TT
73062020-02-22 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7309 Remove constants.
7310 * tui/tui-winsource.h (struct tui_source_window_base)
7311 <tui_source_window_base>: Remove parameter.
7312 * tui/tui-winsource.c
7313 (tui_source_window_base::tui_source_window_base): Remove
7314 parameter.
7315 (tui_source_window_base::refill): Update.
7316 * tui/tui-stack.h (struct tui_locator_window)
7317 <tui_locator_window>: Update.
7318 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7319 Default the constructor.
7320 * tui/tui-regs.h (struct tui_data_item_window)
7321 <tui_data_item_window>: Default the constructor.
7322 (struct tui_data_window) <tui_data_window>: Likewise.
7323 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7324 Default the constructor.
7325 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7326 Default the constructor.
7327 <type>: Remove.
7328 (struct tui_win_info) <tui_win_info>: Default the constructor.
7329 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7330 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7331 Default the constructor.
7332
865a5aec
TT
73332020-02-22 Tom Tromey <tom@tromey.com>
7334
7335 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7336 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7337 * tui/tui-win.c (tui_resize_all): Don't call
7338 tui_delete_invisible_windows.
7339 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7340 done.
7341 (tui_set_layout): Update.
7342 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7343 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7344 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7345
e098d18c
TT
73462020-02-22 Tom Tromey <tom@tromey.com>
7347
7348 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7349 correctly.
7350
eb9c8874
TT
73512020-02-22 Tom Tromey <tom@tromey.com>
7352
7353 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7354
7eed1a8e
TT
73552020-02-22 Tom Tromey <tom@tromey.com>
7356
7357 * tui/tui-winsource.h (struct tui_source_window_iterator)
7358 <inner_iterator>: New etytypedef.
7359 <tui_source_window_iterator>: Take "end" parameter.
7360 <tui_source_window_iterator>: Take iterator.
7361 <operator*, advance>: Update.
7362 <m_iter>: Change type.
7363 <m_end>: New field.
7364 (struct tui_source_windows) <begin, end>: Update.
7365 * tui/tui-layout.c (tui_windows): New global.
7366 (tui_apply_current_layout): Clear tui_windows.
7367 (tui_layout_window::apply): Update tui_windows.
7368 * tui/tui-data.h (tui_windows): Declare.
7369 (all_tui_windows): Now inline function.
7370 (class tui_window_iterator, struct all_tui_windows): Remove.
7371
7c043ba6
TT
73722020-02-22 Tom Tromey <tom@tromey.com>
7373
7374 PR tui/17850:
7375 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7376 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7377 "height" argument.
7378 (class tui_layout_window) <get_sizes>: Likewise.
7379 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7380 argument.
7381 <get_sizes>: Add "height" argument.
7382 <m_vertical>: New field.
7383 * tui/tui-layout.c (tui_layout_split::clone): Update.
7384 (tui_layout_split::get_sizes): Add "height" argument.
7385 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7386 (tui_new_layout_command): Parse "-horizontal".
7387 (_initialize_tui_layout): Update help string.
7388 (tui_layout_split::specification): Add "-horizontal" when needed.
7389 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7390 argument.
7391 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7392 New methods.
7393
6bc56648
TT
73942020-02-22 Tom Tromey <tom@tromey.com>
7395
7396 * tui/tui-layout.h (enum tui_adjust_result): New.
7397 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7398 (class tui_layout_window) <adjust_size>: Return
7399 tui_adjust_result. Rewrite.
7400 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7401 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7402
c22fef7e
TT
74032020-02-22 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7406 parameter and return types.
7407 (class tui_layout_base) <specification>: Add "depth".
7408 (class tui_layout_window) <specification>: Add "depth".
7409 (class tui_layout_split) <specification>: Add "depth".
7410 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7411 and return types.
7412 (tui_new_layout_command): Parse sub-layouts.
7413 (_initialize_tui_layout): Update help string.
7414 (tui_layout_window::specification): Add "depth".
7415 (add_layout_command): Update.
7416
ee325b61
TT
74172020-02-22 Tom Tromey <tom@tromey.com>
7418
7419 * NEWS: Add "tui new-layout" item.
7420 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7421 Add new-layout command to help text.
7422 (validate_window_name): New function.
7423 (tui_new_layout_command): New function.
7424 (_initialize_tui_layout): Register "new-layout".
7425 (tui_layout_window::specification): New method.
7426 (tui_layout_window::specification): New method.
7427 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7428 method.
7429 (class tui_layout_window) <specification>: New method.
7430 (class tui_layout_split) <specification>: New method.
7431
416eb92d
TT
74322020-02-22 Tom Tromey <tom@tromey.com>
7433
7434 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7435 * tui/tui-win.c (window_name_completer): Update comment.
7436 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7437 Declare method.
7438 (class tui_layout_window) <replace_window>: Likewise.
7439 (class tui_layout_split) <replace_window>: Likewise.
7440 (tui_set_layout): Don't declare.
7441 (tui_set_initial_layout): Declare function.
7442 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7443 (asm_regs_layout): New globals.
7444 (tui_current_layout, show_layout): Remove.
7445 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7446 (find_layout, tui_apply_layout): New function.
7447 (layout_completer): Remove.
7448 (tui_next_layout): Reimplement.
7449 (tui_next_layout_command): New function.
7450 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7451 (tui_regs_layout): Reimplement.
7452 (tui_regs_layout_command): New function.
7453 (extract_display_start_addr): Rewrite.
7454 (next_layout, prev_layout): Remove.
7455 (tui_layout_window::replace_window): New method.
7456 (tui_layout_split::replace_window): New method.
7457 (destroy_layout): New function.
7458 (layout_list): New global.
7459 (add_layout_command): New function.
7460 (initialize_layouts): Update.
7461 (tui_layout_command): New function.
7462 (_initialize_tui_layout): Install "layout" commands.
7463 * tui/tui-data.h (enum tui_layout_type): Remove.
7464 (tui_current_layout): Don't declare.
7465
0dbc2fc7
TT
74662020-02-22 Tom Tromey <tom@tromey.com>
7467
7468 * tui/tui-regs.c (tui_reg_layout): Remove.
7469 (tui_reg_command): Use tui_regs_layout.
7470 * tui/tui-layout.h (tui_reg_command): Declare.
7471 * tui/tui-layout.c (tui_reg_command): New function.
7472
5afe342e
TT
74732020-02-22 Tom Tromey <tom@tromey.com>
7474
7475 * tui/tui.c (tui_rl_delete_other_windows): Call
7476 tui_remove_some_windows.
7477 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7478 Declare method.
7479 (class tui_layout_window) <remove_windows>: New method.
7480 (class tui_layout_split) <remove_windows>: Declare.
7481 (tui_remove_some_windows): Declare.
7482 * tui/tui-layout.c (tui_remove_some_windows): New function.
7483 (tui_layout_split::remove_windows): New method.
7484
427326a8
TT
74852020-02-22 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7488 * tui/tui-layout.h (tui_next_layout): Declare.
7489 * tui/tui-layout.c (tui_next_layout): New function.
7490
3fe12b6d
TT
74912020-02-22 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7494 correct coordinates.
7495
59b8b5d2
TT
74962020-02-22 Tom Tromey <tom@tromey.com>
7497
7498 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7499 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7500 DATA_WIN case.
7501
2a3d458b
TT
75022020-02-22 Tom Tromey <tom@tromey.com>
7503
7504 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7505 TUI_DISASM_WIN, not tui_win_list.
7506
3f0cbb04
TT
75072020-02-22 Tom Tromey <tom@tromey.com>
7508
7509 * valprint.c (generic_val_print_enum_1)
7510 (val_print_type_code_flags): Style member names.
7511 * rust-lang.c (val_print_struct, rust_print_enum)
7512 (rust_print_struct_def, rust_internal_print_type): Style member
7513 names.
7514 * p-valprint.c (pascal_object_print_value_fields): Style member
7515 names. Only call fprintf_symbol_filtered for static members.
7516 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7517 * f-valprint.c (f_val_print): Style member names.
7518 * f-typeprint.c (f_type_print_base): Style member names.
7519 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7520 call fprintf_symbol_filtered for static members.
7521 (cp_print_class_member): Style member names.
7522 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7523 member names.
7524 * ada-valprint.c (ada_print_scalar): Style enum names.
7525 (ada_val_print_enum): Likewise.
7526 * ada-typeprint.c (print_enum_type): Style enum names.
7527
d4d947ae
TT
75282020-02-21 Tom Tromey <tom@tromey.com>
7529
7530 * psympriv.h (struct partial_symtab): Update comment.
7531
e94e944b
TT
75322020-02-21 Tom Tromey <tromey@adacore.com>
7533
7534 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7535 type is CORE_ADDR.
7536
1eb73179
TV
75372020-02-21 Tom de Vries <tdevries@suse.de>
7538
7539 PR gdb/25534
7540 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7541 if dependencies[i]->user != NULL.
7542
4f180d53
AT
75432020-02-21 Ali Tamur <tamur@google.com>
7544
7545 * dwarf2/read.c (dwarf2_name): Add null check.
7546
22b6cd70
TT
75472020-02-20 Tom Tromey <tom@tromey.com>
7548
7549 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7550 ">=", in binary search.
7551 (dwarf2_find_containing_comp_unit): New overload.
7552 (run_test): New self-test.
7553 (_initialize_dwarf2_read): Register new test.
7554
bd0cf5a6
NC
75552020-02-20 Nelson Chu <nelson.chu@sifive.com>
7556
7557 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7558 * riscv-tdep.h: Likewise.
7559 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7560 rv32-only CSR.
7561 * features/riscv/64bit-csr.xml: Regenerated.
7562
3f702acd
SDJ
75632020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7564 Tom Tromey <tom@tromey.com>
7565
7566 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7567 of 'fputc_unfiltered'.
7568 (putchar_unfiltered): Call 'fputc_unfiltered'.
7569 (fputc_unfiltered): Call 'fputs_unfiltered'.
7570
d13c7322
AB
75712020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7572
7573 * config.in: Regenerate.
7574 * configure: Regenerate.
7575 * configure.ac: Add --with-python-libdir option.
7576 * main.c: Use WITH_PYTHON_LIBDIR.
7577
869d8950
TT
75782020-02-19 Tom Tromey <tom@tromey.com>
7579
7580 * symtab.c (general_symbol_info::compute_and_set_names): Use
7581 obstack_strndup. Simplify call to symbol_set_demangled_name.
7582
298e9637
SM
75832020-02-19 Simon Marchi <simon.marchi@efficios.com>
7584
7585 * dwarf2/read.c (allocate_signatured_type_table,
7586 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7587 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7588 Remove objfile parameter, update all callers.
7589
08410482
DE
75902020-02-19 Doug Evans <dje@google.com>
7591
7592 PR rust/25535
7593 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7594 rust_enum_variant calculation.
7595
dfdeeca1
TT
75962020-02-19 Tom Tromey <tromey@adacore.com>
7597
7598 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7599
2ef5453b
TT
76002020-02-19 Tom Tromey <tromey@adacore.com>
7601
7602 * ada-lang.c (cache_symbol): Use obstack_strdup.
7603
9f1528a1
AB
76042020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7605
7606 * configure: Regenerate.
7607
d3c22fa8
TT
76082020-02-19 Tom Tromey <tromey@adacore.com>
7609
7610 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7611 NULL check.
7612
bf84f706
MR
76132020-02-19 Maciej W. Rozycki <macro@wdc.com>
7614
7615 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7616
d1c9b20f
AB
76172020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7618
7619 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7620 if GDBSERVER is not defined.
7621 (riscv_tdesc_cache): Likewise, also store const target_desc.
7622 (STATIC_IN_GDB): Define.
7623 (riscv_create_target_description): Update declaration with
7624 STATIC_IN_GDB.
7625 (riscv_lookup_target_description): New function, only define if
7626 GDBSERVER is not defined.
7627 * arch/riscv.h (riscv_create_target_description): Declare only
7628 when GDBSERVER is defined.
7629 (riscv_lookup_target_description): New declaration when GDBSERVER
7630 is not defined.
7631 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7632 (riscv_linux_read_features): ...this, and return
7633 riscv_gdbarch_features instead of target_desc.
7634 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7635 (riscv_linux_read_description): Rename to...
7636 (riscv_linux_read_features): ...this.
7637 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7638 Update to use riscv_gdbarch_features and
7639 riscv_lookup_target_description.
7640 * riscv-tdep.c (riscv_find_default_target_description): Use
7641 riscv_lookup_target_description instead of
7642 riscv_create_target_description.
7643
373d7ac0
SM
76442020-02-18 Simon Marchi <simon.marchi@efficios.com>
7645
7646 * valprint.c (generic_val_print_enum_1): When printing a flag
7647 enum with value 0 and there is no enumerator with value 0, print
7648 just "0" instead of "(unknown: 0x0)".
7649
b29a2df0
SM
76502020-02-18 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * valprint.c (generic_val_print_enum_1): Print unknown part of
7653 flag enum in hex.
7654
6740f0cc
SM
76552020-02-18 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7658 flag enums to contain duplicate enumerators.
7659 * valprint.c (generic_val_print_enum_1): Update comment.
7660
edd45eb0
SM
76612020-02-18 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * dwarf2/read.c: Include "count-one-bits.h".
7664 (update_enumeration_type_from_children): If an enumerator has
7665 multiple bits set, don't treat the enumeration as a "flag enum".
7666 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7667 of flag enums have 0 or 1 bit set.
7668
6d0cf446
BE
76692020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7670
7671 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7672 conversion.
7673 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7674 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7675 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7676 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7677 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7678
7001c1b7
SM
76792020-02-18 Simon Marchi <simon.marchi@efficios.com>
7680
7681 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7682
fdb61c6c
SM
76832020-02-14 Simon Marchi <simon.marchi@efficios.com>
7684
7685 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7686 displaced_step_closure_up.
7687 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7688 (struct displaced_step_closure_up):
7689 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7690 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7691 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7692 Likewise.
7693 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7694 * gdbarch.c, gdbarch.h: Re-generate.
7695 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7696 displaced_step_closure_up.
7697 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7698 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7699 * infrun.h (displaced_step_closure_up): New type alias.
7700 (struct displaced_step_inferior_state) <step_closure>: Change
7701 type to displaced_step_closure_up.
7702 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7703 displaced_step_closure_up.
7704 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7705
a4a38eb4
TT
77062020-02-14 Tom Tromey <tom@tromey.com>
7707
7708 * minidebug.c (gnu_debug_key): New global.
7709 (find_separate_debug_file_in_section): Use it.
7710
e8217e61
SM
77112020-02-14 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7714 std::unique_ptr.
7715 * gdbarch.c: Re-generate.
7716 * gdbarch.h: Re-generate.
7717 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7718 change.
7719 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7720 type to std::unique_ptr.
7721 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7722 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7723 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7724 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7725 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7726 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7727 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7728 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7729 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7730
d8d83535
SM
77312020-02-14 Simon Marchi <simon.marchi@efficios.com>
7732
7733 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7734 std::unique_ptr.
7735 (displaced_step_clear): Rename to...
7736 (displaced_step_reset): ... this. Just call displaced->reset ().
7737 (displaced_step_clear_cleanup): Rename to...
7738 (displaced_step_reset_cleanup): ... this.
7739 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7740 (displaced_step_fixup): Likewise.
7741 (resume_1): Likewise.
7742 (handle_inferior_event): Restore child's memory before calling
7743 displaced_step_fixup on the parent.
7744 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7745 to std::unique_ptr.
7746 <step_closure>: Change type to std::unique_ptr.
7747
5f661e03
SM
77482020-02-14 Simon Marchi <simon.marchi@efficios.com>
7749
7750 * arm-tdep.c: Include count-one-bits.h.
7751 (cleanup_block_store_pc): Use count_one_bits.
7752 (cleanup_block_load_pc): Use count_one_bits.
7753 (arm_copy_block_xfer): Use count_one_bits.
7754 (thumb2_copy_block_xfer): Use count_one_bits.
7755 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7756 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7757 (thumb_get_next_pcs_raw): Use count_one_bits.
7758 (arm_get_next_pcs_raw): Use count_one_bits_l.
7759 * arch/arm.c (bitcount): Remove.
7760 * arch/arm.h (bitcount): Remove.
7761
8084e579
TT
77622020-02-14 Tom Tromey <tromey@adacore.com>
7763
7764 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7765 Update.
7766 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7767 * dwarf2/loc.c (call_site_find_chain_1): Return
7768 unique_xmalloc_ptr.
7769 (call_site_find_chain): Likewise.
7770
258bf0ee
RB
77712020-02-14 Richard Biener <rguenther@suse.de>
7772
7773 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7774 on expression with division operators.
7775
f98a8458
AKS
77762020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7777
7778 * MAINTAINERS (Write After Approval): Adding myself.
7779
d1437c0e
TT
77802020-02-12 Tom Tromey <tom@tromey.com>
7781
7782 * event-loop.c (event_data, gdb_event, event_handler_func):
7783 Remove.
7784
3d4560f7
TT
77852020-02-12 Tom Tromey <tom@tromey.com>
7786
7787 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7788 (dwarf2_frame_objfile_data): Add comment.
7789 (find_comp_unit, set_comp_unit): New functions.
7790 (dwarf2_frame_find_fde): Use find_comp_unit.
7791 (dwarf2_build_frame_info): Use set_comp_unit.
7792
21982304
TT
77932020-02-12 Tom Tromey <tom@tromey.com>
7794
7795 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7796 (comp_unit): Don't initialize objfile.
7797 (execute_cfa_program): Add text_offset parameter.
7798 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7799 (dwarf2_frame_cache): Update.
7800 (dwarf2_build_frame_info): Don't set "objfile" member.
7801
4debb237
TT
78022020-02-12 Tom Tromey <tom@tromey.com>
7803
7804 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7805 (decode_frame_entry): Likewise.
7806 (dwarf2_build_frame_info): Update.
7807
0d404d44
TT
78082020-02-12 Tom Tromey <tom@tromey.com>
7809
7810 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7811 (decode_frame_entry_1): Use the comp_unit obstack.
7812
a7a3ae5c
TT
78132020-02-12 Tom Tromey <tom@tromey.com>
7814
7815 * dwarf2/frame.c (struct comp_unit): Add initializers and
7816 constructor.
7817 (dwarf2_frame_objfile_data): Store a comp_unit.
7818 (dwarf2_frame_find_fde): Update.
7819 (dwarf2_build_frame_info): Use "new".
7820
a9d65418
TT
78212020-02-12 Tom Tromey <tom@tromey.com>
7822
7823 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7824 (dwarf2_fde_table): Typedef for std::vector.
7825 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7826 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7827 (decode_frame_entry): Update.
7828 (dwarf2_build_frame_info): Use "new".
7829
7559c217
CB
78302020-02-12 Christian Biesinger <cbiesinger@google.com>
7831
7832 * arm-tdep.c (arm_gdbarch_init): Update.
7833 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7834 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7835 have_neon, is_m>: Change to bool.
7836
aeefc73c
CB
78372020-02-12 Christian Biesinger <cbiesinger@google.com>
7838
7839 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7840
d27b8e5f
TT
78412020-02-12 Tom Tromey <tom@tromey.com>
7842
7843 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7844
cd5900f3
HD
78452020-02-12 Hannes Domani <ssbssa@yahoo.de>
7846
7847 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7848 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7849
f056b22b
TT
78502020-02-11 Tom Tromey <tom@tromey.com>
7851
7852 * psymtab.h: Update comment.
7853
f92ff6b5
TT
78542020-02-11 Tom Tromey <tom@tromey.com>
7855
7856 * gdb_obstack.h (struct auto_obstack): Use
7857 DISABLE_COPY_AND_ASSIGN.
7858
3fd6912b
TT
78592020-02-11 Tom Tromey <tom@tromey.com>
7860
7861 * dwarf2/frame.h (struct objfile): Don't forward declare.
7862
69ed9b74
CB
78632020-02-11 Christian Biesinger <cbiesinger@google.com>
7864
7865 * cris-tdep.c (cris_supply_gregset): Change signature to match
7866 what struct regset expects.
7867 (cris_regset): New struct.
7868 (fetch_core_registers): Remove.
7869 (cris_iterate_over_regset_sections): New function.
7870 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7871 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7872
bda874f6
CB
78732020-02-11 Christian Biesinger <cbiesinger@google.com>
7874
7875 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7876 registers.
7877
754e1564
CB
78782020-02-11 Christian Biesinger <cbiesinger@google.com>
7879
7880 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7881
8ddd8e0e
SM
78822020-02-11 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * configure: Re-generate.
7885
898e7f60
SM
78862020-02-11 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * configure: Re-generate.
7889
58df732b
SM
78902020-02-11 Simon Marchi <simon.marchi@efficios.com>
7891
7892 * acinclude: Update warning.m4 path.
7893 * warning.m4: Move to gdbsupport.
7894
da5bd37e
TT
78952020-02-11 Tom Tromey <tromey@adacore.com>
7896
7897 * remote.c (remote_console_output): Update.
7898 * printcmd.c (printf_command): Update.
7899 * event-loop.c (gdb_wait_for_event): Update.
7900 * linux-nat.c (sigchld_handler): Update.
7901 * remote-sim.c (gdb_os_write_stdout): Update.
7902 (gdb_os_flush_stdout): Update.
7903 (gdb_os_flush_stderr): Update.
7904 (gdb_os_write_stderr): Update.
7905 * exceptions.c (print_exception): Update.
7906 * remote-fileio.c (remote_fileio_func_read): Update.
7907 (remote_fileio_func_write): Update.
7908 * tui/tui.c (tui_enable): Update.
7909 * tui/tui-interp.c (tui_interp::init): Update.
7910 * utils.c (init_page_info): Update.
7911 (putchar_unfiltered, fputc_unfiltered): Update.
7912 (gdb_flush): Update.
7913 (emit_style_escape): Update.
7914 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7915 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7916 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7917 (stderr_file::write): Update.
7918 (stderr_file::puts): Update.
7919 * ui-file.h (ui_file_isatty, ui_file_write)
7920 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7921 (ui_file_puts): Don't declare.
7922
85f0dd3c
TV
79232020-02-10 Tom de Vries <tdevries@suse.de>
7924
7925 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7926 sentinel to char *.
7927
2e927613
TV
79282020-02-09 Tom de Vries <tdevries@suse.de>
7929
7930 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7931 filename if it matches "<artificial>".
7932
6bafc845
HD
79332020-02-09 Hannes Domani <ssbssa@yahoo.de>
7934
7935 * windows-tdep.c (struct enum_value_name): New struct.
7936 (create_enum): New function.
7937 (windows_get_siginfo_type): Create and use enum types.
7938
7928d571
HD
79392020-02-09 Hannes Domani <ssbssa@yahoo.de>
7940
7941 * NEWS: Mention $_siginfo support for Windows.
7942 * windows-nat.c (handle_exception): Set siginfo_er.
7943 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7944 (windows_xfer_siginfo): New function.
7945 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7946 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7947 (init_windows_gdbarch_data): New function.
7948 (get_windows_gdbarch_data): New function.
7949 (windows_get_siginfo_type): New function.
7950 (windows_init_abi): Register windows_get_siginfo_type.
7951 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7952
6751ebae
TT
79532020-02-08 Tom Tromey <tom@tromey.com>
7954
7955 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7956 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7957 <keep>: Declare method.
7958 <m_keep>: Remove member.
7959 <~cutu_reader>: Remove.
7960 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7961 (cutu_reader::cutu_reader): Update.
7962 (cutu_reader::keep): Rename from ~cutu_reader.
7963 (process_psymtab_comp_unit, build_type_psymtabs_1)
7964 (process_skeletonless_type_unit, load_partial_comp_unit)
7965 (load_full_comp_unit, dwarf2_read_addr_index)
7966 (read_signatured_type): Update.
7967
135f5437
TT
79682020-02-08 Tom Tromey <tom@tromey.com>
7969
7970 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
7971 "want_partial_unit" parameter.
7972 (process_psymtab_comp_unit): Change want_partial_unit to bool.
7973 Inline check for DW_TAG_partial_unit.
7974 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
7975
9f66ff1c
TT
79762020-02-08 Tom Tromey <tom@tromey.com>
7977
7978 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
7979 read.c.
7980 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
7981 read.c.
7982
c8a7a66f
TT
79832020-02-08 Tom Tromey <tom@tromey.com>
7984
7985 * dwarf2/read.c (read_address): Move to comp-unit.c.
7986 (dwarf2_rnglists_process, dwarf2_ranges_process)
7987 (read_attribute_value, dwarf_decode_lines_1)
7988 (var_decode_location, decode_locdesc): Update.
7989 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
7990 read.c. Remove "cu" parameter.
7991 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
7992 method.
7993
8266302d
TT
79942020-02-08 Tom Tromey <tom@tromey.com>
7995
7996 * dwarf2/read.c (read_attribute_value, read_indirect_string)
7997 (read_indirect_line_string): Update.
7998 * dwarf2/comp-unit.c (read_offset): Remove.
7999 (read_comp_unit_head): Update.
8000 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8001 method.
8002 (read_offset): Don't declare.
8003
4057dfde
TT
80042020-02-08 Tom Tromey <tom@tromey.com>
8005
8006 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8007 * dwarf2/read.c (struct comp_unit_head): Move to
8008 dwarf2/comp-unit.h.
8009 (enum class rcuh_kind): Move to comp-unit.h.
8010 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8011 (read_comp_unit_head, error_check_comp_unit_head)
8012 (read_and_check_comp_unit_head): Move to comp-unit.c.
8013 (read_offset, dwarf_unit_type_name): Likewise.
8014 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8015 (cutu_reader::cutu_reader, read_call_site_scope)
8016 (find_partial_die, follow_die_offset): Update.
8017 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8018
24aa364d
TT
80192020-02-08 Tom Tromey <tom@tromey.com>
8020
8021 * dwarf2/read.c (read_offset_1): Move to leb.c.
8022 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8023 (dwarf_decode_macro_bytes): Update.
8024 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8025 * dwarf2/leb.h (read_offset): Declare.
8026
2c7d5afc
TT
80272020-02-08 Tom Tromey <tom@tromey.com>
8028
8029 * dwarf2/read.c (dwarf2_section_size): Remove.
8030 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8031 Update.
8032 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8033
4075cb26
TT
80342020-02-08 Tom Tromey <tom@tromey.com>
8035
8036 * dwarf2/read.c (read_initial_length): Move to leb.c.
8037 * dwarf2/leb.h (read_initial_length): Declare.
8038 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8039 handle_nonstd parameter.
8040 * dwarf2/frame.c (read_initial_length): Remove.
8041 (decode_frame_entry_1): Update.
8042
09ba997f
TT
80432020-02-08 Tom Tromey <tom@tromey.com>
8044
8045 * dwarf2/loc.c (dwarf2_find_location_expression)
8046 (dwarf_evaluate_loc_desc::get_tls_address)
8047 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8048 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8049 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8050 (dwarf2_compile_property_to_c)
8051 (dwarf2_loc_desc_get_symbol_read_needs)
8052 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8053 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8054 (loclist_describe_location, loclist_tracepoint_var_ref)
8055 (loclist_generate_c_location): Update.
8056 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8057 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8058 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8059 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8060 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8061 (dwarf2_per_cu_data::addr_size)
8062 (dwarf2_per_cu_data::ref_addr_size)
8063 (dwarf2_per_cu_data::text_offset)
8064 (dwarf2_per_cu_data::addr_type): Now methods.
8065 (per_cu_header_read_in): Make per_cu "const".
8066 (dwarf2_version): Remove.
8067 (dwarf2_per_cu_data::int_type): Now a method.
8068 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8069 (set_die_type, read_array_type, read_subrange_index_type)
8070 (read_tag_string_type, read_subrange_type): Update.
8071 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8072 offset_size, ref_addr_size, text_offset, addr_type, version,
8073 objfile, int_type, addr_sized_int_type>: Declare methods.
8074
96c738c0
TT
80752020-02-08 Tom Tromey <tom@tromey.com>
8076
8077 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8078 Move earlier.
8079
8fdd972c
TT
80802020-02-08 Tom Tromey <tom@tromey.com>
8081
8082 * dwarf2/read.h (dwarf_line_debug): Declare.
8083 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8084 * dwarf2/read.c: Move line_header code to new files.
8085 (dwarf_line_debug): No longer static.
8086 * dwarf2/line-header.c: New file.
8087 * dwarf2/line-header.h: New file.
8088
03075812
TT
80892020-02-08 Tom Tromey <tom@tromey.com>
8090
8091 * dwarf2/read.c (struct line_header) <file_full_name,
8092 file_file_name>: Return unique_xmalloc_ptr.
8093 (line_header::file_file_name): Update.
8094 (line_header::file_full_name): Update.
8095 (dw2_get_file_names_reader): Update.
8096 (macro_start_file): Update.
8097
bb822404
TT
80982020-02-08 Tom Tromey <tom@tromey.com>
8099
8100 * dwarf2/read.c (struct line_header) <file_full_name,
8101 file_file_name>: Declare methods.
8102 (dw2_get_file_names_reader): Update.
8103 (file_file_name): Now a method.
8104 (file_full_name): Likewise.
8105 (macro_start_file): Update.
8106
009b64fc
TT
81072020-02-08 Tom Tromey <tom@tromey.com>
8108
8109 * dwarf2/read.c (dwarf_always_disassemble)
8110 (show_dwarf_always_disassemble): Move to loc.c.
8111 (_initialize_dwarf2_read): Move "always-disassemble" registration
8112 to loc.c.
8113 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8114 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8115 static.
8116 (show_dwarf_always_disassemble): Move from read.c.
8117 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8118
5895093f
TT
81192020-02-08 Tom Tromey <tom@tromey.com>
8120
8121 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8122 (create_quick_file_names_table): Return htab_up.
8123 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8124 Update.
8125 * dwarf2/read.h (struct dwarf2_per_objfile)
8126 <quick_file_names_table>: Now htab_up.
8127
b3b32279
TT
81282020-02-08 Tom Tromey <tom@tromey.com>
8129
8130 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8131
1d33d811
TT
81322020-02-08 Tom Tromey <tom@tromey.com>
8133
8134 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8135 Rewrite.
8136 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8137 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8138 (abbrev_table::abbrev_table): No longer inline.
8139 (ABBREV_HASH_SIZE): Remove.
8140 (abbrev_table::m_abbrevs): Now an htab_up.
8141
86de1d91
TT
81422020-02-08 Tom Tromey <tom@tromey.com>
8143
8144 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8145 (cutu_reader): Update.
8146 (build_type_psymtabs_1): Update.
8147 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8148 (abbrev_table::alloc_abbrev): Update.
8149 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8150 (abbrev_table::read): New static method, renamed from
8151 abbrev_table_read_table.
8152 (abbrev_table::alloc_abbrev)
8153 (abbrev_table::add_abbrev): Now private.
8154 (abbrev_table::abbrev_table): Now private.
8155 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8156
0335378b
TT
81572020-02-08 Tom Tromey <tom@tromey.com>
8158
8159 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8160 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8161 htab_up.
8162
48b490f2
TT
81632020-02-08 Tom Tromey <tom@tromey.com>
8164
8165 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8166 htab_up.
8167 (lookup_dwo_unit_in_dwp): Update.
8168 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8169 on obstack.
8170
bc68fb19
TT
81712020-02-08 Tom Tromey <tom@tromey.com>
8172
8173 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8174 obstack.
8175
d15acc42
TT
81762020-02-08 Tom Tromey <tom@tromey.com>
8177
8178 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8179 line_header_hash.
8180 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8181 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8182 Change type to htab_up.
8183
eaa5fa8b
TT
81842020-02-08 Tom Tromey <tom@tromey.com>
8185
8186 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8187 htab_up. Don't allocate on obstack.
8188 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8189 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8190 Change type to htab_up.
8191
b0b6a987
TT
81922020-02-08 Tom Tromey <tom@tromey.com>
8193
8194 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8195 Change type to htab_up.
8196 * dwarf2/read.c (create_signatured_type_table_from_index)
8197 (create_signatured_type_table_from_debug_names)
8198 (create_all_type_units, add_type_unit)
8199 (lookup_dwo_signatured_type, lookup_signatured_type)
8200 (process_skeletonless_type_unit): Update.
8201 (create_debug_type_hash_table, create_debug_types_hash_table):
8202 Change type of types_htab.
8203 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8204 htab_up. Don't allocate on obstack.
8205 (create_cus_hash_table): Change type of cus_htab parameter.
8206 (struct dwo_file) <cus, tus>: Now htab_up.
8207 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8208 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8209 (queue_and_load_all_dwo_tus): Update.
8210 * dwarf2/index-write.c (write_gdbindex): Update.
8211 (write_debug_names): Update.
8212
39856def
TT
82132020-02-08 Tom Tromey <tom@tromey.com>
8214
8215 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8216 dwarf2/read.c. Remove "next" member. Add constructor ntad
8217 destructor.
8218 (struct dwarf2_per_objfile) <queue>: New member.
8219 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8220 dwarf2/read.h.
8221 (dwarf2_queue, dwarf2_queue_tail): Remove.
8222 (class dwarf2_queue_guard): Add parameter to constructor. Use
8223 DISABLE_COPY_AND_ASSIGN.
8224 <m_per_objfile>: New member.
8225 <~dwarf2_queue_guard>: Rewrite.
8226 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8227 Update.
8228 (~dwarf2_queue_item): New.
8229
3e225074
TT
82302020-02-08 Tom Tromey <tom@tromey.com>
8231
8232 * dwarf2/read.c (struct die_info) <has_children>: New member.
8233 (dw2_get_file_names_reader): Remove has_children.
8234 (dw2_get_file_names): Update.
8235 (read_cutu_die_from_dwo): Remove has_children.
8236 (cutu_reader::init_tu_and_read_dwo_dies)
8237 (cutu_reader::cutu_reader): Update.
8238 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8239 Remove has_children.
8240 (build_type_psymtabs_1, process_skeletonless_type_unit)
8241 (load_partial_comp_unit, load_full_comp_unit): Update.
8242 (create_dwo_cu_reader): Remove has_children.
8243 (create_cus_hash_table, read_die_and_children): Update.
8244 (read_full_die_1,read_full_die): Remove has_children.
8245 (read_signatured_type): Update.
8246 (class cutu_reader) <has_children>: Remove.
8247
82ca8957
TT
82482020-02-08 Tom Tromey <tom@tromey.com>
8249
8250 * dwarf2/expr.c: Rename from dwarf2expr.c.
8251 * dwarf2/expr.h: Rename from dwarf2expr.h.
8252 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8253 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8254 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8255 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8256 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8257 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8258 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8259 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8260 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8261 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8262 * dwarf2/loc.c: Rename from dwarf2loc.c.
8263 * dwarf2/loc.h: Rename from dwarf2loc.h.
8264 * dwarf2/read.c: Rename from dwarf2read.c.
8265 * dwarf2/read.h: Rename from dwarf2read.h.
8266 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8267 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8268 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8269 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8270 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8271 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8272 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8273 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8274 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8275 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8276 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8277 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8278 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8279 Update.
8280 * Makefile.in (COMMON_SFILES): Update.
8281 (HFILES_NO_SRCDIR): Update.
8282
9e35d499
TT
82832020-02-08 Tom Tromey <tom@tromey.com>
8284
8285 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8286 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8287
1eba2311
TT
82882020-02-08 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2read.h (struct die_info): Don't declare.
8291
e41c2da2
TT
82922020-02-08 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2read.h (die_info_ptr): Remove typedef.
8295
4fc6c0d5
TT
82962020-02-08 Tom Tromey <tom@tromey.com>
8297
8298 * dwarf2read.c (read_call_site_scope)
8299 (handle_data_member_location, dwarf2_add_member_fn)
8300 (mark_common_block_symbol_computed, read_common_block)
8301 (attr_to_dynamic_prop, partial_die_info::read)
8302 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8303 (dwarf2_symbol_mark_computed, set_die_type): Update.
8304 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8305 method.
8306 (attr_form_is_block): Don't declare.
8307 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8308
cd6c91b4
TT
83092020-02-08 Tom Tromey <tom@tromey.com>
8310
8311 * dwarf2read.c (dwarf2_find_base_address, )
8312 (read_call_site_scope, rust_containing_type)
8313 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8314 (handle_data_member_location, dwarf2_add_member_fn)
8315 (get_alignment, read_structure_type, process_structure_scope)
8316 (mark_common_block_symbol_computed, read_common_block)
8317 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8318 (partial_die_info::read, read_attribute_value, new_symbol)
8319 (lookup_die_type, dwarf2_get_ref_die_offset)
8320 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8321 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8322 (dwarf2_symbol_mark_computed): Update.
8323 * dwarf2/attribute.h (struct attribute) <value_as_address,
8324 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8325 methods.
8326 (value_as_address, attr_form_is_section_offset)
8327 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8328 * dwarf2/attribute.c (attribute::value_as_address)
8329 (attribute::form_is_section_offset, attribute::form_is_constant)
8330 (attribute::form_is_ref): Now methods.
8331
162dce55
TT
83322020-02-08 Tom Tromey <tom@tromey.com>
8333
8334 * dwarf2read.c (struct attribute, DW_STRING)
8335 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8336 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8337 (attr_form_is_block, attr_form_is_section_offset)
8338 (attr_form_is_constant, attr_form_is_ref): Move.
8339 * dwarf2/attribute.h: New file.
8340 * dwarf2/attribute.c: New file, from dwarf2read.c.
8341 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8342
3054dd54
TT
83432020-02-08 Tom Tromey <tom@tromey.com>
8344
8345 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8346 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8347 Move.
8348 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8349 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8350 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8351 abbrev.c.
8352 * dwarf2/abbrev.h: New file.
8353 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8354 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8355
96b79293
TT
83562020-02-08 Tom Tromey <tom@tromey.com>
8357
8358 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8359 (dwarf2_section_size, dwarf2_get_section_info)
8360 (create_signatured_type_table_from_debug_names)
8361 (create_addrmap_from_aranges, read_debug_names_from_section)
8362 (get_gdb_index_contents_from_section, read_comp_unit_head)
8363 (error_check_comp_unit_head, read_abbrev_offset)
8364 (create_debug_type_hash_table, init_cu_die_reader)
8365 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8366 (read_comp_units_from_section, create_cus_hash_table)
8367 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8368 (create_dwp_v2_section, dwarf2_rnglists_process)
8369 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8370 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8371 (read_indirect_string_from_dwz, read_addr_index_1)
8372 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8373 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8374 (fill_in_loclist_baton): Update.
8375 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8376 get_containing_section, get_bfd_owner, get_bfd_section,
8377 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8378 (dwarf2_read_section, get_section_name, get_section_file_name)
8379 (get_containing_section, get_section_bfd_owner)
8380 (get_section_bfd_section, get_section_name, get_section_file_name)
8381 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8382 declare.
8383 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8384 (dwarf2_section_info::get_bfd_owner)
8385 (dwarf2_section_info::get_bfd_section)
8386 (dwarf2_section_info::get_name)
8387 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8388 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8389 (dwarf2_section_info::read): Now methods.
8390 * dwarf-index-write.c (class debug_names): Update.
8391
2c86cff9
TT
83922020-02-08 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8395 Move to dwarf2/section.h.
8396 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8397 (get_section_bfd_section, get_section_name)
8398 (get_section_file_name, get_section_id, get_section_flags)
8399 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8400 dwarf2/section.c.
8401 * dwarf2/section.h: New file.
8402 * dwarf2/section.c: New file, from dwarf2read.c.
8403 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8404
f4382c45
TT
84052020-02-08 Tom Tromey <tom@tromey.com>
8406
8407 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8408 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8409 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8410 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8411 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8412 * dwarf2/leb.h: New file, from dwarf2read.c.
8413 * dwarf2/leb.c: New file, from dwarf2read.c.
8414 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8415 Remove.
8416 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8417 (COMMON_SFILES): Add dwarf2/leb.c.
8418
01840b7a
JB
84192020-02-08 Joel Brobecker <brobecker@adacore.com>
8420
8421 GDB 9.1 released.
8422
dfcb27e4
IB
84232020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8424
8425 PR gdb/25190:
aac66a4c
SM
8426 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8427 * gdb/remote.c (remote_console_output): Update.
8428 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8429 (ui_file_puts): ...this.
8430 * gdb/ui-file.h (ui_file_puts): Add declaration.
8431 * gdb/utils.c (emit_style_escape): Update.
8432 (flush_wrap_buffer): Update.
8433 (fputs_maybe_filtered): Update.
8434 (fputs_unfiltered): Add function.
dfcb27e4 8435
faa17681
IB
84362020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8437
aac66a4c
SM
8438 * gdb/event-loop.c (gdb_wait_for_event): Update.
8439 * gdb/printcmd.c (printf_command): Update.
8440 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8441 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8442 (gdb_os_flush_stderr): Update.
8443 * gdb/remote.c (remote_console_output): Update.
8444 * gdb/ui-file.c (gdb_flush): Rename to...
8445 (ui_file_flush): ...this.
8446 (stderr_file::write): Update.
8447 (stderr_file::puts): Update.
8448 * gdb/ui-file.h (gdb_flush): Rename to...
8449 (ui_file_flush): ...this.
8450 * gdb/utils.c (gdb_flush): Add function.
8451 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8452
5abbbe1d
TT
84532020-02-07 Tom Tromey <tromey@adacore.com>
8454
8455 PR breakpoints/24915:
8456 * source.c (find_and_open_source): Do not check basenames_may_differ.
8457
919adfe8
TT
84582020-02-07 Tom Tromey <tom@tromey.com>
8459
8460 * README: Update gdbserver documentation.
8461 * gdbserver: Move to top level.
8462 * configure.tgt (build_gdbserver): Remove.
8463 * configure.ac: Remove --enable-gdbserver.
8464 * configure: Rebuild.
8465 * Makefile.in (distclean): Don't mention gdbserver.
8466
1d5d29e7
SV
84672020-02-06 Shahab Vahedi <shahab@synopsys.com>
8468
8469 * source-cache.c (source_cache::ensure): Surround
8470 get_plain_source_lines with a try/catch.
8471 (source_cache::get_line_charpos): Get rid of try/catch
8472 and only check for the return value of "ensure".
8473 * tui/tui-source.c (tui_source_window::set_contents):
8474 Simplify "nlines" calculation.
8475
6eb1129c
SV
84762020-02-06 Shahab Vahedi <shahab@synopsys.com>
8477
8478 * MAINTAINERS (Write After Approval): Add myself.
8479
c6a42d11
CB
84802020-02-05 Christian Biesinger <cbiesinger@google.com>
8481
8482 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8483 function call.
8484
c8ecdda6
CB
84852020-02-05 Christian Biesinger <cbiesinger@google.com>
8486
8487 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8488
f6480e70
MR
84892020-02-05 Maciej W. Rozycki <macro@wdc.com>
8490
8491 * nat/riscv-linux-tdesc.h: New file.
8492 * nat/riscv-linux-tdesc.c: New file, taking code from...
8493 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8494 ... here.
8495 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8496 NATDEPFILES.
8497
dcc9fbc6
AB
84982020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8499
8500 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8501 we don't set the fake simulator ptid to the null_ptid.
8502
719546c4
SM
85032020-02-03 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8506 * gdbthread.h (class thread_info) <resumed>: Likewise.
8507 * infrun.c (resume_1): Likewise.
8508 (proceed): Likewise.
8509 (infrun_thread_stop_requested): Likewise.
8510 (stop_all_threads): Likewise.
8511 (handle_inferior_event): Likewise.
8512 (restart_threads): Likewise.
8513 (finish_step_over): Likewise.
8514 (keep_going_stepped_thread): Likewise.
8515 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8516 (linux_handle_extended_wait): Likewise.
8517 * record-btrace.c (get_thread_current_frame_id): Likewise.
8518 * record-full.c (record_full_wait_1): Likewise.
8519 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8520 * target.c (target_resume): Likewise.
8521 * thread.c (set_running_thread): Likewise.
8522
e409c542
AKS
85232020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8524
8525 * f-valprint.c (f77_print_array_1): Changed datatype of index
8526 variable to LONGEST from int to enable it to contain bound
8527 values correctly.
8528
ee98c0da
MR
85292020-02-03 Maciej W. Rozycki <macro@wdc.com>
8530
8531 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8532 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8533 offsets according to FLEN determined.
8534 (riscv_linux_nat_target::read_description): Determine FLEN
8535 dynamically.
8536 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8537 according to FLEN determined.
8538 (riscv_linux_nat_target::store_registers): Likewise.
8539
aa66aac4
SV
85402020-02-01 Shahab Vahedi <shahab@synopsys.com>
8541
8542 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8543 when reg->group is empty and reggroup is not.
8544
fd9faca8
TT
85452020-01-31 Tom Tromey <tromey@adacore.com>
8546
8547 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8548 Call beneath target's mourn_inferior after unpushing.
8549
42330a68
AB
85502020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8551
8552 PR tui/9765
8553 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8554 have enough lines to fill the screen, still return the lowest
8555 address we found.
8556
7a27a45b
AB
85572020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8558
8559 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8560 '-', '<', and '>' commands.
8561
c47f70e2
PA
85622020-01-29 Pedro Alves <palves@redhat.com>
8563 Sergio Durigan Junior <sergiodj@redhat.com>
8564
8565 * infcmd.c (construct_inferior_arguments): Assert that
8566 'argc' is greater than 0.
8567
5133a315
LM
85682020-01-29 Luis Machado <luis.machado@linaro.org>
8569
8570 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8571 (BRK_INSN_MASK): Define to 0xd4200000.
8572 (aarch64_program_breakpoint_here_p): New function.
8573 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8574 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8575 breakpoint.c.
8576 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8577 breakpoint.h
8578 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8579 call gdbarch_program_breakpoint_here_p.
8580 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8581 default_program_breakpoint_here_p, changed return type to bool and
8582 simplified.
8583 * breakpoint.h (program_breakpoint_here): Moved prototype to
8584 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8585 return type to bool.
8586 * gdbarch.c: Regenerate.
8587 * gdbarch.h: Regenerate.
8588 * gdbarch.sh (program_breakpoint_here_p): New method.
8589 * infrun.c (handle_signal_stop): Call
8590 gdbarch_program_breakpoint_here_p.
8591
168f8c6b
TT
85922020-01-26 Tom Tromey <tom@tromey.com>
8593
8594 * ctfread.c (struct ctf_fp_info): Reindent.
8595 (_initialize_ctfread): Remove.
8596
128a391f
TT
85972020-01-26 Tom Tromey <tom@tromey.com>
8598
8599 * psymtab.c (partial_map_expand_apply)
8600 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8601 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8602 (psym_print_stats, psym_expand_symtabs_for_function)
8603 (psym_map_symbol_filenames, psym_map_matching_symbols)
8604 (psym_expand_symtabs_matching)
8605 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8606 (maintenance_check_psymtabs): Use new methods.
8607 * psympriv.h (struct partial_symtab) <readin_p,
8608 get_compunit_symtab>: New methods.
8609 <readin, compunit_symtab>: Remove members.
8610 (struct standard_psymtab): New.
8611 (struct legacy_psymtab): Derive from standard_psymtab.
8612 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8613 standard_psymtab.
8614 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8615
0494dbec
TT
86162020-01-26 Tom Tromey <tom@tromey.com>
8617
8618 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8619 read_dependencies. Add assert.
8620 * psymtab.c (partial_symtab::read_dependencies): New method.
8621 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8622 method.
8623 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8624 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8625 read_dependencies.
8626 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8627 Add assert.
8628
8566b89b
TT
86292020-01-26 Tom Tromey <tom@tromey.com>
8630
8631 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8632 Call expand_psymtab.
8633 (xcoff_read_symtab): Call expand_psymtab.
8634 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8635 legacy_expand_psymtab.
8636 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8637 method.
8638 (struct legacy_psymtab) <expand_psymtab>: Implement.
8639 <legacy_expand_psymtab>: New member.
8640 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8641 (parse_partial_symbols): Set legacy_expand_psymtab.
8642 (psymtab_to_symtab_1): Change argument order. Call
8643 expand_psymtab.
8644 (new_psymtab): Set legacy_expand_psymtab.
8645 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8646 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8647 expand_psymtab.
8648 (dwarf2_psymtab::expand_psymtab): Rename from
8649 psymtab_to_symtab_1. Call expand_psymtab.
8650 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8651 (dbx_end_psymtab): Likewise.
8652 (dbx_psymtab_to_symtab_1): Change argument order. Call
8653 expand_psymtab.
8654 (dbx_read_symtab): Call expand_psymtab.
8655 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8656 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8657 (ctf_psymtab::read_symtab): Call expand_psymtab.
8658
077cbab2
TT
86592020-01-26 Tom Tromey <tom@tromey.com>
8660
8661 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8662 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8663 messages.
8664 * mdebugread.c (mdebug_read_symtab): Remove prints.
8665 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8666 assert.
8667 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8668
891813be
TT
86692020-01-26 Tom Tromey <tom@tromey.com>
8670
8671 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8672 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8673 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8674 legacy_symtab.
8675 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8676 * psymtab.c (psymtab_to_symtab): Call method.
8677 (dump_psymtab): Update.
8678 * psympriv.h (struct partial_symtab): Add virtual destructor.
8679 <read_symtab>: New method.
8680 (struct legacy_symtab): New.
8681 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8682 (struct pst_map) <pst>: Now a legacy_psymtab.
8683 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8684 (new_psymtab): Use legacy_psymtab.
8685 * dwarf2read.h (struct dwarf2_psymtab): New.
8686 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8687 * dwarf2read.c (dwarf2_create_include_psymtab)
8688 (dwarf2_build_include_psymtabs, create_type_unit_group)
8689 (create_partial_symtab, process_psymtab_comp_unit_reader)
8690 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8691 (set_partial_user): Use dwarf2_psymtab.
8692 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8693 (psymtab_to_symtab_1, process_full_comp_unit)
8694 (process_full_type_unit, dwarf2_ranges_read)
8695 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8696 (dwarf_decode_lines): Use dwarf2_psymtab.
8697 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8698 (add_address_entry_worker, write_one_signatured_type)
8699 (recursively_count_psymbols, recursively_write_psymbols)
8700 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8701 (write_debug_names): Likewise.
8702 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8703 <pst>: Now a legacy_psymtab.
8704 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8705 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8706 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8707 * ctfread.c (struct ctf_psymtab): New.
8708 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8709 ctf_psymtab.
8710 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8711 (create_partial_symtab): Return a ctf_psymtab.
8712 (scan_partial_symbols): Update.
8713
c3693a1d
TT
87142020-01-26 Tom Tromey <tom@tromey.com>
8715
8716 * xcoffread.c (xcoff_start_psymtab): Use new.
8717 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8718 renamed from start_psymtab_common.
8719 * psympriv.h (struct partial_symtab): Add new constructor.
8720 (start_psymtab_common): Don't declare.
8721 * mdebugread.c (parse_partial_symbols): Use new.
8722 * dwarf2read.c (create_partial_symtab): Use new.
8723 * dbxread.c (start_psymtab): Use new.
8724 * ctfread.c (create_partial_symtab): Use new.
8725
32caafd0
TT
87262020-01-26 Tom Tromey <tom@tromey.com>
8727
8728 * xcoffread.c (xcoff_end_psymtab): Use new.
8729 * psymtab.c (start_psymtab_common): Use new.
8730 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8731 Update.
8732 * psympriv.h (struct partial_symtab): Add parameters to
8733 constructor. Don't inline.
8734 (allocate_psymtab): Don't declare.
8735 * mdebugread.c (new_psymtab): Use new.
8736 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8737 * dbxread.c (dbx_end_psymtab): Use new.
8738
abaa2f23
TT
87392020-01-26 Tom Tromey <tom@tromey.com>
8740
8741 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8742 allocate_psymtab. Update documentation.
8743 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8744 allocate_psymtab. Do not use new.
8745 (allocate_psymtab): Use new. Update.
8746
6d94535f
TT
87472020-01-26 Tom Tromey <tom@tromey.com>
8748
8749 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8750 * psymtab.c (psym_print_stats): Update.
8751 * psympriv.h (struct partial_symtab) <readin,
8752 psymtabs_addrmap_supported, anonymous>: Now bool.
8753 * mdebugread.c (psymtab_to_symtab_1): Update.
8754 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8755 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8756 (process_full_comp_unit, process_full_type_unit): Update.
8757 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8758 * ctfread.c (psymtab_to_symtab): Update.
8759
6f17252b
TT
87602020-01-26 Tom Tromey <tom@tromey.com>
8761
8762 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8763 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8764 * psymtab.c (psymtab_storage): Delete psymtabs.
8765 (psymtab_storage::allocate_psymtab): Use new.
8766 (psymtab_storage::discard_psymtab): Use delete.
8767 * psympriv.h (struct partial_symtab): Add constructor and
8768 initializers.
8769
f6f1cebc
TT
87702020-01-26 Tom Tromey <tom@tromey.com>
8771
8772 * machoread.c: Do not include psympriv.h.
8773
e47e48f6
PW
87742020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8775
8776 * NEWS: Mention the new option and the set/show commands.
8777
a2fedca9
PW
87782020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8779
8780 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8781 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8782 (validate_exec_file): New variables, enums, functions.
8783 (exec_file_locate_attach, print_section_info): Style the filenames.
8784 (_initialize_exec): Install show_exec_file_mismatch_command and
8785 set_exec_file_mismatch_command.
8786 * gdbcore.h (validate_exec_file): Declare.
8787 * infcmd.c (attach_command): Call validate_exec_file.
8788 * remote.c ( remote_target::remote_add_inferior): Likewise.
8789
7ffa82e1
AB
87902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * frame.c (find_frame_sal): Move call to get_next_frame into more
8793 inner scope.
8794 * inline-frame.c (inilne_state) <inline_state>: Update argument
8795 types.
8796 (inilne_state) <skipped_symbol>: Rename to...
8797 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8798 (skip_inline_frames): Build vector of skipped symbols and use this
8799 to reate the inline_state.
8800 (inline_skipped_symbol): Add a comment and some assertions, fetch
8801 skipped symbol from the list.
8802
3d92a3e3
AB
88032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * buildsym.c (lte_is_less_than): Delete.
8806 (buildsym_compunit::end_symtab_with_blockvector): Create local
8807 lambda function to sort line table entries, and use
8808 std::stable_sort instead of std::sort.
8809 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8810 markers when looking for a previous line.
8811
94a72be7
AB
88122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8813
8814 * dwarf2read.c (lnp_state_machine::record_line): Include
8815 end_sequence parameter in debug print out. Record the line if we
8816 are at an end_sequence marker even if it's not the start of a
8817 statement.
8818 * symmisc.c (maintenance_print_one_line_table): Print end of
8819 sequence markers with 'END' not '0'.
8820
53af73bf
PA
88212020-01-24 Pedro Alves <palves@redhat.com>
8822
8823 PR gdb/25410
8824 * thread.c (scoped_restore_current_thread::restore): Use
8825 switch_to_inferior_no_thread.
8826 * exec.c: Include "progspace-and-thread.h".
8827 (add_target_sections, remove_target_sections):
8828 scoped_restore_current_pspace_and_thread instead of
8829 scoped_restore_current_thread.
8830 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8831 and aspace to the inferior before calling clone_program_space.
8832 Remove stale comment.
8833
3050c6f4
CB
88342020-01-24 Christian Biesinger <cbiesinger@google.com>
8835
8836 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8837 (arm_netbsd_nat_target::fetch_registers): ...this.
8838 (arm_nbsd_nat_target::store_registers): Rename to...
8839 (arm_netbsd_nat_target::store_registers): ...this.
8840
73685c7e
CB
88412020-01-24 Christian Biesinger <cbiesinger@google.com>
8842
8843 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8844 register_t.
8845
89203d40
CB
88462020-01-24 Christian Biesinger <cbiesinger@google.com>
8847
8848 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8849 Update comment.
8850 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8851 Likewise.
8852 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8853 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8854 the correct replacement (iterate_over_regset_sections).
8855 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8856 Update comment.
8857
1ba1ac88
AB
88582020-01-24 Graham Markall <graham.markall@embecosm.com>
8859
8860 PR gdb/23718
8861 * gdb/python/python.c (execute_gdb_command): Call
8862 async_enable_stdin in catch block.
8863
f3364a6d
AB
88642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8865
8866 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8867 SWITCH_THRU_ALL_UIS.
8868
733d0a67
AB
88692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 PR tui/9765
8872 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8873 comment, add extra parameter, and update to store previous symbol
8874 when appropriate.
8875 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8876 add extra parameter.
8877 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8878 remove unneeded parameter, add try/catch around gdb_print_insn,
8879 rewrite to add items to asm_lines vector.
8880 (tui_find_backward_disassembly_start_address): New function.
8881 (tui_find_disassembly_address): Updated throughout.
8882 (tui_disasm_window::set_contents): Update for changes to
8883 tui_disassemble.
8884 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8885 number of lines to scroll.
8886
b3b3bada
SM
88872020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8888
8889 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8890 (SECT_OFF_DATA): Likewise.
8891 (SECT_OFF_RODATA): Likewise.
8892 (SECT_OFF_TEXT): Likewise.
8893 (SECT_OFF_BSS): Likewise.
8894 (struct objfile) <text_section_offset, data_section_offset>: New
8895 methods.
8896 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8897 objfile::text_section_offset.
8898 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8899 * coffread.c (coff_symtab_read): Likewise.
8900 (enter_linenos): Likewise.
8901 (process_coff_symbol): Likewise.
8902 * ctfread.c (get_objfile_text_range): Likewise.
8903 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8904 Use objfile::data_section_offset.
8905 * dwarf2-frame.c (execute_cfa_program): Use
8906 objfile::text_section_offset.
8907 (dwarf2_frame_find_fde): Likewise.
8908 * dwarf2read.c (create_addrmap_from_index): Likewise.
8909 (create_addrmap_from_aranges): Likewise.
8910 (dw2_find_pc_sect_compunit_symtab): Likewise.
8911 (process_psymtab_comp_unit_reader): Likewise.
8912 (add_partial_symbol): Likewise.
8913 (add_partial_subprogram): Likewise.
8914 (process_full_comp_unit): Likewise.
8915 (read_file_scope): Likewise.
8916 (read_func_scope): Likewise.
8917 (read_lexical_block_scope): Likewise.
8918 (read_call_site_scope): Likewise.
8919 (dwarf2_rnglists_process): Likewise.
8920 (dwarf2_ranges_process): Likewise.
8921 (dwarf2_ranges_read): Likewise.
8922 (dwarf_decode_lines_1): Likewise.
8923 (new_symbol): Likewise.
8924 (dwarf2_fetch_die_loc_sect_off): Likewise.
8925 (dwarf2_per_cu_text_offset): Likewise.
8926 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8927 * hppa-tdep.c (read_unwind_info): Likewise.
8928 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8929 * psympriv.h (struct partial_symtab): Likewise.
8930 * psymtab.c (find_pc_sect_psymtab): Likewise.
8931 * solib-svr4.c (enable_break): Likewise.
8932 * stap-probe.c (relocate_address): Use
8933 objfile::data_section_offset.
8934 * xcoffread.c (enter_line_range): Use
8935 objfile::text_section_offset.
8936 (read_xcoff_symtab): Likewise.
8937
ab53f382
SM
89382020-01-23 Simon Marchi <simon.marchi@efficios.com>
8939
8940 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8941 declaration to narrower scopes.
8942
e7eee665
SM
89432020-01-23 Simon Marchi <simon.marchi@efficios.com>
8944
8945 * darwin-nat.h (struct darwin_exception_msg, enum
8946 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8947 Move up.
8948 (class darwin_nat_target) <wait_1, check_new_threads,
8949 decode_exception_message, decode_message, stop_inferior,
8950 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8951 * darwin-nat.c (darwin_check_new_threads): Rename to...
8952 (darwin_nat_target::check_new_threads): ... this.
8953 (darwin_suspend_inferior_it): Remove.
8954 (darwin_decode_exception_message): Rename to...
8955 (darwin_nat_target::decode_exception_message): ... this.
8956 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8957 (darwin_decode_message): Rename to...
8958 (darwin_nat_target::decode_message): ... this.
8959 (cancel_breakpoint): Rename to...
8960 (darwin_nat_target::cancel_breakpoint): ... this.
8961 (darwin_wait): Rename to...
8962 (darwin_nat_target::wait_1): ... this. Use range-based for loop
8963 instead of iterate_over_inferiors.
8964 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
8965 (darwin_stop_inferior): Rename to...
8966 (darwin_nat_target::stop_inferior): ... this.
8967 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
8968 (darwin_init_thread_list): Rename to...
8969 (darwin_nat_target::init_thread_list): ... this.
8970 (darwin_ptrace_him): Rename to...
8971 (darwin_nat_target::ptrace_him): ... this.
8972 (darwin_nat_target::create_inferior): Pass lambda function to
8973 fork_inferior.
8974 (darwin_nat_target::detach): Call stop_inferior instead of
8975 darwin_stop_inferior.
8976 * fork-inferior.h (fork_inferior): Change init_trace_fun
8977 parameter to gdb::function_view.
8978 * fork-inferior.c (fork_inferior): Likewise.
8979
c162ed3e
HD
89802020-01-23 Hannes Domani <ssbssa@yahoo.de>
8981
8982 * i386-cygwin-tdep.c (core_process_module_section): Update.
8983 * windows-nat.c (struct lm_info_windows): Add text_offset.
8984 (windows_xfer_shared_libraries): Update.
8985 * windows-tdep.c (windows_xfer_shared_library):
8986 Add text_offset_cached argument.
8987 * windows-tdep.h (windows_xfer_shared_library): Update.
8988
a1237872
SM
89892020-01-21 Simon Marchi <simon.marchi@efficios.com>
8990
8991 * gdbarch.sh: Add declaration for _initialize_gdbarch.
8992
b3ee6dd9
SM
89932020-01-21 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
8996 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
8997 replace with range-based for.
8998 (gdbsim_interrupt_inferior): Remove.
8999 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9000 with a range-based for. Inline code from
9001 gdbsim_interrupt_inferior.
9002
f9fac3c8
SM
90032020-01-21 Simon Marchi <simon.marchi@efficios.com>
9004
9005 * infrun.c (proceed): Fix indentation.
9006
f6474de9
TT
90072020-01-21 Tom Tromey <tromey@adacore.com>
9008
9009 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9010 * python/python.c (python_extension_ops): Update.
9011 (gdbpy_colorize): New function.
9012 * python/lib/gdb/__init__.py (colorize): New function.
9013 * extension.h (ext_lang_colorize): Declare.
9014 * extension.c (ext_lang_colorize): New function.
9015 * extension-priv.h (struct extension_language_ops) <colorize>: New
9016 member.
9017 * cli/cli-style.c (_initialize_cli_style): Update help text.
9018
f0c702d4
LM
90192020-01-21 Luis Machado <luis.machado@linaro.org>
9020
9021 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9022 <cond>: Change type to bool.
9023 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9024 (aarch64_displaced_step_cb): Likewise.
9025 (aarch64_displaced_step_tb): Likewise.
9026
1ab139e5
LM
90272020-01-21 Luis Machado <luis.machado@linaro.org>
9028
9029 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9030 output.
9031
0c271889
LM
90322020-01-21 Luis Machado <luis.machado@linaro.org>
9033
9034 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9035 <pc_adjust>: Adjust the documentation.
9036 (aarch64_displaced_step_fixup): Check if PC really moved before
9037 adjusting it.
9038
4d89c1c7
TT
90392020-01-19 Tom Tromey <tom@tromey.com>
9040
9041 * disasm.c (~gdb_disassembler): New destructor.
9042 (gdb_buffered_insn_length): Call disassemble_free_target.
9043 * disasm.h (class gdb_disassembler): Declare destructor. Use
9044 DISABLE_COPY_AND_ASSIGN.
9045
c0ab21c2
TT
90462020-01-19 Tom Tromey <tom@tromey.com>
9047
9048 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9049 (die_reader_func_ftype): Remove.
9050 (cutu_reader): New class.
9051 (dw2_get_file_names_reader): Remove "data" parameter.
9052 (dw2_get_file_names): Use cutu_reader.
9053 (create_debug_type_hash_table): Update.
9054 (read_cutu_die_from_dwo): Update comment.
9055 (lookup_dwo_unit): Add dwo_name parameter.
9056 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9057 die_reader_func_ftype and data parameters.
9058 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9059 Remove die_reader_func_ftype and data parameters.
9060 (~cutu_reader): New; from init_cutu_and_read_dies.
9061 (cutu_reader::cutu_reader): Rename from
9062 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9063 and data parameters.
9064 (init_cutu_and_read_dies_simple): Remove.
9065 (struct process_psymtab_comp_unit_data): Remove.
9066 (process_psymtab_comp_unit_reader): Remove data parameter; add
9067 want_partial_unit and pretend_language parameters.
9068 (process_psymtab_comp_unit): Use cutu_reader.
9069 (build_type_psymtabs_reader): Remove data parameter.
9070 (build_type_psymtabs_1): Use cutu_reader.
9071 (process_skeletonless_type_unit): Likewise.
9072 (load_partial_comp_unit_reader): Remove.
9073 (load_partial_comp_unit): Use cutu_reader.
9074 (load_full_comp_unit_reader): Remove.
9075 (load_full_comp_unit): Use cutu_reader.
9076 (struct create_dwo_cu_data): Remove.
9077 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9078 dwo_unit parameters.
9079 (create_cus_hash_table): Use cutu_reader.
9080 (struct dwarf2_read_addr_index_data): Remove.
9081 (dwarf2_read_addr_index_reader): Remove.
9082 (dwarf2_read_addr_index): Use cutu_reader.
9083 (read_signatured_type_reader): Remove.
9084 (read_signatured_type): Use cutu_reader.
9085
45bbae5c
TT
90862020-01-19 Tom Tromey <tom@tromey.com>
9087
9088 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9089 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9090 (tui_wrefresh): Declare.
9091 * tui/tui-wingeneral.c (suppress_output): New global.
9092 (tui_suppress_output, ~tui_suppress_output): New constructor and
9093 destructor.
9094 (tui_wrefresh): New function.
9095 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9096 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9097 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9098 method.
9099 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9100 tui_wrefresh.
9101 (tui_data_window::no_refresh): New method.
9102 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9103 (tui_reg_command): Use tui_suppress_output
9104 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9105 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9106 method.
9107 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9108
4f13c1c0
TT
91092020-01-19 Tom Tromey <tom@tromey.com>
9110
9111 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9112 Handle case where symtab is null.
9113
fa47e446
SM
91142020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9115
9116 * linux-fork.c (one_fork_p): Simplify.
9117
26f42329
SM
91182020-01-17 Simon Marchi <simon.marchi@efficios.com>
9119
9120 * top.c (struct qt_args): Remove.
9121 (kill_or_detach): Change return type to void, replace `void *`
9122 parameter with a proper one.
9123 (print_inferior_quit_action): Likewise.
9124 (quit_confirm): Use range-based for loop to iterate over inferiors.
9125 (quit_force): Likewise.
9126
a9ac81b1
SM
91272020-01-17 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9130 `void *` parameter with proper parameters.
9131 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9132 (print_one_inferior): Change return type to void, replace `void *`
9133 parameter with proper parameters.
9134 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9135 inferiors.
9136 (get_other_inferior): Remove.
9137 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9138 inferiors.
9139
788eca49
SM
91402020-01-17 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * mi/mi-interp.c (report_initial_inferior): Remove.
9143 (mi_interp::init): Use range-based for to iterate over inferiors.
9144
d9bc85b6
SM
91452020-01-17 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * python/py-inferior.c (build_inferior_list): Remove.
9148 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9149
40c94099
CB
91502020-01-16 Christian Biesinger <cbiesinger@google.com>
9151
9152 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9153 (btrace_stitch_trace): Likewise.
9154 * charset.c (intermediate_encoding): Likewise (vaild).
9155 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9156 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9157 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9158
e0cdfe3c
HD
91592020-01-16 Hannes Domani <ssbssa@yahoo.de>
9160
9161 * windows-tdep.c (windows_get_tlb_type):
9162 Add rtl_user_process_parameters type.
9163
790f1718 91642020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9165 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9166
9167 PR build/24805
9168 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9169 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9170 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9171 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9172 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9173 (ps_plog): Redeclare exported functions with default visibility.
9174
3112ed97
NA
91752020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9176
9177 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9178 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9179
8dc3273e
SM
91802020-01-15 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * infcmd.c (post_create_inferior): Use get_thread_regcache
9183 instead of get_current_regcache.
9184
ff47f4f0
TT
91852020-01-14 Tom Tromey <tom@tromey.com>
9186
9187 PR symtab/12535:
9188 * python/python.c (gdbpy_decode_line): Treat empty string the same
9189 as no argument.
9190
975f45b7
TT
91912020-01-14 Tom Tromey <tom@tromey.com>
9192
9193 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9194
25e57356
TT
91952020-01-14 Tom Tromey <tom@tromey.com>
9196
9197 * nat/linux-btrace.c: Don't include <config.h>.
9198 * nat/linux-ptrace.c: Don't include <config.h>.
9199 * nat/x86-linux-dregs.c: Don't include <config.h>.
9200
05ea2a05
TT
92012020-01-14 Tom Tromey <tom@tromey.com>
9202
9203 * configure: Rebuild.
9204 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9205
01027315
TT
92062020-01-14 Tom Tromey <tom@tromey.com>
9207
9208 * nat/x86-linux-dregs.c: Include configh.h.
9209 * nat/linux-ptrace.c: Include configh.h.
9210 * nat/linux-btrace.c: Include configh.h.
9211 * defs.h: Include config.h, bfd.h.
9212 * configure.ac: Don't source common.host.
9213 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9214 * configure: Rebuild.
9215 * acinclude.m4: Update path.
9216 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9217 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9218 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9219 (CLIBS): Add LIBSUPPORT.
9220 (CDEPS): Likewise.
9221 (COMMON_SFILES): Remove gdbsupport files.
9222 (HFILES_NO_SRCDIR): Likewise.
9223 (stamp-version): Update path to create-version.sh.
9224 (ALLDEPFILES): Remove gdbsupport files.
9225
b2ceabe8
TT
92262020-01-14 Tom Tromey <tom@tromey.com>
9227
9228 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9229 USE_WIN32API when needed.
9230 * configure.ac (USE_WIN32API): Don't define.
9231 (WIN32LIBS): Use WIN32APILIBS.
9232 * configure: Rebuild.
9233
25c51f71
TT
92342020-01-14 Tom Tromey <tom@tromey.com>
9235
9236 * configure: Rebuild.
9237 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9238
717c684d
BE
92392020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9240
9241 * skip.c (skip_function_command): Make skip w/o arguments use the
9242 name of the inlined function if pc is inside any inlined function.
9243
7da6a5b9
LM
92442020-01-14 Luis Machado <luis.machado@linaro.org>
9245
9246 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9247 * infrun.c (resume_1): Likewise.
9248 (handle_inferior_event): Remove stale comment.
9249 * linux-nat.c (linux_nat_target::resume): Update comments.
9250 (save_stop_reason): Likewise.
9251 (linux_nat_filter_event): Likewise.
9252 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9253
44e4c775
AB
92542020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9255
9256 * elfread.c (record_minimal_symbol): Set section index to 0 for
9257 non-allocatable sections.
9258
18a8505e
AT
9259
92602020-01-13 Ali Tamur <tamur@google.com>
9261
9262 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9263 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9264 to gdb::optional. Update comments.
9265 (dwo_file): Update comments.
9266 (read_attribute): Update API to take an additional out parameter,
9267 need_reprocess. This is used to mark attributes that need other
9268 attributes (e.g. str_offsets_base) for correct computation which may not
9269 have been read yet.
9270 (read_attribute_reprocess): New function declaration.
9271 (read_addr_index): Likewise.
9272 (read_dwo_str_index): Likewise.
9273 (read_stub_str_index): Likewise.
9274 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9275 (lookup_addr_base): New function definition.
9276 (lookup_ranges_base): Likewise.
9277 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9278 lookup_ranges_base.
9279 (init_cutu_and_read_dies): Update comments.
9280 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9281 unit. This is used to inherit parent's str_offsets_base and addr_base.
9282 Update comments.
9283 (init_cutu_and_read_dies_simple): Reflect API changes.
9284 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9285 (create_cus_hash_table): Change API to take parent compile unit.
9286 Reflect API changes.
9287 (open_and_init_dwo_file): Reflect API changes.
9288 (dwarf2_get_pc_bounds): Update comments.
9289 (dwarf2_record_block_ranges): Likewise.
9290 (read_full_die_1): Change implementation to reprocess attributes that
9291 need str_offsets_base and addr_base.
9292 (partial_die_info::read): Likewise.
9293 (read_attribute_reprocess): New function definition.
9294 (read_attribute_value): Change API to take an additional out parameter,
9295 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9296 when a non-dwo compile unit has index based attributes.
9297 (read_attribute): Reflect API changes.
9298 (read_addr_index_1): Reflect API changes. Update comments.
9299 (dwarf2_read_addr_index_data): Reflect API changes.
9300 (dwarf2_read_addr_index): Likewise.
9301 (read_str_index): Change API and implementation. This becomes a helper
9302 to be used by the new string index related methods. Update error
9303 message and comments.
9304 (read_dwo_str_index): New function definition.
9305 (read_stub_str_index): Likewise.
9306 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9307 * symfile.h (dwarf2_debug_sections): Likewise.
9308 * xcoffread.c (dwarf2_debug_sections): Likewise.
9309
0cac9354
SM
93102020-01-13 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9313 core_reg_sect type to gdb_byte *.
9314 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9315 * cris-tdep.c (fetch_core_registers): Likewise.
9316 * corelow.c (core_target::get_core_register_section): Change
9317 type of `contents` to gdb::byte_vector.
9318
9a6d629c
AB
93192020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9320
9321 * tui/tui-wingeneral.c (box_win): Position the title in the center
9322 of the border.
9323
d8b2f9e3
SM
93242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9325
9326 * corelow.c (core_target::get_core_register_section): Use
9327 std::vector instead of alloca.
9328
bb564c58
SM
93292020-01-13 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * warning.m4: Add -Wmissing-declarations to build_warnings.
9332 * configure: Re-generate.
9333
6b366111
SM
93342020-01-13 Simon Marchi <simon.marchi@efficios.com>
9335
9336 * python/python.c (init__gdb_module): Add declaration.
9337
6c265988
SM
93382020-01-13 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9341 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9342 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9343 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9344 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9345 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9346 * ada-exp.y (_initialize_ada_exp): Add declaration.
9347 * ada-lang.c (_initialize_ada_language): Add declaration.
9348 * ada-tasks.c (_initialize_tasks): Add declaration.
9349 * agent.c (_initialize_agent): Add declaration.
9350 * aix-thread.c (_initialize_aix_thread): Add declaration.
9351 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9352 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9353 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9354 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9355 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9356 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9357 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9358 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9359 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9360 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9361 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9362 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9363 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9364 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9365 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9366 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9367 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9368 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9369 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9370 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9371 * annotate.c (_initialize_annotate): Add declaration.
9372 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9373 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9374 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9375 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9376 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9377 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9378 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9379 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9380 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9381 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9382 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9383 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9384 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9385 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9386 * auto-load.c (_initialize_auto_load): Add declaration.
9387 * auxv.c (_initialize_auxv): Add declaration.
9388 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9389 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9390 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9391 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9392 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9393 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9394 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9395 * breakpoint.c (_initialize_breakpoint): Add declaration.
9396 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9397 * btrace.c (_initialize_btrace): Add declaration.
9398 * charset.c (_initialize_charset): Add declaration.
9399 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9400 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9401 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9402 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9403 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9404 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9405 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9406 * coffread.c (_initialize_coffread): Add declaration.
9407 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9408 * compile/compile.c (_initialize_compile): Add declaration.
9409 * complaints.c (_initialize_complaints): Add declaration.
9410 * completer.c (_initialize_completer): Add declaration.
9411 * copying.c (_initialize_copying): Add declaration.
9412 * corefile.c (_initialize_core): Add declaration.
9413 * corelow.c (_initialize_corelow): Add declaration.
9414 * cp-abi.c (_initialize_cp_abi): Add declaration.
9415 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9416 * cp-support.c (_initialize_cp_support): Add declaration.
9417 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9418 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9419 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9420 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9421 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9422 * ctfread.c (_initialize_ctfread): Add declaration.
9423 * d-lang.c (_initialize_d_language): Add declaration.
9424 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9425 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9426 * dbxread.c (_initialize_dbxread): Add declaration.
9427 * dcache.c (_initialize_dcache): Add declaration.
9428 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9429 * disasm.c (_initialize_disasm): Add declaration.
9430 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9431 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9432 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9433 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9434 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9435 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9436 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9437 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9438 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9439 * elfread.c (_initialize_elfread): Add declaration.
9440 * exec.c (_initialize_exec): Add declaration.
9441 * extension.c (_initialize_extension): Add declaration.
9442 * f-lang.c (_initialize_f_language): Add declaration.
9443 * f-valprint.c (_initialize_f_valprint): Add declaration.
9444 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9445 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9446 * filesystem.c (_initialize_filesystem): Add declaration.
9447 * findcmd.c (_initialize_mem_search): Add declaration.
9448 * findvar.c (_initialize_findvar): Add declaration.
9449 * fork-child.c (_initialize_fork_child): Add declaration.
9450 * frame-base.c (_initialize_frame_base): Add declaration.
9451 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9452 * frame.c (_initialize_frame): Add declaration.
9453 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9454 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9455 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9456 * gcore.c (_initialize_gcore): Add declaration.
9457 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9458 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9459 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9460 * gdbarch.c (_initialize_gdbarch): Add declaration.
9461 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9462 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9463 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9464 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9465 * go-lang.c (_initialize_go_language): Add declaration.
9466 * go32-nat.c (_initialize_go32_nat): Add declaration.
9467 * guile/guile.c (_initialize_guile): Add declaration.
9468 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9469 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9470 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9471 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9472 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9473 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9474 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9475 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9476 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9477 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9478 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9479 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9480 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9481 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9482 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9483 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9484 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9485 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9486 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9487 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9488 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9489 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9490 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9491 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9492 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9493 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9494 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9495 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9496 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9497 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9498 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9499 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9500 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9501 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9502 * infcall.c (_initialize_infcall): Add declaration.
9503 * infcmd.c (_initialize_infcmd): Add declaration.
9504 * inflow.c (_initialize_inflow): Add declaration.
9505 * infrun.c (_initialize_infrun): Add declaration.
9506 * interps.c (_initialize_interpreter): Add declaration.
9507 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9508 * jit.c (_initialize_jit): Add declaration.
9509 * language.c (_initialize_language): Add declaration.
9510 * linux-fork.c (_initialize_linux_fork): Add declaration.
9511 * linux-nat.c (_initialize_linux_nat): Add declaration.
9512 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9513 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9514 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9515 * m2-lang.c (_initialize_m2_language): Add declaration.
9516 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9517 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9518 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9519 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9520 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9521 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9522 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9523 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9524 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9525 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9526 * machoread.c (_initialize_machoread): Add declaration.
9527 * macrocmd.c (_initialize_macrocmd): Add declaration.
9528 * macroscope.c (_initialize_macroscope): Add declaration.
9529 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9530 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9531 * maint.c (_initialize_maint_cmds): Add declaration.
9532 * mdebugread.c (_initialize_mdebugread): Add declaration.
9533 * memattr.c (_initialize_mem): Add declaration.
9534 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9535 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9536 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9537 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9538 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9539 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9540 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9541 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9542 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9543 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9544 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9545 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9546 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9547 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9548 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9549 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9550 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9551 * mipsread.c (_initialize_mipsread): Add declaration.
9552 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9553 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9554 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9555 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9556 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9557 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9558 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9559 * nto-procfs.c (_initialize_procfs): Add declaration.
9560 * objc-lang.c (_initialize_objc_language): Add declaration.
9561 * observable.c (_initialize_observer): Add declaration.
9562 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9563 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9564 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9565 * osabi.c (_initialize_gdb_osabi): Add declaration.
9566 * osdata.c (_initialize_osdata): Add declaration.
9567 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9568 * parse.c (_initialize_parse): Add declaration.
9569 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9570 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9571 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9572 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9573 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9574 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9575 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9576 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9577 * printcmd.c (_initialize_printcmd): Add declaration.
9578 * probe.c (_initialize_probe): Add declaration.
9579 * proc-api.c (_initialize_proc_api): Add declaration.
9580 * proc-events.c (_initialize_proc_events): Add declaration.
9581 * proc-service.c (_initialize_proc_service): Add declaration.
9582 * procfs.c (_initialize_procfs): Add declaration.
9583 * producer.c (_initialize_producer): Add declaration.
9584 * psymtab.c (_initialize_psymtab): Add declaration.
9585 * python/python.c (_initialize_python): Add declaration.
9586 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9587 * record-btrace.c (_initialize_record_btrace): Add declaration.
9588 * record-full.c (_initialize_record_full): Add declaration.
9589 * record.c (_initialize_record): Add declaration.
9590 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9591 * regcache.c (_initialize_regcache): Add declaration.
9592 * reggroups.c (_initialize_reggroup): Add declaration.
9593 * remote-notif.c (_initialize_notif): Add declaration.
9594 * remote-sim.c (_initialize_remote_sim): Add declaration.
9595 * remote.c (_initialize_remote): Add declaration.
9596 * reverse.c (_initialize_reverse): Add declaration.
9597 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9598 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9599 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9600 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9601 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9602 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9603 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9604 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9605 Add declaration.
9606 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9607 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9608 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9609 * rust-exp.y (_initialize_rust_exp): Add declaration.
9610 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9611 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9612 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9613 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9614 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9615 * score-tdep.c (_initialize_score_tdep): Add declaration.
9616 * ser-go32.c (_initialize_ser_dos): Add declaration.
9617 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9618 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9619 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9620 * ser-uds.c (_initialize_ser_socket): Add declaration.
9621 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9622 * serial.c (_initialize_serial): Add declaration.
9623 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9624 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9625 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9626 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9627 * skip.c (_initialize_step_skip): Add declaration.
9628 * sol-thread.c (_initialize_sol_thread): Add declaration.
9629 * solib-aix.c (_initialize_solib_aix): Add declaration.
9630 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9631 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9632 * solib-frv.c (_initialize_frv_solib): Add declaration.
9633 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9634 * solib-target.c (_initialize_solib_target): Add declaration.
9635 * solib.c (_initialize_solib): Add declaration.
9636 * source-cache.c (_initialize_source_cache): Add declaration.
9637 * source.c (_initialize_source): Add declaration.
9638 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9639 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9640 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9641 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9642 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9643 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9644 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9645 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9646 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9647 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9648 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9649 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9650 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9651 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9652 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9653 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9654 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9655 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9656 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9657 * stabsread.c (_initialize_stabsread): Add declaration.
9658 * stack.c (_initialize_stack): Add declaration.
9659 * stap-probe.c (_initialize_stap_probe): Add declaration.
9660 * std-regs.c (_initialize_frame_reg): Add declaration.
9661 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9662 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9663 * symfile.c (_initialize_symfile): Add declaration.
9664 * symmisc.c (_initialize_symmisc): Add declaration.
9665 * symtab.c (_initialize_symtab): Add declaration.
9666 * target.c (_initialize_target): Add declaration.
9667 * target-connection.c (_initialize_target_connection): Add
9668 declaration.
9669 * target-dcache.c (_initialize_target_dcache): Add declaration.
9670 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9671 * thread.c (_initialize_thread): Add declaration.
9672 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9673 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9674 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9675 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9676 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9677 * tracectf.c (_initialize_ctf): Add declaration.
9678 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9679 * tracefile.c (_initialize_tracefile): Add declaration.
9680 * tracepoint.c (_initialize_tracepoint): Add declaration.
9681 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9682 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9683 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9684 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9685 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9686 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9687 * tui/tui.c (_initialize_tui): Add declaration.
9688 * typeprint.c (_initialize_typeprint): Add declaration.
9689 * ui-style.c (_initialize_ui_style): Add declaration.
9690 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9691 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9692 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9693 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9694 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9695 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9696 * unittests/filtered_iterator-selftests.c
9697 (_initialize_filtered_iterator_selftests): Add declaration.
9698 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9699 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9700 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9701 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9702 * unittests/main-thread-selftests.c
9703 (_initialize_main_thread_selftests): Add declaration.
9704 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9705 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9706 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9707 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9708 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9709 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9710 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9711 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9712 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9713 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9714 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9715 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9716 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9717 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9718 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9719 declaration.
9720 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9721 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9722 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9723 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9724 * user-regs.c (_initialize_user_regs): Add declaration.
9725 * utils.c (_initialize_utils): Add declaration.
9726 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9727 * valops.c (_initialize_valops): Add declaration.
9728 * valprint.c (_initialize_valprint): Add declaration.
9729 * value.c (_initialize_values): Add declaration.
9730 * varobj.c (_initialize_varobj): Add declaration.
9731 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9732 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9733 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9734 * windows-nat.c (_initialize_windows_nat): Add declaration.
9735 (_initialize_check_for_gdb_ini): Add declaration.
9736 (_initialize_loadable): Add declaration.
9737 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9738 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9739 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9740 * xcoffread.c (_initialize_xcoffread): Add declaration.
9741 * xml-support.c (_initialize_xml_support): Add declaration.
9742 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9743 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9744 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9745 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9746
e2de1eec
SM
97472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9748
9749 * regformats/regdat.sh: Generate declaration for init function.
9750
e0037b4c
SM
97512020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9752
9753 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9754 up.
9755 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9756 close_one_inferior>: New methods.
9757 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9758 pass down target to find_inferior_pid.
9759 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9760 Pass down target to find_inferior_ptid.
9761 (gdbsim_target::create_inferior): Pass down target to
9762 add_thread_silent.
9763 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9764 target down to find_inferior_ptid and switch_to_thread.
9765 (gdbsim_target::close): Update to call close_one_inferior.
9766 (struct resume_data): Remove.
9767 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9768 directly, rather than through a void pointer.
9769 (gdbsim_target::resume): Update to call resume_one_inferior.
9770
58920b5b
SM
97712020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9772
9773 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9774
4ec89149
PA
97752020-01-12 Pedro Alves <palves@redhat.com>
9776
9777 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9778 directly for the current inferior instead of
9779 discard_all_inferiors.
9780 (discard_all_inferiors): Delete.
9781
7c392d1d
TT
97822020-01-11 Tom Tromey <tom@tromey.com>
9783
9784 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9785 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9786 deprecated_safe_get_selected_frame.
9787
d9ebdab7
TBA
97882020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9789
9790 * inferior.c (print_inferior): Switch inferior before printing it.
9791
f3c469b9
PA
97922020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9793 Pedro Alves <palves@redhat.com>
9794
9795 * progspace-and-thread.c (switch_to_program_space_and_thread):
9796 Assert there's an inferior for PSPACE. Use
9797 switch_to_inferior_no_thread to switch the inferior too.
9798 * progspace.c (program_space::~program_space): Call
9799 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9800 (program_space::free_all_objfiles): Don't call clear_symtab_users
9801 here.
9802 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9803
65c574f6
PA
98042020-01-10 Pedro Alves <palves@redhat.com>
9805
9806 * NEWS: Mention multi-target debugging, "info connections", and
9807 "add-inferior -no-connection".
9808
2f4fcf00
PA
98092020-01-10 Pedro Alves <palves@redhat.com>
9810
9811 * infrun.c: Include "target-connection.h".
9812 (check_multi_target_resumption): New.
9813 (proceed): Call it.
9814 * target-connection.c (make_target_connection_string): Make
9815 extern.
9816 * target-connection.h (make_target_connection_string): Declare.
9817
121b3efd
PA
98182020-01-10 Pedro Alves <palves@redhat.com>
9819
9820 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9821 * inferior.c (uiout_field_connection): New function.
9822 (print_inferior): Add new "connection-id" column.
9823 (add_inferior_command): Show connection number/string of added
9824 inferior.
9825 * process-stratum-target.h
9826 (process_stratum_target::connection_string): New virtual method.
9827 (process_stratum_target::connection_number): New field.
9828 * remote.c (remote_target::connection_string): New override.
9829 * target-connection.c: New file.
9830 * target-connection.h: New file.
9831 * target.c (decref_target): Remove process_stratum targets from
9832 the connection list.
9833 (target_stack::push): Add process_stratum targets to the
9834 connection list.
9835
4f837581
PA
98362020-01-10 Pedro Alves <palves@redhat.com>
9837
9838 Revert:
9839 2016-04-12 Pedro Alves <palves@redhat.com>
9840 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9841 Remove references to name.
9842 * serial.h (struct serial) <name>: Delete.
9843
f4ec508e
PA
98442020-01-10 Pedro Alves <palves@redhat.com>
9845
9846 * gdbarch-selftests.c (register_to_value_test): Remove "target
9847 already pushed" check.
9848
5b6d1e4f
PA
98492020-01-10 Pedro Alves <palves@redhat.com>
9850 John Baldwin <jhb@FreeBSD.org>
9851
9852 * aarch64-linux-nat.c
9853 (aarch64_linux_nat_target::thread_architecture): Adjust.
9854 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9855 (task_command_1): Likewise.
9856 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9857 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9858 (aix_thread_target::store_registers)
9859 (aix_thread_target::thread_alive): Adjust.
9860 * amd64-fbsd-tdep.c: Include "inferior.h".
9861 (amd64fbsd_get_thread_local_address): Pass down target.
9862 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9863 thread's gdbarch instead of target_gdbarch.
9864 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9865 get_last_target_status.
9866 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9867 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9868 inferiors.
9869 (update_inserted_breakpoint_locations): Skip if inferiors with no
9870 execution.
9871 (update_global_location_list): When handling moribund locations,
9872 find representative inferior for location's pspace, and use thread
9873 count of its process_stratum target.
9874 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9875 * bsd-uthread.c (bsd_uthread_target::wait): Use
9876 as_process_stratum_target and adjust thread_change_ptid and
9877 add_thread calls.
9878 (bsd_uthread_target::update_thread_list): Use
9879 as_process_stratum_target and adjust find_thread_ptid,
9880 thread_change_ptid and add_thread calls.
9881 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9882 find_thread_ptid call.
9883 * corelow.c (add_to_thread_list): Adjust add_thread call.
9884 (core_target_open): Adjust add_thread_silent and thread_count
9885 calls.
9886 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9887 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9888 * event-top.c (async_disconnect): Pop targets from all inferiors.
9889 * exec.c (add_target_sections): Push exec target on all inferiors
9890 sharing the program space.
9891 (remove_target_sections): Remove the exec target from all
9892 inferiors sharing the program space.
9893 (exec_on_vfork): New.
9894 * exec.h (exec_on_vfork): Declare.
9895 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9896 Pass it down.
9897 (fbsd_nat_target::update_thread_list): Adjust.
9898 (fbsd_nat_target::resume): Adjust.
9899 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9900 down.
9901 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9902 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9903 get_thread_arch_regcache call.
9904 * fork-child.c (gdb_startup_inferior): Pass target down to
9905 startup_inferior and set_executing.
9906 * gdbthread.h (struct process_stratum_target): Forward declare.
9907 (add_thread, add_thread_silent, add_thread_with_info)
9908 (in_thread_list): Add process_stratum_target parameter.
9909 (find_thread_ptid(inferior*, ptid_t)): New overload.
9910 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9911 parameter.
9912 (all_threads()): Delete overload.
9913 (all_threads, all_non_exited_threads): Add process_stratum_target
9914 parameter.
9915 (all_threads_safe): Use brace initialization.
9916 (thread_count): Add process_stratum_target parameter.
9917 (set_resumed, set_running, set_stop_requested, set_executing)
9918 (threads_are_executing, finish_thread_state): Add
9919 process_stratum_target parameter.
9920 (switch_to_thread): Use is_current_thread.
9921 * i386-fbsd-tdep.c: Include "inferior.h".
9922 (i386fbsd_get_thread_local_address): Pass down target.
9923 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9924 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9925 have_inferiors check.
9926 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9927 (inf_ptrace_target::attach): Adjust.
9928 * infcall.c (run_inferior_call): Adjust.
9929 * infcmd.c (run_command_1): Pass target to
9930 scoped_finish_thread_state.
9931 (proceed_thread_callback): Skip inferiors with no execution.
9932 (continue_command): Rename 'all_threads' local to avoid hiding
9933 'all_threads' function. Adjust get_last_target_status call.
9934 (prepare_one_step): Adjust set_running call.
9935 (signal_command): Use user_visible_resume_target. Compare thread
9936 pointers instead of inferior_ptid.
9937 (info_program_command): Adjust to pass down target.
9938 (attach_command): Mark target's 'thread_executing' flag.
9939 (stop_current_target_threads_ns): New, factored out from ...
9940 (interrupt_target_1): ... this. Switch inferior before making
9941 target calls.
9942 * inferior-iter.h
9943 (struct all_inferiors_iterator, struct all_inferiors_range)
9944 (struct all_inferiors_safe_range)
9945 (struct all_non_exited_inferiors_range): Filter on
9946 process_stratum_target too. Remove explicit.
9947 * inferior.c (inferior::inferior): Push dummy target on target
9948 stack.
9949 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9950 Add process_stratum_target parameter, and pass it down.
9951 (have_live_inferiors): Adjust.
9952 (switch_to_inferior_and_push_target): New.
9953 (add_inferior_command, clone_inferior_command): Handle
9954 "-no-connection" parameter. Use
9955 switch_to_inferior_and_push_target.
9956 (_initialize_inferior): Mention "-no-connection" option in
9957 the help of "add-inferior" and "clone-inferior" commands.
9958 * inferior.h: Include "process-stratum-target.h".
9959 (interrupt_target_1): Use bool.
9960 (struct inferior) <push_target, unpush_target, target_is_pushed,
9961 find_target_beneath, top_target, process_target, target_at,
9962 m_stack>: New.
9963 (discard_all_inferiors): Delete.
9964 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
9965 (all_inferiors, all_non_exited_inferiors): Add
9966 process_stratum_target parameter.
9967 * infrun.c: Include "gdb_select.h" and <unordered_map>.
9968 (target_last_proc_target): New global.
9969 (follow_fork_inferior): Push target on new inferior. Pass target
9970 to add_thread_silent. Call exec_on_vfork. Handle target's
9971 reference count.
9972 (follow_fork): Adjust get_last_target_status call. Also consider
9973 target.
9974 (follow_exec): Push target on new inferior.
9975 (struct execution_control_state) <target>: New field.
9976 (user_visible_resume_target): New.
9977 (do_target_resume): Call target_async.
9978 (resume_1): Set target's threads_executing flag. Consider resume
9979 target.
9980 (commit_resume_all_targets): New.
9981 (proceed): Also consider resume target. Skip threads of inferiors
9982 with no execution. Commit resumtion in all targets.
9983 (start_remote): Pass current inferior to wait_for_inferior.
9984 (infrun_thread_stop_requested): Consider target as well. Pass
9985 thread_info pointer to clear_inline_frame_state instead of ptid.
9986 (infrun_thread_thread_exit): Consider target as well.
9987 (random_pending_event_thread): New inferior parameter. Use it.
9988 (do_target_wait): Rename to ...
9989 (do_target_wait_1): ... this. Add inferior parameter, and pass it
9990 down.
9991 (threads_are_resumed_pending_p, do_target_wait): New.
9992 (prepare_for_detach): Adjust calls.
9993 (wait_for_inferior): New inferior parameter. Handle it. Use
9994 do_target_wait_1 instead of do_target_wait.
9995 (fetch_inferior_event): Adjust. Switch to representative
9996 inferior. Pass target down.
9997 (set_last_target_status): Add process_stratum_target parameter.
9998 Save target in global.
9999 (get_last_target_status): Add process_stratum_target parameter and
10000 handle it.
10001 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10002 (context_switch): Check inferior_ptid == null_ptid before calling
10003 inferior_thread().
10004 (get_inferior_stop_soon): Pass down target.
10005 (wait_one): Rename to ...
10006 (poll_one_curr_target): ... this.
10007 (struct wait_one_event): New.
10008 (wait_one): New.
10009 (stop_all_threads): Adjust.
10010 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10011 event's target.
10012 (switch_back_to_stepped_thread): Also consider target.
10013 (print_stop_event): Update.
10014 (normal_stop): Update. Also consider the resume target.
10015 * infrun.h (wait_for_inferior): Remove declaration.
10016 (user_visible_resume_target): New declaration.
10017 (get_last_target_status, set_last_target_status): New
10018 process_stratum_target parameter.
10019 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10020 process_stratum_target parameter, and use it.
10021 (clear_inline_frame_state (thread_info*)): New.
10022 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10023 process_stratum_target parameter.
10024 (clear_inline_frame_state (thread_info*)): Declare.
10025 * linux-fork.c (delete_checkpoint_command): Pass target down to
10026 find_thread_ptid.
10027 (checkpoint_command): Adjust.
10028 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10029 instead of just tweaking inferior_ptid.
10030 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10031 (exit_lwp): Pass target down to find_thread_ptid.
10032 (attach_proc_task_lwp_callback): Pass target down to
10033 add_thread/set_running/set_executing.
10034 (linux_nat_target::attach): Pass target down to
10035 thread_change_ptid.
10036 (get_detach_signal): Pass target down to find_thread_ptid.
10037 Consider last target status's target.
10038 (linux_resume_one_lwp_throw, resume_lwp)
10039 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10040 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10041 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10042 (linux_nat_target::async_wait_fd): New.
10043 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10044 target down.
10045 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10046 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10047 * linux-thread-db.c (struct thread_db_info::process_target): New
10048 field.
10049 (add_thread_db_info): Save target.
10050 (get_thread_db_info): New process_stratum_target parameter. Also
10051 match target.
10052 (delete_thread_db_info): New process_stratum_target parameter.
10053 Also match target.
10054 (thread_from_lwp): Adjust to pass down target.
10055 (thread_db_notice_clone): Pass down target.
10056 (check_thread_db_callback): Pass down target.
10057 (try_thread_db_load_1): Always push the thread_db target.
10058 (try_thread_db_load, record_thread): Pass target down.
10059 (thread_db_target::detach): Pass target down. Always unpush the
10060 thread_db target.
10061 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10062 target down. Always unpush the thread_db target.
10063 (find_new_threads_callback, thread_db_find_new_threads_2)
10064 (thread_db_target::update_thread_list): Pass target down.
10065 (thread_db_target::pid_to_str): Pass current inferior down.
10066 (thread_db_target::get_thread_local_address): Pass target down.
10067 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10068 target down.
10069 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10070 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10071 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10072 (procfs_init_inferior): Rename to ...
10073 (procfs_target::procfs_init_inferior): ... this and adjust.
10074 (procfs_target::create_inferior, procfs_notice_thread)
10075 (procfs_do_thread_registers): Adjust.
10076 * ppc-fbsd-tdep.c: Include "inferior.h".
10077 (ppcfbsd_get_thread_local_address): Pass down target.
10078 * proc-service.c (ps_xfer_memory): Switch current inferior and
10079 program space as well.
10080 (get_ps_regcache): Pass target down.
10081 * process-stratum-target.c
10082 (process_stratum_target::thread_address_space)
10083 (process_stratum_target::thread_architecture): Pass target down.
10084 * process-stratum-target.h
10085 (process_stratum_target::threads_executing): New field.
10086 (as_process_stratum_target): New.
10087 * ravenscar-thread.c
10088 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10089 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10090 down.
10091 * record-btrace.c (record_btrace_target::info_record): Adjust.
10092 (record_btrace_target::record_method)
10093 (record_btrace_target::record_is_replaying)
10094 (record_btrace_target::fetch_registers)
10095 (get_thread_current_frame_id, record_btrace_target::resume)
10096 (record_btrace_target::wait, record_btrace_target::stop): Pass
10097 target down.
10098 * record-full.c (record_full_wait_1): Switch to event thread.
10099 Pass target down.
10100 * regcache.c (regcache::regcache)
10101 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10102 process_stratum_target parameter and handle it.
10103 (current_thread_target): New global.
10104 (get_thread_regcache): Add process_stratum_target parameter and
10105 handle it. Switch inferior before calling target method.
10106 (get_thread_regcache): Pass target down.
10107 (get_thread_regcache_for_ptid): Pass target down.
10108 (registers_changed_ptid): Add process_stratum_target parameter and
10109 handle it.
10110 (registers_changed_thread, registers_changed): Pass target down.
10111 (test_get_thread_arch_aspace_regcache): New.
10112 (current_regcache_test): Define a couple local test_target_ops
10113 instances and use them for testing.
10114 (readwrite_regcache): Pass process_stratum_target parameter.
10115 (cooked_read_test, cooked_write_test): Pass mock_target down.
10116 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10117 (get_thread_arch_aspace_regcache): Add process_stratum_target
10118 parameter.
10119 (regcache::target): New method.
10120 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10121 (regcache::registers_changed_ptid): Add process_stratum_target
10122 parameter.
10123 (regcache::m_target): New field.
10124 (registers_changed_ptid): Add process_stratum_target parameter.
10125 * remote.c (remote_state::supports_vCont_probed): New field.
10126 (remote_target::async_wait_fd): New method.
10127 (remote_unpush_and_throw): Add remote_target parameter.
10128 (get_current_remote_target): Adjust.
10129 (remote_target::remote_add_inferior): Push target.
10130 (remote_target::remote_add_thread)
10131 (remote_target::remote_notice_new_inferior)
10132 (get_remote_thread_info): Pass target down.
10133 (remote_target::update_thread_list): Skip threads of inferiors
10134 bound to other targets. (remote_target::close): Don't discard
10135 inferiors. (remote_target::add_current_inferior_and_thread)
10136 (remote_target::process_initial_stop_replies)
10137 (remote_target::start_remote)
10138 (remote_target::remote_serial_quit_handler): Pass down target.
10139 (remote_target::remote_unpush_target): New remote_target
10140 parameter. Unpush the target from all inferiors.
10141 (remote_target::remote_unpush_and_throw): New remote_target
10142 parameter. Pass it down.
10143 (remote_target::open_1): Check whether the current inferior has
10144 execution instead of checking whether any inferior is live. Pass
10145 target down.
10146 (remote_target::remote_detach_1): Pass down target. Use
10147 remote_unpush_target.
10148 (extended_remote_target::attach): Pass down target.
10149 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10150 (remote_target::append_resumption): Pass down target.
10151 (remote_target::append_pending_thread_resumptions)
10152 (remote_target::remote_resume_with_hc, remote_target::resume)
10153 (remote_target::commit_resume): Pass down target.
10154 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10155 (remote_target::interrupt_query)
10156 (remote_target::remove_new_fork_children)
10157 (remote_target::check_pending_events_prevent_wildcard_vcont)
10158 (remote_target::remote_parse_stop_reply)
10159 (remote_target::process_stop_reply): Pass down target.
10160 (first_remote_resumed_thread): New remote_target parameter. Pass
10161 it down.
10162 (remote_target::wait_as): Pass down target.
10163 (unpush_and_perror): New remote_target parameter. Pass it down.
10164 (remote_target::readchar, remote_target::remote_serial_write)
10165 (remote_target::getpkt_or_notif_sane_1)
10166 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10167 down target.
10168 (remote_target::mourn_inferior): Pass down target. Use
10169 remote_unpush_target.
10170 (remote_target::core_of_thread)
10171 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10172 (remote_target::pid_to_exec_file)
10173 (remote_target::thread_handle_to_thread_info): Pass down target.
10174 (remote_target::async_wait_fd): New.
10175 * riscv-fbsd-tdep.c: Include "inferior.h".
10176 (riscv_fbsd_get_thread_local_address): Pass down target.
10177 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10178 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10179 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10180 Adjust.
10181 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10182 * solib-svr4.c (enable_break): Pass down target.
10183 * spu-multiarch.c (parse_spufs_run): Pass down target.
10184 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10185 * target-delegates.c: Regenerate.
10186 * target.c (g_target_stack): Delete.
10187 (current_top_target): Return the current inferior's top target.
10188 (target_has_execution_1): Refer to the passed-in inferior's top
10189 target.
10190 (target_supports_terminal_ours): Check whether the initial
10191 inferior was already created.
10192 (decref_target): New.
10193 (target_stack::push): Incref/decref the target.
10194 (push_target, push_target, unpush_target): Adjust.
10195 (target_stack::unpush): Defref target.
10196 (target_is_pushed): Return bool. Adjust to refer to the current
10197 inferior's target stack.
10198 (dispose_inferior): Delete, and inline parts ...
10199 (target_preopen): ... here. Only dispose of the current inferior.
10200 (target_detach): Hold strong target reference while detaching.
10201 Pass target down.
10202 (target_thread_name): Add assertion.
10203 (target_resume): Pass down target.
10204 (target_ops::beneath, find_target_at): Adjust to refer to the
10205 current inferior's target stack.
10206 (get_dummy_target): New.
10207 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10208 has a thread running.
10209 (initialize_targets): Rename to ...
10210 (_initialize_target): ... this.
10211 * target.h: Include "gdbsupport/refcounted-object.h".
10212 (struct target_ops): Inherit refcounted_object.
10213 (target_ops::shortname, target_ops::longname): Make const.
10214 (target_ops::async_wait_fd): New method.
10215 (decref_target): Declare.
10216 (struct target_ops_ref_policy): New.
10217 (target_ops_ref): New typedef.
10218 (get_dummy_target): Declare function.
10219 (target_is_pushed): Return bool.
10220 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10221 (all_matching_threads_iterator::all_matching_threads_iterator):
10222 Handle filter target.
10223 * thread-iter.h (struct all_matching_threads_iterator, struct
10224 all_matching_threads_range, class all_non_exited_threads_range):
10225 Filter by target too. Remove explicit.
10226 * thread.c (threads_executing): Delete.
10227 (inferior_thread): Pass down current inferior.
10228 (clear_thread_inferior_resources): Pass down thread pointer
10229 instead of ptid_t.
10230 (add_thread_silent, add_thread_with_info, add_thread): Add
10231 process_stratum_target parameter. Use it for thread and inferior
10232 searches.
10233 (is_current_thread): New.
10234 (thread_info::deletable): Use it.
10235 (find_thread_ptid, thread_count, in_thread_list)
10236 (thread_change_ptid, set_resumed, set_running): New
10237 process_stratum_target parameter. Pass it down.
10238 (set_executing): New process_stratum_target parameter. Pass it
10239 down. Adjust reference to 'threads_executing'.
10240 (threads_are_executing): New process_stratum_target parameter.
10241 Adjust reference to 'threads_executing'.
10242 (set_stop_requested, finish_thread_state): New
10243 process_stratum_target parameter. Pass it down.
10244 (switch_to_thread): Also match inferior.
10245 (switch_to_thread): New process_stratum_target parameter. Pass it
10246 down.
10247 (update_threads_executing): Reimplement.
10248 * top.c (quit_force): Pop targets from all inferior.
10249 (gdb_init): Don't call initialize_targets.
10250 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10251 Declare.
10252 (windows_add_thread, windows_delete_thread): Adjust.
10253 (get_windows_debug_event): Rename to ...
10254 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10255 * tracefile-tfile.c (tfile_target_open): Pass down target.
10256 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10257 Forward declare.
10258 (switch_to_thread): Add process_stratum_target parameter.
10259 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10260 parameter. Use it.
10261 (mi_on_resume): Pass target down.
10262 * nat/fork-inferior.c (startup_inferior): Add
10263 process_stratum_target parameter. Pass it down.
10264 * nat/fork-inferior.h (startup_inferior): Add
10265 process_stratum_target parameter.
10266 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10267
75c6c844
PA
102682020-01-10 Pedro Alves <palves@redhat.com>
10269
10270 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10271 directly. Instead find the first thread in the thread list and
10272 use switch_to_thread.
10273
78f2c40a
PA
102742020-01-10 Pedro Alves <palves@redhat.com>
10275
10276 * remote.c (remote_target::remote_add_inferior): Don't bind a
10277 process to the current inferior if the current inferior is already
10278 bound to a process.
10279
e7af6c70
TBA
102802020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10281 Pedro Alves <palves@redhat.com>
10282
10283 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10284 If no process is specified, return null_ptid instead of
10285 inferior_ptid.
10286 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10287 TARGET_WAITKIND_SIGNALLED with no pid.
10288
31ba933e
PA
102892020-01-10 Pedro Alves <palves@redhat.com>
10290
10291 * remote.c (first_remote_resumed_thread): New.
10292 (remote_target::wait_as): Use it as default event_ptid instead of
10293 inferior_ptid.
10294
735fc2ca
PA
102952020-01-10 Pedro Alves <palves@redhat.com>
10296
10297 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10298
c17e02e1
PA
102992020-01-10 Pedro Alves <palves@redhat.com>
10300
10301 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10302 not -1.
10303
ab1ddbcf
PA
103042020-01-10 Pedro Alves <palves@redhat.com>
10305
10306 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10307 ptid to get_last_target_status.
10308 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10309 ptid to get_last_target_status.
10310 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10311 get_last_target_status.
10312 (info_program_command): Don't pass a target_waitstatus to
10313 get_last_target_status.
10314 * infrun.c (init_wait_for_inferior): Use
10315 nullify_last_target_wait_ptid.
10316 (get_last_target_status): Handle nullptr arguments.
10317 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10318 (print_stop_event): Don't pass a ptid to get_last_target_status.
10319 (normal_stop): Don't pass a ptid to get_last_target_status.
10320 * infrun.h (get_last_target_status, set_last_target_status): Move
10321 comments here and update.
10322 (nullify_last_target_wait_ptid): Declare.
10323 * linux-fork.c (fork_load_infrun_state): Remove local extern
10324 declaration of nullify_last_target_wait_ptid.
10325 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10326 to get_last_target_status.
10327
f3f8ece4
PA
103282020-01-10 Pedro Alves <palves@redhat.com>
10329
10330 * gdbthread.h (scoped_restore_current_thread)
10331 <dont_restore, restore, m_dont_restore>: Declare.
10332 * thread.c (thread_alive): Add assertion. Return bool.
10333 (switch_to_thread_if_alive): New.
10334 (prune_threads): Switch inferior/thread.
10335 (print_thread_info_1): Switch thread before calling target methods.
10336 (scoped_restore_current_thread::restore): New, factored out from
10337 ...
10338 (scoped_restore_current_thread::~scoped_restore_current_thread):
10339 ... this.
10340 (scoped_restore_current_thread::scoped_restore_current_thread):
10341 Add assertion.
10342 (thread_apply_all_command, thread_select): Use
10343 switch_to_thread_if_alive.
10344 * infrun.c (proceed, restart_threads, handle_signal_stop)
10345 (switch_back_to_stepped_thread): Switch current thread before
10346 calling target methods.
10347
db2d40f7
PA
103482020-01-10 Pedro Alves <palves@redhat.com>
10349
10350 * inferior.c (switch_to_inferior_no_thread): New function,
10351 factored out from ...
10352 (inferior_command): ... here.
10353 * inferior.h (switch_to_inferior_no_thread): Declare.
10354 * mi/mi-main.c (run_one_inferior): Use
10355 switch_to_inferior_no_thread.
10356
bd420a2d
PA
103572020-01-10 Pedro Alves <palves@redhat.com>
10358
10359 * infcmd.c (kill_command): Remove dead code.
10360
ddf5db90
PA
103612020-01-10 Pedro Alves <palves@redhat.com>
10362
10363 * remote.c (remote_target::mourn_inferior): No longer check
10364 whether the target is running.
10365
5018ce90
PA
103662020-01-10 Pedro Alves <palves@redhat.com>
10367
10368 * corelow.c (core_target::has_execution): Change parameter type to
10369 inferior pointer.
10370 * inferior.c (number_of_live_inferiors): Use
10371 inferior::has_execution instead of target_has_execution_1.
10372 * inferior.h (inferior::has_execution): New.
10373 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10374 inferior::has_execution instead of target_has_execution_1.
10375 * process-stratum-target.c
10376 (process_stratum_target::has_execution): Change parameter type to
10377 inferior pointer. Check the inferior's PID instead of
10378 inferior_ptid.
10379 * process-stratum-target.h
10380 (process_stratum_target::has_execution): Change parameter type to
10381 inferior pointer.
10382 * record-full.c (record_full_core_target::has_execution): Change
10383 parameter type to inferior pointer.
10384 * target.c (target_has_execution_1): Change parameter type to
10385 inferior pointer.
10386 (target_has_execution_current): Adjust.
10387 * target.h (target_ops::has_execution): Change parameter type to
10388 inferior pointer.
10389 (target_has_execution_1): Change parameter type to inferior
10390 pointer. Change return type to bool.
10391 * tracefile.h (tracefile_target::has_execution): Change parameter
10392 type to inferior pointer.
10393
74375d18
PA
103942020-01-10 Pedro Alves <palves@redhat.com>
10395
10396 * exceptions.c (print_flush): Remove current_top_target() check.
10397
acdf84a6
PA
103982020-01-10 Pedro Alves <palves@redhat.com>
10399
10400 * remote.c (show_remote_exec_file): Show the current inferior's
10401 exec-file instead of the command variable's value.
10402
ec506636
PA
104032020-01-10 Pedro Alves <palves@redhat.com>
10404
10405 * record-full.c (record_full_resume_ptid): New global.
10406 (record_full_target::resume): Set it.
10407 (record_full_wait_1): Use record_full_resume_ptid instead of
10408 inferior_ptid.
10409
873657b9
PA
104102020-01-10 Pedro Alves <palves@redhat.com>
10411
10412 * gdbthread.h (scoped_restore_current_thread)
10413 <dont_restore, restore, m_dont_restore>: Declare.
10414 * thread.c (thread_alive): Add assertion. Return bool.
10415 (switch_to_thread_if_alive): New.
10416 (prune_threads): Switch inferior/thread.
10417 (print_thread_info_1): Switch thread before calling target methods.
10418 (scoped_restore_current_thread::restore): New, factored out from
10419 ...
10420 (scoped_restore_current_thread::~scoped_restore_current_thread):
10421 ... this.
10422 (scoped_restore_current_thread::scoped_restore_current_thread):
10423 Add assertion.
10424 (thread_apply_all_command, thread_select): Use
10425 switch_to_thread_if_alive.
10426
7f0ae84c
GB
104272020-01-10 George Barrett <bob@bob131.so>
10428
10429 * stap-probe.c (stap_modify_semaphore): Don't check for null
10430 semaphores.
10431 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10432 for null semaphores.
10433
f5a7c406
AB
104342020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10435
10436 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10437 all source windows, and maintain horizontal scroll status while
10438 doing so.
10439
9ae6bf64
TT
104402020-01-09 Tom Tromey <tom@tromey.com>
10441
10442 PR tui/18932:
10443 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10444 update_source_window, not print_source_lines.
10445
b2efe70c
AB
104462020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 * tui/tui.c (tui_enable): Register tui hooks after calling
10449 tui_display_main.
10450
5f23a082
CB
104512020-01-09 Christian Biesinger <cbiesinger@google.com>
10452
10453 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10454
3061113b
SM
104552020-01-08 Simon Marchi <simon.marchi@efficios.com>
10456
10457 * thread.c (print_thread_info_1): Fix indentation.
10458
57d75002
CB
104592020-01-09 Christian Biesinger <cbiesinger@google.com>
10460
10461 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10462 unique_xmalloc_ptr outside the if to always free the demangled name.
10463
6a053cb1
TT
104642020-01-08 Tom Tromey <tromey@adacore.com>
10465
10466 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10467 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10468 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10469 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10470 Remove.
10471 (section_offsets): New typedef.
10472 * symtab.c (fixup_section, get_msymbol_address): Update.
10473 * symmisc.c (dump_msymbols): Update.
10474 * symfile.h (relative_addr_info_to_section_offsets)
10475 (symfile_map_offsets_to_segments): Update.
10476 * symfile.c (build_section_addr_info_from_objfile)
10477 (init_objfile_sect_indices): Update.
10478 (struct place_section_arg): Change type of "offsets".
10479 (place_section): Update.
10480 (relative_addr_info_to_section_offsets): Change type of
10481 "section_offsets". Remove "num_sections" parameter.
10482 (default_symfile_offsets, syms_from_objfile_1)
10483 (set_objfile_default_section_offset): Update.
10484 (reread_symbols): No need to preserve section offsets by hand.
10485 (symfile_map_offsets_to_segments): Change type of "offsets".
10486 * stap-probe.c (relocate_address): Update.
10487 * stabsread.h (process_one_symbol): Update.
10488 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10489 (solib_target_relocate_section_addresses): Update.
10490 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10491 Update.
10492 * solib-frv.c (frv_relocate_main_executable): Update.
10493 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10494 * solib-aix.c (solib_aix_get_section_offsets): Change return
10495 type.
10496 (solib_aix_solib_create_inferior_hook): Update.
10497 * remote.c (remote_target::get_offsets): Update.
10498 * psymtab.c (find_pc_sect_psymtab): Update.
10499 * psympriv.h (struct partial_symbol) <address, text_low,
10500 text_high>: Update.
10501 * objfiles.h (obj_section_offset): Update.
10502 (struct objfile) <section_offsets>: Change type.
10503 <num_sections>: Remove.
10504 (objfile_relocate): Update.
10505 * objfiles.c (entry_point_address_query): Update
10506 (relocate_one_symbol): Change type of "section_offsets".
10507 (objfile_relocate1, objfile_relocate1): Change type of
10508 "new_offsets".
10509 (objfile_rebase1): Update.
10510 * mipsread.c (mipscoff_symfile_read): Update.
10511 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10512 parameter.
10513 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10514 (parse_external, psymtab_to_symtab_1): Update.
10515 * machoread.c (macho_symfile_offsets): Update.
10516 * ia64-tdep.c (ia64_find_unwind_table): Update.
10517 * hppa-tdep.c (read_unwind_info): Update.
10518 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10519 * dwarf2read.c (create_addrmap_from_index)
10520 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10521 (process_psymtab_comp_unit_reader, add_partial_symbol)
10522 (add_partial_subprogram, process_full_comp_unit)
10523 (read_file_scope, read_func_scope, read_lexical_block_scope)
10524 (read_call_site_scope, dwarf2_rnglists_process)
10525 (dwarf2_ranges_process, dwarf2_ranges_read)
10526 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10527 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10528 Update.
10529 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10530 Update.
10531 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10532 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10533 (process_one_symbol): Change type of "section_offsets".
10534 * ctfread.c (get_objfile_text_range): Update.
10535 * coffread.c (coff_symtab_read, enter_linenos)
10536 (process_coff_symbol): Update.
10537 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10538 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10539
456e800a
TT
105402020-01-08 Tom Tromey <tromey@adacore.com>
10541
10542 * dwarf2read.c (parse_macro_definition): Use std::string.
10543 (parse_macro_definition): Likewise.
10544
6dfa2fc2
TT
105452020-01-08 Tom Tromey <tromey@adacore.com>
10546
10547 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10548 (ATTR_ALLOC_CHUNK): Remove.
10549
421d1616
TT
105502020-01-08 Tom Tromey <tromey@adacore.com>
10551
10552 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10553
43816ebc
TT
105542020-01-08 Tom Tromey <tromey@adacore.com>
10555
10556 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10557 (dwarf2_compute_name, open_dwo_file): Likewise.
10558 (process_enumeration_scope): Use std::vector.
10559 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10560 (partial_die_info::fixup, dwarf2_start_subfile)
10561 (guess_full_die_structure_name, dwarf2_name): Likewise.
10562 (determine_prefix): Update.
10563 (guess_full_die_structure_name): Make return type const.
10564 (partial_die_full_name): Return unique_xmalloc_ptr.
10565 (DW_FIELD_ALLOC_CHUNK): Remove.
10566
4212d509
TT
105672020-01-07 Tom Tromey <tromey@adacore.com>
10568
10569 PR build/24937:
10570 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10571
06a6207a
JT
105722020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10573
10574 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10575
153d79c4
AB
105762020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10577
10578 * stack.c (print_frame_info): Move disassemble_next_line code
10579 inside source_print block.
10580
66182876
EZ
105812020-01-06 Eli Zaretskii <eliz@gnu.org>
10582
10583 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10584 gdb/signals.h, as we are now using native signal symbols.
10585
cbfa8581
SV
105862020-01-06 Shahab Vahedi <shahab@synopsys.com>
10587
10588 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10589 overflow by an early check of content vs threshold.
aac66a4c 10590 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10591 Likewise.
10592
3f602821
EZ
105932020-01-06 Eli Zaretskii <eliz@gnu.org>
10594
10595 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10596
a08c904d
JT
105972020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10598
10599 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10600 export table if no section contains it's RVA.
10601
89a65580
EZ
106022020-01-06 Eli Zaretskii <eliz@gnu.org>
10603
10604 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10605
8b7fcda2
HD
106062020-01-06 Hannes Domani <ssbssa@yahoo.de>
10607
10608 * source.c (print_source_lines_base): Set last_line_listed.
10609
a61b4f69
SV
106102020-01-06 Shahab Vahedi <shahab@synopsys.com>
10611
10612 * tui/tui-disasm.c: Remove trailing spaces.
10613
559e7e50
EZ
106142020-01-06 Eli Zaretskii <eliz@gnu.org>
10615 Pedro Alves <palves@redhat.com>
10616
10617 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10618 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10619 (windows_gdb_signal_to_target): New function, uses the above
10620 enumeration to convert GDB internal signal codes to equivalent
10621 Windows codes.
10622 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10623 * windows-nat.c: Include "gdb_wait.h".
10624 (get_windows_debug_event): Extract the fatal exception from the
10625 exit status and convert to the equivalent Posix signal number.
10626 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10627 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10628 * gdbsupport/gdb_wait.c: New file, implements
10629 windows_status_to_termsig.
10630 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10631 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10632
f2302a34
AB
106332020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10636 show_layout.
10637
6a5206eb
LM
106382020-01-05 Luis Machado <luis.machado@linaro.org>
10639
10640 * aarch64-linux-nat.c
10641 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10642 and bfd_mach_aarch64.
10643
6ec1d75e
PW
106442020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10645
10646 * ui-file.c (stdio_file::can_emit_style_escape)
10647 (tee_file::can_emit_style_escape): Ensure style is used also on
10648 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10649 to gdb_stdout.
10650 * main.c (set_gdb_data_directory): Use file style to output the
10651 warning that the given pathname is not a directory.
10652 * top.c (show_history_filename, gdb_safe_append_history)
10653 (show_gdb_datadir): Use file style.
10654
44f81a76
HD
106552020-01-03 Hannes Domani <ssbssa@yahoo.de>
10656
10657 * solib-target.c (struct lm_info_target):
10658 Change offsets to be a unique_xmalloc_ptr.
10659 (solib_target_relocate_section_addresses): Update.
10660
25057eb0
HD
106612020-01-03 Hannes Domani <ssbssa@yahoo.de>
10662
10663 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10664
6e2118f5
BE
106652020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10666
10667 * MAINTAINERS (Write After Approval): Add myself.
10668
8133c7dc
LM
106692020-01-02 Luis Machado <luis.machado@linaro.org>
10670
10671 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10672 Cell BE architecture.
10673 * target.h (struct target_ops) <thread_architecture>: Likewise.
10674
48189bec
HD
106752020-01-01 Hannes Domani <ssbssa@yahoo.de>
10676
10677 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10678
ead1063b
HD
106792020-01-01 Hannes Domani <ssbssa@yahoo.de>
10680
10681 * MAINTAINERS (Write After Approval): Add myself.
10682
e5d78223
JB
106832020-01-01 Joel Brobecker <brobecker@adacore.com>
10684
10685 * gdbarch.sh: Update copyright year range of generated files.
10686
b811d2c2
JB
106872020-01-01 Joel Brobecker <brobecker@adacore.com>
10688
10689 Update copyright year range in all GDB files.
10690
5f4def5c
JB
106912020-01-01 Joel Brobecker <brobecker@adacore.com>
10692
10693 * copyright.py: Convert to Python 3.
10694
51fd4002
JB
106952020-01-01 Joel Brobecker <brobecker@adacore.com>
10696
10697 * copyright.py: Adapt after move of gnulib directory from gdb
10698 directory to toplevel directory.
10699
5fb651f2
JB
107002020-01-01 Joel Brobecker <brobecker@adacore.com>
10701
10702 * copyright.py (main): Exit if run from the wrong directory.
10703
5dd8bf88
JB
107042020-01-01 Joel Brobecker <brobecker@adacore.com>
10705
10706 * top.c (print_gdb_version): Change copyright year to 2020.
10707
9f71dacb 107082020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10709
9f71dacb 10710 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10711
9f71dacb 10712For older changes see ChangeLog-2019.
c906108c
SS
10713\f
10714Local Variables:
10715mode: change-log
10716left-margin: 8
10717fill-column: 74
10718version-control: never
57da7796 10719coding: utf-8
c906108c 10720End: