Remove useless "if' from tui-regs.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c9753adb
TT
12020-07-01 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4 useless "if".
5
9ab26b4a
TT
62020-07-01 Tom Tromey <tom@tromey.com>
7
8 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
9 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
10
e555083f
TT
112020-07-01 Tom Tromey <tom@tromey.com>
12
13 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
14 * tui/tui-winsource.h (enum tui_line_or_address_kind)
15 (struct tui_line_or_address): Move from tui-data.h.
16 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
17 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
18 (tui_cmd_window, tui_source_window_base, tui_source_window)
19 (tui_disasm_window): Don't declare.
20 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
21 to tui-winsource.h.
22 (SINGLE_KEY): Move to tui-stack.c.
23
7a02bab7
TT
242020-07-01 Tom Tromey <tom@tromey.com>
25
26 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
27 std::string.
28 * tui/tui-regs.c (class tab_expansion_file): New.
29 (tab_expansion_file::write): New method.
30 (tui_register_format): Change return type. Use
31 tab_expansion_file.
32 (tui_get_register, tui_data_window::display_registers_from)
33 (tui_data_item_window::rerender): Update.
34 * tui/tui-io.h (tui_expand_tabs): Don't declare.
35 * tui/tui-io.c (tui_expand_tabs): Remove.
36
ea68593b
TT
372020-07-01 Tom Tromey <tom@tromey.com>
38
39 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
40
a8caed5d
FS
412020-07-01 Fangrui Song <maskray@google.com>
42
43 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
44
9cdf9820
AKS
452020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
46
47 * dwarf2/read.c (set_die_type): Removed conditions to restrict
48 forms for DW_AT_associated and DW_AT_allocated attributes,
49 which is already checked in function attr_to_dynamic_prop.
50
a1520ad8
TT
512020-06-30 Tom Tromey <tromey@adacore.com>
52
53 * dwarf2/read.c (quirk_rust_enum): Correctly call
54 alloc_rust_variant for default-less enum.
55
5ac58899
TT
562020-06-30 Tom Tromey <tromey@adacore.com>
57
58 PR build/26183:
59 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
60 gdb::to_string.
61
19b187a9
SM
622020-06-29 Simon Marchi <simon.marchi@efficios.com>
63
64 * gdbarch.sh (displaced_step_copy_insn): Update doc.
65 * gdbarch.h: Re-generate.
66
cd4c4c07
TT
672020-06-28 Tom Tromey <tom@tromey.com>
68
69 * command.h (cmd_types): Remove.
70 (cmd_type): Don't declare.
71 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
72 typedef.
73 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
74 * cli/cli-decode.c (cmd_type): Remove.
75
05779d57
PA
762020-06-27 Pedro Alves <palves@redhat.com>
77
78 * fork-child.c (prefork_hook): Adjust.
79 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
80 Delete.
81 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
82 * inferior.c (inferior::set_tty, inferior::tty): New methods.
83 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
84 Remove declarations.
85 (struct inferior) <set_tty, tty>: New methods.
86 (struct inferior) <terminal>: Rename to ...
87 (struct inferior) <m_terminal>: ... this and make private.
88 * main.c (captured_main_1): Adjust.
89 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
90 (mi_cmd_inferior_tty_show): Adjust.
91 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
92 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
93
1776e3e5
NA
942020-06-26 Nick Alcock <nick.alcock@oracle.com>
95
96 * configure.ac: Add --enable-libctf: handle --disable-static
97 properly.
98 * acinclude.m4: sinclude ../config/enable.m4.
99 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
100 (LIBCTF): Substitute in.
101 (CTF_DEPS): New, likewise.
102 (CLIBS): libctf needs symbols from libbfd: move earlier.
103 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
104 flags.
105 * ctfread.c: Surround in ENABLE_LIBCTF.
106 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
107 * configure: Regenerate.
108 * config.in: Likewise.
109
58373b80
SM
1102020-06-25 Simon Marchi <simon.marchi@efficios.com>
111
112 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
113
277474ee
SM
1142020-06-25 Simon Marchi <simon.marchi@efficios.com>
115
116 * inferior.h (struct inferior) <terminal>: Change type to
117 gdb::unique_xmalloc_ptr<char>.
118 * inferior.c (inferior::~inferior): Don't free inf->terminal.
119 * infcmd.c (set_inferior_io_terminal): Don't free terminal
120 field, adjust to unique pointer.
121 (get_inferior_io_terminal): Adjust to unique pointer.
122
6d74da72
AB
1232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * riscv-tdep.c (riscv_print_registers_info): Loop over all
126 registers, not just the known core set of registers.
127
2e52d038
AB
1282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
131 fflags, frm, and fcsr registers.
132 (riscv_register_reggroup_p): Remove unknown CSRs from save and
133 restore groups.
134 (riscv_tdesc_unknown_reg): New function.
135 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
136 tdesc_use_registers.
137 * riscv-tdep.h (struct gdbarch_tdep): Add
138 unknown_csrs_first_regnum, unknown_csrs_count,
139 duplicate_fflags_regnum, duplicate_frm_regnum, and
140 duplicate_fcsr_regnum fields.
141
be64fd07
AB
1422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * target-descriptions.c (tdesc_use_registers): Add new parameter a
145 callback, use the callback (when not null) to help number unknown
146 registers.
147 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
148 (tdesc_use_registers): Add extra parameter to declaration.
149
3b9fce96
AB
1502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
153 in the file.
154 (class riscv_pending_register_alias): Likewise.
155 (riscv_register_feature::register_info): Change 'required_p' field
156 to 'required', and change its type. Add 'check' member function.
157 (riscv_register_feature::register_info::check): Define new member
158 function.
159 (riscv_xreg_feature): Change initialisation of 'required' field.
160 (riscv_freg_feature): Likewise.
161 (riscv_virtual_feature): Likewise.
162 (riscv_csr_feature): Likewise.
163 (riscv_check_tdesc_feature): Take extra parameter, the csr
164 tdesc_feature, rewrite the function to use the new
165 riscv_register_feature::register_info::check function.
166 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
167
865bad26
AB
1682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * features/Makefile: Remove all references to the deleted files
171 below.
172 * features/riscv/32bit-csr.c: Deleted.
173 * features/riscv/32bit-csr.xml: Deleted.
174 * features/riscv/64bit-csr.c: Deleted.
175 * features/riscv/64bit-csr.xml: Deleted.
176 * features/riscv/rebuild-csr-xml.sh: Deleted.
177
ed69cbc8
AB
1782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
181 whitespace error for declaration of names member variable.
182 (struct riscv_register_feature): Add new prefer_first_name member
183 variable, and fix whitespace error in declaration of registers.
184 (riscv_xreg_feature): Initialize prefer_first_name field.
185 (riscv_freg_feature): Likewise.
186 (riscv_virtual_feature): Likewise.
187 (riscv_csr_feature): Likewise.
188 (riscv_register_name): Expand on comments. Remove register name
189 modifications for CSR and virtual registers.
190
4445e8f5
AB
1912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
194 errors.
195
767a879e
AB
1962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
197
198 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
199 riscv-opc.h.
200 (class riscv_pending_register_alias): New class.
201 (riscv_check_tdesc_feature): Take vector of pending aliases and
202 populate it as appropriate.
203 (riscv_setup_register_aliases): Delete.
204 (riscv_gdbarch_init): Create vector of pending aliases and pass it
205 to riscv_check_tdesc_feature in all cases. Use the vector to
206 create the register aliases.
207
bb6e55f3
RO
2082020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
209
210 * sol2-tdep.c (sol2_static_transform_name): Remove.
211 (sol2_init_abi): Don't register it.
212 * gdbarch.sh (static_transform_name): Remove.
213 * gdbarch.c, gdbarch.h: Regenerate.
214
215 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
216 gdbarch_static_transform_name.
217 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
218 * stabsread.c (define_symbol) <'X'>: Remove.
219 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
220 handling.
221 <'V'>: Likewise.
222 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
223 <'S'>: Remove call to gdbarch_static_transform_name.
224
c6d36836
RO
2252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
226
227 * procfs.c (procfs_pre_trace): New function.
228 (procfs_target::create_inferior): Pass it to fork_inferior.
229
a7e6196b
RO
2302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
231
232 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
233 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
234 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
235 sol2-tdep.o, sparc-sol2-tdep.o.
236 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
237 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
238 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
239 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
240
d412e696
RO
2412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
242
243 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
244 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
245 Call sol2_init_abi.
246 Remove calls to set_gdbarch_skip_solib_resolver,
247 set_gdbarch_core_pid_to_str.
248 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
249 (i386_sol2_static_transform_name): Remove.
250 (i386_sol2_init_abi): Call sol2_init_abi.
251 Remove calls to set_gdbarch_sofun_address_maybe_missing,
252 set_gdbarch_static_transform_name,
253 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
254 Use sol2_sigtramp_p.
255 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
256 (sol2_sigtramp_p): New function.
257 (sol2_static_transform_name): New function.
258 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
259 (sol2_init_abi): New function.
260 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
261 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
262 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
263 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
264 (sparc_sol2_static_transform_name): Remove.
265 (sparc32_sol2_init_abi): Call sol2_init_abi.
266 Remove calls to set_gdbarch_sofun_address_maybe_missing,
267 set_gdbarch_static_transform_name,
268 set_gdbarch_skip_solib_resolver,
269 set_gdbarch_core_pid_to_str.
270 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
271 (sparc_sol2_static_transform_name): Remove
272 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
273 call sol2_sigtramp_p.
274 (sparc64_sol2_init_abi): Call sol2_init_abi.
275 Remove calls to set_gdbarch_sofun_address_maybe_missing,
276 set_gdbarch_static_transform_name,
277 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
278
a8654e7d
PW
2792020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
280
281 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
282 * exec.c (validate_exec_file): If from_tty, set both
283 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
284 * symfile.c (symbol_file_add_with_addrs): if always_confirm
285 and from_tty, unconditionally ask a confirmation.
286
caa7fd04
AB
2872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * target-descriptions.c (tdesc_architecture_name): Protect against
290 NULL pointer dereference.
291 (maint_print_xml_tdesc_cmd): New function.
292 (_initialize_target_descriptions): Register new 'maint print
293 xml-tdesc' command and give it the filename completer.
294 * NEWS: Mention new 'maint print xml-tdesc' command.
295
fbf42f4e
AB
2962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * target-descriptions.c (class tdesc_compatible_info): New class.
299 (struct target_desc): Change type of compatible vector.
300 (tdesc_compatible_p): Update for change in type of
301 target_desc::compatible.
302 (tdesc_compatible_info_list): New function.
303 (tdesc_compatible_info_arch_name): New function.
304 (tdesc_add_compatible): Update for change in type of
305 target_desc::compatible.
306 (print_c_tdesc::visit_pre): Likewise.
307
20821f4e
AB
3082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
311 whitespace to underscore.
312 (maint_print_c_tdesc_cmd): Use fake filename for target
313 descriptions that came from the target.
314 (_initialize_target_descriptions): Add filename command completion
315 for 'maint print c-tdesc'.
316
1fb5ee62
SM
3172020-06-23 Simon Marchi <simon.marchi@efficios.com>
318
319 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
320 lines.
321
fc3ecb3e
SM
3222020-06-23 Simon Marchi <simon.marchi@efficios.com>
323
324 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
325 lines.
326 (dwarf2_find_location_expression): Likewise.
327 (call_site_parameter_matches): Likewise.
328 (dwarf2_compile_expr_to_ax): Likewise.
329 (disassemble_dwarf_expression): Likewise.
330 (loclist_describe_location): Likewise.
331
236ef034
PA
3322020-06-23 Pedro Alves <palves@redhat.com>
333
334 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
335 progspace-and-thread.h. Include scoped-mock-context.h instead.
336 (register_to_value_test): Use scoped_mock_context.
337 * regcache.c: Include "scoped-mock-context.h".
338 (cooked_read_test): Don't error out if a target is already pushed.
339 Use scoped_mock_context. Adjust.
340 * scoped-mock-context.h: New file.
341
39e7ecca
AB
3422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
345 initializer.
346 (ada_language::is_string_type_p): New member function.
347 * c-lang.c (c_language_data): Delete la_is_string_type_p
348 initializer.
349 (cplus_language_data): Likewise.
350 (asm_language_data): Likewise.
351 (minimal_language_data): Likewise.
352 * d-lang.c (d_language_data): Likewise.
353 * f-lang.c (f_is_string_type_p): Delete function, implementation
354 moved to f_language::is_string_type_p.
355 (f_language_data): Delete la_is_string_type_p initializer.
356 (f_language::is_string_type_p): New member function,
357 implementation from f_is_string_type_p.
358 * go-lang.c (go_is_string_type_p): Delete function, implementation
359 moved to go_language::is_string_type_p.
360 (go_language_data): Delete la_is_string_type_p initializer.
361 (go_language::is_string_type_p): New member function,
362 implementation from go_is_string_type_p.
363 * language.c (language_defn::is_string_type_p): Define new member
364 function.
365 (default_is_string_type_p): Make static, add comment copied from
366 header file.
367 (unknown_language_data): Delete la_is_string_type_p initializer.
368 (unknown_language::is_string_type_p): New member function.
369 (auto_language_data): Delete la_is_string_type_p initializer.
370 (auto_language::is_string_type_p): New member function.
371 * language.h (language_data): Delete la_is_string_type_p field.
372 (language_defn::is_string_type_p): Declare new function.
373 (default_is_string_type_p): Delete desclaration, move comment to
374 definition.
375 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
376 moved to m2_language::is_string_type_p.
377 (m2_language_data): Delete la_is_string_type_p initializer.
378 (m2_language::is_string_type_p): New member function,
379 implementation from m2_is_string_type_p.
380 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
381 initializer.
382 * opencl-lang.c (opencl_language_data): Likewise.
383 * p-lang.c (pascal_is_string_type_p): Delete function,
384 implementation moved to pascal_language::is_string_type_p.
385 (pascal_language_data): Delete la_is_string_type_p initializer.
386 (pascal_language::is_string_type_p): New member function,
387 implementation from pascal_is_string_type_p.
388 * rust-lang.c (rust_is_string_type_p): Delete function,
389 implementation moved to rust_language::is_string_type_p.
390 (rust_language_data): Delete la_is_string_type_p initializer.
391 (rust_language::is_string_type_p): New member function,
392 implementation from rust_is_string_type_p.
393 * valprint.c (val_print_scalar_or_string_type_p): Update call to
394 is_string_type_p.
395
4ffc13fb
AB
3962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
397
398 * ada-lang.c (ada_language_data): Delete la_print_typedef
399 initializer.
400 (ada_language::print_typedef): New member function.
401 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
402 (cplus_language_data): Likewise.
403 (asm_language_data): Likewise.
404 (minimal_language_data): Likewise.
405 * d-lang.c (d_language_data): Likewise.
406 * f-lang.c (f_language_data): Likewise.
407 (f_language::print_typedef): New member function.
408 * go-lang.c (go_language_data): Delete la_print_typedef
409 initializer.
410 * language.c (language_defn::print_typedef): Define member
411 function.
412 (unknown_language_data): Delete la_print_typedef initializer.
413 (unknown_language::print_typedef): New member function.
414 (auto_language_data): Delete la_print_typedef initializer.
415 (auto_language::print_typedef): New member function.
416 * language.h (language_data): Delete la_print_typedef field.
417 (language_defn::print_typedef): Declare new member function.
418 (LA_PRINT_TYPEDEF): Update call to print_typedef.
419 (default_print_typedef): Delete declaration.
420 * m2-lang.c (m2_language_data): Delete la_print_typedef
421 initializer.
422 (m2_language::print_typedef): New member function.
423 * objc-lang.c (objc_language_data): Delete la_print_typedef
424 initializer.
425 * opencl-lang.c (opencl_language_data): Likewise.
426 * p-lang.c (pascal_language_data): Likewise.
427 (pascal_language::print_typedef): New member function.
428 * rust-lang.c (rust_print_typedef): Delete function,
429 implementation moved to rust_language::print_typedef.
430 (rust_language): Delete la_print_typedef initializer.
431 (rust_language::print_typedef): New member function,
432 implementation from rust_print_typedef.
433 * typeprint.c (default_print_typedef): Delete.
434
d711ee67
AB
4352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
438 (ada_language::printstr): New member function.
439 * c-lang.c (c_language_data): Delete la_printstr initializer.
440 (cplus_language_data): Likewise.
441 (asm_language_data): Likewise.
442 (minimal_language_data): Likewise.
443 * d-lang.c (d_language_data): Likewise.
444 * f-lang.c (f_printstr): Rename to f_language::printstr.
445 (f_language_data): Delete la_printstr initializer.
446 (f_language::printstr): New member function, implementation from
447 f_printstr.
448 * go-lang.c (go_language_data): Delete la_printstr initializer.
449 * language.c (language_defn::printstr): Define new member
450 function.
451 (unk_lang_printstr): Delete.
452 (unknown_language_data): Delete la_printstr initializer.
453 (unknown_language::printstr): New member function.
454 (auto_language_data): Delete la_printstr initializer.
455 (auto_language::printstr): New member function.
456 * language.h (language_data): Delete la_printstr field.
457 (language_defn::printstr): Declare new member function.
458 (LA_PRINT_STRING): Update call to printstr.
459 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
460 (m2_language_data): Delete la_printstr initializer.
461 (m2_language::printstr): New member function, implementation from
462 m2_printstr.
463 * objc-lang.c (objc_language_data): Delete la_printstr
464 initializer.
465 * opencl-lang.c (opencl_language_data): Likewise.
466 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
467 (pascal_language_data): Delete la_printstr initializer.
468 (pascal_language::printstr): New member function, implementation
469 from pascal_printstr.
470 * p-lang.h (pascal_printstr): Delete declaration.
471 * rust-lang.c (rust_printstr): Update header comment.
472 (rust_language_data): Delete la_printstr initializer.
473 (rust_language::printstr): New member function.
474
52b50f2c
AB
4752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
478 (ada_language::printchar): New member function.
479 * c-lang.c (c_language_data): Delete la_printchar initializer.
480 (cplus_language_data): Likewise.
481 (asm_language_data): Likewise.
482 (minimal_language_data): Likewise.
483 * d-lang.c (d_language_data): Likewise.
484 * f-lang.c (f_printchar): Rename to f_language::printchar.
485 (f_language_data): Delete la_printchar initializer.
486 (f_language::printchar): New member function, implementation from
487 f_printchar.
488 * go-lang.c (go_language_data): Delete la_printchar initializer.
489 * language.c (unk_lang_printchar): Delete.
490 (language_defn::printchar): Define new member function.
491 (unknown_language_data): Delete la_printchar initializer.
492 (unknown_language::printchar): New member function.
493 (auto_language_data): Delete la_printchar initializer.
494 (auto_language::printchar): New member function.
495 * language.h (language_data): Delete la_printchar field.
496 (language_defn::printchar): Declare new member function.
497 (LA_PRINT_CHAR): Update call to printchar.
498 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
499 (m2_language::printchar): New member function.
500 * objc-lang.c (objc_language_data): Delete la_printchar
501 initializer.
502 * opencl-lang.c (opencl_language_data): Likewise.
503 * p-lang.c (pascal_language_data): Delete la_printchar
504 initializer.
505 (pascal_language::printchar): New member function.
506 * rust-lang.c (rust_printchar): Rename to
507 rust_language::printchar.
508 (rust_language_data): Delete la_printchar initializer.
509 (rust_language::printchar): New member function, implementation
510 from rust_printchar.
511
ec8cec5b
AB
5122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
513
514 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
515 (ada_language_data): Delete la_emitchar initializer.
516 (ada_language::emitchar): New member function, implementation from
517 emit_char.
518 * c-lang.c (c_language_data): Delete la_emitchar initializer.
519 (cplus_language_data): Likewise.
520 (asm_language_data): Likewise.
521 (minimal_language_data): Likewise.
522 * d-lang.c (d_language_data): Likewise.
523 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
524 (f_language_data): Delete la_emitchar initializer.
525 (f_language::emitchar): New member function, implementation from
526 f_emit_char.
527 * go-lang.c (go_language_data): Delete la_emitchar initializer.
528 * language.c (unk_lang_emit_char): Delete.
529 (language_defn::emitchar): New member function definition.
530 (unknown_language_data): Delete la_emitchar initializer.
531 (unknown_language::emitchar): New member function.
532 (auto_language_data): Delete la_emitchar initializer.
533 (auto_language::emitchar): New member function.
534 * language.h (language_data): Delete la_emitchar field.
535 (language_defn::emitchar): New member field declaration.
536 (LA_EMIT_CHAR): Update call to emitchar.
537 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
538 (m2_language_data): Delete la_emitchar initializer.
539 (m2_language::emitchar): New member function, implementation from
540 m2_emit_char.
541 * objc-lang.c (objc_language_data): Delete la_emitchar
542 initializer.
543 * opencl-lang.c (opencl_language_data): Likewise.
544 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
545 (pascal_language_data): Delete la_emitchar initializer.
546 (pascal_language::emitchar): New member function, implementation
547 from pascal_emit_char.
548 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
549 (rust_language_data): Delete la_emitchar initializer.
550 (rust_language::emitchar): New member function, implementation
551 from rust_emitchar.
552
1bf9c363
AB
5532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * ada-lang.c (resolve): Rename to ada_language::post_parser.
556 (ada_language_data): Delete la_post_parser initializer.
557 (ada_language::post_parser): New member function.
558 * c-lang.c (c_language_data): Delete la_post_parser initializer.
559 (cplus_language_data): Likewise.
560 (asm_language_data): Likewise.
561 (minimal_language_data): Likewise.
562 * d-lang.c (d_language_data): Likewise.
563 * f-lang.c (f_language_data): Likewise.
564 * go-lang.c (go_language_data): Likewise.
565 * language.c (unknown_language_data): Likewise.
566 (auto_language_data): Likewise.
567 * language.h (language_data): Delete la_post_parser field.
568 (language_defn::post_parser): New member function.
569 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
570 * objc-lang.c (objc_language_data): Likewise.
571 * opencl-lang.c (opencl_language_data): Likewise.
572 * p-lang.c (pascal_language_data): Likewise.
573 * parse.c (parse_exp_in_context): Update call to post_parser.
574 (null_post_parser): Delete definition.
575 * parser-defs.h (null_post_parser): Delete declaration.
576 * rust-lang.c (rust_language_data): Delete la_post_parser
577 initializer.
578
87afa652
AB
5792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * ada-lang.c (parse): Rename to ada_language::parser.
582 (ada_language_data): Delete la_parser initializer.
583 (ada_language::parser): New member function, implementation from
584 parse.
585 * c-lang.c (c_language_data): Delete la_parser initializer.
586 (cplus_language_data): Likewise.
587 (asm_language_data): Likewise.
588 (minimal_language_data): Likewise.
589 * d-lang.c (d_language_data): Likewise.
590 (d_language::parser): New member function.
591 * f-lang.c (f_language_data): Delete la_parser initializer.
592 (f_language::parser): New member function.
593 * go-lang.c (go_language_data): Delete la_parser initializer.
594 (go_language::parser): New member function.
595 * language.c (unk_lang_parser): Delete.
596 (language_defn::parser): Define new member function.
597 (unknown_language_data): Delete la_parser initializer.
598 (unknown_language::parser): New member function.
599 (auto_language_data): Delete la_parser initializer.
600 (auto_language::parser): New member function.
601 * language.h (language_data): Delete la_parser field.
602 (language_defn::parser): Declare new member function.
603 * m2-lang.c (m2_language_data): Delete la_parser initializer.
604 (m2_language::parser): New member function.
605 * objc-lang.c (objc_language_data): Delete la_parser initializer.
606 * opencl-lang.c (opencl_language_data): Likewise.
607 * p-lang.c (pascal_language_data): Likewise.
608 (pascal_language::parser): New member function.
609 * parse.c (parse_exp_in_context): Update call to parser.
610 * rust-lang.c (rust_language_data): Delete la_parser initializer.
611 (rust_language::parser): New member function.
612
37825800
AB
6132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * top.c (print_gdb_configuration): Print --with-python-libdir
616 configuration value.
617
5b860c93
PW
6182020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
619
620 * NEWS: Mention change to the alias command.
621
cf00cd6f
PW
6222020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
623
624 * cli/cli-cmds.c (lookup_cmd_for_default_args)
625 (alias_command_completer)
626 (make_alias_options_def_group): New functions.
627 (alias_opts, alias_option_defs): New struct and array.
628 (alias_usage_error): Update usage.
629 (alias_command): Handles optional DEFAULT-ARGS... arguments.
630 Use option framework.
631 (_initialize_cli_cmds): Update alias command help.
632 Update aliases command help.
633 (show_user):
634 Add NULL for new default_args lookup_cmd argument.
635 (valid_command_p): Rename to validate_aliased_command.
636 Add NULL for new default_args lookup_cmd argument. Verify that the
637 aliased_command has no default args.
638 * cli/cli-decode.c (help_cmd): Show aliases definitions.
639 (lookup_cmd_1, lookup_cmd): New argument default_args.
640 (add_alias_cmd):
641 Add NULL for new default_args lookup_cmd argument.
642 (print_help_for_command): Show default args under the layout
643 alias some_alias = some_aliased_cmd some_alias_default_arg.
644 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
645 xfree default_args in destructor.
646 * cli/cli-script.c (process_next_line, do_define_command):
647 Add NULL for new default_args lookup_cmd argument.
648 * command.h: Declare new default_args argument in lookup_cmd
649 and lookup_cmd_1.
650 * completer.c (complete_line_internal_1):
651 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
652 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
653 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
654 Likewise.
655 * infcmd.c (_initialize_infcmd): Likewise.
656 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
657 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
658 * python/py-param.c (add_setshow_generic): Likewise.
659 * remote.c (_initialize_remote): Likewise.
660 * top.c (execute_command): Prepend default_args if command has some.
661 (set_verbose):
662 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
663 * tracepoint.c (validate_actionline, encode_actions_1):
664 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
665
bd920864
TBA
6662020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
667
668 * jit.c (jit_read_descriptor): Use bool as the return type.
669 (jit_breakpoint_re_set_internal): Use bool as the return type.
670 Invert the return value logic; return true if the jit breakpoint
671 has been successfully initialized.
672 (jit_inferior_init): Update the call to
673 jit_breakpoint_re_set_internal.
674
f8098322
PA
6752020-06-22 Pedro Alves <palves@redhat.com>
676
677 PR gdb/25939
678 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
679 Use the current inferior instead. Don't return
680 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
681 wait again.
682 * sol-thread.c (sol_thread_target::wait): Don't reference
683 inferior_ptid.
684 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
685 (sol_update_thread_list_callback): Use the current inferior's pid
686 instead of inferior_ptid.
687
196535a6
RO
6882020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
689
690 * procfs.c: Cleanup many comments.
691
692 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
693 (AFTER_WATCHFLAG): Replace by value.
694
695 (MAIN_PROC_NAME_FORMAT): Inline ...
696 (create_procinfo): ... here.
697
698 (procfs_debug_inferior): Remove SYS_exec handling.
699 (syscall_is_exec): Likewise.
700 (procfs_set_exec_trap): Likewise.
701
702 (syscall_is_lwp_exit): Inline in callers.
703 (syscall_is_exit): Likewise.
704 (syscall_is_exec): Likewise.
705 (syscall_is_lwp_create): Likewise.
706
707 (invalidate_cache): Remove #if 0 code.
708
709 (make_signal_thread_runnable): Remove.
710 (procfs_target::resume): Remove #if 0 code.
711
cf6f3e86
RO
7122020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
713
714 PR gdb/25939
715 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
716 call ...
717 (procfs_target::create_inferior): ... here.
718
48e9cc84
PW
7192020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
720
721 * exec.c (validate_exec_file): Ensure the build-id is up to
722 date by calling reopen_exec_file (that checks file timestamp
723 to decide to re-read the file).
724
3922b302
PA
7252020-06-18 Pedro Alves <palves@redhat.com>
726
727 PR gdb/25412
728 * gdbthread.h (delete_thread, delete_thread_silent)
729 (find_thread_ptid): Update comments.
730 * thread.c (current_thread_): New global.
731 (is_current_thread): Move higher, and reimplement.
732 (inferior_thread): Reimplement.
733 (set_thread_exited): Use bool. Add assertions.
734 (add_thread_silent): Simplify thread-reuse handling by always
735 calling delete_thread.
736 (delete_thread): Remove intro comment.
737 (find_thread_ptid): Skip exited threads.
738 (switch_to_thread_no_regs): Write to current_thread_.
739 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
740 INFERIOR_PTID. Clear current_thread_.
741
6dbdab44
PA
7422020-06-18 Pedro Alves <palves@redhat.com>
743
744 * aix-thread.c (pd_update): Use switch_to_thread.
745
2da4b788
PA
7462020-06-18 Pedro Alves <palves@redhat.com>
747
748 * ravenscar-thread.c (ravenscar_thread_target): Update.
749 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
750 (ravenscar_thread_target::add_active_thread): ... this. Don't
751 set m_base_ptid here. Update to avoid referencing inferior_ptid.
752 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
753
50838d1b
PA
7542020-06-18 Pedro Alves <palves@redhat.com>
755
756 * nat/windows-nat.c (current_windows_thread): Remove.
757 * nat/windows-nat.h (current_windows_thread): Remove.
758 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
759 Adjust.
760 (display_selectors): Adjust to fetch the current
761 windows_thread_info based on inferior_ptid.
762 (fake_create_process): No longer write to current_windows_thread.
763 (windows_nat_target::get_windows_debug_event):
764 Don't set inferior_ptid or current_windows_thread.
765 (windows_nat_target::wait): Adjust to not rely on
766 current_windows_thread.
767 (do_initial_windows_stuff): Now a method of windows_nat_target.
768 Switch to the last_ptid thread.
769 (windows_nat_target::attach): Adjust.
770 (windows_nat_target::detach): Use switch_to_no_thread instead of
771 writing to inferior_ptid directly.
772 (windows_nat_target::create_inferior): Adjust.
773
31ce04e9
PA
7742020-06-18 Pedro Alves <palves@redhat.com>
775
776 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
777
1ee1a363
PA
7782020-06-18 Pedro Alves <palves@redhat.com>
779
780 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
781 after creating it, instead of writing to inferior_ptid. Don't
782 write to inferior_ptid.
783
6d350754
PA
7842020-06-18 Pedro Alves <palves@redhat.com>
785
786 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
787
5d971d48
PA
7882020-06-18 Pedro Alves <palves@redhat.com>
789
790 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
791 it, instead of writing to inferior_ptid.
792
86e57d1b
PA
7932020-06-18 Pedro Alves <palves@redhat.com>
794
795 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
796 to inferior_ptid.
797
f2e1c129
PA
7982020-06-18 Pedro Alves <palves@redhat.com>
799
800 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
801 instead of writing to inferior_ptid directly.
802
60db1b85
PA
8032020-06-18 Pedro Alves <palves@redhat.com>
804
805 * corelow.c (core_target::close): Use switch_to_no_thread instead
806 of writing to inferior_ptid directly.
807 (add_to_thread_list, core_target_open): Use switch_to_thread
808 instead of writing to inferior_ptid directly.
809
fe7d6a8d
PA
8102020-06-18 Pedro Alves <palves@redhat.com>
811
812 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
813 inferior_ptid.
814 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
815 inferior_ptid.
816 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
817 inferior_ptid directly.
818 (darwin_nat_target::init_thread_list): Switch to thread, instead
819 of writing to inferior_ptid.
820 (darwin_nat_target::attach): Don't write to inferior_ptid.
821 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
822
975f8708
PA
8232020-06-18 Pedro Alves <palves@redhat.com>
824
825 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
826 thread.
827 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
828 Instead use switch_to_thread.
829 (gnu_nat_target::detach): Use switch_to_no_thread
830 instead of writing to inferior_ptid directly. Used passed-in
831 inferior instead of looking up the inferior by pid.
832
1a204730
PA
8332020-06-18 Pedro Alves <palves@redhat.com>
834
835 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
836 inferior_ptid.
837
ebe84f23
PA
8382020-06-18 Pedro Alves <palves@redhat.com>
839
840 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
841 inferior_ptid.
842 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
843 thread.
844 (nto_procfs_target::detach): Avoid referencing
845 inferior_ptid. Use switch_to_no_thread instead of writing to
846 inferior_ptid directly.
847 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
848 instead of writing to inferior_ptid directly.
849 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
850 to thread.
851
191f02e5
PA
8522020-06-18 Pedro Alves <palves@redhat.com>
853
854 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
855 after creating it, instead of writing to inferior_ptid.
856 (gdbsim_target_open): Use switch_to_no_thread instead of writing
857 to inferior_ptid directly.
858 (gdbsim_target::wait): Don't write to inferior_ptid.
859
0ac55310
PA
8602020-06-18 Pedro Alves <palves@redhat.com>
861
862 * remote.c (remote_target::remote_notice_new_inferior): Use
863 switch_to_thread instead of writing to inferior_ptid directly.
864 (remote_target::add_current_inferior_and_thread): Use
865 switch_to_no_thread instead of writing to inferior_ptid directly.
866 (extended_remote_target::attach): Use switch_to_inferior_no_thread
867 and switch_to_thread instead of using set_current_inferior or
868 writing to inferior_ptid directly.
869
5233f39b
PA
8702020-06-18 Pedro Alves <palves@redhat.com>
871
872 * tracectf.c (ctf_target_open): Switch to added thread instead of
873 writing to inferior_ptid directly.
874 (ctf_target::close): Use switch_to_no_thread instead of writing to
875 inferior_ptid directly.
876
087e161b
PA
8772020-06-18 Pedro Alves <palves@redhat.com>
878
879 * tracefile-tfile.c (tfile_target_open): Don't write to
880 inferior_ptid directly, instead switch to added thread.
881 (tfile_target::close): Use switch_to_no_thread instead of writing
882 to inferior_ptid directly.
883
7fb43e53
PA
8842020-06-18 Pedro Alves <palves@redhat.com>
885
886 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
887 (procfs_target::detach): Use switch_to_no_thread
888 instead of writing to inferior_ptid directly.
889 (do_attach): Change return type to void. Switch to the added
890 thread.
891 (procfs_target::create_inferior): Switch to the added thread.
892 (procfs_do_thread_registers): Don't write to inferior_ptid.
893
18493a00
PA
8942020-06-18 Pedro Alves <palves@redhat.com>
895
896 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
897 of writing to inferior_ptid.
898 (scoped_restore_exited_inferior): Delete.
899 (handle_vfork_child_exec_or_exit): Simplify using
900 scoped_restore_current_pspace_and_thread. Use switch_to_thread
901 instead of writing to inferior_ptid.
902 (THREAD_STOPPED_BY): Delete.
903 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
904 (thread_stopped_by_hw_breakpoint): Delete.
905 (save_waitstatus): Use
906 scoped_restore_current_thread+switch_to_thread, and call
907 target_stopped_by_watchpoint instead of
908 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
909 instead of thread_stopped_by_sw_breakpoint, and
910 target_stopped_by_hw_breakpoint instead of
911 thread_stopped_by_hw_breakpoint.
912 (handle_inferior_event)
913 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
914 inferior_ptid directly, nor
915 set_current_inferior/set_current_program_space. Use
916 switch_to_thread / switch_to_inferior_no_thread instead.
917
a0776b13
PA
9182020-06-18 Pedro Alves <palves@redhat.com>
919
920 * target.c (generic_mourn_inferior): Use switch_to_no_thread
921 instead of writing to inferior_ptid.
922
6155c136
PA
9232020-06-18 Pedro Alves <palves@redhat.com>
924
925 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
926 added thread.
927 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
928 to the added thread.
929 (inf_ptrace_target::detach_success): Use switch_to_no_thread
930 instead of writing to inferior_ptid.
931
c5316fc6
PA
9322020-06-18 Pedro Alves <palves@redhat.com>
933
934 * gdbarch-selftests.c: Include "progspace-and-thread.h".
935 (register_to_value_test): Mock a program_space too. Heap-allocate
936 the address space. Don't write to inferior_ptid. Use
937 switch_to_thread instead.
938
8df01799
PA
9392020-06-18 Pedro Alves <palves@redhat.com>
940
941 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
942 Delete.
943 (find_signalled_thread()): New, factored out from
944 linux_make_corefile_notes and adjusted to handle exited threads.
945 (linux_make_corefile_notes): Adjust to use the new
946 find_signalled_thread.
947
41792d68
PA
9482020-06-18 Pedro Alves <palves@redhat.com>
949
950 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
951 of saving/restoring inferior_ptid.
952
612f258a
TT
9532020-06-17 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
956 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
957 declare.
958 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
959
efb763a5
SM
9602020-06-15 Simon Marchi <simon.marchi@efficios.com>
961
962 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
963 of partial symtabs.
964
2951f6c0
SM
9652020-06-17 Simon Marchi <simon.marchi@efficios.com>
966
967 * regformats/reg-arm.dat: Remove.
968 * regformats/reg-bfin.dat: Remove.
969 * regformats/reg-cris.dat: Remove.
970 * regformats/reg-crisv32.dat: Remove.
971 * regformats/reg-m32r.dat: Remove.
972 * regformats/reg-tilegx.dat: Remove.
973 * regformats/reg-tilegx32.dat: Remove.
974
7d458ea5
SM
9752020-06-17 Simon Marchi <simon.marchi@efficios.com>
976
977 * features/Makefile (WHICH): Remove arm files.
978 * regformats/arm/arm-with-iwmmxt.dat: Remove.
979 * regformats/arm/arm-with-neon.dat: Remove.
980 * regformats/arm/arm-with-vfpv2.dat: Remove.
981 * regformats/arm/arm-with-vfpv3.dat: Remove.
982
3af96c0d
SM
9832020-06-17 Simon Marchi <simon.marchi@efficios.com>
984
985 * features/Makefile (XMLTOC): Remove rx.xml.
986
b25e22fd
PA
9872020-06-17 Pedro Alves <palves@redhat.com>
988
989 * gdbthread.h (thread_control_state) <trap_expected> Update
990 comments.
991
a78a19b1
AB
9922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
993
994 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
995 ada_language::lookup_symbol_nonlocal.
996 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
997 (ada_language::lookup_symbol_nonlocal): New member function,
998 implementation from ada_lookup_symbol_nonlocal.
999 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1000 initializer.
1001 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1002 initializer.
1003 (cplus_language::lookup_symbol_nonlocal): New member function.
1004 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1005 (minimal_language_data) Likewise.
1006 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1007 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1008 initializer.
1009 (d_language::lookup_symbol_nonlocal): New member function.
1010 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1011 initializer.
1012 (f_language::lookup_symbol_nonlocal): New member function.
1013 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1014 initializer.
1015 * language.c (unknown_language_data): Likewise.
1016 (auto_language_data): Likewise.
1017 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1018 field.
1019 (language_defn::lookup_symbol_nonlocal): New member function.
1020 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1021 initializer.
1022 * objc-lang.c (objc_language_data): Likewise.
1023 * opencl-lang.c (opencl_language_data): Likewise.
1024 * p-lang.c (pascal_language_data): Likewise.
1025 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1026 rust_language::lookup_symbol_nonlocal.
1027 (rust_language_data): Delete la_lookup_symbol_nonlocal
1028 initializer.
1029 (rust_language::lookup_symbol_nonlocal): New member function,
1030 implementation from rust_lookup_symbol_nonlocal.
1031 * symtab.c (lookup_symbol_aux): Update call to
1032 lookup_symbol_nonlocal.
1033 (basic_lookup_symbol_nonlocal): Rename to...
1034 (language_defn::lookup_symbol_nonlocal): ...this, and update
1035 header comment. Remove language_defn parameter, and replace with
1036 uses of `this'.
1037 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1038
ebe2334e
AB
10392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1040
1041 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1042 initializer.
1043 (ada_language::value_print_inner): New member function.
1044 * c-lang.c (c_language_data): Delete la_value_print_inner
1045 initializer.
1046 (cplus_language_data): Likewise.
1047 (asm_language_data): Likewise.
1048 (minimal_language_data): Likewise.
1049 * d-lang.c (d_language_data): Likewise.
1050 (d_language::value_print_inner): New member function.
1051 * f-lang.c (f_language_data): Delete la_value_print_inner
1052 initializer.
1053 (f_language::value_print_inner): New member function.
1054 * f-lang.h (f_value_print_innner): Rename to...
1055 (f_value_print_inner): ...this (note spelling of 'inner').
1056 * f-valprint.c (f_value_print_innner): Rename to...
1057 (f_value_print_inner): ...this (note spelling of 'inner').
1058 * go-lang.c (go_language_data): Delete la_value_print_inner
1059 initializer.
1060 (go_language::value_print_inner): New member function.
1061 * language.c (language_defn::value_print_inner): Define new member
1062 function.
1063 (unk_lang_value_print_inner): Delete.
1064 (unknown_language_data): Delete la_value_print_inner initializer.
1065 (unknown_language::value_print_inner): New member function.
1066 (auto_language_data): Delete la_value_print_inner initializer.
1067 (auto_language::value_print_inner): New member function.
1068 * language.h (language_data): Delete la_value_print_inner field.
1069 (language_defn::value_print_inner): Delcare new member function.
1070 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1071 initializer.
1072 (m2_language::value_print_inner): New member function.
1073 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1074 initializer.
1075 * opencl-lang.c (opencl_language_data): Likewise.
1076 * p-lang.c (pascal_language_data): Likewise.
1077 (pascal_language::value_print_inner): New member function.
1078 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1079 initializer.
1080 (rust_language::value_print_inner): New member function.
1081 * valprint.c (do_val_print): Update call to value_print_inner.
1082
a1d1fa3e
AB
10832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * ada-lang.c (ada_language_data): Delete la_value_print
1086 initializer.
1087 (ada_language::value_print): New member function.
1088 * c-lang.c (c_language_data): Delete la_value_print initializer.
1089 (cplus_language_data): Likewise.
1090 (asm_language_data): Likewise.
1091 (minimal_language_data): Likewise.
1092 * d-lang.c (d_language_data): Likewise.
1093 * f-lang.c (f_language_data): Likewise.
1094 * go-lang.c (go_language_data): Likewise.
1095 * language.c (unk_lang_value_print): Delete.
1096 (language_defn::value_print): Define new member function.
1097 (unknown_language_data): Delete la_value_print initializer.
1098 (unknown_language::value_print): New member function.
1099 (auto_language_data): Delete la_value_print initializer.
1100 (auto_language::value_print): New member function.
1101 * language.h (language_data): Delete la_value_print field.
1102 (language_defn::value_print): Declare new member function.
1103 (LA_VALUE_PRINT): Update call to value_print.
1104 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1105 * objc-lang.c (objc_language_data): Likewise.
1106 * opencl-lang.c (opencl_language_data): Likewise.
1107 * p-lang.c (pascal_language_data): Likewise.
1108 (pascal_language::value_print): New member function.
1109 * rust-lang.c (rust_language_data): Delete la_value_print
1110 initializer.
1111
f16a9f57
AB
11122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 * ada-lang.c (ada_watch_location_expression): Rename to
1115 ada_language::watch_location_expression.
1116 (ada_language_data): Delete la_watch_location_expression
1117 initializer.
1118 (ada_language::watch_location_expression): New member function,
1119 implementation from ada_watch_location_expression.
1120 * breakpoint.c (watch_command_1): Update call to
1121 watch_location_expression.
1122 * c-lang.c (c_watch_location_expression): Rename to
1123 language_defn::watch_location_expression.
1124 (c_language_data): Delete la_watch_location_expression
1125 initializer.
1126 (cplus_language_data): Likewise.
1127 (asm_language_data): Likewise.
1128 (minimal_language_data): Likewise.
1129 * c-lang.h (c_watch_location_expression): Delete declaration.
1130 * d-lang.c (d_language_data): Delete la_watch_location_expression
1131 initializer.
1132 * f-lang.c (f_language_data): Likewise.
1133 * go-lang.c (go_language_data): Likewise.
1134 * language.c (language_defn::watch_location_expression): Member
1135 function implementation from c_watch_location_expression.
1136 (unknown_language_data): Delete la_watch_location_expression
1137 initializer.
1138 (auto_language_data): Likewise.
1139 * language.h (language_data): Delete la_watch_location_expression
1140 field.
1141 (language_defn::watch_location_expression): Declare new member
1142 function.
1143 * m2-lang.c (m2_language_data): Delete
1144 la_watch_location_expression initializer.
1145 * objc-lang.c (objc_language_data): Likewise.
1146 * opencl-lang.c (opencl_language_data): Likewise.
1147 * p-lang.c (pascal_language_data): Likewise.
1148 * rust-lang.c (rust_watch_location_expression): Rename to
1149 rust_language::watch_location_expression.
1150 (rust_language_data): Delete la_watch_location_expression
1151 initializer.
1152 (rust_language::watch_location_expression): New member function,
1153 implementation from rust_watch_location_expression.
1154
7e56227d
AB
11552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1156
1157 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1158 ada_language::collect_symbol_completion_matches.
1159 (ada_language_data): Delete la_collect_symbol_completion_matches
1160 initializer.
1161 (ada_language::collect_symbol_completion_matches): New member
1162 function, implementation from
1163 ada_collect_symbol_completion_matches.
1164 * c-lang.c (c_language_data): Delete
1165 la_collect_symbol_completion_matches initializer.
1166 (cplus_language_data): Likewise.
1167 (asm_language_data): Likewise.
1168 (minimal_language_data): Likewise.
1169 * d-lang.c (d_language_data): Likewise.
1170 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1171 f_language::collect_symbol_completion_matches.
1172 (f_language_data): Delete la_collect_symbol_completion_matches
1173 initializer.
1174 (f_language::collect_symbol_completion_matches) New member
1175 function, implementation from f_collect_symbol_completion_matches.
1176 * go-lang.c (go_language_data): Delete
1177 la_collect_symbol_completion_matches initializer.
1178 * language.c (unknown_language_data): Likewise.
1179 (auto_language_data): Likewise.
1180 * language.h (language_data): Delete
1181 la_collect_symbol_completion_matches field.
1182 (language_defn::collect_symbol_completion_matches): New member
1183 function.
1184 * m2-lang.c (m2_language_data): Delete
1185 la_collect_symbol_completion_matches initializer.
1186 * objc-lang.c (objc_language_data): Likewise.
1187 * opencl-lang.c (opencl_language_data): Likewise.
1188 * p-lang.c (pascal_language_data): Likewise.
1189 * rust-lang.c (rust_language_data): Likewise.
1190 * symtab.c (default_collect_symbol_completion_matches): Delete.
1191 (collect_symbol_completion_matches): Update call to
1192 collect_symbol_completion_matches.
1193 (collect_symbol_completion_matches_type): Likewise.
1194 * symtab.h (default_collect_symbol_completion_matches): Delete
1195 declaration.
1196
53fc67f8
AB
11972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1200 (ada_language_data): Delete la_word_break_characters initializer.
1201 (ada_language::word_break_characters): New member function.
1202 * c-lang.c (c_language_data): Delete la_word_break_characters
1203 initializer.
1204 (cplus_language_data): Likewise.
1205 (asm_language_data): Likewise.
1206 (minimal_language_data): Likewise.
1207 * completer.c: Update global comment.
1208 (advance_to_expression_complete_word_point): Update call to
1209 word_break_characters.
1210 (complete_files_symbols): Likewise.
1211 (complete_line_internal_1): Likewise.
1212 (default_completer_handle_brkchars): Likewise.
1213 (skip_quoted_chars): Likewise.
1214 * d-lang.c (d_language_data): Delete la_word_break_characters
1215 initializer.
1216 * f-lang.c (f_word_break_characters): Delete.
1217 (f_language_data): Delete la_word_break_characters initializer.
1218 (f_language::word_break_characters): New member function.
1219 * go-lang.c (go_language_data): Delete la_word_break_characters
1220 initializer.
1221 * language.c (unknown_language_data): Likewise.
1222 (auto_language_data): Likewise.
1223 * language.h (default_word_break_characters): Move declaration to
1224 earlier in the file.
1225 (language_data): Delete la_word_break_characters field.
1226 (language_defn::word_break_characters): New member function.
1227 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1228 initializer.
1229 * objc-lang.c (objc_language_data): Likewise.
1230 * opencl-lang.c (opencl_language_data): Likewise.
1231 * p-lang.c (pascal_language_data): Likewise.
1232 * rust-lang.c (rust_language_data): Likewise.
1233
c9debfb9
AB
12342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1235
1236 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1237 (ada_language_data): Delete la_get_symbol_name_matcher
1238 initializer.
1239 (language_defn::get_symbol_name_matcher_inner): New member
1240 function.
1241 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1242 initializer.
1243 (cplus_language_data): Likewise.
1244 (cplus_language::get_symbol_name_matcher_inner): New member
1245 function.
1246 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1247 (minimal_language_data): Likewise.
1248 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1249 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1250 initializer.
1251 * dictionary.c (iter_match_first_hashed): Update call to
1252 get_symbol_name_matcher.
1253 (iter_match_next_hashed): Likewise.
1254 (iter_match_next_linear): Likewise.
1255 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1256 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1257 initializer.
1258 (f_language::get_symbol_name_matcher_inner): New member function.
1259 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1260 initializer.
1261 * language.c (default_symbol_name_matcher): Update header comment,
1262 make static.
1263 (language_defn::get_symbol_name_matcher): New definition.
1264 (language_defn::get_symbol_name_matcher_inner): Likewise.
1265 (get_symbol_name_matcher): Delete.
1266 (unknown_language_data): Delete la_get_symbol_name_matcher
1267 initializer.
1268 (auto_language_data): Likewise.
1269 * language.h (language_data): Delete la_get_symbol_name_matcher
1270 field.
1271 (language_defn::get_symbol_name_matcher): New member function.
1272 (language_defn::get_symbol_name_matcher_inner): Likewise.
1273 (default_symbol_name_matcher): Delete declaration.
1274 * linespec.c (find_methods): Update call to
1275 get_symbol_name_matcher.
1276 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1277 initializer.
1278 * minsyms.c (lookup_minimal_symbol): Update call to
1279 get_symbol_name_matcher.
1280 (iterate_over_minimal_symbols): Likewise.
1281 * objc-lang.c (objc_language_data): Delete
1282 la_get_symbol_name_matcher initializer.
1283 * opencl-lang.c (opencl_language_data): Likewise.
1284 * p-lang.c (pascal_language_data): Likewise.
1285 * psymtab.c (psymbol_name_matches): Update call to
1286 get_symbol_name_matcher.
1287 * rust-lang.c (rust_language_data): Delete
1288 la_get_symbol_name_matcher initializer.
1289 * symtab.c (symbol_matches_search_name): Update call to
1290 get_symbol_name_matcher.
1291 (compare_symbol_name): Likewise.
1292
9a49ad8c
AB
12932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * ada-lang.c (ada_language_data): Delete la_compute_program
1296 initializer.
1297 * c-lang.c (c_language_data): Likewise.
1298 (c_language::compute_program): New member function.
1299 (cplus_language_data): Delete la_compute_program initializer.
1300 (cplus_language::compute_program): New member function.
1301 (asm_language_data): Delete la_compute_program initializer.
1302 (minimal_language_data): Likewise.
1303 * c-lang.h (c_compute_program): Update comment.
1304 (cplus_compute_program): Likewise.
1305 * compile/compile-c-support.c (c_compute_program): Likewise.
1306 (cplus_compute_program): Likewise.
1307 * compile/compile.c (compile_to_object): Update call to
1308 la_compute_program.
1309 * d-lang.c (d_language_data): Delete la_compute_program
1310 initializer.
1311 * f-lang.c (f_language_data): Likewise.
1312 * go-lang.c (go_language_data): Likewise.
1313 * language.c (unknown_language_data): Likewise.
1314 (auto_language_data): Likewise.
1315 * language.h (language_data): Delete la_compute_program field.
1316 (language_defn::compute_program): New member function.
1317 * m2-lang.c (m2_language_data): Delete la_compute_program
1318 initializer.
1319 * objc-lang.c (objc_language_data): Likewise.
1320 * opencl-lang.c (opencl_language_data): Likewise.
1321 * p-lang.c (pascal_language_data): Likewise.
1322 * rust-lang.c (rust_language_data): Likewise.
1323
eff93b4d
AB
13242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * ada-lang.c (ada_language_data) Delete
1327 la_class_name_from_physname initializer.
1328 * c-lang.c (c_language_data): Likewise.
1329 (cplus_language_data): Likewise.
1330 (cplus_language::class_name_from_physname): New member function.
1331 (asm_language_data): Delete la_class_name_from_physname
1332 initializer.
1333 (minimal_language_data): Likewise.
1334 * d-lang.c (d_language_data): Likewise.
1335 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1336 method on language_defn class.
1337 (guess_full_die_structure_name): Likewise.
1338 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1339 initializer.
1340 * go-lang.c (go_language_data): Likewise.
1341 * language.c (language_class_name_from_physname): Delete.
1342 (unk_lang_class_name): Delete.
1343 (unknown_language_data): Delete la_class_name_from_physname
1344 initializer.
1345 (auto_language_data): Likewise.
1346 * language.h (language_data): Delete la_class_name_from_physname
1347 field.
1348 (language_defn::class_name_from_physname): New function.
1349 (language_class_name_from_physname): Delete declaration.
1350 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1351 initializer.
1352 * objc-lang.c (objc_language_data): Likewise.
1353 * opencl-lang.c (opencl_language_data): Likewise.
1354 * p-lang.c (pascal_language_data): Likewise.
1355 * rust-lang.c (rust_language_data): Likewise.
1356
de543742
TT
13572020-06-16 Tom Tromey <tom@tromey.com>
1358
1359 * tui/tui-data.h (STATUS_NAME): New macro.
1360 * tui/tui-layout.c (tui_remove_some_windows)
1361 (initialize_known_windows, tui_register_window)
1362 (tui_layout_split::remove_windows, initialize_layouts)
1363 (tui_new_layout_command): Don't use hard-coded window names.
1364
a350efd4
TT
13652020-06-16 Tom Tromey <tom@tromey.com>
1366
1367 PR tui/25348:
1368 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1369 tui_initialize_readline. Only run once. Call rl_initialize.
1370 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1371 tui_initialize_readline.
1372 * tui/tui-io.c (tui_setup_io): Call
1373 tui_ensure_readline_initialized.
1374 * tui/tui-interp.c (tui_interp::init): Update.
1375
39ec0490
TT
13762020-06-16 Tom Tromey <tom@tromey.com>
1377
1378 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1379 Also preserve the status window.
1380
d2d1ea20
TT
13812020-06-16 Tom Tromey <tom@tromey.com>
1382
1383 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1384 where m_window==nullptr.
1385
66920317
TT
13862020-06-15 Tom Tromey <tromey@adacore.com>
1387
1388 * windows-nat.c (windows_nat::handle_output_debug_string):
1389 Update.
1390 (windows_nat::handle_ms_vc_exception): Update.
1391 * target.h (target_read_string): Change API.
1392 * target.c (target_read_string): Change API.
1393 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1394 Update.
1395 * solib-frv.c (frv_current_sos): Update.
1396 * solib-dsbt.c (dsbt_current_sos): Update.
1397 * solib-darwin.c (darwin_current_sos): Update.
1398 * linux-thread-db.c (inferior_has_bug): Update.
1399 * expprint.c (print_subexp_standard): Update.
1400 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1401 (ada_exception_message_1): Update.
1402
a5d871dd
TT
14032020-06-15 Tom Tromey <tromey@adacore.com>
1404
1405 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1406
670e35fa
TT
14072020-06-15 Tom Tromey <tromey@adacore.com>
1408
1409 * valprint.c (read_string): Update comment.
1410 * target.c (MIN): Remove.
1411 (target_read_string): Rewrite.
1412
f5272a3b
TT
14132020-06-15 Tom Tromey <tromey@adacore.com>
1414
1415 * corefile.c (read_memory_string): Remove.
1416 * ada-valprint.c (ada_value_print_ptr): Update.
1417 * ada-lang.h (ada_tag_name): Change return type.
1418 * ada-lang.c (type_from_tag): Update.
1419 (ada_tag_name_from_tsd): Change return type. Use
1420 target_read_string.
1421 (ada_tag_name): Likewise.
1422 * gdbcore.h (read_memory_string): Don't declare.
1423
2c074f49
HD
14242020-06-14 Hannes Domani <ssbssa@yahoo.de>
1425
1426 * symtab.c (rbreak_command): Ignore Windows drive colon.
1427
6a17d503
SM
14282020-06-12 Simon Marchi <simon.marchi@efficios.com>
1429
1430 * NEWS: Mention removed GDBserver host support.
1431
453c733f
NC
14322020-06-12 Nelson Chu <nelson.chu@sifive.com>
1433
1434 * features/riscv/rebuild-csr-xml.sh: Updated.
1435
2b4e6a3f
TT
14362020-06-11 Tom Tromey <tom@tromey.com>
1437
1438 PR gdb/18318:
1439 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1440
4412332f
JG
14412020-06-09 Jonny Grant <jg@jguk.org>
14422020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * main.c (captured_main_1): Don't print new line after help.
1445 (print_gdb_help): add mailing list and IRC channel information
1446 to --help. Add new lines between items in the footer. Remove
1447 quotes around bug url.
1448
2f33032a
KS
14492020-06-11 Keith Seitz <keiths@redhat.com>
1450
1451 PR gdb/21356
1452 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1453 Resolve typedefs for type length calculations.
1454
7ab96794
TV
14552020-06-10 Tom de Vries <tdevries@suse.de>
1456
1457 PR ada/24713
1458 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1459 (write_psymbols): Enable .gdb_index for ada.
1460 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1461 ada.
1462
e5f3ece2
TV
14632020-06-10 Tom de Vries <tdevries@suse.de>
1464
1465 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1466 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1467 namei" instead of "const char *name" argument.
1468 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1469 dw2_symtab_iter_init.
1470
940da03e
SM
14712020-06-08 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1474 to use type::field and field::type instead.
1475
b6cdac4b
SM
14762020-06-08 Simon Marchi <simon.marchi@efficios.com>
1477
1478 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1479 to use field::type instead.
1480
5d14b6e5
SM
14812020-06-08 Simon Marchi <simon.marchi@efficios.com>
1482
1483 * gdbtypes.h (struct field) <type, set_type>: New methods.
1484 Rename `type` field to...
1485 <m_type>: ... this. Change references throughout to use type or
1486 set_type methods.
1487 (FIELD_TYPE): Use field::type. Change call sites that modify
1488 the field's type to use field::set_type instead.
1489
3d967001
SM
14902020-06-08 Simon Marchi <simon.marchi@efficios.com>
1491
1492 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1493 to use type::index_type instead.
1494
262abc0d
SM
14952020-06-08 Simon Marchi <simon.marchi@efficios.com>
1496
1497 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1498 methods.
1499 (TYPE_INDEX_TYPE): Use type::index_type.
1500 * gdbtypes.c (create_array_type_with_stride): Likewise.
1501
82836c92
TT
15022020-06-07 Tom Tromey <tom@tromey.com>
1503
1504 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1505 parameter.
1506 (generic_value_print): Update.
1507
940dace9
AB
15082020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 Revert commit 982a38f60b0.
1511 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1512
982a38f6
AB
15132020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1516 avoid use after free.
1517
82f06518
TV
15182020-06-05 Tom de Vries <tdevries@suse.de>
1519
1520 * NEWS: Fix typos.
1521
f8c41851
SM
15222020-06-04 Simon Marchi <simon.marchi@efficios.com>
1523
1524 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1525 the per_bfd object.
1526 (dwarf2_read_debug_names): Likewise.
1527 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1528 object when re-using a per_bfd object with an index.
1529
f9b5d5ea
TV
15302020-06-03 Tom de Vries <tdevries@suse.de>
1531
1532 PR symtab/26046
1533 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1534 children for C++.
1535 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1536 DW_TAG_subprogram.
1537
f6eee2d0
AB
15382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * ada-lang.c (ada_language_data): Delete skip_trampoline
1541 initializer.
1542 * c-lang.c (c_language_data): Likewise.
1543 (cplus_language_data): Likewise.
1544 (cplus_language::skip_trampoline): New member function.
1545 (asm_language_data): Delete skip_trampoline initializer.
1546 (minimal_language_data): Likewise.
1547 * d-lang.c (d_language_data): Likewise.
1548 * f-lang.c (f_language_data): Likewise.
1549 * go-lang.c (go_language_data): Likewise.
1550 * language.c (unk_lang_trampoline): Delete function.
1551 (skip_language_trampoline): Update.
1552 (unknown_language_data): Delete skip_trampoline initializer.
1553 (auto_language_data): Likewise.
1554 * language.h (language_data): Delete skip_trampoline field.
1555 (language_defn::skip_trampoline): New function.
1556 * m2-lang.c (m2_language_data): Delete skip_trampoline
1557 initializer.
1558 * objc-lang.c (objc_skip_trampoline): Delete function, move
1559 implementation to objc_language::skip_trampoline.
1560 (objc_language_data): Delete skip_trampoline initializer.
1561 (objc_language::skip_trampoline): New member function with
1562 implementation from objc_skip_trampoline.
1563 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1564 initializer.
1565 * p-lang.c (pascal_language_data): Likewise.
1566 * rust-lang.c (rust_language_data): Likewise.
1567
0a50df5d
AB
15682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1571 (ada_language::demangle): New member function.
1572 * c-lang.c (c_language_data): Delete la_demangle initializer.
1573 (cplus_language_data): Delete la_demangle initializer.
1574 (cplus_language::demangle): New member function.
1575 (asm_language_data): Delete la_demangle initializer.
1576 (minimal_language_data): Delete la_demangle initializer.
1577 * d-lang.c (d_language_data): Delete la_demangle initializer.
1578 (d_language::demangle): New member function.
1579 * f-lang.c (f_language_data): Delete la_demangle initializer.
1580 (f_language::demangle): New member function.
1581 * go-lang.c (go_language_data): Delete la_demangle initializer.
1582 (go_language::demangle): New member function.
1583 * language.c (language_demangle): Update.
1584 (unk_lang_demangle): Delete.
1585 (unknown_language_data): Delete la_demangle initializer.
1586 (unknown_language::demangle): New member function.
1587 (auto_language_data): Delete la_demangle initializer.
1588 (auto_language::demangle): New member function.
1589 * language.h (language_data): Delete la_demangle field.
1590 (language_defn::demangle): New function.
1591 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1592 * objc-lang.c (objc_language_data): Delete la_demangle
1593 initializer.
1594 (objc_language::demangle): New member function.
1595 * opencl-lang.c (opencl_language_data): Delete la_demangle
1596 initializer.
1597 * p-lang.c (pascal_language_data): Likewise.
1598 * rust-lang.c (rust_language_data): Likewise.
1599 (rust_language::demangle): New member function.
1600
fbfb0a46
AB
16012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * ada-lang.c (ada_language_data): Delete la_print_type
1604 initializer.
1605 (ada_language::print_type): New member function.
1606 * c-lang.c (c_language_data): Delete la_print_type initializer.
1607 (c_language::print_type): New member function.
1608 (cplus_language_data): Delete la_print_type initializer.
1609 (cplus_language::print_type): New member function.
1610 (asm_language_data): Delete la_print_type initializer.
1611 (asm_language::print_type): New member function.
1612 (minimal_language_data): Delete la_print_type initializer.
1613 (minimal_language::print_type): New member function.
1614 * d-lang.c (d_language_data): Delete la_print_type initializer.
1615 (d_language::print_type): New member function.
1616 * f-lang.c (f_language_data): Delete la_print_type initializer.
1617 (f_language::print_type): New member function.
1618 * go-lang.c (go_language_data): Delete la_print_type initializer.
1619 (go_language::print_type): New member function.
1620 * language.c (unk_lang_print_type): Delete.
1621 (unknown_language_data): Delete la_print_type initializer.
1622 (unknown_language::print_type): New member function.
1623 (auto_language_data): Delete la_print_type initializer.
1624 (auto_language::print_type): New member function.
1625 * language.h (language_data): Delete la_print_type field.
1626 (language_defn::print_type): New function.
1627 (LA_PRINT_TYPE): Update.
1628 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1629 (m2_language::print_type): New member function.
1630 * objc-lang.c (objc_language_data): Delete la_print_type
1631 initializer.
1632 (objc_language::print_type): New member function.
1633 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1634 to opencl_language::print_type.
1635 (opencl_language_data): Delete la_print_type initializer.
1636 (opencl_language::print_type): New member function, implementation
1637 from opencl_print_type.
1638 * p-lang.c (pascal_language_data): Delete la_print_type
1639 initializer.
1640 (pascal_language::print_type): New member function.
1641 * rust-lang.c (rust_print_type): Delete, implementation moved to
1642 rust_language::print_type.
1643 (rust_language_data): Delete la_print_type initializer.
1644 (rust_language::print_type): New member function, implementation
1645 from rust_print_type.
1646
6f827019
AB
16472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1648
1649 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1650 implementation moves to...
1651 (ada_language::sniff_from_mangled_name): ...here. Update return
1652 type.
1653 (ada_language_data): Delete la_sniff_from_mangled_name
1654 initializer.
1655 * c-lang.c (c_language_data): Likewise.
1656 (cplus_language_data): Likewise.
1657 (cplus_language::sniff_from_mangled_name): New member function,
1658 implementation taken from gdb_sniff_from_mangled_name.
1659 (asm_language_data): Delete la_sniff_from_mangled_name
1660 initializer.
1661 (minimal_language_data): Likewise.
1662 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1663 implementation moves to cplus_language::sniff_from_mangled_name.
1664 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1665 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1666 moves to...
1667 (d_language::sniff_from_mangled_name): ...here.
1668 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1669 * f-lang.c (f_language_data): Likewise.
1670 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1671 moves to...
1672 (go_language::sniff_from_mangled_name): ...here.
1673 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1674 * language.c (language_sniff_from_mangled_name): Delete.
1675 (unknown_language_data): Delete la_sniff_from_mangled_name
1676 initializer.
1677 (auto_language_data): Likewise.
1678 * language.h (language_data): Delete la_sniff_from_mangled_name
1679 field.
1680 (language_defn::sniff_from_mangled_name): New function.
1681 (language_sniff_from_mangled_name): Delete declaration.
1682 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1683 field.
1684 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1685 implementation moves to...
1686 (objc_language::sniff_from_mangled_name): ...here.
1687 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1688 * opencl-lang.c (opencl_language_data): Likewise.
1689 * p-lang.c (pascal_language_data): Likewise.
1690 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1691 implementation moves to...
1692 (rust_language::sniff_from_mangled_name): ...here.
1693 (rust_language_data): Delete la_sniff_from_mangled_name
1694 initializer.
1695 * symtab.c (symbol_find_demangled_name): Call
1696 sniff_from_mangled_name member function.
1697
fb8006fd
AB
16982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1701 initializer.
1702 * c-lang.c (c_language_data): Likewise.
1703 (cplus_language_data): Likewise.
1704 (cplus_language::search_name_hash): New member function.
1705 (asm_language_data): Delete la_search_name_hash initializer.
1706 (minimal_language_data): Likewise.
1707 * d-lang.c (d_language_data): Likewise.
1708 * dictionary.c (default_search_name_hash): Rename to...
1709 (language_defn::search_name_hash): ...this.
1710 * f-lang.c (f_language_data): Likewise.
1711 (f_language::search_name_hash): New member function.
1712 * go-lang.c (go_language_data): Delete la_search_name_hash
1713 initializer.
1714 * language.c (unknown_language_data): Likewise.
1715 (auto_language_data): Likewise.
1716 * language.h (struct language_data): Delete la_search_name_hash
1717 field.
1718 (language_defn::search_name_hash): Declare new member function.
1719 (default_search_name_hash): Delete declaration.
1720 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1721 initializer.
1722 * objc-lang.c (objc_language_data): Likewise.
1723 * opencl-lang.c (opencl_language_data): Likewise.
1724 * p-lang.c (pascal_language_data): Likewise.
1725 * rust-lang.c (rust_language_data): Likewise.
1726 * symtab.c (search_name_hash): Update call.
1727
8e25bafe
AB
17282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1731 initializer.
1732 * c-lang.c (class compile_instance): Declare.
1733 (c_language_data): Delete la_get_compile_instance initializer.
1734 (c_language::get_compile_instance): New member function.
1735 (cplus_language_data): Delete la_get_compile_instance initializer.
1736 (cplus_language::get_compile_instance): New member function.
1737 (asm_language_data): Delete la_get_compile_instance initializer.
1738 (minimal_language_data): Likewise.
1739 * c-lang.h (c_get_compile_context): Update comment.
1740 (cplus_get_compile_context): Update comment.
1741 * compile/compile.c (compile_to_object): Update calls, don't rely
1742 on function pointer being NULL.
1743 * d-lang.c (d_language_data): Delete la_get_compile_instance
1744 initializer.
1745 * f-lang.c (f_language_data): Likewise.
1746 * go-lang.c (go_language_data): Likewise.
1747 * language.c (unknown_language_data): Likewise.
1748 (auto_language_data): Likewise.
1749 * language.h (language_data): Delete la_get_compile_instance field.
1750 (language_defn::get_compile_instance): New member function.
1751 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1752 initializer.
1753 * objc-lang.c (objc_language_data): Likewise.
1754 * opencl-lang.c (opencl_language_data): Likewise.
1755 * p-lang.c (pascal_language_data): Likewise.
1756 * rust-lang.c (rust_language_data): Likewise.
1757
4009ee92
AB
17582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * ada-lang.c (ada_add_all_symbols): Update comment.
1761 (ada_iterate_over_symbols): Delete, move implementation to...
1762 (ada_language::iterate_over_symbols): ...here, a new member
1763 function, rewrite to use range based for loop.
1764 (ada_language_data): Delete la_iterate_over_symbols initializer.
1765 * c-lang.c (c_language_data): Likewise.
1766 (cplus_language_data): Likewise.
1767 (asm_language_data): Likewise.
1768 (minimal_language_data): Likewise.
1769 * d-lang.c (d_language_data): Likewise.
1770 * f-lang.c (f_language_data): Likewise.
1771 * go-lang.c (go_language_data): Likewise.
1772 * language.c (unknown_language_data): Likewise.
1773 (auto_language_data): Likewise.
1774 * language.h (language_data): Delete la_iterate_over_symbols field.
1775 (language_defn::iterate_over_symbols): New member function.
1776 (LA_ITERATE_OVER_SYMBOLS): Update.
1777 * linespec.c (iterate_over_all_matching_symtabs): Update.
1778 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1779 initializer.
1780 * objc-lang.c (objc_language_data): Likewise.
1781 * opencl-lang.c (opencl_language_data): Likewise.
1782 * p-lang.c (pascal_language_data): Likewise.
1783 * rust-lang.c (rust_language_data): Likewise.
1784
54f4ca46
AB
17852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * ada-lang.c (ada_language_data): Delete
1788 la_lookup_transparent_type initializer.
1789 * c-lang.c (c_language_data): Likewise.
1790 (cplus_language_data): Likewise.
1791 (cplus_language::lookup_transparent_type): New member function.
1792 (asm_language_data): Delete la_lookup_transparent_type
1793 initializer.
1794 (minimal_language_data): Likewise.
1795 * d-lang.c (d_language_data): Likewise.
1796 * f-lang.c (f_language_data): Likewise.
1797 * go-lang.c (go_language_data): Likewise.
1798 * language.c (unknown_language_data): Likewise.
1799 (auto_language_data): Likewise.
1800 * language.h (struct language_data): Delete
1801 la_lookup_transparent_type field.
1802 (language_defn::lookup_transparent_type): New member function.
1803 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1804 initializer.
1805 * objc-lang.c (objc_language_data): Likewise.
1806 * opencl-lang.c (opencl_language_data): Likewise.
1807 * p-lang.c (pascal_language_data): Likewise.
1808 * rust-lang.c (rust_language_data): Likewise.
1809 * symtab.c (symbol_matches_domain): Update call.
1810
1fb314aa
AB
18112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * ada-lang.c (ada_language_arch_info): Delete function, move
1814 implementation to...
1815 (ada_language::language_arch_info): ...here, a new member
1816 function.
1817 (ada_language_data): Delete la_language_arch_info.
1818 * c-lang.c (c_language_data): Likewise.
1819 (c_language::language_arch_info): New member function.
1820 (cplus_language_arch_info): Delete function, move
1821 implementation to...
1822 (cplus_language::language_arch_info): ...here, a new member
1823 function.
1824 (cplus_language_data): Delete la_language_arch_info.
1825 (asm_language_data): Likewise.
1826 (asm_language::language_arch_info): New member function.
1827 (minimal_language_data): Delete la_language_arch_info.
1828 (minimal_language::language_arch_info): New member function.
1829 * d-lang.c (d_language_arch_info): Delete function, move
1830 implementation to...
1831 (d_language::language_arch_info): ...here, a new member
1832 function.
1833 (d_language_data): Delete la_language_arch_info.
1834 * f-lang.c (f_language_arch_info): Delete function, move
1835 implementation to...
1836 (f_language::language_arch_info): ...here, a new member
1837 function.
1838 (f_language_data): Delete la_language_arch_info.
1839 * go-lang.c (go_language_arch_info): Delete function, move
1840 implementation to...
1841 (go_language::language_arch_info): ...here, a new member
1842 function.
1843 (go_language_data): Delete la_language_arch_info.
1844 * language.c (unknown_language_data): Likewise.
1845 (unknown_language::language_arch_info): New member function.
1846 (auto_language_data): Delete la_language_arch_info.
1847 (auto_language::language_arch_info): New member function.
1848 (language_gdbarch_post_init): Update call to
1849 la_language_arch_info.
1850 * language.h (language_data): Delete la_language_arch_info
1851 function pointer.
1852 (language_defn::language_arch_info): New function.
1853 * m2-lang.c (m2_language_arch_info): Delete function, move
1854 implementation to...
1855 (m2_language::language_arch_info): ...here, a new member
1856 function.
1857 (m2_language_data): Delete la_language_arch_info.
1858 * objc-lang.c (objc_language_arch_info): Delete function, move
1859 implementation to...
1860 (objc_language::language_arch_info): ...here, a new member
1861 function.
1862 (objc_language_data): Delete la_language_arch_info.
1863 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1864 implementation to...
1865 (opencl_language::language_arch_info): ...here, a new member
1866 function.
1867 (opencl_language_data): Delete la_language_arch_info.
1868 * p-lang.c (pascal_language_arch_info): Delete function, move
1869 implementation to...
1870 (pascal_language::language_arch_info): ...here, a new member
1871 function.
1872 (pascal_language_data): Delete la_language_arch_info.
1873 * rust-lang.c (rust_language_arch_info): Delete function, move
1874 implementation to...
1875 (rust_language::language_arch_info): ...here, a new member
1876 function.
1877 (rust_language_data): Delete la_language_arch_info.
1878
48448202
AB
18792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1882 initializer.
1883 * c-lang.c (c_language_data): Likewise.
1884 (cplus_language_data): Likewise.
1885 (cplus_language::pass_by_reference_info): New method.
1886 (asm_language_data): Delete la_pass_by_reference initializer.
1887 (minimal_language_data): Likewise.
1888 * cp-abi.c (cp_pass_by_reference): Remove use of
1889 default_pass_by_reference.
1890 * d-lang.c (d_language_data): Likewise.
1891 * f-lang.c (f_language_data): Likewise.
1892 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1893 default_pass_by_reference.
1894 * go-lang.c (go_language_data): Likewise.
1895 * language.c (language_pass_by_reference): Update.
1896 (default_pass_by_reference): Delete.
1897 (unknown_language_data): Delete la_pass_by_reference
1898 initializer.
1899 (auto_language_data): Likewise.
1900 * language.h (struct language_data): Delete la_pass_by_reference
1901 field.
1902 (language_defn::pass_by_reference_info): New member function.
1903 (default_pass_by_reference): Delete declaration.
1904 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1905 initializer.
1906 * objc-lang.c (objc_language_data): Likewise.
1907 * opencl-lang.c (opencl_language_data): Likewise.
1908 * p-lang.c (pascal_language_data): Likewise.
1909 * rust-lang.c (rust_language_data): Likewise.
1910
15e5fd35
AB
19112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 * ada-lang.c (ada_read_var_value): Delete function, move
1914 implementation to...
1915 (ada_language::read_var_value): ...here.
1916 (ada_language_data): Delete la_read_var_value initializer.
1917 * c-lang.c (c_language_data): Likewise.
1918 (cplus_language_data): Likewise.
1919 (minimal_language_data): Likewise.
1920 * d-lang.c (d_language_data): Likewise.
1921 * f-lang.c (f_language_data): Likewise.
1922 * findvar.c (default_read_var_value): Rename to...
1923 (language_defn::read_var_value): ...this.
1924 * findvar.c (read_var_value): Update header comment, and change to
1925 call member function instead of function pointer.
1926 * go-lang.c (go_language_data): Likewise.
1927 * language.c (unknown_language_data): Delete la_read_var_value
1928 initializer.
1929 (auto_language_data): Likewise.
1930 * language.h (struct language_data): Delete la_read_var_value
1931 field.
1932 (language_defn::read_var_value): New member function.
1933 (default_read_var_value): Delete declaration.
1934 * m2-lang.c (m2_language_data): Delete la_read_var_value
1935 initializer.
1936 * objc-lang.c (objc_language_data): Likewise.
1937 * opencl-lang.c (opencl_language_data): Likewise.
1938 * p-lang.c (pascal_language_data): Likewise.
1939 * rust-lang.c (rust_language_data): Likewise.
1940 * value.h (default_read_var_value): Delete declaration.
1941
5bd40f2a
AB
19422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1943
1944 * ada-lang.c (ada_print_array_index): Delete function, move
1945 implementation to...
1946 (ada_language::print_array_index): ...here.
1947 (ada_language_data): Delete la_print_array_index initializer.
1948 * c-lang.c (c_language_data): Likewise.
1949 (cplus_language_data): Likewise.
1950 (minimal_language_data): Likewise.
1951 * d-lang.c (d_language_data): Likewise.
1952 * f-lang.c (f_language_data): Likewise.
1953 * go-lang.c (go_language_data): Likewise.
1954 * language.c (default_print_array_index): Delete function, move
1955 implementation to...
1956 (language_defn::print_array_index): ...here.
1957 (unknown_language_data): Delete la_print_array_index initializer.
1958 (auto_language_data): Likewise.
1959 * language.h (struct language_data): Delete la_print_array_index
1960 field.
1961 (language_defn::print_array_index): New member function.
1962 (LA_PRINT_ARRAY_INDEX): Update.
1963 (default_print_array_index): Delete declaration.
1964 * m2-lang.c (m2_language_data): Delete la_print_array_index
1965 initializer.
1966 * objc-lang.c (objc_language_data): Likewise.
1967 * opencl-lang.c (opencl_language_data): Likewise.
1968 * p-lang.c (pascal_language_data): Likewise.
1969 * rust-lang.c (rust_language_data): Likewise.
1970
0874fd07
AB
19712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1972
1973 * gdb/ada-lang.c (ada_language_defn): Convert to...
1974 (ada_language_data): ...this.
1975 (class ada_language): New class.
1976 (ada_language_defn): New static global.
1977 * gdb/c-lang.c (c_language_defn): Convert to...
1978 (c_language_data): ...this.
1979 (class c_language): New class.
1980 (c_language_defn): New static global.
1981 (cplus_language_defn): Convert to...
1982 (cplus_language_data): ...this.
1983 (class cplus_language): New class.
1984 (cplus_language_defn): New static global.
1985 (asm_language_defn): Convert to...
1986 (asm_language_data): ...this.
1987 (class asm_language): New class.
1988 (asm_language_defn): New static global.
1989 (minimal_language_defn): Convert to...
1990 (minimal_language_data): ...this.
1991 (class minimal_language): New class.
1992 (minimal_language_defn): New static global.
1993 * gdb/d-lang.c (d_language_defn): Convert to...
1994 (d_language_data): ...this.
1995 (class d_language): New class.
1996 (d_language_defn): New static global.
1997 * gdb/f-lang.c (f_language_defn): Convert to...
1998 (f_language_data): ...this.
1999 (class f_language): New class.
2000 (f_language_defn): New static global.
2001 * gdb/go-lang.c (go_language_defn): Convert to...
2002 (go_language_data): ...this.
2003 (class go_language): New class.
2004 (go_language_defn): New static global.
2005 * gdb/language.c (unknown_language_defn): Remove declaration.
2006 (current_language): Initialize to nullptr, real initialization is
2007 moved to _initialize_language.
2008 (languages): Delete global.
2009 (language_defn::languages): Define.
2010 (set_language_command): Use language_defn::languages.
2011 (set_language): Likewise.
2012 (range_error): Likewise.
2013 (language_enum): Likewise.
2014 (language_def): Likewise.
2015 (add_set_language_command): Use language_def::languages for the
2016 language list, and language_def to lookup language pointers.
2017 (skip_language_trampoline): Use language_defn::languages.
2018 (unknown_language_defn): Convert to...
2019 (unknown_language_data): ...this.
2020 (class unknown_language): New class.
2021 (unknown_language_defn): New static global.
2022 (auto_language_defn): Convert to...
2023 (auto_language_data): ...this.
2024 (class auto_language): New class.
2025 (auto_language_defn): New static global.
2026 (language_gdbarch_post_init): Use language_defn::languages.
2027 (_initialize_language): Initialize current_language.
2028 * gdb/language.h (struct language_defn): Rename to...
2029 (struct language_data): ...this.
2030 (struct language_defn): New.
2031 (auto_language_defn): Delete.
2032 (unknown_language_defn): Delete.
2033 (minimal_language_defn): Delete.
2034 (ada_language_defn): Delete.
2035 (asm_language_defn): Delete.
2036 (c_language_defn): Delete.
2037 (cplus_language_defn): Delete.
2038 (d_language_defn): Delete.
2039 (f_language_defn): Delete.
2040 (go_language_defn): Delete.
2041 (m2_language_defn): Delete.
2042 (objc_language_defn): Delete.
2043 (opencl_language_defn): Delete.
2044 (pascal_language_defn): Delete.
2045 (rust_language_defn): Delete.
2046 * gdb/m2-lang.c (m2_language_defn): Convert to...
2047 (m2_language_data): ...this.
2048 (class m2_language): New class.
2049 (m2_language_defn): New static global.
2050 * gdb/objc-lang.c (objc_language_defn): Convert to...
2051 (objc_language_data): ...this.
2052 (class objc_language): New class.
2053 (objc_language_defn): New static global.
2054 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2055 (opencl_language_data): ...this.
2056 (class opencl_language): New class.
2057 (opencl_language_defn): New static global.
2058 * gdb/p-lang.c (pascal_language_defn): Convert to...
2059 (pascal_language_data): ...this.
2060 (class pascal_language): New class.
2061 (pascal_language_defn): New static global.
2062 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2063 language pointer, update comment format.
2064 * gdb/rust-lang.c (rust_language_defn): Convert to...
2065 (rust_language_data): ...this.
2066 (class rust_language): New class.
2067 (rust_language_defn): New static global.
2068
1313c56e
AB
20692020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2072 member variable.
2073 <m_stmt_at_address>: New member variable.
2074 (lnp_state_machine::record_line): Don't record some lines, update
2075 tracking of is_stmt at the same address.
2076 (lnp_state_machine::lnp_state_machine): Initialise new member
2077 variables.
2078
b7ed9f3d
ST
20792020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2080
2081 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2082 "-include gnu-nat-mig.h".
2083 * gnu-nat-mig.h: New file.
2084 * gnu-nat.c: Include "gnu-nat-mig.h".
2085 (exc_server, msg_reply_server, notify_server,
2086 process_reply_server): Remove declarations.
2087
14a8ad62
ST
20882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2089
2090 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2091 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2092 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2093 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2094 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2095 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2096 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2097 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2098 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2099 to gnu_nat_target class.
2100 * gnu-nat.c: Likewise.
2101 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2102 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2103 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2104 object.
2105 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2106 instead of `gnu_target'.
2107
0af5e106
ST
21082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2109
2110 * i386-gnu-tdep.c: Include "gdbcore.h"
2111 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2112 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2113 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2114 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2115 i386_gnu_sigcontext_addr): New functions
2116 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2117 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2118 tdep.
2119
078f2fc9
ST
21202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2121
2122 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2123 before fork_inferior call. Avoid calling it if target_is_pushed returns
2124 true.
2125
53dff92c
ST
21262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2127
2128 * gnu-nat.h (gnu_target): New variable declaration.
2129 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2130 gnu_target.
2131 * gnu-nat.c (gnu_target): New variable.
2132 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2133 add_thread_silent, and add_thread calls.
2134 (gnu_nat_target::create_inferior): Pass gnu_target to
2135 add_thread_silent, thread_change_ptid call.
2136 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2137 call.
2138
5a8b8627
ST
21392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2140
2141 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2142 (gnu_nat_target::find_memory_regions): Remove unused
2143 `old_address' variable.
2144
366f550a
ST
21452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2146
2147 * gnu-nat.c: Include "gdbarch.h".
2148
f14871bf
ST
21492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2150
2151 * reply_mig_hack.awk (Error return): Cast function through
2152 void *, to bypass compiler function call check.
2153
c6887cfb
ST
21542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2155
2156 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2157 $(srcdir)/reply_mig_hack.awk.
2158
6930bffe
ST
21592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2160
2161 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2162
112c22ed
JG
21632020-05-30 Jonny Grant <jg@jguk.org>
2164
2165 * configure.ac (ACX_BUGURL): change bug URL to https.
2166
f68f85b5
PA
21672020-05-30 Pedro Alves <palves@redhat.com>
2168
2169 * cp-support.c (replace_typedefs_template): New.
2170 (replace_typedefs_qualified_name): Handle
2171 DEMANGLE_COMPONENT_TEMPLATE.
2172
976ca316
SM
21732020-05-29 Simon Marchi <simon.marchi@efficios.com>
2174
2175 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2176 dwarf2/index-cache.h, dwarf2/index-write.c,
2177 dwarf2/index-write.h, dwarf2/line-header.c,
2178 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2179 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2180 variables and fields from `dwarf2_per_objfile` to just
2181 `per_objfile` throughout.
2182
989ade05
SM
21832020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2186 <push_dwarf_reg_entry_value>: Add comment.
2187
c47bae85
KB
21882020-05-28 Kevin Buettner <kevinb@redhat.com>
2189 Keith Seitz <keiths@redhat.com>
2190
2191 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2192 instead of PyEval_ReleaseLock.
2193 (class gdbpy_gil): Move to earlier in file.
2194 (finalize_python): Set gdb_python_initialized.
2195 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2196 when not initialized.
2197
44486dcf
SM
21982020-05-28 Simon Marchi <simon.marchi@efficios.com>
2199
2200 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2201 <push_dwarf_reg_entry_value>: Remove assert. Override
2202 per_objfile with caller_per_objfile.
2203
f030440d
TV
22042020-05-28 Tom de Vries <tdevries@suse.de>
2205
2206 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2207 PR gold/15646 workaround to symbol kind "type".
2208
f0fbb768
TT
22092020-05-27 Tom Tromey <tromey@adacore.com>
2210
2211 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2212
af0b2a3e
TT
22132020-05-27 Tom Tromey <tromey@adacore.com>
2214
2215 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2216 Use htab_find_with_hash.
2217 <add_abbrev>: Remove "abbrev_number" parameter.
2218 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2219 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2220 (hash_abbrev): Add comment.
2221 (abbrev_table::lookup_abbrev): Move to header file.
2222 (abbrev_table::read): Update.
2223
7d00ffec
TT
22242020-05-27 Tom Tromey <tromey@adacore.com>
2225
2226 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2227 method.
2228 <canonical_name>: New member.
2229 <raw_name>: Rename from "name".
2230 (partial_die_info): Initialize canonical_name.
2231 (scan_partial_symbols): Check raw_name.
2232 (partial_die_parent_scope, partial_die_full_name)
2233 (add_partial_symbol, add_partial_subprogram)
2234 (add_partial_enumeration, load_partial_dies): Use "name" method.
2235 (partial_die_info::name): New method.
2236 (partial_die_info::read, guess_partial_die_structure_name)
2237 (partial_die_info::fixup): Update.
2238
697bba18
TT
22392020-05-27 Tom Tromey <tromey@adacore.com>
2240
2241 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2242 <get_ref_die_offset>: Inline.
2243 <get_ref_die_offset_complaint>: New method.
2244 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2245 (attribute::get_ref_die_offset_complaint): Rename from
2246 get_ref_die_offset. Just issue complaint.
2247
c17ace43
HD
22482020-05-27 Hannes Domani <ssbssa@yahoo.de>
2249
2250 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2251
96445f0b
HD
22522020-05-27 Hannes Domani <ssbssa@yahoo.de>
2253
2254 * exec.c (exec_file_attach): Use errno value of first openp failure.
2255
ac637ec3
HD
22562020-05-27 Hannes Domani <ssbssa@yahoo.de>
2257
2258 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2259 Don't close thread handle.
2260
17ee85fc
TT
22612020-05-27 Tom Tromey <tom@tromey.com>
2262 Simon Marchi <simon.marchi@efficios.com>
2263
2264 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2265 shared_ptr.
2266 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2267 member.
2268 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2269 dwarf2_per_bfd_objfile_data_key>: New globals.
2270 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2271 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2272 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2273 shared.
2274 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2275 short-circuit when sharing.
2276 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2277 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2278
39b16f87
SM
22792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2282 to...
2283 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2284 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2285
fcf23d5b
SM
22862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2289 build_name_components, find_name_components_bounds>:
2290 Add per_objfile parameter.
2291 (struct mapped_index) <symbol_name_at>: Likewise.
2292 (struct mapped_debug_names): Remove constructor.
2293 <dwarf2_per_objfile>: Remove field.
2294 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2295 (mapped_index_base::find_name_components_bounds,
2296 mapped_index_base::build_name_components,
2297 dw2_expand_symtabs_matching_symbol): Likewise.
2298 (class mock_mapped_index) <symbol_name_at>: Likewise.
2299 (check_match): Likewise.
2300 (check_find_bounds_finds): Likewise.
2301 (test_mapped_index_find_name_component_bounds): Update.
2302 (CHECK_MATCH): Update.
2303 (dw2_expand_symtabs_matching): Update.
2304 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2305 per_objfile parameter.
2306 <find_vec_in_debug_names>: Likewise.
2307 <m_per_objfile>: New field.
2308 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2309 parameter.
2310 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2311 (dw2_debug_names_iterator::next): Update.
2312 (dw2_debug_names_lookup_symbol): Update.
2313 (dw2_debug_names_expand_symtabs_for_function): Update.
2314 (dw2_debug_names_map_matching_symbols): Update.
2315 (dw2_debug_names_expand_symtabs_matching): Update.
2316 (dwarf2_read_debug_names): Update.
2317
7188ed02
SM
23182020-05-27 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2321 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2322 move to dwarf2_per_objfile.
2323 <read_in_chain>: Remove.
2324 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2325 remove_all_cus, age_comp_units>: New methods.
2326 <m_dwarf2_cus>: New member.
2327 (struct dwarf2_per_cu_data) <cu>: Remove.
2328 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2329 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2330 moved to methods of dwarf2_per_objfile.
2331 (dwarf2_clear_marks): Remove.
2332 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2333 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2334 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2335 (dwarf2_per_objfile::remove_all_cus): New.
2336 (class free_cached_comp_units) <~free_cached_comp_units>:
2337 Update.
2338 (load_cu): Update.
2339 (dw2_do_instantiate_symtab): Adjust.
2340 (fill_in_sig_entry_from_dwo_entry): Adjust.
2341 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2342 (cutu_reader::cutu_reader): Likewise.
2343 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2344 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2345 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2346 and dwarf2_per_objfile::age_comp_units.
2347 (load_partial_comp_unit): Update.
2348 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2349 (process_queue): Likewise.
2350 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2351 backlink.
2352 (dwarf2_read_addr_index): Likewise.
2353 (follow_die_offset): Likewise.
2354 (dwarf2_fetch_die_loc_sect_off): Likewise.
2355 (dwarf2_fetch_constant_bytes): Likewise.
2356 (dwarf2_fetch_die_type_sect_off): Likewise.
2357 (follow_die_sig_1): Likewise.
2358 (load_full_type_unit): Likewise.
2359 (read_signatured_type): Likewise.
2360 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2361 (dwarf2_cu::~dwarf2_cu): Remove.
2362 (dwarf2_per_objfile::get_cu): New.
2363 (dwarf2_per_objfile::set_cu): New.
2364 (age_cached_comp_units): Rename to...
2365 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2366 to std::unordered_map.
2367 (free_one_cached_comp_unit): Rename to...
2368 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2369 to std::unordered_map.
2370 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2371 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2372 a dwarf2_per_objfile in data.
2373 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2374 (dwarf2_clear_marks): Remove.
2375
2e671100
SM
23762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2379 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2380 (init_tu_and_read_dwo_dies): Likewise.
2381 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2382 (cutu_reader::cutu_reader): Likewise.
2383 (load_partial_comp_unit): Likewise.
2384 (process_psymtab_comp_unit): Update.
2385 (build_type_psymtabs_1): Update.
2386 (process_skeletonless_type_unit): Update.
2387 (load_full_comp_unit): Update.
2388 (find_partial_die): Update.
2389 (dwarf2_read_addr_index): Update.
2390 (read_signatured_type): Update.
2391
2e6a9f79
SM
23922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2395 m_header_read_in>: New fields.
2396 <get_header>: New method.
2397 * dwarf2/read.c (per_cu_header_read_in): Remove.
2398 (dwarf2_per_cu_data::get_header): New.
2399 (dwarf2_per_cu_data::addr_size): Update.
2400 (dwarf2_per_cu_data::offset_size): Update.
2401 (dwarf2_per_cu_data::ref_addr_size): Update.
2402
1b555f17
SM
24032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2404
2405 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2406 (dw2_do_instantiate_symtab): Update.
2407 (queue_and_load_all_dwo_tus): Change parameter from
2408 dwarf2_per_cu_data to dwarf2_cu.
2409 (dwarf2_fetch_die_loc_sect_off): Update.
2410 (dwarf2_fetch_constant_bytes): Update.
2411 (dwarf2_fetch_die_type_sect_off): Update.
2412
8fc0b21d
SM
24132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * dwarf2/read.c (process_full_comp_unit,
2416 process_full_type_unit): Remove per_cu, per_objfile paramters.
2417 Add dwarf2_cu parameter.
2418 (process_queue): Update.
2419
168c9250
SM
24202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2421
2422 * dwarf2/read.c (create_cu_from_index_list): Replace
2423 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2424 (create_cus_from_index_list): Likewise.
2425 (create_cus_from_index): Likewise.
2426 (create_signatured_type_table_from_index): Likewise.
2427 (create_cus_from_debug_names_list): Likewise.
2428 (create_cus_from_debug_names): Likewise.
2429 (dwarf2_read_gdb_index): Update.
2430 (dwarf2_read_debug_names): Update.
2431
e286671b
TT
24322020-05-27 Tom Tromey <tom@tromey.com>
2433 Simon Marchi <simon.marchi@efficios.com>
2434
2435 * dwarf2/read.h (struct dwarf2_per_objfile)
2436 <get_type_for_signatured_type, set_type_for_signatured_type>:
2437 New methods.
2438 <m_type_map>: New member.
2439 (struct signatured_type) <type>: Remove.
2440 * dwarf2/read.c
2441 (dwarf2_per_objfile::get_type_for_signatured_type,
2442 dwarf2_per_objfile::set_type_for_signatured_type): New.
2443 (get_signatured_type): Use new methods.
2444
8adb8487
TT
24452020-05-27 Tom Tromey <tom@tromey.com>
2446 Simon Marchi <simon.marchi@efficios.com>
2447
2448 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2449 (struct dwarf2_per_objfile) <type_units>: New member.
2450 <get_type_unit_group_unshareable>: New method.
2451 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2452 num_symtabs, symtabs>: Remove; move to
2453 type_unit_group_unshareable.
2454 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2455 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2456 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2457
127bbf4b
SM
24582020-05-27 Simon Marchi <simon.marchi@efficios.com>
2459
2460 * dwarf2/read.h (struct dwarf2_per_cu_data):
2461 <dwarf2_per_objfile>: Remove.
2462 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2463 dwarf2_per_objfile.
2464 (create_signatured_type_table_from_index): Likewise.
2465 (create_signatured_type_table_from_debug_names): Likewise.
2466 (create_debug_type_hash_table): Likewise.
2467 (fill_in_sig_entry_from_dwo_entry): Likewise.
2468 (create_type_unit_group): Likewise.
2469 (read_comp_units_from_section): Likewise.
2470 (create_cus_hash_table): Likewise.
2471
f6e649dd
SM
24722020-05-27 Simon Marchi <simon.marchi@efficios.com>
2473
2474 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2475 dwarf2_per_cu_data::dwarf2_per_objfile.
2476 (compute_compunit_symtab_includes): Likewise.
2477 (dwarf2_cu::start_symtab): Likewise.
2478
aa66c379
SM
24792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2480
2481 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2482 parameter.
2483 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2484 (read_namespace_alias): Update.
2485 (lookup_die_type): Update.
2486 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2487 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2488 Update.
2489 (disassemble_dwarf_expression): Update.
2490
120ce1b5
SM
24912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2492
2493 * dwarf2/read.h (struct dwarf2_queue_item): Add
2494 dwarf2_per_objfile parameter, assign new parameter.
2495 <per_objfile>: New field.
2496 * dwarf2/read.c (free_one_cached_comp_unit): Add
2497 dwarf2_per_objfile parameter.
2498 (queue_comp_unit): Likewise.
2499 (dw2_do_instantiate_symtab): Update.
2500 (process_psymtab_comp_unit): Update.
2501 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2502 (process_imported_unit_die): Update.
2503 (queue_and_load_dwo_tu): Update.
2504 (follow_die_offset): Update.
2505 (follow_die_sig_1): Update.
2506
9f47c707
SM
25072020-05-27 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2510 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2511 (read_call_site_scope): Assign per_objfile.
2512 (dwarf2_per_cu_data::objfile): Remove.
2513 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2514 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2515 dwarf2_per_objfile parameter.
2516 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2517 dwarf2_per_objfile parameter.
2518 (dwarf_expr_reg_to_entry_parameter): Add output
2519 dwarf2_per_objfile parameter.
2520 (locexpr_get_frame_base): Update.
2521 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2522 <push_dwarf_reg_entry_value>: Update.
2523 <call_site_to_target_addr>: Update.
2524 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2525 parameter.
2526 (value_of_dwarf_reg_entry): Update.
2527 (rw_pieced_value): Update.
2528 (indirect_synthetic_pointer): Update.
2529 (dwarf2_evaluate_property): Update.
2530 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2531 parameter.
2532 (locexpr_read_variable): Update.
2533 (locexpr_get_symbol_read_needs): Update.
2534 (loclist_read_variable): Update.
2535
14095eb3
SM
25362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2537
2538 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2539 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2540 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2541 parameter.
2542 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2543 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2544 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2545 parameter.
2546 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2547 sect_variable_value): Add dwarf2_per_objfile parameter.
2548 (class dwarf_evaluate_loc_desc) <dwarf_call,
2549 dwarf_variable_value>: Update.
2550 (fetch_const_value_from_synthetic_pointer): Add
2551 dwarf2_per_objfile parameter.
2552 (fetch_const_value_from_synthetic_pointer): Update.
2553 (coerced_pieced_ref): Update.
2554 (class symbol_needs_eval_context) <dwarf_call,
2555 dwarf_variable_value>: Update.
2556 (dwarf2_compile_expr_to_ax): Update.
2557
3c3cd3d4
SM
25582020-05-27 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2561 parameter.
2562 (dwarf2_evaluate_loc_desc_full): Update.
2563
82ca3f51
SM
25642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2567 parameter.
2568 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2569 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2570 dwarf2_per_objfile parameter.
2571 (decode_debug_loc_dwo_addresses): Likewise.
2572 (dwarf2_find_location_expression): Update.
2573 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2574 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2575 parameter.
2576 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2577 parameter.
2578 (locexpr_describe_location_1): Likewise.
2579 (locexpr_describe_location): Update.
2580
4b167ea1
SM
25812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2582
2583 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2584 Remove.
2585 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2586 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2587 (dwarf2_compile_property_to_c): Update.
2588 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2589 use text offset from objfile.
2590 (locexpr_tracepoint_var_ref): Update.
2591 (locexpr_generate_c_location): Update.
2592 (loclist_describe_location): Update.
2593 (loclist_tracepoint_var_ref): Update.
2594 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2595 dwarf2_per_objfile parameter.
2596 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2597 use text offset from objfile.
2598 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2599
89b07335
SM
26002020-05-27 Simon Marchi <simon.marchi@efficios.com>
2601
2602 * dwarf2/expr.h (struct dwarf_expr_context)
2603 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2604 <offset>: Remove.
2605 <per_objfile>: New member.
2606 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2607 dwarf2_per_objfile parameter. Don't set offset, set
2608 per_objfile.
2609 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2610 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2611 a dwarf2_per_objfile object instead of an offset.
2612 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2613 constructor.
2614 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2615 to dwarf2_expr_executor constructor. Don't set offset.
2616 (dwarf2_fetch_cfa_info): Update.
2617 (struct dwarf2_frame_cache) <text_offset>: Remove.
2618 <per_objfile>: New field.
2619 (dwarf2_frame_cache): Update.
2620 (dwarf2_frame_prev_register): Update.
2621 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2622 <dwarf_evaluate_loc_desc>: Add constructor.
2623 (dwarf2_evaluate_loc_desc_full): Update.
2624 (dwarf2_locexpr_baton_eval): Update.
2625 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2626 Add constructor.
2627 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2628
293e7e51
SM
26292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2632 addr_sized_int_type>: Move to dwarf2_cu.
2633 <int_type>: Move to dwarf2_per_objfile.
2634 (struct dwarf2_per_objfile) <int_type>: Move here.
2635 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2636 addr_sized_int_type>: Move here.
2637 (read_func_scope): Update.
2638 (read_array_type): Update.
2639 (read_tag_string_type): Update.
2640 (attr_to_dynamic_prop): Update.
2641 (dwarf2_per_cu_data::int_type): Rename to...
2642 (dwarf2_per_objfile::int_type): ... this.
2643 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2644 (dwarf2_cu::addr_sized_int_type): ... this.
2645 (read_subrange_type): Update.
2646 (dwarf2_per_cu_data::addr_type): Rename to...
2647 (dwarf2_cu::addr_type): ... this.
2648 (set_die_type): Update.
2649
64874a40
SM
26502020-05-27 Simon Marchi <simon.marchi@efficios.com>
2651
2652 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2653 data through per_cu->cu.
2654
4ab09049
SM
26552020-05-27 Simon Marchi <simon.marchi@efficios.com>
2656
2657 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2658 dwarf2_per_cu_data parameter fo dwarf2_cu.
2659 (lookup_dwo_type_unit): Likewise.
2660 (read_cutu_die_from_dwo): Likewise.
2661 (lookup_dwo_unit): Likewise.
2662 (open_and_init_dwo_file): Likewise.
2663 (lookup_dwo_cutu): Likewise.
2664 (lookup_dwo_comp_unit): Likewise.
2665 (lookup_dwo_type_unit): Likewise.
2666 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2667 (cutu_reader::cutu_reader): Update.
2668
47b14e86
SM
26692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2670
2671 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2672 parameter.
2673 (process_full_type_unit): Likewise.
2674 (process_queue): Update.
2675
43182c09
SM
26762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * dwarf2/read.c (recursively_compute_inclusions): Add
2679 dwarf2_per_objfile parameter.
2680 (compute_compunit_symtab_includes): Likewise.
2681 (process_cu_includes): Update.
2682
7aa104c4
SM
26832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2684
2685 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2686 parameter.
2687 (create_type_unit_group): Update.
2688 (process_psymtab_comp_unit_reader): Update.
2689 (build_type_psymtabs_reader): Update.
2690
e3beb21d
SM
26912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2694 object through m_this_cu->cu.
2695
d460f660
SM
26962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2697
2698 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2699 the info parameter.
2700 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2701
ab432490
SM
27022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2705 per_objfile parameter.
2706 (load_full_type_unit): Add per_objfile parameter.
2707 (read_signatured_type): Likewise.
2708 (load_full_comp_unit): Likewise.
2709 (load_cu): Likewise.
2710 (dw2_do_instantiate_symtab): Likewise.
2711 (dw2_get_file_names): Likewise.
2712 (dw2_map_symtabs_matching_filename): Update.
2713 (dw_expand_symtabs_matching_file_matcher): Update.
2714 (dw2_map_symbol_filenames): Update.
2715 (process_psymtab_comp_unit): Add per_objfile parameter.
2716 (build_type_psymtabs_1): Update.
2717 (process_skeletonless_type_unit): Update.
2718 (dwarf2_build_psymtabs_hard): Update.
2719 (load_partial_comp_unit): Add per_objfile parameter.
2720 (scan_partial_symbols): Update.
2721 (load_full_comp_unit): Add per_objfile parameter.
2722 (process_imported_unit_die): Update.
2723 (create_cus_hash_table): Update.
2724 (find_partial_die): Update.
2725 (dwarf2_read_addr_index): Update.
2726 (follow_die_offset): Update.
2727 (dwarf2_fetch_die_loc_sect_off): Update.
2728 (dwarf2_fetch_constant_bytes): Update.
2729 (dwarf2_fetch_die_type_sect_off): Update.
2730 (follow_die_sig_1): Update.
2731 (load_full_type_unit): Add per_objfile parameter.
2732 (read_signatured_type): Likewise.
2733
313bad1b
SM
27342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2737 of objfile_name.
2738
c3699833
SM
27392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2740
2741 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2742 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2743 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2744 field.
2745 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2746 (create_cus_from_index): Update.
2747 (dwarf2_read_gdb_index): Update.
2748 (create_cus_from_debug_names): Update.
2749 (dwarf2_read_debug_names): Update.
2750 (get_abbrev_section_for_cu): Update.
2751 (create_all_comp_units): Update.
2752 (read_attribute_value): Update.
2753 (get_debug_line_section): Update.
2754 * dwarf2/index-cache.c (index_cache::store): Update.
2755 * dwarf2/index-write.c (save_gdb_index_command): Update.
2756 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2757
1859c670
SM
27582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2761 member.
2762 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2763 dwarf2_per_cu_data::per_bfd.
2764 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2765 (create_type_unit_group): Likewise.
2766 (queue_comp_unit): Remove reference to
2767 per_cu->dwarf2_per_objfile.
2768 (maybe_queue_comp_unit): Likewise.
2769 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2770 (create_cus_hash_table): Assign new field.
2771
5e22e966
SM
27722020-05-27 Simon Marchi <simon.marchi@efficios.com>
2773
2774 * dwarf2/read.c: Replace
2775 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2776 dwarf2_cu->per_objfile throughout.
2777
97a1449a
SM
27782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2781 parameter, don't use per_cu->dwarf2_per_objfile.
2782 (dw2_instantiate_symtab): Likewise.
2783 (dw2_find_last_source_symtab): Update.
2784 (dw2_map_expand_apply): Update.
2785 (dw2_lookup_symbol): Update.
2786 (dw2_expand_symtabs_for_function): Update.
2787 (dw2_expand_all_symtabs): Update.
2788 (dw2_expand_symtabs_with_fullname): Update.
2789 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2790 don't use per_cu->dwarf2_per_objfile.
2791 (dw2_expand_marked_cus): Update.
2792 (dw2_find_pc_sect_compunit_symtab): Update.
2793 (dw2_debug_names_lookup_symbol): Update.
2794 (dw2_debug_names_expand_symtabs_for_function): Update.
2795 (dw2_debug_names_map_matching_symbols): Update.
2796 (dwarf2_psymtab::expand_psymtab): Update.
2797
9e021579
SM
27982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2801 <per_objfile>: New member.
2802 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2803 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2804 call to dwarf2_cu.
2805 (cutu_reader::cutu_reader): Update.
2806 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2807
ae090bdb
SM
28082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2809
2810 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2811 struct dwarf2_per_objfile.
2812 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2813 dwarf2_per_bfd.
2814 * dwarf2/read.c (set_die_type): Update.
2815 (get_die_type_at_offset): Update.
2816
af758d11
SM
28172020-05-27 Tom Tromey <tom@tromey.com>
2818 Simon Marchi <simon.marchi@efficios.com>
2819
2820 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2821 method.
2822 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2823 get_symtab, set_symtab>: New methods.
2824 <m_symtabs>: New field.
2825 (struct dwarf2_psymtab): Derive from partial_symtab.
2826 <readin_p, get_compunit_symtab>: Declare methods.
2827 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2828 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2829 New methods.
2830 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2831 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2832 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2833 (dw2_symtab_iter_next, dw2_print_stats)
2834 (dw2_expand_symtabs_with_fullname)
2835 (dw2_expand_symtabs_matching_one)
2836 (dw_expand_symtabs_matching_file_matcher)
2837 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2838 (dw2_debug_names_iterator::next)
2839 (dw2_debug_names_map_matching_symbols)
2840 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2841 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2842 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2843 New methods.
2844 (get_compunit_symtab, process_full_comp_unit)
2845 (process_full_type_unit): Update.
2846 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2847
5989a64e
SM
28482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2851 then introduce a new dwarf2_per_objfile type.
2852 <read_line_string>: Move to the new dwarf2_per_objfile type.
2853 <objfile>: Likewise.
2854 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2855 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2856 dwarf2_per_objfile->per_bfd.
2857 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2858 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2859 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2860 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2861 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2862 (dwarf2_per_objfile::locate_sections): Rename to...
2863 (dwarf2_per_bfd::locate_sections): ... this.
2864 (dwarf2_per_objfile::get_cutu): Rename to...
2865 (dwarf2_per_bfd::get_cutu): ... this.
2866 (dwarf2_per_objfile::get_cu): Rename to...
2867 (dwarf2_per_bfd::get_cu): ... this.
2868 (dwarf2_per_objfile::get_tu): Rename to...
2869 (dwarf2_per_bfd::get_tu): ... this.
2870 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2871 (dwarf2_per_bfd::allocate_per_cu): ... this.
2872 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2873 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2874 (get_gdb_index_contents_ftype): Change parameter from
2875 dwarf2_per_objfile to dwarf2_per_bfd.
2876 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2877 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2878
a50264ba
TT
28792020-05-27 Tom Tromey <tom@tromey.com>
2880 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2883 (allocate_piece_closure): Set "per_objfile" member.
2884 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2885 (locexpr_describe_location, loclist_describe_location): Use new
2886 member.
2887 * dwarf2/read.c (read_call_site_scope)
2888 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2889 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2890 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2891 handle_data_member_location): Set per_objfile member.
2892 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2893 member.
2894 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2895
d3473f0c
TT
28962020-05-27 Tom Tromey <tom@tromey.com>
2897
2898 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2899 allocate_signatured_type>: Declare new methods.
2900 <m_num_psymtabs>: New member.
2901 (struct dwarf2_per_cu_data) <index>: New member.
2902 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2903 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2904 (create_cu_from_index_list): Use allocate_per_cu.
2905 (create_signatured_type_table_from_index)
2906 (create_signatured_type_table_from_debug_names)
2907 (create_debug_type_hash_table, add_type_unit)
2908 (read_comp_units_from_section): Use allocate_signatured_type.
2909
5717c425
TT
29102020-05-27 Tom Tromey <tom@tromey.com>
2911
2912 * psymtab.c (partial_map_expand_apply)
2913 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2914 (psym_lookup_global_symbol_language)
2915 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2916 (psym_print_stats, psym_expand_symtabs_for_function)
2917 (psym_map_symbol_filenames, psym_map_matching_symbols)
2918 (psym_expand_symtabs_matching)
2919 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2920 (maintenance_check_psymtabs): Update.
2921 * psympriv.h (struct partial_symtab) <readin_p,
2922 get_compunit_symtab>: Add objfile parameter.
2923 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2924 Likewise.
2925 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2926 get_compunit_symtab>: Likewise.
2927 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2928
45940949
TT
29292020-05-27 Tom Tromey <tom@tromey.com>
2930
2931 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2932 member.
2933 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2934 (create_cu_from_index_list)
2935 (create_signatured_type_table_from_index)
2936 (create_signatured_type_table_from_debug_names)
2937 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2938 (dwarf2_create_include_psymtab)
2939 (create_debug_type_hash_table, add_type_unit)
2940 (create_type_unit_group, read_comp_units_from_section)
2941 (dwarf2_compute_name, create_cus_hash_table)
2942 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2943 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2944 obstack.
2945 (dw2_get_real_path): Likewise. Change argument to
2946 dwarf2_per_objfile.
2947
f8c6d152
LM
29482020-05-27 Luis Machado <luis.machado@linaro.org>
2949
2950 PR tdep/26000
2951 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2952 for ldrd (immediate).
2953
e98d2e6d
PW
29542020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2955
2956 * command.h: Add comment giving the name of class_tui.
2957 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2958 create the fake command for the help for class_tui.
2959
53a47a3e
TT
29602020-05-26 Tom Tromey <tromey@adacore.com>
2961
2962 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2963 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2964 (val_atr): New function.
2965 (value_val_atr): Use it.
2966 * ada-valprint.c (print_optional_low_bound): Change low bound
2967 handling for enums.
2968 (val_print_packed_array_elements): Don't call discrete_position.
2969 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2970 discrete_position for enum types.
2971 * language.c (default_print_array_index): Change type.
2972 * language.h (struct language_defn) <la_print_array_index>: Add
2973 index_type parameter, change type of index_value.
2974 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
2975 (default_print_array_index): Update.
2976 * valprint.c (maybe_print_array_index): Don't call
2977 value_from_longest. Update.
2978 (value_print_array_elements): Don't call discrete_position.
2979
0bc2354b
TT
29802020-05-26 Tom Tromey <tromey@adacore.com>
2981
2982 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
2983 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
2984
1218a4bf
CDA
29852020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
2986
2987 PR gdb/13519
2988 * avr-tdep.c (avr_integer_to_address): Return data or code
2989 address accordingly to the second 'type' argument of the
2990 function.
2991
92651b1d
MW
29922020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2993
2994 * infcmd.c, inferior.h: (construct_inferior_arguments):
2995 Moved function from here to gdbsupport/common-inferior.{h,cc}
2996
0a4f5f8c
TT
29972020-05-23 Tom Tromey <tom@tromey.com>
2998
2999 Revert commit eca1f90c:
3000 * NEWS: Remove entry for completion styling.
3001 * completer.c (_rl_completion_prefix_display_length): Move
3002 declaration later.
3003 (gdb_fnprint): Revert.
3004 (gdb_display_match_list_1): Likewise.
3005 * cli/cli-style.c (completion_prefix_style)
3006 (completion_difference_style, completion_suffix_style): Remove.
3007 (_initialize_cli_style): Revert.
3008 * cli/cli-style.h (completion_prefix_style)
3009 (completion_difference_style, completion_suffix_style): Don't
3010 declare.
3011
e08bd6c5
PA
30122020-05-24 Pedro Alves <palves@redhat.com>
3013
3014 * symtab.c (completion_list_add_name): Return boolean indication
3015 of whether the symbol matched.
3016 (completion_list_add_symbol): Don't try to remove C++ aliases if
3017 the symbol didn't match in the first place.
3018 * symtab.h (completion_list_add_name): Return bool.
3019
ceacbf6e
SM
30202020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3021
3022 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3023 type::field.
3024
26f16254
JB
30252020-05-23 Joel Brobecker <brobecker@adacore.com>
3026
3027 GDB 9.2 released.
3028
eca1f90c
TT
30292020-05-23 Tom Tromey <tom@tromey.com>
3030
3031 * NEWS: Add entry for completion styling.
3032 * completer.c (_rl_completion_prefix_display_length): Move
3033 declaration earlier.
3034 (gdb_fnprint): Use completion_style.
3035 (gdb_display_match_list_1): Likewise.
3036 * cli/cli-style.c (completion_prefix_style)
3037 (completion_difference_style, completion_suffix_style): New
3038 globals.
3039 (_initialize_cli_style): Register new globals.
3040 * cli/cli-style.h (completion_prefix_style)
3041 (completion_difference_style, completion_suffix_style): Declare.
3042
51e2cfa2
PA
30432020-05-23 Pedro Alves <palves@redhat.com>
3044
3045 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3046 (parse_escape): Use ISDIGIT instead of isdigit.
3047 (puts_debug): Use gdb_isprint instead of isprint.
3048 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3049 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3050 ISSPACE instead of isspace.
3051 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3052 instead of isspace.
3053 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3054 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3055 instead of isxdigit and ISDIGIT instead of isdigit.
3056
80fc5e77
SM
30572020-05-22 Simon Marchi <simon.marchi@efficios.com>
3058
3059 * gdbtypes.h (struct type) <field>: New method.
3060 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3061 or type::field.
3062
3cabb6b0
SM
30632020-05-22 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3066 (TYPE_FIELDS): Use type::fields. Change all call sites that
3067 modify the propery to use type::set_fields instead.
3068
1f704f76
SM
30692020-05-22 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3072 type::num_fields instead.
3073
5e33d5f4
SM
30742020-05-22 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3077 methods.
3078 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3079 that modify the number of fields to use type::set_num_fields
3080 instead.
3081
9392ebb3
TT
30822020-05-22 Tom Tromey <tromey@adacore.com>
3083
3084 * compile/compile-object-load.h (munmap_list_free): Don't
3085 declare.
3086
7c13f4e8
AB
30872020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * annotate.c (annotate_source_line): Update return type, add call
3090 to update current symtab and line.
3091 * annotate.h (annotate_source_line): Update return type, and
3092 extend header comment.
3093 * source.c (info_line_command): Check annotation_level before
3094 calling annotate_source_line.
3095 * stack.c (print_frame_info): If calling annotate_source_line
3096 returns true, then don't print any other source line information.
3097
aa370940
SM
30982020-05-21 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3101
84d53fa9
SM
31022020-05-21 Simon Marchi <simon.marchi@efficios.com>
3103
3104 * coffread.c (patch_type): Remove NULL check before xfree.
3105 * corefile.c (set_gnutarget): Likewise.
3106 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3107 * exec.c (build_section_table): Likewise.
3108 * remote.c (remote_target::pass_signals): Likewise.
3109 * utils.c (n_spaces): Likewise.
3110 * cli/cli-script.c (document_command): Likewise.
3111 * i386-windows-tdep.c (core_process_module_section): Likewise.
3112 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3113
9d428aae
SM
31142020-05-20 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * symfile.c (reread_symbols): Clear objfile's section_offsets
3117 vector and section indices, re-compute them by calling
3118 sym_offsets.
3119
250106a7
TT
31202020-05-20 Tom Tromey <tromey@adacore.com>
3121
3122 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3123 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3124
9a0bacfb
TV
31252020-05-20 Tom de Vries <tdevries@suse.de>
3126
3127 PR symtab/25833
3128 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3129
7b958a48
AM
31302020-05-20 Alan Modra <amodra@gmail.com>
3131
3132 PR 25993
3133 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3134 bfd_set_filename.
3135 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3136 passed to bfd_set_filename.
3137 * symfile-mem.c (add_vsyscall_page): Likewise for string
3138 passed to symbol_file_add_from_memory.
3139 (symbol_file_add_from_memory): Make name param a const char* and
3140 don't strdup.
3141
c7e97679
AM
31422020-05-20 Alan Modra <amodra@gmail.com>
3143
3144 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3145 rather than accessing bfd->filename directly.
3146 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3147 and use bfd_section_name.
3148 * dwarf2/frame.c (decode_frame_entry): Likewise.
3149 * exec.c (exec_set_section_address): Likewise.
3150 * solib-aix.c (solib_aix_bfd_open): Likewise.
3151 * stap-probe.c (get_stap_base_address): Likewise.
3152 * symfile.c (reread_symbols): Likewise.
3153
563c591b
TT
31542020-05-19 Tom Tromey <tromey@adacore.com>
3155
3156 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3157
f408d82c
SM
31582020-05-19 Simon Marchi <simon.marchi@efficios.com>
3159
3160 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3161
98c59b52
PA
31622020-05-19 Pedro Alves <palves@redhat.com>
3163
3164 * NEWS (set exec-file-mismatch): Adjust entry.
3165 * exec.c: Include "build-id.h".
3166 (validate_exec_file): Try to match build IDs instead of filenames.
3167 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3168 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3169 and pass down 'warn_if_slow'.
3170 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3171 gdb_bfd_open_closure to pass it down.
3172 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3173
4111f652
PA
31742020-05-19 Pedro Alves <palves@redhat.com>
3175
3176 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3177 * target.c (target_fileio_open_1): Rename to target_fileio_open
3178 and make extern. Use bool.
3179 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3180 (target_fileio_read_alloc_1): Adjust.
3181 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3182 (target_fileio_open_warn_if_slow): Delete declaration.
3183
ad80db5b
PA
31842020-05-19 Pedro Alves <palves@redhat.com>
3185
3186 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3187 Adjust all callers.
3188
1d6ce4d3
YS
31892020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3190
3191 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3192 whether disp is negative.
3193
9005fbbb
SM
31942020-05-19 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * symfile.h (struct symfile_segment_data)
3197 <~symfile_segment_data>: Remove.
3198 <segment_info>: Change to std::vector.
3199 * symfile.c (default_symfile_segments): Update.
3200 * elfread.c (elf_symfile_segments): Update.
3201
68b888ff
SM
32022020-05-19 Simon Marchi <simon.marchi@efficios.com>
3203
3204 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3205 <segments>: New.
3206 <segment_bases, segment_sizes>: Remove.
3207 * symfile.c (default_symfile_segments): Update.
3208 * elfread.c (elf_symfile_segments): Update.
3209 * remote.c (remote_target::get_offsets): Update.
3210 * solib-target.c (solib_target_relocate_section_addresses):
3211 Update.
3212
62982abd
SM
32132020-05-19 Simon Marchi <simon.marchi@efficios.com>
3214
3215 * symfile.h (struct symfile_segment_data): Initialize fields.
3216 <~symfile_segment_data>: Add.
3217 (symfile_segment_data_up): New.
3218 (struct sym_fns) <sym_segments>: Return a
3219 symfile_segment_data_up.
3220 (default_symfile_segments): Return a symfile_segment_data_up.
3221 (free_symfile_segment_data): Remove.
3222 (get_symfile_segment_data): Return a symfile_segment_data_up.
3223 * symfile.c (default_symfile_segments): Likewise.
3224 (get_symfile_segment_data): Likewise.
3225 (free_symfile_segment_data): Remove.
3226 (symfile_find_segment_sections): Update.
3227 * elfread.c (elf_symfile_segments): Return a
3228 symfile_segment_data_up.
3229 * remote.c (remote_target::get_offsets): Update.
3230 * solib-target.c (solib_target_relocate_section_addresses):
3231 Update.
3232 * symfile-debug.c (debug_sym_segments): Return a
3233 symfile_segment_data_up.
3234
7f204339
RO
32352020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3236
e52a0f1b
RO
3237 PR build/25981
3238 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3239 Hardcode register numbers.
3240
7f204339
RO
3241 PR build/25981
3242 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3243 procfs_find_LDT_entry): Remove.
3244 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3245 procfs_find_LDT_entry): Remove.
3246 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3247 Remove.
3248
7f32a4d5
PA
32492020-05-17 Pedro Alves <palves@redhat.com>
3250 Andrew Burgess <andrew.burgess@embecosm.com>
3251 Keno Fischer <keno@juliacomputing.com>
3252
3253 PR gdb/25741
3254 * breakpoint.c (build_target_condition_list): Update comments.
3255 (build_target_command_list): Update comments and skip matching
3256 locations.
3257 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3258 a separate function. Simplify "set breakpoint auto-hw off"
3259 handling.
3260 (insert_breakpoints): Update comment.
3261 (tracepoint_locations_match): New parameter. For breakpoints,
3262 compare location types too, if the caller wants to.
3263 (handle_automatic_hardware_breakpoints): New functions.
3264 (bp_location_is_less_than): Also sort by location type and
3265 hardware breakpoint length.
3266 (update_global_location_list): Handle "set breakpoint auto-hw on"
3267 here.
3268 (update_breakpoint_locations): Ask breakpoint_locations_match to
3269 ignore location types.
3270
7d93a1e0
SM
32712020-05-16 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3274 type::name instead.
3275
d0e39ea2
SM
32762020-05-16 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * gdbtypes.h (struct type) <name, set_name>: New methods.
3279 (TYPE_CODE): Use type::name. Change all call sites used to set
3280 the name to use type::set_name instead.
3281
2dab0c7b
TT
32822020-05-16 Tom Tromey <tom@tromey.com>
3283
3284 * top.c (quit_force): Update.
3285 * infrun.c (handle_no_resumed): Update.
3286 * top.h (all_uis): New function.
3287 (ALL_UIS): Remove.
3288
59f7bd8d
SM
32892020-05-16 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3292
9bf058f0
PA
32932020-05-16 Pedro Alves <palves@redhat.com>
3294
3295 * ia64-linux-nat.c
3296 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3297 Declare method.
3298 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3299
8f86ae1a
SM
33002020-05-15 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3303 (sparc64_adi_info): Likewise.
3304
d6bc0792
TT
33052020-05-15 Tom Tromey <tom@tromey.com>
3306
3307 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3308 block_objfile.
3309 (lookup_objfile_from_block): Remove.
3310 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3311 (lookup_global_symbol): Use block_objfile.
3312 * symtab.h (lookup_objfile_from_block): Don't declare.
3313 * printcmd.c (clear_dangling_display_expressions): Use
3314 block_objfile.
3315 * parse.c (operator_check_standard): Use block_objfile.
3316
8c14c3a3
TT
33172020-05-15 Tom Tromey <tom@tromey.com>
3318
3319 * language.c (language_alloc_type_symbol): Set
3320 SYMBOL_SECTION.
3321 * symtab.c (initialize_objfile_symbol): Remove.
3322 (allocate_symbol): Remove.
3323 (allocate_template_symbol): Remove.
3324 * dwarf2/read.c (fixup_go_packaging): Use "new".
3325 (new_symbol): Use "new".
3326 (read_variable): Don't call initialize_objfile_symbol. Use
3327 "new".
3328 (read_func_scope): Use "new".
3329 * xcoffread.c (process_xcoff_symbol): Don't call
3330 initialize_objfile_symbol.
3331 (SYMBOL_DUP): Remove.
3332 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3333 "new".
3334 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3335 (allocate_template_symbol): Don't declare.
3336 (struct symbol): Add copy constructor. Change defaults.
3337 * jit.c (finalize_symtab): Use "new".
3338 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3339 Use "new".
3340 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3341 (common_block_end): Use "new".
3342 * mdebugread.c (parse_symbol): Use "new".
3343 (new_symbol): Likewise.
3344
5b4a1a8d
PW
33452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3346
3347 * NEWS: Mention changes to help and apropos.
3348
57b4f16e
PW
33492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3350
3351 * command.h (enum command_class): Improve comments, document
3352 that class_alias is for user-defined aliases, give the class
3353 name for each class, remove unused class_xdb.
3354 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3355 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3356 by a precise class.
3357 * infcmd.c (_initialize_infcmd): Likewise.
3358 * reverse.c (_initialize_reverse): Likewise.
3359 * stack.c (_initialize_stack): Likewise.
3360 * symfile.c (_initialize_symfile): Likewise.
3361 * tracepoint.c (_initialize_tracepoint): Likewise.
3362
7c05caf7
PW
33632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3364
3365 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3366 when their aliased command is traversed.
3367 (help_cmd): Add fput_command_names_styled call to
3368 output command name and aliases when command has an alias.
3369
3b3aaacb
PW
33702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3371
3372 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3373 * cli/cli-decode.c (help_cmd_list): Declare as static,
3374 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3375 a command together with the command.
3376 (fput_command_name_styled, fput_command_names_styled): New functions.
3377 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3378 fput_command_name_styled.
3379 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3380 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3381
7aa1b46f
PW
33822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3383
3384 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3385 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3386 * command.h (cmd_show_list): Likewise.
3387 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3388 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3389
89bcba74
PW
33902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3391
3392 * unittests/command-def-selftests.c (traverse_command_structure):
3393 Verify all commands of a list have the same prefix command and
3394 that only the top cmdlist commands have a null prefix.
3395
3f4d92eb
PW
33962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3397
3398 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3399 as prefix, not one of its aliases.
3400 (set_cmd_prefix): Remove.
3401 (do_add_cmd): Centralize the setting of the prefix of a command, when
3402 command is defined after its full chain of prefix commands.
3403 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3404 (add_setshow_cmd_full): Likewise.
3405 (update_prefix_field_of_prefixed_commands): New function.
3406 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3407 update_prefix_field_of_prefixed_commands.
3408 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3409 addresses of remote_set_cmdlist and remote_show_cmdlist given
3410 as argument, not the address of an argument.
3411 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3412 * gdb/remote.c (_initialize_remote): Likewise.
3413
0605465f
PW
34142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3415
3416 * cli/cli-cmds.c (alias_command): Check for an existing alias
3417 using lookup_cmd_composition, as valid_command_p is too strict
3418 and forbids aliases that are the prefix of an existing alias
3419 or command.
3420 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3421 command is properly recognised as a valid command.
3422
58e6ac70
PW
34232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3424
3425 * unittests/help-doc-selftests.c: Rename to
3426 unittests/command-def-selftests.c
3427 * unittests/command-def-selftests.c (help_doc_tests): Update some
3428 comments.
3429 (command_structure_tests, traverse_command_structure): New namespace
3430 and function.
3431 (command_structure_invariants_tests): New function.
3432 (_initialize_command_def_selftests) Renamed from
3433 _initialize_help_doc_selftests, register command_structure_invariants
3434 selftest.
3435
a7b9ceb8
PW
34362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3437
3438 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3439 an alias of 'show'.
3440
b2188a06
JB
34412020-05-15 Joel Brobecker <brobecker@adacore.com>
3442
3443 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3444 ada_is_fixed_point_type. Update all callers.
3445 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3446 all callers.
3447 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3448 Update all callers.
3449 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3450 print_fixed_point_type. Update all callers.
3451 * ada-valprint.c (ada_value_print_num): Replace call to
3452 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3453
a51951c2
KB
34542020-05-14 Kevin Buettner <kevinb@redhat.com>
3455
3456 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3457 processors.
3458 (cpu_supports_bts): Add CV_AMD case.
3459
29d6859f
LM
34602020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3461 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * infrun.c (stop_all_threads): Collect multiple wait events at
3464 each pass.
3465
78134374
SM
34662020-05-14 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3469 type::code instead.
3470
67607e24
SM
34712020-05-14 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * gdbtypes.h (struct type) <code, set_code>: New methods.
3474 (TYPE_CODE): Use type::code. Change all call sites used to set
3475 the code to use type::set_code instead.
3476
a05575d3
TBA
34772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478 Tom de Vries <tdevries@suse.de>
3479 Pedro Alves <palves@redhat.com>
3480
3481 PR threads/25478
3482 * infrun.c (stop_all_threads): Do NOT ignore
3483 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3484 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3485 received.
3486 (handle_no_resumed): Remove code handling a live inferior with no
3487 threads.
3488 * remote.c (has_single_non_exited_thread): New.
3489 (remote_target::update_thread_list): Do not delete a thread if is
3490 the last thread of the process.
3491 * thread.c (thread_select): Call delete_exited_threads instead of
3492 prune_threads.
3493
6ad82919
TBA
34942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3495
3496 * infrun.c (stop_all_threads): Enable/disable thread events of all
3497 targets. Move a debug message denoting the end of the function
3498 into the SCOPED_EXIT block.
3499
d890404b
TBA
35002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3501
3502 * process-stratum-target.h: Include <set>.
3503 (all_non_exited_process_targets, switch_to_target_no_thread): New
3504 function declarations.
3505 * process-stratum-target.c (all_non_exited_process_targets)
3506 (switch_to_target_no_thread): New function implementations.
3507
293b3ebc
TBA
35082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3509
3510 * infrun.c (handle_inferior_event): Extract out a piece of code
3511 into...
3512 (mark_non_executing_threads): ...this new function.
3513
7ca9b62a
TBA
35142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3515
3516 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3517 use.
3518
fc75c28b
TBA
35192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3520
3521 * regcache.c (regcache_read_pc_protected): New function
3522 implementation that returns 0 if the PC cannot read via
3523 'regcache_read_pc'.
3524 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3525 instead of 'regcache_read_pc'.
3526 (keep_going_pass_signal): Ditto.
3527
a89febbd
TT
35282020-05-13 Tom Tromey <tromey@adacore.com>
3529
3530 * ada-lang.c (align_value): Remove.
3531 (ada_template_to_fixed_record_type_1): Use align_up.
3532
f7e23710
TBA
35332020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3534
3535 * async-event.c: Update the copyright year.
3536 * async-event.h: Update the copyright year.
3537
02ff80c2
SM
35382020-05-12 Simon Marchi <simon.marchi@efficios.com>
3539
3540 * objfiles.h (is_addr_in_objfile,
3541 shared_objfile_contains_address_p): Return bool.
3542 * objfile.c (is_addr_in_objfile,
3543 shared_objfile_contains_address_p): Return bool.
3544
4fd6c7e8
TT
35452020-05-11 Tom Tromey <tromey@adacore.com>
3546
3547 * cli/cli-cmds.c (info_command): Restore.
3548 (_initialize_cli_cmds): Use add_prefix_command for "info".
3549 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3550
5eb68a39
TT
35512020-05-11 Tom Tromey <tromey@adacore.com>
3552
3553 * ada-lang.c (ada_value_primitive_field): Now public.
3554 * ada-lang.h (ada_value_primitive_field): Declare.
3555 * ada-valprint.c (print_field_values): Use
3556 ada_value_primitive_field for wrapper fields.
3557
7666722f
TV
35582020-05-11 Tom de Vries <tdevries@suse.de>
3559
3560 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3561 MODULE_DOMAIN.
3562
3ee6bb11
TV
35632020-05-11 Tom de Vries <tdevries@suse.de>
3564
3565 PR symtab/25941
3566 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3567 with length 0, if not gdb-produced.
3568 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3569
43434996
TV
35702020-05-09 Tom de Vries <tdevries@suse.de>
3571
3572 PR gdb/25955
3573 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3574 calculation.
3575
2f78cffc
TT
35762020-05-09 Tom Tromey <tom@tromey.com>
3577
3578 * top.c (server_command): Now bool.
3579 * top.h (server_command): Now bool.
3580
4f7bc5ed
TT
35812020-05-08 Tom Tromey <tromey@adacore.com>
3582
3583 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3584 already being processed.
3585
8be4b118
TT
35862020-05-08 Tom Tromey <tom@tromey.com>
3587
3588 * printcmd.c (struct display) <next>: Remove.
3589 <display>: New constructor.
3590 <exp_string>: Now a std::string.
3591 <enabled_p>: Now a bool.
3592 (display_number): Move definition earlier.
3593 (displays): Rename from display_chain. Now a std::vector.
3594 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3595 (display_command): Update.
3596 (do_one_display, disable_display)
3597 (enable_disable_display_command, do_enable_disable_display):
3598 Update.
3599 (free_display): Remove.
3600 (clear_displays): Rewrite.
3601 (delete_display): Update.
3602 (map_display_numbers): Use function_view. Remove "data"
3603 parameter. Update.
3604 (do_delete_display): Remove.
3605 (undisplay_command): Update.
3606 (do_one_display, do_displays, disable_display)
3607 (info_display_command): Update.
3608 (do_enable_disable_display): Remove.
3609 (enable_disable_display_command)
3610 (clear_dangling_display_expressions): Update.
3611
94c93c35
TT
36122020-05-08 Tom Tromey <tom@tromey.com>
3613
3614 * symtab.c (set_symbol_cache_size)
3615 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3616 (maintenance_print_symbol_cache_statistics): Update.
3617 * symmisc.c (print_symbol_bcache_statistics)
3618 (print_objfile_statistics, maintenance_print_objfiles)
3619 (maintenance_info_symtabs, maintenance_check_symtabs)
3620 (maintenance_expand_symtabs, maintenance_info_line_tables):
3621 Update.
3622 * symfile-debug.c (set_debug_symfile): Update.
3623 * source.c (forget_cached_source_info): Update.
3624 * python/python.c (gdbpy_progspaces): Update.
3625 * psymtab.c (maintenance_info_psymtabs): Update.
3626 * probe.c (parse_probes): Update.
3627 * linespec.c (iterate_over_all_matching_symtabs)
3628 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3629 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3630 * exec.c (exec_target::close): Update.
3631 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3632 * breakpoint.c (print_one_breakpoint_location)
3633 (create_longjmp_master_breakpoint)
3634 (create_std_terminate_master_breakpoint): Update.
3635 * progspace.c (program_spaces): Now a std::vector.
3636 (maybe_new_address_space): Update.
3637 (add_program_space): Remove.
3638 (program_space::program_space): Update.
3639 (remove_program_space): Update.
3640 (number_of_program_spaces): Remove.
3641 (print_program_space, update_address_spaces): Update.
3642 * progspace.h (program_spaces): Change type.
3643 (ALL_PSPACES): Remove.
3644 (number_of_program_spaces): Don't declare.
3645 (struct program_space) <next>: Remove.
3646
a1fd1ac9
TT
36472020-05-08 Tom Tromey <tom@tromey.com>
3648
3649 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3650 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3651 (enable_break): Update.
3652 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3653 (frv_fdpic_find_canonical_descriptor): Update.
3654 (frv_fetch_objfile_link_map): Update.
3655 * progspace.c (program_space::free_all_objfiles): Update.
3656 (program_space::solibs): New method.
3657 * progspace.h (struct program_space) <solibs>: New method.
3658 * solist.h (master_so_list): Don't declare.
3659 (ALL_SO_LIBS): Remove.
3660 * solib.h (so_list_head): Remove.
3661 (update_solib_list): Update comment.
3662 * solib.c (master_so_list): Remove.
3663 (solib_used, update_solib_list, solib_add)
3664 (info_sharedlibrary_command, clear_solib)
3665 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3666
38eae084
TT
36672020-05-08 Tom Tromey <tom@tromey.com>
3668
3669 * extension.c (extension_languages): Now a std::array.
3670 (ALL_EXTENSION_LANGUAGES): Remove.
3671 (get_ext_lang_defn, get_ext_lang_of_file)
3672 (eval_ext_lang_from_control_command): Update.
3673 (finish_ext_lang_initialization)
3674 (auto_load_ext_lang_scripts_for_objfile)
3675 (ext_lang_type_printers::ext_lang_type_printers)
3676 (apply_ext_lang_type_printers)
3677 (ext_lang_type_printers::~ext_lang_type_printers)
3678 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3679 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3680 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3681 (get_matching_xmethod_workers, ext_lang_colorize)
3682 (ext_lang_before_prompt): Update.
3683 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3684
596dc4ad
TT
36852020-05-08 Tom Tromey <tom@tromey.com>
3686
3687 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3688 overload.
3689 <swap_string, m_string>: Remove.
3690 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3691 Update.
3692 * stabsread.c (define_symbol, read_type): Update.
3693 * linespec.c (find_linespec_symbols): Update.
3694 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3695 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3696 * dbxread.c (read_dbx_symtab): Update.
3697 * cp-support.h (cp_canonicalize_string_full)
3698 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3699 Return unique_xmalloc_ptr.
3700 * cp-support.c (inspect_type): Update.
3701 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3702 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3703 Likewise.
3704 * c-typeprint.c (print_name_maybe_canonical): Update.
3705 * break-catch-throw.c (check_status_exception_catchpoint):
3706 Update.
3707
bf4cb9be
TV
37082020-05-08 Tom de Vries <tdevries@suse.de>
3709
3710 * infrun.c (follow_fork): Copy current_line and current_symtab to
3711 child thread.
3712
a1b68f28
SM
37132020-05-07 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * async-event.c (struct async_signal_handler, struct
3716 async_event_handler): Reformat, remove typedef.
3717
98d48915
SM
37182020-05-07 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3721 access thistype->main_type->dyn_prop_list directly.
3722
7aa91313
SM
37232020-05-07 Simon Marchi <simon.marchi@efficios.com>
3724
3725 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3726 (remove_dyn_prop): Remove. Update all users to use
3727 type::remove_dyn_prop.
3728 * gdbtypes.c (remove_dyn_prop): Rename to...
3729 (type::remove_dyn_prop): ... this.
3730
5c54719c
SM
37312020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3732
3733 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3734 (add_dyn_prop): Remove. Update all users to use
3735 type::add_dyn_prop.
3736 * gdbtypes.c (add_dyn_prop): Rename to...
3737 (type::add_dyn_prop): ... this.
3738
24e99c6c
SM
37392020-05-07 Simon Marchi <simon.marchi@efficios.com>
3740
3741 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3742 (get_dyn_prop): Remove. Update all users to use
3743 type::dyn_prop.
3744 * gdbtypes.c (get_dyn_prop): Rename to...
3745 (type::dyn_prop): ... this.
3746
0d4bf016
SM
37472020-05-06 Simon Marchi <simon.marchi@efficios.com>
3748
3749 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3750
ac4a4f1c
SM
37512020-05-06 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3754 instruction, skip it if it's there.
3755
a3bbacc1
SM
37562020-05-05 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3759
c3236f84
SM
37602020-05-04 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3763 * gdbtypes.c (recursive_dump_type): Remove use of
3764 TYPE_INCOMPLETE.
3765
3b6acaee
TT
37662020-05-03 Tom Tromey <tom@tromey.com>
3767
3768 * breakpoint.c (catch_command, tcatch_command): Remove.
3769 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3770 add_show_prefix_cmd.
3771 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3772 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3773 Remove.
3774 (add_internal_problem_command): Use add_basic_prefix_cmd,
3775 add_show_prefix_cmd.
3776 * mips-tdep.c (set_mipsfpu_command): Remove.
3777 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3778 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3779 (_initialize_index_cache): Use add_basic_prefix_cmd.
3780 * memattr.c (dummy_cmd): Remove.
3781 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3782 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3783 (_initialize_tui_win): Use add_basic_prefix_cmd,
3784 add_show_prefix_cmd.
3785 * cli/cli-logging.c (set_logging_command): Remove.
3786 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3787 add_show_prefix_cmd.
3788 (show_logging_command): Remove.
3789 * target.c (target_command): Remove.
3790 (add_target): Use add_basic_prefix_cmd.
3791
a51119cd
HD
37922020-05-02 Hannes Domani <ssbssa@yahoo.de>
3793
3794 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3795
652fc23a 37962020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3797
652fc23a
PW
3798 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3799 info_command.
3800
117539e6
KR
38012020-04-30 Kamil Rytarowski <n54@gmx.com>
3802
3803 * nbsd-nat.c (nbsd_enable_proc_events)
3804 (nbsd_nat_target::post_startup_inferior): Add.
3805 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3806 (nbsd_nat_target::update_thread_list): Rewrite.
3807 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3808 "PTRACE_LWP_CREATE".
3809 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3810
102e38eb 38112020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3812
102e38eb
PW
3813 * stack.c (_initialize_stack): Remove duplicated creation
3814 of "frame" command and "f" alias.
3815
ee9d1e5f
HD
38162020-04-30 Hannes Domani <ssbssa@yahoo.de>
3817
3818 PR gdb/18706
3819 * gdbtypes.c (check_typedef): Calculate size of array of
3820 stubbed type.
3821
627c7fb8
HD
38222020-04-30 Hannes Domani <ssbssa@yahoo.de>
3823
3824 PR gdb/15559
3825 * i386-tdep.c (i386_push_dummy_call): Call
3826 i386_thiscall_push_dummy_call.
3827 (i386_thiscall_push_dummy_call): New function.
3828 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3829 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3830 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3831
ffc2844e
SM
38322020-04-29 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * gdbarch.sh (do_read): Add shellcheck disable directive for
3835 warning SC2162.
3836
1207375d
SM
38372020-04-29 Simon Marchi <simon.marchi@efficios.com>
3838
3839 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3840 "referenced but not assigned" warning.
3841
9fdb2916
SM
38422020-04-29 Simon Marchi <simon.marchi@efficios.com>
3843
3844 * gdbarch.sh: Remove code that sets fallbackdefault.
3845
759cea5e
SM
38462020-04-29 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * gdbarch.sh: Use shell operators && and || instead of
3849 -a and -o.
3850
cb02ab24
SM
38512020-04-29 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * gdbarch.sh: Use $(...) instead of `...`.
3854
a6fc5ffc
SM
38552020-04-29 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * gdbarch.sh: Use double quotes around variables.
3858
8d113d13
SM
38592020-04-29 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * gdbarch.sh: Use %s with printf, instead of variables in the
3862 format string.
3863
ed6acedd
TT
38642020-04-29 Tom Tromey <tromey@adacore.com>
3865
3866 PR ada/25875:
3867 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3868 type fields here.
3869 (read_enumeration_type): Call
3870 update_enumeration_type_from_children later. Update comments.
3871 (process_enumeration_scope): Don't create type fields.
3872
b68b1b58
KR
38732020-04-29 Kamil Rytarowski <n54@gmx.com>
3874
3875 * nbsd-tdep.c: Include "xml-syscall.h".
3876 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3877
f94b2e03
KR
38782020-04-29 Kamil Rytarowski <n54@gmx.com>
3879
3880 * nbsd-nat.c: Include "sys/wait.h".
3881 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3882 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3883 (nbsd_nat_target::remove_exec_catchpoint)
3884 (nbsd_nat_target::set_syscall_catchpoint): Add.
3885 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3886 (nbsd_nat_target::insert_exec_catchpoint)
3887 (nbsd_nat_target::remove_exec_catchpoint)
3888 (nbsd_nat_target::set_syscall_catchpoint): Add.
3889 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3890 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3891 `nbsd_get_syscall_number'.
3892
fc49bc72
TT
38932020-04-29 Tom Tromey <tom@tromey.com>
3894
3895 * stack.c (print_block_frame_labels): Remove.
3896
d642b692
HD
38972020-04-29 Hannes Domani <ssbssa@yahoo.de>
3898
3899 PR gdb/17320
3900 * ada-valprint.c (val_print_packed_array_elements): Move array
3901 end bracket to new line.
3902 (ada_val_print_string): Remove extra spaces before first array
3903 element.
3904 * c-valprint.c (c_value_print_array): Likewise.
3905 * m2-valprint.c (m2_print_array_contents): Likewise.
3906 (m2_value_print_inner): Likewise.
3907 * p-valprint.c (pascal_value_print_inner): Likewise.
3908 * valprint.c (generic_val_print_array): Likewise.
3909 (value_print_array_elements): Move first array element and array
3910 end bracket to new line.
3911
ea90f227
TV
39122020-04-29 Tom de Vries <tdevries@suse.de>
3913
3914 PR symtab/25889
3915 * linespec.c (find_method): Fix ix calculation.
3916
4498ef4f
KR
39172020-04-28 Kamil Rytarowski <n54@gmx.com>
3918
3919 * syscalls/update-netbsd.sh: New file.
3920 * syscalls/netbsd.xml: Regenerate.
3921 * data-directory/Makefile.in: Register `netbsd.xml' in
3922 `SYSCALLS_FILES'.
3923
a55e30b5
SM
39242020-04-28 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * syscalls/update-freebsd.sh: Add double quotes.
3927
2b2fbab8
TT
39282020-04-28 Tom Tromey <tom@tromey.com>
3929
3930 * NEWS: Update.
3931 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3932 (cmdpy_init): Allow class_tui.
3933
a65189c9
TV
39342020-04-28 Mark Williams <mark@myosotissp.com>
3935
3936 PR gdb/24480
3937 * dwarf2read.c: Add missing assingments to list_in_scope when
3938 start_symtab was already called.
3939
1b95cdb7
SM
39402020-04-28 Simon Marchi <simon.marchi@efficios.com>
3941
3942 PR gdb/25881
3943 * dwarf2/read.c (offset_map_type): Use
3944 gdb:hash_enum<sect_offset> as hash function.
3945
15cd93d0
TV
39462020-04-28 Tom de Vries <tdevries@suse.de>
3947
3948 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3949 with DW_AT_signature.
3950
1eb39914
SM
39512020-04-27 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * configure.ac: Remove check for fs_base/gs_base in
3954 user_regs_struct.
3955 * configure: Re-generate.
3956 * config.in: Re-generate.
3957 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3958 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3959 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3960
991a3e2e
LM
39612020-04-27 Luis Machado <luis.machado@linaro.org>
3962
3963 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3964 problematic inline frame unwinding situation.
3965 * frame.c (frame_id_computed_p): New function.
3966 * frame.h (frame_id_computed_p): New prototype.
3967
361ba0e8
TT
39682020-04-26 Tom Tromey <tom@tromey.com>
3969
3970 * command.h (enum command_class) <class_pseudo>: Remove.
3971
bc3609fd
PW
39722020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3973
3974 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
3975 and whitespace.
3976
b9771db7
KR
39772020-04-25 Kamil Rytarowski <n54@gmx.com>
3978
ec16513e
SM
3979 * inf-ptrace.c (inf_ptrace_target::wait): Remove
3980 `PT_GET_PROCESS_STATE' block.
b9771db7 3981
7151c1af
TT
39822020-04-24 Tom Tromey <tom@tromey.com>
3983
3984 * symtab.h (symbol_get_demangled_name): Don't declare.
3985 * symtab.c (symbol_get_demangled_name): Remove.
3986 (general_symbol_info::natural_name)
3987 (general_symbol_info::demangled_name): Update.
3988
906bb4c5
TT
39892020-04-24 Tom Tromey <tom@tromey.com>
3990
3991 PR rust/25025:
3992 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
3993
bcfe6157
TT
39942020-04-24 Tom Tromey <tom@tromey.com>
3995
3996 PR symtab/12707:
3997 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
3998 exists.
3999 (new_symbol): Likewise.
4000 * compile/compile-object-load.c (get_out_value_type): Use
4001 symbol_matches_search_name.
4002
f049a313
TT
40032020-04-24 Tom Tromey <tom@tromey.com>
4004
4005 * dwarf2/read.c (add_partial_symbol): Do not call
4006 compute_and_set_names.
4007
76e288d1
TT
40082020-04-24 Tom Tromey <tom@tromey.com>
4009
4010 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4011 overload.
4012
2467f4f6
TT
40132020-04-24 Tom Tromey <tom@tromey.com>
4014
4015 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4016 (add_psymbol_to_list): New overload. Make old overload call new
4017 one.
4018 * psympriv.h (add_psymbol_to_list): New overload.
4019
e61108c9
TT
40202020-04-24 Tom Tromey <tom@tromey.com>
4021
4022 * dwarf2/read.c (partial_die_info::read) <case
4023 DW_AT_linkage_name>: Use value_as_string.
4024 (dwarf2_string_attr): Use value_as_string.
4025 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4026 method.
4027 * dwarf2/attribute.c (attribute::value_as_string): New method.
4028
8c87a452
TT
40292020-04-24 Tom Tromey <tom@tromey.com>
4030
4031 * symtab.c (general_symbol_info::natural_name)
4032 (general_symbol_info::demangled_name): Check for language_rust.
4033
787de330
TT
40342020-04-24 Tom Tromey <tom@tromey.com>
4035
4036 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4037 (dwarf2_physname): ... from here.
4038 (partial_die_info::read): Add Rust "{" hack.
4039
ff985671
TT
40402020-04-24 Tom Tromey <tom@tromey.com>
4041
4042 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4043 method.
4044 (symbol_set_demangled_name): Don't declare.
4045 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4046 symbol_set_demangled_name.
4047 (general_symbol_info::set_language)
4048 (general_symbol_info::compute_and_set_names): Update.
4049 * minsyms.c (minimal_symbol_reader::install): Update.
4050 * dwarf2/read.c (new_symbol): Update.
4051
1acda803
TT
40522020-04-24 Tom Tromey <tromey@adacore.com>
4053
4054 PR python/23662:
4055 * python/py-type.c (convert_field): Handle
4056 FIELD_LOC_KIND_DWARF_BLOCK.
4057 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4058 (typy_get_dynamic): Nw function.
4059 (type_object_getset): Add "dynamic".
4060 * NEWS: Add entry.
4061
d656f129
TT
40622020-04-24 Tom Tromey <tromey@adacore.com>
4063
4064 * ada-typeprint.c (print_choices, print_variant_part)
4065 (print_record_field_types_dynamic): New functions.
4066 (print_record_field_types): Use print_record_field_types_dynamic.
4067
7d79de9a
TT
40682020-04-24 Tom Tromey <tromey@adacore.com>
4069
4070 * dwarf2/read.c (handle_data_member_location): New overload.
4071 (dwarf2_add_field): Use it.
4072 (decode_locdesc): Add "computed" parameter. Update comment.
4073 * gdbtypes.c (is_dynamic_type_internal): Also look for
4074 FIELD_LOC_KIND_DWARF_BLOCK.
4075 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4076 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4077 virtual base classes.
4078 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4079 FIELD_LOC_KIND_DWARF_BLOCK.
4080
f8e89861
TT
40812020-04-24 Tom Tromey <tromey@adacore.com>
4082
4083 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4084 * gdbtypes.c (is_dynamic_type_internal): Check
4085 TYPE_HAS_DYNAMIC_LENGTH.
4086 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4087 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4088 New macros.
4089 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4090 constant.
4091
9c6a1327
TT
40922020-04-24 Tom Tromey <tromey@adacore.com>
4093
4094 * dwarf2/read.c (struct variant_field): Rewrite.
4095 (struct variant_part_builder): New.
4096 (struct nextfield): Remove "variant" field. Add "offset".
4097 (struct field_info): Add "current_variant_part" and
4098 "variant_parts".
4099 (alloc_discriminant_info): Remove.
4100 (alloc_rust_variant): New function.
4101 (quirk_rust_enum): Update.
4102 (dwarf2_add_field): Set "offset" member. Don't handle
4103 DW_TAG_variant_part.
4104 (offset_map_type): New typedef.
4105 (convert_variant_range, create_one_variant)
4106 (create_one_variant_part, create_variant_parts)
4107 (add_variant_property): New functions.
4108 (dwarf2_attach_fields_to_type): Call add_variant_property.
4109 (read_structure_type): Don't handle DW_TAG_variant_part.
4110 (handle_variant_part, handle_variant): New functions.
4111 (handle_struct_member_die): Use them.
4112 (process_structure_scope): Don't handle variant parts.
4113 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4114 (struct discriminant_info): Remove.
4115 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4116 (struct main_type) <flag_discriminated_union>: Remove.
4117 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4118 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4119 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4120 Update.
4121 * valops.c (value_union_variant): Remove.
4122 * value.h (value_union_variant): Don't declare.
4123
b249d2c2
TT
41242020-04-24 Tom Tromey <tromey@adacore.com>
4125
4126 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4127 (ada_value_primitive_packed_val): Update.
4128 * ada-valprint.c (ada_value_print_1): Update.
4129 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4130 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4131 just an address. Use evaluate_for_locexpr_baton.
4132 (dwarf2_evaluate_property): Update.
4133 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4134 array_view.
4135 * findvar.c (default_read_var_value): Update.
4136 * gdbtypes.c (compute_variant_fields_inner)
4137 (resolve_dynamic_type_internal): Update.
4138 (resolve_dynamic_type): Change type of valaddr parameter.
4139 * gdbtypes.h (resolve_dynamic_type): Update.
4140 * valarith.c (value_subscripted_rvalue): Update.
4141 * value.c (value_from_contents_and_address): Update.
4142
61122aa9
TT
41432020-04-24 Tom Tromey <tromey@adacore.com>
4144
4145 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4146 "push_initial_value" parameter.
4147 (dwarf2_evaluate_property): Likewise.
4148 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4149
ef83a141
TT
41502020-04-24 Tom Tromey <tromey@adacore.com>
4151
4152 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4153 (variant::matches, compute_variant_fields_recurse)
4154 (compute_variant_fields_inner, compute_variant_fields): New
4155 functions.
4156 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4157 Use resolved_type after type is made.
4158 (operator==): Add new cases.
4159 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4160 (struct discriminant_range, struct variant, struct variant_part):
4161 New.
4162 (union dynamic_prop_data) <variant_parts, original_type>: New
4163 members.
4164 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4165 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4166 constants.
4167 * value.c (unpack_bits_as_long): Now public.
4168 * value.h (unpack_bits_as_long): Declare.
4169
675127ec
TT
41702020-04-24 Tom Tromey <tromey@adacore.com>
4171
4172 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4173 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4174
9852ceef
HD
41752020-04-24 Hannes Domani <ssbssa@yahoo.de>
4176
4177 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4178
7632c6ce
KR
41792020-04-24 Kamil Rytarowski <n54@gmx.com>
4180
4181 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4182 (remove_fork_catchpoint, post_startup_inferior)
4183 (post_attach): Move...
4184 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4185 (remove_fork_catchpoint, post_startup_inferior)
4186 (post_attach): ...here.
4187 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4188 (remove_fork_catchpoint, post_startup_inferior)
4189 (post_attach): Move...
4190 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4191 (remove_fork_catchpoint, post_startup_inferior)
4192 (post_attach): ...here.
4193
7be2bb4f
TT
41942020-04-24 Tom Tromey <tromey@adacore.com>
4195
4196 * nat/windows-nat.h (struct windows_thread_info)
4197 <pc_adjusted>: New member.
4198 * windows-nat.c (windows_fetch_one_register): Check
4199 pc_adjusted.
4200 (windows_nat_target::get_windows_debug_event)
4201 (windows_nat_target::wait): Set pc_adjusted.
4202
f80cb3b4
TV
42032020-04-24 Tom de Vries <tdevries@suse.de>
4204
4205 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4206 Run gdb-add-index inside temp dir.
4207
29514b87
TT
42082020-04-23 Tom Tromey <tromey@adacore.com>
4209
4210 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4211 in loop.
4212
5939967b
LM
42132020-04-23 Luis Machado <luis.machado@linaro.org>
4214
4215 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4216 get_frame_register instead of gdbarch_unwind_pc.
4217
70bc38f5
TV
42182020-04-23 Tom de Vries <tdevries@suse.de>
4219
4220 * symtab.c (lookup_global_symbol): Prefer def over decl.
4221
de82891c
TV
42222020-04-23 Tom de Vries <tdevries@suse.de>
4223
4224 PR symtab/25807
4225 * block.c (best_symbol, better_symbol): Promote to external.
4226 * block.h (best_symbol, better_symbol): Declare.
4227 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4228 decl.
4229
ecc6c606
TT
42302020-04-23 Tom Tromey <tromey@adacore.com>
4231
4232 PR ada/25837:
4233 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4234 "const char *", not a "const std::string &".
4235 <name_and_matcher::operator==>: Update.
4236 * unittests/lookup_name_info-selftests.c: Change type of
4237 "result".
4238
740480b8
TT
42392020-04-23 Tom Tromey <tom@tromey.com>
4240
4241 * inferior.h (iterate_over_inferiors): Don't declare.
4242 * inferior.c (iterate_over_inferiors): Remove.
4243 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4244 Remove.
4245 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4246 use iterate_over_inferiors.
4247 (darwin_resume_inferior_it)
4248 (struct resume_inferior_threads_param)
4249 (darwin_resume_inferior_threads_it): Remove.
4250 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4251
ae3ab1f0
TV
42522020-04-23 Tom de Vries <tdevries@suse.de>
4253
4254 * blockframe.c (find_pc_partial_function): Use
4255 find_pc_sect_compunit_symtab rather than
4256 objfile->sf->qf->find_pc_sect_compunit_symtab.
4257
317d2668
TV
42582020-04-22 Tom de Vries <tdevries@suse.de>
4259
4260 PR symtab/25764
4261 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4262 in psymtabs.
4263
eea9e357
TV
42642020-04-22 Tom de Vries <tdevries@suse.de>
4265
4266 PR symtab/25801
4267 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4268 symtabs.
4269
3d5afab3
TV
42702020-04-22 Tom de Vries <tdevries@suse.de>
4271
4272 PR symtab/25700
4273 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4274 CU if already created.
4275
d43b7a2d
TBA
42762020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4277
4278 * infrun.c (displaced_step_fixup): Switch to the event_thread
4279 before calling displaced_step_restore, not after.
4280
d89edf9b
MM
42812020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4282
4283 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4284 its inferior is not recorded by us.
4285 (record_btrace_target_open): Replace call to
4286 all_non_exited_threads () with call to current_inferior
4287 ()->non_exited_threads ().
4288 (record_btrace_target::stop_recording): Likewise.
4289 (record_btrace_target::close): Likewise.
4290 (record_btrace_target::wait): Likewise.
4291 (record_btrace_target::record_stop_replaying): Likewise.
4292
5897fd49
MM
42932020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4294
4295 * btrace.c (btrace_enable): Throw an error on double enables and
4296 when enabling recording fails.
4297 (btrace_disable): Throw an error if the thread is not recorded.
4298
1a476b6d
MM
42992020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4300
4301 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4302 request if we do not have a thread_info.
4303
4778a5f8
TV
43042020-04-21 Tom de Vries <tdevries@suse.de>
4305
4306 PR gdb/25471
4307 * thread.c
4308 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4309 exception in get_frame_id.
4310
0fa7617d
TT
43112020-04-20 Tom Tromey <tromey@adacore.com>
4312
4313 * python/python.c (struct gdbpy_event): Mark move constructor as
4314 noexcept.
4315 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4316 constructor as noexcept.
4317 * completer.h (struct completion_result): Mark move constructor as
4318 noexcept.
4319 * completer.c (completion_result::completion_result): Use
4320 initialization style. Don't call reset_match_list.
4321
ad23bda0
MS
43222020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4323
4324 * MAINTAINERS (Write After Approval): Add myself.
4325
45e1f031
TT
43262020-04-18 Tom Tromey <tom@tromey.com>
4327
4328 * windows-tdep.c (init_w32_command_list)
4329 (w32_prefix_command_valid): Restore.
4330 (_initialize_windows_tdep): Call init_w32_command_list.
4331
08feed99
TT
43322020-04-18 Tom Tromey <tom@tromey.com>
4333
4334 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4335 * value.c (value_fn_field): Update.
4336 * valops.c (find_function_in_inferior)
4337 (value_allocate_space_in_inferior): Update.
4338 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4339 Update.
4340 * tui/tui-source.c (tui_source_window::set_contents): Update.
4341 * symtab.c (lookup_global_or_static_symbol)
4342 (find_function_start_sal_1, skip_prologue_sal)
4343 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4344 * symmisc.c (dump_msymbols, dump_symtab_1)
4345 (maintenance_print_one_line_table): Update.
4346 * symfile.c (init_entry_point_info, section_is_mapped)
4347 (list_overlays_command, simple_read_overlay_table)
4348 (simple_overlay_update_1): Update.
4349 * stap-probe.c (handle_stap_probe): Update.
4350 * stabsread.c (dbx_init_float_type, define_symbol)
4351 (read_one_struct_field, read_enum_type, read_range_type): Update.
4352 * source.c (info_line_command): Update.
4353 * python/python.c (gdbpy_source_objfile_script)
4354 (gdbpy_execute_objfile_script): Update.
4355 * python/py-type.c (save_objfile_types): Update.
4356 * python/py-objfile.c (py_free_objfile): Update.
4357 * python/py-inferior.c (python_new_objfile): Update.
4358 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4359 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4360 (maintenance_check_psymtabs): Update.
4361 * printcmd.c (info_address_command): Update.
4362 * objfiles.h (struct objfile) <arch>: New method, from
4363 get_objfile_arch.
4364 (get_objfile_arch): Don't declare.
4365 * objfiles.c (get_objfile_arch): Remove.
4366 (filter_overlapping_sections): Update.
4367 * minsyms.c (msymbol_is_function): Update.
4368 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4369 (output_nondebug_symbol): Update.
4370 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4371 (mdebug_expand_psymtab): Update.
4372 * machoread.c (macho_add_oso_symfile): Update.
4373 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4374 Update.
4375 * linux-fork.c (checkpoint_command): Update.
4376 * linespec.c (convert_linespec_to_sals): Update.
4377 * jit.c (finalize_symtab): Update.
4378 * infrun.c (insert_exception_resume_from_probe): Update.
4379 * ia64-tdep.c (ia64_find_unwind_table): Update.
4380 * hppa-tdep.c (internalize_unwinds): Update.
4381 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4382 Update.
4383 * gcore.c (call_target_sbrk): Update.
4384 * elfread.c (record_minimal_symbol, elf_symtab_read)
4385 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4386 (elf_gnu_ifunc_resolve_by_got): Update.
4387 * dwarf2/read.c (create_addrmap_from_index)
4388 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4389 (read_debug_names_from_section)
4390 (process_psymtab_comp_unit_reader, add_partial_symbol)
4391 (add_partial_subprogram, process_full_comp_unit)
4392 (read_file_scope, read_func_scope, read_lexical_block_scope)
4393 (read_call_site_scope, dwarf2_ranges_read)
4394 (dwarf2_record_block_ranges, dwarf2_add_field)
4395 (mark_common_block_symbol_computed, read_tag_pointer_type)
4396 (read_tag_string_type, dwarf2_init_float_type)
4397 (dwarf2_init_complex_target_type, read_base_type)
4398 (partial_die_info::read, partial_die_info::read)
4399 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4400 (dwarf2_fetch_die_loc_sect_off): Update.
4401 * dwarf2/loc.c (dwarf2_find_location_expression)
4402 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4403 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4404 (dwarf2_loc_desc_get_symbol_read_needs)
4405 (locexpr_describe_location_piece, locexpr_describe_location_1)
4406 (loclist_describe_location): Update.
4407 * dwarf2/index-write.c (write_debug_names): Update.
4408 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4409 * dtrace-probe.c (dtrace_process_dof): Update.
4410 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4411 (process_one_symbol): Update.
4412 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4413 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4414 (coff_read_enum_type): Update.
4415 * cli/cli-cmds.c (edit_command, list_command): Update.
4416 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4417 * breakpoint.c (create_overlay_event_breakpoint)
4418 (create_longjmp_master_breakpoint)
4419 (create_std_terminate_master_breakpoint)
4420 (create_exception_master_breakpoint, get_sal_arch): Update.
4421 * block.c (block_gdbarch): Update.
4422 * annotate.c (annotate_source_line): Update.
4423
0743fc83
TT
44242020-04-17 Tom Tromey <tromey@adacore.com>
4425
4426 * auto-load.c (show_auto_load_cmd): Remove.
4427 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4428 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4429 (maintenance_print_arc_command): Remove.
4430 * tui/tui-win.c (tui_command): Remove.
4431 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4432 * tui/tui-layout.c (tui_layout_command): Remove.
4433 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4434 * python/python.c (user_set_python, user_show_python): Remove.
4435 (_initialize_python): Use add_basic_prefix_cmd,
4436 add_show_prefix_cmd.
4437 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4438 (install_gdb_commands): Use add_basic_prefix_cmd,
4439 add_show_prefix_cmd.
4440 (info_guile_command): Remove.
4441 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4442 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4443 add_show_prefix_cmd.
4444 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4445 Remove do_set and do_show parameters.
4446 * cli/cli-style.c (set_style, show_style): Remove.
4447 (_initialize_cli_style): Use add_basic_prefix_cmd,
4448 add_show_prefix_cmd.
4449 (cli_style_option::add_setshow_commands): Remove do_set and
4450 do_show parameters.
4451 (cli_style_option::add_setshow_commands): Use
4452 add_basic_prefix_cmd, add_show_prefix_cmd.
4453 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4454 (set_style_name): Remove.
4455 * cli/cli-dump.c (dump_command, append_command): Remove.
4456 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4457 (tekhex_dump_command, binary_dump_command)
4458 (binary_append_command): Remove.
4459 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4460 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4461 (init_w32_command_list): Remove; move into ...
4462 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4463 * valprint.c (set_print, show_print, set_print_raw)
4464 (show_print_raw): Remove.
4465 (_initialize_valprint): Use add_basic_prefix_cmd,
4466 add_show_prefix_cmd.
4467 * typeprint.c (set_print_type, show_print_type): Remove.
4468 (_initialize_typeprint): Use add_basic_prefix_cmd,
4469 add_show_prefix_cmd.
4470 * record.c (set_record_command, show_record_command): Remove.
4471 (_initialize_record): Use add_basic_prefix_cmd,
4472 add_show_prefix_cmd.
4473 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4474 add_show_prefix_cmd.
4475 (info_command, show_command, set_debug, show_debug): Remove.
4476 * top.h (set_history, show_history): Don't declare.
4477 * top.c (set_history, show_history): Remove.
4478 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4479 (unset_tdesc_cmd): Remove.
4480 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4481 add_show_prefix_cmd.
4482 * symtab.c (info_module_command): Remove.
4483 (_initialize_symtab): Use add_basic_prefix_cmd.
4484 * symfile.c (overlay_command): Remove.
4485 (_initialize_symfile): Use add_basic_prefix_cmd.
4486 * sparc64-tdep.c (info_adi_command): Remove.
4487 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4488 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4489 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4490 add_show_prefix_cmd.
4491 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4492 (_initialize_serial): Use add_basic_prefix_cmd,
4493 add_show_prefix_cmd.
4494 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4495 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4496 add_show_prefix_cmd.
4497 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4498 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4499 add_show_prefix_cmd.
4500 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4501 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4502 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4503 add_show_prefix_cmd.
4504 * remote.c (remote_command, set_remote_cmd): Remove.
4505 (_initialize_remote): Use add_basic_prefix_cmd.
4506 * record-full.c (set_record_full_command)
4507 (show_record_full_command): Remove.
4508 (_initialize_record_full): Use add_basic_prefix_cmd,
4509 add_show_prefix_cmd.
4510 * record-btrace.c (cmd_set_record_btrace)
4511 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4512 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4513 (cmd_show_record_btrace_pt): Remove.
4514 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4515 add_show_prefix_cmd.
4516 * ravenscar-thread.c (set_ravenscar_command)
4517 (show_ravenscar_command): Remove.
4518 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4519 add_show_prefix_cmd.
4520 * mips-tdep.c (show_mips_command, set_mips_command)
4521 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4522 add_show_prefix_cmd.
4523 * maint.c (maintenance_command, maintenance_info_command)
4524 (maintenance_check_command, maintenance_print_command)
4525 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4526 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4527 add_show_prefix_cmd.
4528 (show_per_command_cmd): Remove.
4529 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4530 Remove.
4531 (maintenance_show_test_settings_cmd): Remove.
4532 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4533 add_show_prefix_cmd.
4534 * maint-test-options.c (maintenance_test_options_command):
4535 Remove.
4536 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4537 * macrocmd.c (macro_command): Remove
4538 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4539 * language.c (set_check, show_check): Remove.
4540 (_initialize_language): Use add_basic_prefix_cmd,
4541 add_show_prefix_cmd.
4542 * infcmd.c (unset_command): Remove.
4543 (_initialize_infcmd): Use add_basic_prefix_cmd.
4544 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4545 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4546 add_show_prefix_cmd.
4547 * go32-nat.c (go32_info_dos_command): Remove.
4548 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4549 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4550 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4551 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4552 (_initialize_frame): Use add_basic_prefix_cmd,
4553 add_show_prefix_cmd.
4554 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4555 (_initialize_dcache): Use add_basic_prefix_cmd,
4556 add_show_prefix_cmd.
4557 * cp-support.c (maint_cplus_command): Remove.
4558 (_initialize_cp_support): Use add_basic_prefix_cmd.
4559 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4560 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4561 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4562 add_basic_prefix_cmd, add_show_prefix_cmd.
4563 * breakpoint.c (save_command): Remove.
4564 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4565 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4566 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4567 add_show_prefix_cmd.
4568 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4569 (set_ada_command, show_ada_command): Remove.
4570 (_initialize_ada_language): Use add_basic_prefix_cmd,
4571 add_show_prefix_cmd.
4572 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4573
3557f442
KR
45742020-04-16 Kamil Rytarowski <n54@gmx.com>
4575
4576 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4577 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4578
16197208
SM
45792020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4580
4581 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4582 warning messages.
4583
00ac85d3
SM
45842020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4585
4586 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4587 import table is not at beginning of .idata section.
4588
381ce63f
PA
45892020-04-16 Pedro Alves <palves@redhat.com>
4590
4591 * inferior.c (delete_inferior): Use delete operator directly
4592 instead of delete_program_space.
4593 * progspace.c (add_program_space): New, factored out from
4594 program_space::program_space.
4595 (remove_program_space): New, factored out from
4596 delete_program_space.
4597 (program_space::program_space): Remove intro comment. Rewrite.
4598 (program_space::~program_space): Remove intro comment. Call
4599 remove_program_space.
4600 (delete_program_space): Delete.
4601 * progspace.h (program_space::program_space): Make explicit. Move
4602 intro comment here, adjusted.
4603 (program_space::~program_space): Move intro comment here,
4604 adjusted.
4605 (delete_program_space): Remove.
4606
a010605f
TT
46072020-04-16 Tom Tromey <tromey@adacore.com>
4608
4609 * windows-nat.c (windows_nat::handle_access_violation): New
4610 function.
4611 * nat/windows-nat.h (handle_access_violation): Declare.
4612 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4613 windows-nat.c. Call handle_access_violation.
4614
efba5c23
TV
46152020-04-16 Tom de Vries <tdevries@suse.de>
4616
4617 PR symtab/25791
4618 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4619 CUs without psymtab.
4620
97ed802d
KB
46212020-04-16 Kevin Buettner <kevinb@redhat.com>
4622
4623 * python/python.c (do_start_initialization): Don't call
4624 PyEval_InitThreads for Python 3.9 and beyond.
4625
c7d64809
KR
46262020-04-15 Kamil Rytarowski <n54@gmx.com>
4627
4628 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4629 thread functions.
4630 (obsd_nat_target::wait): Likewise.
4631
ce127a96
TT
46322020-04-15 Tom Tromey <tromey@adacore.com>
4633
4634 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4635 (DEBUG_EXCEPT): Use debug_printf.
4636
99f1bc6a
AB
46372020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * completer.c (class completion_tracker::completion_hash_entry)
4640 <hash_name>: New member function.
4641 (completion_tracker::discard_completions): New callback to hash a
4642 completion_hash_entry, pass this to htab_create_alloc.
4643
a0e9b532
JT
46442016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4645
4646 * windows-nat.c (windows_make_so): Warn rather than stopping with
4647 an error if realpath() fails.
4648
06ca5dd4
KR
46492020-04-14 Kamil Rytarowski <n54@gmx.com>
4650
4651 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4652 (nbsd_nat_target::info_proc): Add do_status.
4653
194d088f
TV
46542020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4655 Tom de Vries <tdevries@suse.de>
4656
4657 PR symtab/25718
4658 * psympriv.h (struct partial_symtab::read_symtab)
4659 (struct partial_symtab::expand_psymtab)
4660 (struct partial_symtab::read_dependencies): Update comments.
4661 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4662 read_symtab for includer.
4663 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4664 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4665 (struct dwarf2_include_psymtab::m_readin): Remove.
4666 (struct dwarf2_include_psymtab::includer): New member function.
4667 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4668
c1a66c06
TV
46692020-04-14 Tom de Vries <tdevries@suse.de>
4670
4671 PR symtab/25720
4672 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4673 with NULL symbol_matcher and lookup_name.
4674 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4675 and lookup_name.
4676 * dwarf2/read.c (dw2_expand_symtabs_matching)
4677 (dw2_debug_names_expand_symtabs_matching): Same.
4678 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4679 Make lookup_name a pointer. Update comment.
4680 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4681 lookup_name being a pointer.
4682 * symfile.c (expand_symtabs_matching): Same.
4683 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4684 * linespec.c (iterate_over_all_matching_symtabs): Same.
4685
400b5eca
TT
46862020-04-13 Tom Tromey <tom@tromey.com>
4687
4688 * run-on-main-thread.c: Update include.
4689 * unittests/main-thread-selftests.c: Update include.
4690 * tui/tui-win.c: Update include.
4691 * tui/tui-io.c: Update include.
4692 * tui/tui-interp.c: Update include.
4693 * tui/tui-hooks.c: Update include.
4694 * top.h: Update include.
4695 * top.c: Update include.
4696 * ser-base.c: Update include.
4697 * remote.c: Update include.
4698 * remote-notif.c: Update include.
4699 * remote-fileio.c: Update include.
4700 * record-full.c: Update include.
4701 * record-btrace.c: Update include.
4702 * python/python.c: Update include.
4703 * posix-hdep.c: Update include.
4704 * mingw-hdep.c: Update include.
4705 * mi/mi-main.c: Update include.
4706 * mi/mi-interp.c: Update include.
4707 * main.c: Update include.
4708 * linux-nat.c: Update include.
4709 * interps.c: Update include.
4710 * infrun.c: Update include.
4711 * inf-loop.c: Update include.
4712 * event-top.c: Update include.
4713 * event-loop.c: Move to ../gdbsupport/.
4714 * event-loop.h: Move to ../gdbsupport/.
4715 * async-event.h: Update include.
4716 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4717
93b54c8e
TT
47182020-04-13 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-win.c: Include async-event.h.
4721 * remote.c: Include async-event.h.
4722 * remote-notif.c: Include async-event.h.
4723 * record-full.c: Include async-event.h.
4724 * record-btrace.c: Include async-event.h.
4725 * infrun.c: Include async-event.h.
4726 * event-top.c: Include async-event.h.
4727 * event-loop.h: Move some declarations to async-event.h.
4728 * event-loop.c: Don't include ser-event.h or top.h. Move some
4729 code to async-event.c.
4730 * async-event.h: New file.
4731 * async-event.c: New file.
4732 * Makefile.in (COMMON_SFILES): Add async-event.c.
4733 (HFILES_NO_SRCDIR): Add async-event.h.
4734
c1cd3163
TT
47352020-04-13 Tom Tromey <tom@tromey.com>
4736
4737 * utils.c (flush_streams): New function.
4738 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4739
29f2bf4f
TT
47402020-04-13 Tom Tromey <tom@tromey.com>
4741
4742 * event-loop.c (handle_file_event): Use warning, not
4743 printf_unfiltered.
4744
98029d02
TT
47452020-04-13 Tom Tromey <tom@tromey.com>
4746
4747 * event-loop.c: Include <chrono>.
4748
06cc9596
TT
47492020-04-13 Tom Tromey <tom@tromey.com>
4750
4751 * gdb_select.h: Move to ../gdbsupport/.
4752 * event-loop.c: Update include path.
4753 * top.c: Update include path.
4754 * ser-base.c: Update include path.
4755 * ui-file.c: Update include path.
4756 * ser-tcp.c: Update include path.
4757 * guile/scm-ports.c: Update include path.
4758 * posix-hdep.c: Update include path.
4759 * ser-unix.c: Update include path.
4760 * gdb_usleep.c: Update include path.
4761 * mingw-hdep.c: Update include path.
4762 * inflow.c: Update include path.
4763 * infrun.c: Update include path.
4764 * event-top.c: Update include path.
4765
8ae8e197
TT
47662020-04-13 Tom Tromey <tom@tromey.com>
4767
4768 * configure: Rebuild.
4769 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4770
58cf28e8
TT
47712020-04-13 Tom Tromey <tom@tromey.com>
4772
4773 * event-loop.h (start_event_loop): Don't declare.
4774 * event-loop.c (start_event_loop): Move...
4775 * main.c (start_event_loop): ...here. Now static.
4776
b7f999ae
SDJ
47772020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4778
4779 * MAINTAINERS: Update my email address.
4780
1085dfd4
KR
47812020-04-12 Kamil Rytarowski <n54@gmx.com>
4782
4783 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4784 IP_ALL.
4785
49d1d1f5
KR
47862020-04-12 Kamil Rytarowski <n54@gmx.com>
4787
4788 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4789 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4790
b4848d2a
KR
47912020-04-12 Kamil Rytarowski <n54@gmx.com>
4792
4793 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4794 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4795
51c133d5
KR
47962020-04-12 Kamil Rytarowski <n54@gmx.com>
4797
4798 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4799
54b8cbd0
KR
48002020-04-11 Kamil Rytarowski <n54@gmx.com>
4801
4802 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4803 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4804 (nbsd_nat_target::info_proc): New functions.
4805 * nbsd-nat.c (kinfo_get_vmmap): New function.
4806 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4807 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4808 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4809 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4810 functions.
4811 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4812 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4813 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4814 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4815 (KINFO_VME_FLAG_GROWS_DOWN): New.
4816
cf83625d
AS
48172020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4818
4819 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4820 bit shift.
4821
0c4311ab
TT
48222020-04-10 Tom Tromey <tromey@adacore.com>
4823
4824 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4825
3e65b3e9
TT
48262020-04-10 Tom Tromey <tromey@adacore.com>
4827
4828 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4829 separate debug files.
4830
13302e95
HD
48312020-04-10 Hannes Domani <ssbssa@yahoo.de>
4832
4833 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4834 Move to...
4835 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4836 ... here.
4837 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4838 Check for STATUS_WX86_BREAKPOINT.
4839 (windows_nat_target::wait): Same.
4840
bdfc1e8a
TV
48412020-04-10 Tom de Vries <tdevries@suse.de>
4842
4843 PR cli/25808
4844 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4845
f4460aec
SM
48462020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4847
4848 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4849 (Write After Approval): Remove Tom de Vries.
4850
a25198bb
BE
48512020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4852
4853 revert partially:
4854 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4855
aac66a4c
SM
4856 * buildsym.c (record_line): Fix undefined behavior and preserve
4857 lines at eof.
a25198bb 4858
206c98a6
KR
48592020-04-09 Kamil Rytarowski <n54@gmx.com>
4860
4861 * auxv.h (svr4_auxv_parse): New.
4862 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4863 and generic_auxv_parse.
4864 (svr4_auxv_parse): Add.
4865 * obsd-tdep.c: Include "auxv.h".
4866 (obsd_auxv_parse): Remove.
4867 (obsd_init_abi): Remove comment.
4868 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4869 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4870 * nbsd-tdep.c: Include "auxv.h".
4871 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4872
71fbdbaf
TT
48732020-04-08 Tom Tromey <tromey@adacore.com>
4874
4875 * nat/windows-nat.h (last_wait_event): Don't declare.
4876 (wait_for_debug_event): Update comment.
4877 * nat/windows-nat.c (last_wait_event): Now static.
4878
2c1d95e8
TT
48792020-04-08 Tom Tromey <tromey@adacore.com>
4880
4881 * windows-nat.c (wait_for_debug_event): Move to
4882 nat/windows-nat.c.
4883 * nat/windows-nat.h (wait_for_debug_event): Declare.
4884 * nat/windows-nat.c (wait_for_debug_event): Move from
4885 windows-nat.c. No longer static.
4886
d2977bc4
TT
48872020-04-08 Tom Tromey <tromey@adacore.com>
4888
4889 * windows-nat.c (get_windows_debug_event): Use
4890 fetch_pending_stop.
4891 * nat/windows-nat.h (fetch_pending_stop): Declare.
4892 * nat/windows-nat.c (fetch_pending_stop): New function.
4893
e758e19c
TT
48942020-04-08 Tom Tromey <tromey@adacore.com>
4895
4896 * windows-nat.c (windows_continue): Use matching_pending_stop and
4897 continue_last_debug_event.
4898 * nat/windows-nat.h (matching_pending_stop)
4899 (continue_last_debug_event): Declare.
4900 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4901 (matching_pending_stop, continue_last_debug_event): New
4902 functions.
4903
8d30e395
TT
49042020-04-08 Tom Tromey <tromey@adacore.com>
4905
4906 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4907 (handle_exception_result): Move to nat/windows-nat.h.
4908 (DEBUG_EXCEPTION_SIMPLE): Remove.
4909 (windows_nat::handle_ms_vc_exception): New function.
4910 (handle_exception): Move to nat/windows-nat.c.
4911 (get_windows_debug_event): Update.
4912 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4913 nat/windows-nat.c.
4914 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4915 (handle_exception_result): Move from windows-nat.c.
4916 (handle_exception): Declare.
4917 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4918 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4919 windows-nat.c.
4920
29de418d
TT
49212020-04-08 Tom Tromey <tromey@adacore.com>
4922
4923 * windows-nat.c (exception_count, event_count): Remove.
4924 (handle_exception, get_windows_debug_event)
4925 (do_initial_windows_stuff): Update.
4926
a816ba18
TT
49272020-04-08 Tom Tromey <tromey@adacore.com>
4928
4929 * windows-nat.c (windows_nat::handle_load_dll)
4930 (windows_nat::handle_unload_dll): Rename. No longer static.
4931 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4932 Declare.
4933
a00caa12
TT
49342020-04-08 Tom Tromey <tromey@adacore.com>
4935
4936 * complaints.h (stop_whining): Declare at top-level.
4937 (complaint): Don't declare stop_whining.
4938
d41b524f
TT
49392020-04-08 Tom Tromey <tromey@adacore.com>
4940
4941 * windows-nat.c (windows_nat::handle_output_debug_string):
4942 Rename. No longer static.
4943 * nat/windows-nat.h (handle_output_debug_string): Declare.
4944
3c76026d
TT
49452020-04-08 Tom Tromey <tromey@adacore.com>
4946
4947 * 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 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4951 (display_selectors, fake_create_process)
4952 (get_windows_debug_event): Update.
4953 * nat/windows-nat.h (current_process_handle, current_process_id)
4954 (main_thread_id, last_sig, current_event, last_wait_event)
4955 (current_windows_thread, desired_stop_thread_id, pending_stops)
4956 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4957 * nat/windows-nat.c (current_process_handle, current_process_id)
4958 (main_thread_id, last_sig, current_event, last_wait_event)
4959 (current_windows_thread, desired_stop_thread_id, pending_stops)
4960 (siginfo_er): New globals. Move from windows-nat.c.
4961
9d8679cc
TT
49622020-04-08 Tom Tromey <tromey@adacore.com>
4963
4964 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4965 (handle_load_dll): Update.
4966 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4967
28688adf
TT
49682020-04-08 Tom Tromey <tromey@adacore.com>
4969
4970 * windows-nat.c (enum thread_disposition_type): Move to
4971 nat/windows-nat.h.
4972 (windows_nat::thread_rec): Rename from thread_rec. No longer
4973 static.
4974 (windows_add_thread, windows_nat_target::fetch_registers)
4975 (windows_nat_target::store_registers, handle_exception)
4976 (windows_nat_target::resume, get_windows_debug_event)
4977 (windows_nat_target::get_tib_address)
4978 (windows_nat_target::thread_name)
4979 (windows_nat_target::thread_alive): Update.
4980 * nat/windows-nat.h (enum thread_disposition_type): Move from
4981 windows-nat.c.
4982 (thread_rec): Declare.
4983
4834dad0
TT
49842020-04-08 Tom Tromey <tromey@adacore.com>
4985
4986 * windows-nat.c: Add "using namespace".
4987 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
4988 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
4989
65bafd5b
TT
49902020-04-08 Tom Tromey <tromey@adacore.com>
4991
4992 * nat/windows-nat.h (struct windows_thread_info): Declare
4993 destructor.
4994 * nat/windows-nat.c (~windows_thread_info): New.
4995
0a4afda3
TT
49962020-04-08 Tom Tromey <tromey@adacore.com>
4997
4998 PR gdb/22992
4999 * windows-nat.c (current_event): Update comment.
5000 (last_wait_event, desired_stop_thread_id): New globals.
5001 (struct pending_stop): New.
5002 (pending_stops): New global.
5003 (windows_nat_target) <stopped_by_sw_breakpoint>
5004 <supports_stopped_by_sw_breakpoint>: New methods.
5005 (windows_fetch_one_register): Add assertions. Adjust PC.
5006 (windows_continue): Handle pending stops. Suspend other threads
5007 when stepping. Use last_wait_event
5008 (wait_for_debug_event): New function.
5009 (get_windows_debug_event): Use wait_for_debug_event. Handle
5010 pending stops. Queue spurious stops.
5011 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5012 (windows_nat_target::kill): Use wait_for_debug_event.
5013 * nat/windows-nat.h (struct windows_thread_info)
5014 <stopped_at_software_breakpoint>: New field.
5015 * nat/windows-nat.c (windows_thread_info::resume): Clear
5016 stopped_at_software_breakpoint.
5017
8e61ebec
TT
50182020-04-08 Tom Tromey <tromey@adacore.com>
5019
5020 * windows-nat.c (enum thread_disposition_type): New.
5021 (thread_rec): Replace "get_context" parameter with "disposition";
5022 change type.
5023 (windows_add_thread, windows_nat_target::fetch_registers)
5024 (windows_nat_target::store_registers, handle_exception)
5025 (windows_nat_target::resume, get_windows_debug_event)
5026 (windows_nat_target::get_tib_address)
5027 (windows_nat_target::thread_name)
5028 (windows_nat_target::thread_alive): Update.
5029
98a03287
TT
50302020-04-08 Tom Tromey <tromey@adacore.com>
5031
5032 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5033 (windows_continue): Use windows_continue::resume.
5034 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5035 resume>: Declare new methods.
5036 * nat/windows-nat.c: New file.
5037 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5038
7c7411bc
TT
50392020-04-08 Tom Tromey <tromey@adacore.com>
5040
5041 * windows-nat.c (windows_add_thread, windows_delete_thread)
5042 (windows_nat_target::fetch_registers)
5043 (windows_nat_target::store_registers, fake_create_process)
5044 (windows_nat_target::resume, windows_nat_target::resume)
5045 (get_windows_debug_event, windows_nat_target::wait)
5046 (windows_nat_target::pid_to_str)
5047 (windows_nat_target::get_tib_address)
5048 (windows_nat_target::get_ada_task_ptid)
5049 (windows_nat_target::thread_name)
5050 (windows_nat_target::thread_alive): Use lwp, not tid.
5051
2950fdf7
TT
50522020-04-08 Tom Tromey <tromey@adacore.com>
5053
5054 * windows-nat.c (handle_exception)
5055 (windows_nat_target::thread_name): Update.
5056 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5057 <name>: Now unique_xmalloc_ptr.
5058
62fe396b
TT
50592020-04-08 Tom Tromey <tromey@adacore.com>
5060
5061 * windows-nat.c (thread_rec)
5062 (windows_nat_target::fetch_registers): Update.
5063 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5064 Update comment.
5065 <debug_registers_changed, reload_context>: Now bool.
5066
e9534bd2
TT
50672020-04-08 Tom Tromey <tromey@adacore.com>
5068
5069 * windows-nat.c (windows_add_thread): Use new.
5070 (windows_init_thread_list, windows_delete_thread): Use delete.
5071 (get_windows_debug_event): Update.
5072 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5073 destructor, and initializers.
5074
ae1f8880
TT
50752020-04-08 Tom Tromey <tromey@adacore.com>
5076
5077 * windows-nat.c (struct windows_thread_info): Remove.
5078 * nat/windows-nat.h: New file.
5079
55a1e039
TT
50802020-04-08 Tom Tromey <tromey@adacore.com>
5081
5082 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5083 (thread_rec, windows_add_thread, windows_delete_thread)
5084 (windows_continue): Update.
5085
93366324
TT
50862020-04-08 Tom Tromey <tromey@adacore.com>
5087
5088 * windows-nat.c (struct windows_thread_info): Remove typedef.
5089 (thread_head): Remove.
5090 (thread_list): New global.
5091 (thread_rec, windows_add_thread, windows_init_thread_list)
5092 (windows_delete_thread, windows_continue): Update.
5093
0f2265e2
SM
50942020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5095
5096 * windows-tdep.h (windows_init_abi): Add comment.
5097 (cygwin_init_abi): New declaration.
5098 * windows-tdep.c: Split signal enumeration in two, one for
5099 Windows and one for Cygwin.
5100 (windows_gdb_signal_to_target): Only deal with signal of the
5101 Windows OS ABI.
5102 (cygwin_gdb_signal_to_target): New function.
5103 (windows_init_abi): Rename to windows_init_abi_common, don't set
5104 gdb_signal_to_target gdbarch method. Add new new function with
5105 this name.
5106 (cygwin_init_abi): New function.
5107 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5108 comment. Don't call windows_init_abi.
5109 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5110 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5111 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5112 i386_windows_init_abi_common, don't call windows_init_abi. Add
5113 a new function of this name.
5114 (i386_cygwin_init_abi): New function.
5115 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5116 OS ABI Cygwin.
5117
3810f182
SM
51182020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5119
5120 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5121 parameter.c.
5122 (dwarf2_read_gdb_index): Update.
5123
063f8e80
KR
51242020-04-07 Kamil Rytarowski <n54@gmx.com>
5125
5126 * nbsd-tdep.c: Include "objfiles.h".
5127 (nbsd_skip_solib_resolver): New.
5128 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5129
85a9510c 51302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5131
5132 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5133 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5134 with DW_LLE_base_addressx are being emitted in DWARFv5.
5135 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5136 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5137 unsigned integer.
5138
9fc3eaae 51392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5140
5141 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5142 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5143 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5144 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5145 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5146 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5147 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5148
5149
41144253 51502020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5151
5152 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5153 (read_loclist_index): New function definition.
5154 (lookup_loclist_base): New function definition.
5155 (read_loclist_header): New function definition.
5156 (dwarf2_cu): Add loclist_base and loclist_header field.
5157 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5158 (read_full_die_1): Read the value of DW_AT_loclists_base.
5159 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5160 (read_attribute_value): Handle DW_FORM_loclistx.
5161 (skip_one_die): Handle DW_FORM_loclistx.
5162 (loclist_header): New structure declaration.
5163 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5164
9f4e76a4
SM
51652020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5166
5167 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5168 constructor. Remove `addr` parameter from other constructor and
5169 add `per_cu` parameter.
5170 * dwarf2/read.c (create_partial_symtab): Update.
5171
25c11aca
TV
51722020-04-07 Tom de Vries <tdevries@suse.de>
5173
5174 PR symtab/25796
5175 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5176 (partial_die_info::fixup): Inherit has_const_value.
5177
5707e24b
TV
51782020-04-07 Tom de Vries <tdevries@suse.de>
5179
5180 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5181 symbols without address.
5182
05f00e22
KR
51832020-04-06 Kamil Rytarowski <n54@gmx.com>
5184
5185 * nbsd-nat.h (struct thread_info): Add forward declaration.
5186 (nbsd_nat_target::thread_alive): Add.
5187 (nbsd_nat_target::thread_name): Likewise.
5188 (nbsd_nat_target::update_thread_list): Likewise.
5189 (update_thread_list::post_attach): Likewise.
5190 (post_attach::pid_to_str): Likewise.
5191 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5192 (nbsd_thread_lister): Add.
5193 (nbsd_nat_target::thread_alive): Likewise.
5194 (nbsd_nat_target::thread_name): Likewise.
5195 (nbsd_add_threads): Likewise.
5196 (update_thread_list::post_attach): Likewise.
5197 (nbsd_nat_target::update_thread_list): Likewise.
5198 (post_attach::pid_to_str): Likewise.
5199
6ee448cc
TT
52002020-04-06 Tom Tromey <tromey@adacore.com>
5201
5202 * ada-valprint.c (print_variant_part): Extract the variant field.
5203 (print_field_values): Use the field as the outer value when
5204 recursing.
5205
dea34e8c
TT
52062020-04-06 Tom Tromey <tromey@adacore.com>
5207
5208 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5209 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5210 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5211 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5212 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5213
93689ce9
TT
52142020-04-06 Tom Tromey <tromey@adacore.com>
5215
5216 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5217 TYPE_CODE_ERROR.
5218
79743962
KR
52192020-04-06 Kamil Rytarowski <n54@gmx.com>
5220
5221 * nbsd-tdep.c: Include "gdbarch.h".
5222 Define enum with NetBSD signal numbers.
5223 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5224 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5225 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5226 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5227 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5228 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5229 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5230 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5231 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5232 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5233 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5234 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5235
9e7c9a03
HD
52362020-04-03 Hannes Domani <ssbssa@yahoo.de>
5237
5238 PR gdb/25325
5239 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5240
d9e49b61
TT
52412020-04-03 Tom Tromey <tromey@adacore.com>
5242
5243 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5244 Read constant block.
5245
e0fc5c3f
SM
52462020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5247
5248 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5249 (gdb_bfd_get_full_section_contents): New declaration.
5250 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5251 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5252 gdb_bfd_get_full_section_contents.
5253
e2ff18a0
SM
52542020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5255
5256 * exec.c (build_section_table): Replace internal_error with
5257 gdb_assert.
5258 (section_table_xfer_memory_partial): Likewise.
5259 * mdebugread.c (parse_partial_symbols): Likewise.
5260 * psymtab.c (lookup_partial_symbol): Likewise.
5261 * utils.c (wrap_here): Likewise.
5262
0830d301
TT
52632020-04-02 Tom Tromey <tromey@adacore.com>
5264
5265 * f-lang.c (build_fortran_types): Use arch_type to initialize
5266 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5267
e7da7f8f
TT
52682020-04-02 Tom Tromey <tromey@adacore.com>
5269
5270 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5271 of attributes.
5272
c90d28ac
AB
52732020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5274 Bernd Edlinger <bernd.edlinger@hotmail.de>
5275 Tom Tromey <tromey@adacore.com>
5276
5277 * buildsym.c (buildsym_compunit::record_line): Remove
5278 deduplication code.
5279
1aa98955
TV
52802020-04-02 Tom de Vries <tdevries@suse.de>
5281
5282 PR ada/24671
5283 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5284
d3214198
TV
52852020-04-02 Tom de Vries <tdevries@suse.de>
5286
5287 * dwarf2/read.c (dwarf2_gdb_index_functions,
5288 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5289 NULL.
5290 * psymtab.c (psym_lookup_global_symbol_language): New function.
5291 (psym_functions): Init psym_lookup_global_symbol_language with
5292 psym_lookup_global_symbol_language.
5293 * symfile-debug.c (debug_sym_quick_functions): Init
5294 lookup_global_symbol_language with NULL.
5295 * symfile.c (set_initial_language): Remove fixme comment.
5296 * symfile.h (struct quick_symbol_functions): Add
5297 lookup_global_symbol_language.
5298 * symtab.c (find_quick_global_symbol_language): New function.
5299 (find_main_name): Use find_quick_global_symbol_language.
5300
2836752f
SM
53012020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5302
5303 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5304
64dc2d4b
BE
53052020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5306
5307 * buildsym.c (record_line): Fix undefined behavior and preserve
5308 lines at eof.
5309
bbe3dc41
BE
53102020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5311
5312 * buildsym.c (record_line): Fix the resizing condition.
5313
6b4a335b
TT
53142020-04-01 Tom Tromey <tom@tromey.com>
5315
5316 * value.h (value_literal_complex): Add comment.
5317 * valops.c (value_literal_complex): Refer to value.h.
5318
3638a098
TT
53192020-04-01 Tom Tromey <tom@tromey.com>
5320
5321 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5322 (scalar_type): New rule, from typebase.
5323 (typebase): Use scalar_type. Recognize complex types.
5324 (field_name): Handle FLOAT_KEYWORD.
5325 (ident_tokens): Add _Complex and __complex__.
5326
c34e8714
TT
53272020-04-01 Tom Tromey <tom@tromey.com>
5328
5329 PR exp/25299:
5330 * valarith.c (promotion_type, complex_binop): New functions.
5331 (scalar_binop): Handle complex numbers. Use promotion_type.
5332 (value_pos, value_neg, value_complement): Handle complex numbers.
5333
fa649bb7
TT
53342020-04-01 Tom Tromey <tom@tromey.com>
5335
5336 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5337 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5338 (parse_number): Handle complex numbers.
5339
981c08ce
TT
53402020-04-01 Tom Tromey <tom@tromey.com>
5341
5342 * c-valprint.c (c_decorations): Change complex suffix to "i".
5343
4c99290d
TT
53442020-04-01 Tom Tromey <tom@tromey.com>
5345
5346 * valprint.c (generic_value_print_complex): Use accessors.
5347 * value.h (value_real_part, value_imaginary_part): Declare.
5348 * valops.c (value_real_part, value_imaginary_part): New
5349 functions.
5350 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5351
5b930b45
TT
53522020-04-01 Tom Tromey <tom@tromey.com>
5353
5354 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5355 (read_range_type): Update.
5356 * mdebugread.c (basic_type): Update.
5357 * go-lang.c (build_go_types): Use init_complex_type.
5358 * gdbtypes.h (struct main_type) <complex_type>: New member.
5359 (init_complex_type): Update.
5360 (arch_complex_type): Don't declare.
5361 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5362 Make name if none given. Use alloc_type_copy. Look for cached
5363 complex type.
5364 (arch_complex_type): Remove.
5365 (gdbtypes_post_init): Use init_complex_type.
5366 * f-lang.c (build_fortran_types): Use init_complex_type.
5367 * dwarf2/read.c (read_base_type): Update.
5368 * d-lang.c (build_d_types): Use init_complex_type.
5369 * ctfread.c (read_base_type): Update.
5370
53cccef1
TBA
53712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5372
5373 * infrun.c (stop_all_threads): Update assertion, plus when
5374 stopping threads, take into account that we might be trying
5375 to stop an all-stop target.
5376 (stop_waiting): Call 'stop_all_threads' if there exists a
5377 non-stop target.
5378
a0714d30
TBA
53792020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5380
5381 * target.h (exists_non_stop_target): New function declaration.
5382 * target.c (exists_non_stop_target): New function.
5383
60e22c1e
HD
53842020-04-01 Hannes Domani <ssbssa@yahoo.de>
5385
5386 PR gdb/24789
5387 * eval.c (is_integral_or_integral_reference): New function.
5388 (evaluate_subexp_standard): Allow integer references in
5389 pointer arithmetic.
5390
e139a727
TBA
53912020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5392
5393 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5394 check for no ptid in the stop reply when the target is non-stop.
5395
e0802d59
TT
53962020-04-01 Tom Tromey <tromey@adacore.com>
5397
5398 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5399 "name" parameter to rvalue reference. Initialize m_name_holder.
5400 <lookup_name_info>: New overloads.
5401 <name>: Return gdb::string_view.
5402 <c_str>: New method.
5403 <make_ignore_params>: Update.
5404 <search_name_hash>: Update.
5405 <language_lookup_name>: Return const char *.
5406 <m_name>: Change type.
5407 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5408 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5409 (lookup_name_info::match_any): Update.
5410 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5411 Update.
5412 * minsyms.c (linkage_name_str): Update.
5413 * language.c (default_symbol_name_matcher): Update.
5414 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5415 Update.
5416 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5417 (ada_lookup_name_info::ada_lookup_name_info): Update.
5418 (literal_symbol_name_matcher): Update.
5419
8c072cb6
TT
54202020-04-01 Tom Tromey <tromey@adacore.com>
5421
5422 * psymtab.c (psymtab_search_name): Remove function.
5423 (psym_lookup_symbol): Create search name and lookup name here.
5424 (lookup_partial_symbol): Remove "name" parameter; add
5425 lookup_name.
5426 (psym_expand_symtabs_for_function): Update.
5427
6f29a534
TT
54282020-03-31 Joel Jones <joelkevinjones@gmail.com>
5429
5430 PR tui/25597:
5431 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5432
af62665e
TT
54332020-03-31 Tom Tromey <tromey@adacore.com>
5434
5435 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5436 memcpy.
5437
d1a89da5
NC
54382020-03-30 Nelson Chu <nelson.chu@sifive.com>
5439
5440 * features/riscv/32bit-csr.xml: Regenerated.
5441 * features/riscv/64bit-csr.xml: Regenerated.
5442
d8af9068
TT
54432020-03-30 Tom Tromey <tromey@adacore.com>
5444
5445 * ada-valprint.c (print_variant_part): Update.
5446 * ada-lang.h (ada_which_variant_applies): Update.
5447 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5448 outer_valaddr parameters; replace with "outer" value parameter.
5449 (to_fixed_variant_branch_type): Update.
5450
227c0bf4
PFC
54512020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5452
5453 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5454 <list>. Remove inclusion of observable.h.
5455 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5456 (struct arch_lwp_info): New struct.
5457 (class ppc_linux_dreg_interface): New class.
5458 (struct ppc_linux_process_info): New struct.
5459 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5460 <low_new_clone, low_forget_process, low_prepare_to_resume>
5461 <copy_thread_dreg_state, mark_thread_stale>
5462 <mark_debug_registers_changed, register_hw_breakpoint>
5463 <clear_hw_breakpoint, register_wp, clear_wp>
5464 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5465 <num_memory_accesses, get_trigger_type>
5466 <create_watchpoint_request, hwdebug_point_cmp>
5467 <init_arch_lwp_info, get_arch_lwp_info>
5468 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5469 methods.
5470 <struct ptid_hash>: New inner struct.
5471 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5472 members.
5473 (saved_dabr_value, hwdebug_info, max_slots_number)
5474 (struct hw_break_tuple, struct thread_points, ppc_threads)
5475 (have_ptrace_hwdebug_interface)
5476 (hwdebug_find_thread_points_by_tid)
5477 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5478 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5479 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5480 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5481 use m_dreg_interface.
5482 (hwdebug_point_cmp): Change to...
5483 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5484 reference arguments instead of pointers.
5485 (ppc_linux_nat_target::ranged_break_num_registers): Use
5486 m_dreg_interface.
5487 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5488 m_dreg_interface. Call register_hw_breakpoint.
5489 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5490 m_dreg_interface. Call clear_hw_breakpoint.
5491 (get_trigger_type): Change to...
5492 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5493 comment.
5494 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5495 use m_dreg_interface. Call register_hw_breakpoint.
5496 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5497 use m_dreg_interface. Call clear_hw_breakpoint.
5498 (can_use_watchpoint_cond_accel): Change to...
5499 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5500 method. Update comment, use m_dreg_interface and
5501 m_process_info.
5502 (calculate_dvc): Change to...
5503 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5504 m_dreg_interface.
5505 (num_memory_accesses): Change to...
5506 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5507 (check_condition): Change to...
5508 (ppc_linux_nat_target::check_condition): ...this method.
5509 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5510 comment, use m_dreg_interface.
5511 (create_watchpoint_request): Change to...
5512 (ppc_linux_nat_target::create_watchpoint_request): ...this
5513 method. Use m_dreg_interface.
5514 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5515 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5516 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5517 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5518 (ppc_linux_nat_target::low_forget_process)
5519 (ppc_linux_nat_target::low_new_fork)
5520 (ppc_linux_nat_target::low_new_clone)
5521 (ppc_linux_nat_target::low_delete_thread)
5522 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5523 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5524 only call mark_thread_stale.
5525 (ppc_linux_thread_exit): Remove.
5526 (ppc_linux_nat_target::stopped_data_address): Change to...
5527 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5528 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5529 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5530 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5531 comment. Call low_stopped_data_address.
5532 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5533 m_dreg_interface.
5534 (ppc_linux_nat_target::masked_watch_num_registers): Use
5535 m_dreg_interface.
5536 (ppc_linux_nat_target::copy_thread_dreg_state)
5537 (ppc_linux_nat_target::mark_thread_stale)
5538 (ppc_linux_nat_target::mark_debug_registers_changed)
5539 (ppc_linux_nat_target::register_hw_breakpoint)
5540 (ppc_linux_nat_target::clear_hw_breakpoint)
5541 (ppc_linux_nat_target::register_wp)
5542 (ppc_linux_nat_target::clear_wp)
5543 (ppc_linux_nat_target::init_arch_lwp_info)
5544 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5545 (_initialize_ppc_linux_nat): Remove observer callback.
5546
4db10d8f
PFC
55472020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5548
5549 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5550 (ppc_linux_nat_target::auxv_parse)
5551 (ppc_linux_nat_target::read_description)
5552 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5553 Move up.
5554
1310c1b0
PFC
55552020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5556
5557 * linux-nat.h (low_new_clone): New method.
5558 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5559
69b037c3
SM
55602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5561
5562 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5563 (dbx_expand_psymtab): ... this.
5564 (start_psymtab): Update.
5565 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5566 (mdebug_expand_psymtab): ... this.
5567 (parse_partial_symbols): Update.
5568 (new_psymtab): Update.
5569 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5570 (xcoff_expand_psymtab): ... this.
5571 (xcoff_start_psymtab): Update.
5572
48993951
SM
55732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5574
5575 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5576 <expand_dependencies>: ... this.
5577 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5578 (partial_symtab::expand_dependencies): ... this.
5579 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5580 Update.
5581 (dwarf2_psymtab::expand_psymtab): Update.
5582 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5583 * mdebugread.c (psymtab_to_symtab_1): Update.
5584 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5585
3ad83046
SM
55862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5587
5588 * psympriv.h (discard_psymtab): Remove.
5589 * dbxread.c (dbx_end_psymtab): Update.
5590 * xcoffread.c (xcoff_end_psymtab): Update.
5591
4d1b9ab6
TT
55922020-03-28 Tom Tromey <tom@tromey.com>
5593
5594 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5595 comment.
5596
f1749218
TT
55972020-03-28 Tom Tromey <tom@tromey.com>
5598
5599 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5600
ebea7626
HD
56012020-03-27 Hannes Domani <ssbssa@yahoo.de>
5602
5603 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5604
a879b4d5
JB
56052020-03-26 John Baldwin <jhb@FreeBSD.org>
5606
5607 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5608
0826b30a
TT
56092020-03-26 Tom Tromey <tom@tromey.com>
5610
5611 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5612 (mark_common_block_symbol_computed, read_tag_string_type)
5613 (attr_to_dynamic_prop, read_subrange_type): Update.
5614 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5615 to be methods on struct attribute.
5616 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5617 (read_call_site_scope, partial_die_info::read)
5618 (partial_die_info::read, lookup_die_type, follow_die_ref):
5619 Update.
5620 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5621 from dwarf2_get_ref_die_offset.
5622 (attribute::constant_value): New method, from
5623 dwarf2_get_attr_constant_value.
5624 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5625 Declare method.
5626 <constant_value>: New method.
5627
2b2558bf
TT
56282020-03-26 Tom Tromey <tom@tromey.com>
5629
5630 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5631 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5632 (dwarf_type_encoding_name): Move to stringify.c.
5633 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5634 * dwarf2/stringify.c: New file.
5635 * dwarf2/stringify.h: New file.
5636
eeb64781
TT
56372020-03-26 Tom Tromey <tom@tromey.com>
5638
5639 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5640 Rewrite.
5641
a39fdb41
TT
56422020-03-26 Tom Tromey <tom@tromey.com>
5643
5644 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5645 methods.
5646 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5647 (lookup_ranges_base): Likewise.
5648 (read_cutu_die_from_dwo, read_full_die_1): Update.
5649
436c571c
TT
56502020-03-26 Tom Tromey <tom@tromey.com>
5651
5652 * dwarf2/read.c (read_import_statement, read_file_scope)
5653 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5654 (read_lexical_block_scope, read_call_site_scope)
5655 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5656 (handle_struct_member_die, process_structure_scope)
5657 (update_enumeration_type_from_children)
5658 (process_enumeration_scope, read_array_type, read_common_block)
5659 (read_namespace, read_module, read_subroutine_type): Update.
5660 (sibling_die): Remove.
5661
052c8bb8
TT
56622020-03-26 Tom Tromey <tom@tromey.com>
5663
5664 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5665 (build_type_psymtabs_reader, read_structure_type)
5666 (read_enumeration_type, read_full_die_1): Update.
5667 (dwarf2_attr_no_follow): Move to die.h.
5668 * dwarf2/die.h (struct die_info) <attr>: New method.
5669
2b24b6e4
TT
56702020-03-26 Tom Tromey <tom@tromey.com>
5671
5672 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5673 <base_address>: Now an optional.
5674 (dwarf2_find_base_address, dwarf2_rnglists_process)
5675 (dwarf2_ranges_process, fill_in_loclist_baton)
5676 (dwarf2_symbol_mark_computed): Update.
5677
c2d50fd0
TT
56782020-03-26 Tom Tromey <tom@tromey.com>
5679
5680 * dwarf2/read.c (struct die_info): Move to die.h.
5681 * dwarf2/die.h: New file.
5682
0df7ad3a
TT
56832020-03-26 Tom Tromey <tom@tromey.com>
5684
5685 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5686 * dwarf2/read.c
5687 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5688 Move to line-header.c.
5689 (read_checked_initial_length_and_offset, read_formatted_entries):
5690 Likewise.
5691 (dwarf_decode_line_header): Split into two.
5692 * dwarf2/line-header.c
5693 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5694 Move from read.c.
5695 (read_checked_initial_length_and_offset, read_formatted_entries):
5696 Likewise.
5697 (dwarf_decode_line_header): New function, split from read.c.
5698
86c0bb4c
TT
56992020-03-26 Tom Tromey <tom@tromey.com>
5700
5701 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5702 Declare method.
5703 * dwarf2/read.c (read_attribute_value): Update.
5704 (dwarf2_per_objfile::read_line_string): Rename from
5705 read_indirect_line_string.
5706 (read_formatted_entries): Update.
5707
2ef46c2f
TT
57082020-03-26 Tom Tromey <tom@tromey.com>
5709
5710 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5711 variable.
5712
4f9c1eda
TT
57132020-03-26 Tom Tromey <tom@tromey.com>
5714
5715 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5716 const.
5717 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5718 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5719 parameter const.
5720
5a0e026f
TT
57212020-03-26 Tom Tromey <tom@tromey.com>
5722
5723 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5724 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5725 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5726 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5727
8844c11b
TT
57282020-03-26 Tom Tromey <tom@tromey.com>
5729
5730 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5731 file_names_size, file_full_name, file_file_name>: Use const.
5732 <file_name_at, file_names>: Add const overload.
5733 * dwarf2/line-header.c (line_header::file_file_name)
5734 (line_header::file_full_name): Update.
5735
c90ec28a
TT
57362020-03-26 Tom Tromey <tom@tromey.com>
5737
5738 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5739 (macro_start_file, consume_improper_spaces)
5740 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5741 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5742 (dwarf_decode_macros): Move to macro.c.
5743 * dwarf2/macro.c: New file.
5744 * dwarf2/macro.h: New file.
5745 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5746
4f44ae6c
TT
57472020-03-26 Tom Tromey <tom@tromey.com>
5748
5749 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5750 method.
5751 * dwarf2/section.c: New method. From
5752 read_indirect_string_at_offset_from.
5753 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5754 (read_indirect_string_at_offset_from): Move to section.c.
5755 (read_indirect_string_at_offset): Rewrite.
5756 (read_indirect_line_string_at_offset): Remove.
5757 (read_indirect_string, read_indirect_line_string)
5758 (dwarf_decode_macro_bytes): Update.
5759
a0194fa8
TT
57602020-03-26 Tom Tromey <tom@tromey.com>
5761
5762 * dwarf2/section.h (struct dwarf2_section_info)
5763 <overload_complaint>: Declare.
5764 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5765 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5766 Rename from dwarf2_section_buffer_overflow_complaint.
5767 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5768 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5769
3d27bbdb
TT
57702020-03-26 Tom Tromey <tom@tromey.com>
5771
5772 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5773 Declare.
5774 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5775 Move from read.c.
5776 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5777 to section.c.
5778
9eac9650
TT
57792020-03-26 Tom Tromey <tom@tromey.com>
5780
5781 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5782
bf80d710
TT
57832020-03-26 Tom Tromey <tom@tromey.com>
5784
5785 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5786 "builder".
5787 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5788 parameter.
5789 (dwarf_decode_macros): Update.
5790
0314b390
TT
57912020-03-26 Tom Tromey <tom@tromey.com>
5792
5793 * dwarf2/read.c (read_attribute_value): Update.
5794 (read_indirect_string_from_dwz): Move to dwz.c; change into
5795 method.
5796 (dwarf_decode_macro_bytes): Update.
5797 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5798 * dwarf2/dwz.c: New file.
5799 * Makefile.in (COMMON_SFILES): Add dwz.c.
5800
9fda78b6
TT
58012020-03-26 Tom Tromey <tom@tromey.com>
5802
5803 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5804 * dwarf2/read.c: Add include.
5805 * dwarf2/index-write.c: Add include.
5806 * dwarf2/index-cache.c: Add include.
5807 * dwarf2/dwz.h: New file.
5808
33aa3c10
TT
58092020-03-25 Tom Tromey <tom@tromey.com>
5810
5811 * compile/compile-object-load.c (get_out_value_type): Mention
5812 correct symbol name in error message.
5813
d503b685
HD
58142020-03-25 Hannes Domani <ssbssa@yahoo.de>
5815
5816 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5817
7b1eff95
TV
58182020-03-25 Tom de Vries <tdevries@suse.de>
5819
5820 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5821 * symmisc.c (dump_symtab_1): Print user and includes fields.
5822 (maintenance_info_symtabs): Same.
5823
dd895392
AB
58242020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5825
5826 PR gdb/25534
5827 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5828 (riscv_regcache_cooked_write): New function.
5829 (riscv_push_dummy_call): Use new function.
5830 (riscv_return_value): Likewise.
5831
5ab2fbf1
SM
58322020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5833
5834 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5835 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5836 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5837 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5838 * infrun.c (follow_fork): Likewise.
5839 (follow_fork_inferior): Likewise.
5840 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5841 * linux-nat.h (class linux_nat_target): Likewise.
5842 * remote.c (class remote_target) <follow_fork>: Likewise.
5843 (remote_target::follow_fork): Likewise.
5844 * target-delegates.c: Re-generate.
5845 * target.c (default_follow_fork): Likewise.
5846 (target_follow_fork): Likewise.
5847 * target.h (struct target_ops) <follow_fork>: Likewise.
5848 (target_follow_fork): Likewise.
5849
a64fafb5
TV
58502020-03-24 Tom de Vries <tdevries@suse.de>
5851
5852 * psymtab.c (maintenance_info_psymtabs): Print user field.
5853
fe26d3a3
TT
58542020-03-20 Tom Tromey <tromey@adacore.com>
5855
5856 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5857 const.
5858 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5859 const.
5860
c884cc46
SM
58612020-03-20 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * ptrace.m4: Don't check for ptrace declaration.
5864 * config.in: Re-generate.
5865 * configure: Re-generate.
5866 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5867 not defined.
5868
1ff700c2
KR
58692020-03-20 Kamil Rytarowski <n54@gmx.com>
5870
5871 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5872 `PTRACE_TYPE_RET'.
5873 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5874 * sparc-nat.c (gdb_ptrace): Likewise.
5875 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5876
f7d4f0b1
TT
58772020-03-20 Tom Tromey <tromey@adacore.com>
5878
5879 * c-exp.y (lex_one_token): Fix assert.
5880
f67210ff
TT
58812020-03-20 Tom Tromey <tromey@adacore.com>
5882
5883 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5884 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5885 strncpy call.
5886
1773be9e
TT
58872020-03-20 Tom Tromey <tromey@adacore.com>
5888
5889 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5890
70304be9
TT
58912020-03-20 Tom Tromey <tromey@adacore.com>
5892
5893 * ada-valprint.c (print_variant_part): Remove parameters; switch
5894 to value-based API.
5895 (print_field_values): Likewise.
5896 (ada_val_print_struct_union): Likewise.
5897 (ada_value_print_1): Update.
5898
9faa006d
KR
58992020-03-20 Kamil Rytarowski <n54@gmx.com>
5900
5901 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5902 nbsd_nat_target instead of inf_ptrace_target.
5903 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5904 nbsd_nat_target.
5905
4a90f062
KR
59062020-03-20 Kamil Rytarowski <n54@gmx.com>
5907
5908 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5909 it to the ptrace call.
5910 * (store_registers): Likewise.
5911
59122020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5913
5914 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5915 it to the ptrace call.
5916 * (store_registers): Likewise.
5917
2d07da27
LM
59182020-03-19 Luis Machado <luis.machado@linaro.org>
5919
5920 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5921 valid, fetch vg value from ptrace.
5922
f09db380
KR
59232020-03-19 Kamil Rytarowski <n54@gmx.com>
5924 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5925 * inf-ptrace.c: Likewise.
5926 * (gdb_ptrace): Add.
5927 * (inf_ptrace_target::resume): Update.
5928 * (inf_ptrace_target::xfer_partial): Likewise.
5929 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5930 * (inf_ptrace_peek_poke): Update.
5931
fcc7376e
KR
59322020-03-19 Kamil Rytarowski <n54@gmx.com>
5933
5934 * x86-bsd-nat.c (gdb_ptrace): New.
5935 * (x86bsd_dr_set): Add new argument `ptid'.
5936 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5937 x86bsd_dr_set_addr): Update.
5938
cada5fc9
AB
59392020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5940
5941 * remote.c (remote_target::process_stop_reply): Handle events for
5942 all threads differently.
5943
19a2740f
AB
59442020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 * completer.c (completion_tracker::remove_completion): Define new
5947 function.
5948 * completer.h (completion_tracker::remove_completion): Declare new
5949 function.
5950 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5951 when adding a C++ function symbol.
5952
724fd9ba
AB
59532020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5954
5955 * completer.c (completion_tracker::completion_hash_entry): Define
5956 new class.
5957 (advance_to_filename_complete_word_point): Call
5958 recompute_lowest_common_denominator.
5959 (completion_tracker::completion_tracker): Call discard_completions
5960 to setup the hash table.
5961 (completion_tracker::discard_completions): Allow for being called
5962 from the constructor, pass new equal function, and element deleter
5963 when constructing the hash table. Initialise new class member
5964 variables.
5965 (completion_tracker::maybe_add_completion): Remove use of
5966 m_entries_vec, and store more information into m_entries_hash.
5967 (completion_tracker::recompute_lcd_visitor): New function, most
5968 content taken from...
5969 (completion_tracker::recompute_lowest_common_denominator):
5970 ...here, this now just visits each item in the hash calling the
5971 above visitor.
5972 (completion_tracker::build_completion_result): Remove use of
5973 m_entries_vec, call recompute_lowest_common_denominator.
5974 * completer.h (completion_tracker::have_completions): Remove use
5975 of m_entries_vec.
5976 (completion_tracker::completion_hash_entry): Declare new class.
5977 (completion_tracker::recompute_lowest_common_denominator): Change
5978 function signature.
5979 (completion_tracker::recompute_lcd_visitor): Declare new function.
5980 (completion_tracker::m_entries_vec): Delete.
5981 (completion_tracker::m_entries_hash): Initialize to NULL.
5982 (completion_tracker::m_lowest_common_denominator_valid): New
5983 member variable.
5984 (completion_tracker::m_lowest_common_denominator_max_length): New
5985 member variable.
5986
5a82b8a1
KR
59872020-03-17 Kamil Rytarowski <n54@gmx.com>
5988
5989 * regformats/regdef.h: Put reg in gdb namespace.
5990
fb516a69
KR
59912020-03-17 Kamil Rytarowski <n54@gmx.com>
5992
5993 * i386-bsd-nat.c (gdb_ptrace): New.
5994 * (i386bsd_fetch_inferior_registers,
5995 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5996 * (i386bsd_fetch_inferior_registers,
5997 i386bsd_store_inferior_registers) Use gdb_ptrace.
5998
1c0aa1fb
KR
59992020-03-17 Kamil Rytarowski <n54@gmx.com>
6000
6001 * amd64-bsd-nat.c (gdb_ptrace): New.
6002 * (amd64bsd_fetch_inferior_registers,
6003 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6004 * (amd64bsd_fetch_inferior_registers,
6005 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6006
5ccd2fb7
KR
60072020-03-17 Kamil Rytarowski <n54@gmx.com>
6008
6009 * user-regs.c (user_reg::read): Rename to...
6010 (user_reg::xread): ...this.
6011 * (append_user_reg): Rename argument `read' to `xread'.
6012 * (user_reg_add_builtin): Likewise.
6013 * (user_reg_add): Likewise.
6014 * (value_of_user_reg): Likewise.
6015
2108a63a
KR
60162020-03-17 Kamil Rytarowski <n54@gmx.com>
6017
6018 * sparc-nat.c (gdb_ptrace): New.
6019 * sparc-nat.c (sparc_fetch_inferior_registers)
6020 (sparc_store_inferior_registers) Remove obsolete comment.
6021 * sparc-nat.c (sparc_fetch_inferior_registers)
6022 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6023 * sparc-nat.c (sparc_fetch_inferior_registers)
6024 (sparc_store_inferior_registers) Use gdb_ptrace.
6025
a225c9a8
KR
60262020-03-17 Kamil Rytarowski <n54@gmx.com>
6027
6028 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6029 it to the ptrace call.
6030 * sh-nbsd-nat.c (store_registers): Likewise.
6031
98097623
KR
60322020-03-17 Kamil Rytarowski <n54@gmx.com>
6033
6034 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6035 nbsd_nat_target instead of inf_ptrace_target.
6036 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6037 nbsd_nat_target.
6038
9e38d619
KR
60392020-03-17 Kamil Rytarowski <n54@gmx.com>
6040
6041 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6042
a2ecbe9f
KR
60432020-03-17 Kamil Rytarowski <n54@gmx.com>
6044
6045 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6046 <sys/sysctl.h>.
6047 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6048
58990295
TV
60492020-03-17 Tom de Vries <tdevries@suse.de>
6050
6051 PR gdb/23710
6052 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6053 fields.
6054 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6055 fields.
6056 (process_imported_unit_die): Skip import of c++ CUs.
6057
771dd3a8
TT
60582020-03-16 Tom Tromey <tom@tromey.com>
6059
6060 * p-valprint.c (pascal_object_print_value): Initialize
6061 base_value.
6062
817a7585
AK
60632020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6064 Shahab Vahedi <shahab@synopsys.com>
6065
6066 * Makefile.in: Add arch/arc.o
6067 * configure.tgt: Likewise.
6068 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6069 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6070 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6071 * arc-tdep.h (arc_read_description): Add proto type.
6072 * arch/arc.c: New file.
6073 * arch/arc.h: Likewise.
6074 * features/Makefile: Replace old target descriptions with new.
6075 * features/arc-arcompact.c: Remove.
6076 * features/arc-arcompact.xml: Likewise.
6077 * features/arc-v2.c: Likewise
6078 * features/arc-v2.xml: Likewise
6079 * features/arc/aux-arcompact.xml: New file.
6080 * features/arc/aux-v2.xml: Likewise.
6081 * features/arc/core-arcompact.xml: Likewise.
6082 * features/arc/core-v2.xml: Likewise.
6083 * features/arc/aux-arcompact.c: Generate.
6084 * features/arc/aux-v2.c: Likewise.
6085 * features/arc/core-arcompact.c: Likewise.
6086 * features/arc/core-v2.c: Likewise.
6087 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6088
67430cd0
TT
60892020-03-16 Tom Tromey <tromey@adacore.com>
6090
6091 PR gdb/25663:
6092 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6093 putting value into bcache.
6094
30efb6c7
SM
60952020-03-16 Simon Marchi <simon.marchi@efficios.com>
6096
6097 PR gdb/21500
6098 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6099 to...
6100 (amd64_windows_init_abi_common): ... this. Don't set size of
6101 long type.
6102 (amd64_windows_init_abi): New function.
6103 (amd64_cygwin_init_abi): New function.
6104 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6105 the Cygwin OS ABI.
6106 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6107 comment.
6108
8db52437
SM
61092020-03-16 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6112 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6113 (pe_import_directory_entry): New struct type.
6114 (is_linked_with_cygwin_dll): New function.
6115 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6116 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6117 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6118
5982a56a
SM
61192020-03-16 Simon Marchi <simon.marchi@efficios.com>
6120
6121 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6122 i386_cygwin_core_osabi_sniffer.
6123
7a1998df
SM
61242020-03-16 Simon Marchi <simon.marchi@efficios.com>
6125
6126 * i386-cygwin-tdep.c: Rename to...
6127 * i386-windows-tdep.c: ... this.
6128 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6129 i386-windows-tdep.c.
6130 * configure.tgt: Likewise.
6131
053205cc
SM
61322020-03-16 Simon Marchi <simon.marchi@efficios.com>
6133
6134 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6135 * osabi.c (gdb_osabi_names): Add "Windows".
6136 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6137 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6138 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6139 i386_cygwin_osabi_sniffer.
6140 (_initialize_i386_cygwin_tdep): Register OS ABI
6141 GDB_OSABI_WINDOWS for i386.
6142 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6143 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6144 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6145 for x86-64.
6146 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6147 when the target matches '*-*-mingw*'.
6148
fe4b2ee6
SM
61492020-03-16 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * defs.h (enum gdb_osabi): Move to...
6152 * osabi.h (enum gdb_osabi): ... here.
6153 * gdbarch.sh: Include osabi.h in gdbarch.h.
6154 * gdbarch.h: Re-generate.
6155
cb9b645d
SM
61562020-03-16 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6159 function.
6160 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6161
3293bbaf
TT
61622020-03-14 Tom Tromey <tom@tromey.com>
6163
6164 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6165 for C++.
6166 (c_type_print_modifier): Likewise. Add "language" parameter.
6167 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6168 (c_type_print_base_1): Update.
6169 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6170 constants.
6171 * type-stack.c (type_stack::insert): Handle tp_atomic and
6172 tp_restrict.
6173 (type_stack::follow_type_instance_flags): Likewise.
6174 (type_stack::follow_types): Likewise. Merge type-following code.
6175 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6176 (space_identifier, cv_with_space_id)
6177 (const_or_volatile_or_space_identifier_noopt)
6178 (const_or_volatile_or_space_identifier): Remove.
6179 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6180 rules.
6181 (ptr_operator, typebase): Update.
6182 (enum token_flag) <FLAG_C>: New constant.
6183 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6184 "_Atomic".
6185 (lex_one_token): Handle FLAG_C.
6186
154151a6
KR
61872020-03-14 Kamil Rytarowski <n54@gmx.com>
6188
6189 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6190 it to the ptrace call.
6191 * m68k-bsd-nat.c (store_registers): Likewise.
6192
bc107784
KR
61932020-03-14 Kamil Rytarowski <n54@gmx.com>
6194
6195 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6196 gdb_byte *.
6197 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6198 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6199 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6200
01a80117
KR
62012020-03-14 Kamil Rytarowski <n54@gmx.com>
6202
6203 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6204 nbsd_nat_target instead of inf_ptrace_target.
6205 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6206 nbsd_nat_target.
6207
f90280ca
KR
62082020-03-14 Kamil Rytarowski <n54@gmx.com>
6209
6210 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6211 register_t.
6212
6def66f1
KR
62132020-03-14 Kamil Rytarowski <n54@gmx.com>
6214
6215 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6216 it to the ptrace call.
6217 * alpha-bsd-nat.c (store_registers): Likewise.
6218
66eaca97
KR
62192020-03-14 Kamil Rytarowski <n54@gmx.com>
6220
6221 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6222 includes.
6223 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6224 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6225 fill_fpregset): Likewise.
6226
4fed520b
KR
62272020-03-14 Kamil Rytarowski <n54@gmx.com>
6228
6229 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6230 nbsd_nat_target instead of inf_ptrace_target.
6231 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6232 nbsd_nat_target.
6233
2190cf06
KR
62342020-03-14 Kamil Rytarowski <n54@gmx.com>
6235
6236 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6237 register_t.
6238
75c56d3d
KR
62392020-03-14 Kamil Rytarowski <n54@gmx.com>
6240
6241 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6242 it to the ptrace call.
6243 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6244 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6245 * arm-nbsd-nat.c (store_register): Likewise.
6246 * arm-nbsd-nat.c (store_regs): Likewise.
6247 * arm-nbsd-nat.c (store_fp_register): Likewise.
6248 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6249
6018d381
KR
62502020-03-14 Kamil Rytarowski <n54@gmx.com>
6251
6252 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6253 nbsd_nat_target instead of inf_ptrace_target.
6254 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6255 nbsd_nat_target.
6256
013f99f0
KR
62572020-03-14 Kamil Rytarowski <n54@gmx.com>
6258
6259 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6260 it to the ptrace call.
6261 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6262
12753073
KR
62632020-03-14 Kamil Rytarowski <n54@gmx.com>
6264
6227b330
KR
6265 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6266 it to the ptrace call.
6267 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6268
62692020-03-14 Kamil Rytarowski <n54@gmx.com>
6270
6271 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6272 gdb_byte *.
12753073
KR
6273 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6274
d5be5fa4
KR
62752020-03-14 Kamil Rytarowski <n54@gmx.com>
6276
6277 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6278 instead of inf_ptrace_target.
6279 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6280 nbsd_nat_target.
6281
8110f842
KR
62822020-03-14 Kamil Rytarowski <n54@gmx.com>
6283
6284 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6285 register_t.
6286
52feded7
KR
62872020-03-14 Kamil Rytarowski <n54@gmx.com>
6288
6289 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6290 register_t.
6291
25567eee
KR
62922020-03-14 Kamil Rytarowski <n54@gmx.com>
6293
6294 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6295 register_t.
6296
426a9c18
TT
62972020-03-13 Tom Tromey <tom@tromey.com>
6298
6299 * value.h (val_print): Don't declare.
6300 * valprint.h (val_print_array_elements)
6301 (val_print_scalar_formatted, generic_val_print): Don't declare.
6302 * valprint.c (generic_val_print_array): Take a struct value.
6303 (generic_val_print_ptr, generic_val_print_memberptr)
6304 (generic_val_print_bool, generic_val_print_int)
6305 (generic_val_print_char, generic_val_print_complex)
6306 (generic_val_print): Remove.
6307 (generic_value_print): Update.
6308 (do_val_print): Remove unused parameters. Don't call
6309 la_val_print.
6310 (val_print): Remove.
6311 (common_val_print): Update. Don't call value_check_printable.
6312 (val_print_scalar_formatted, val_print_array_elements): Remove.
6313 * rust-lang.c (rust_val_print): Remove.
6314 (rust_language_defn): Update.
6315 * p-valprint.c (pascal_val_print): Remove.
6316 (pascal_value_print_inner): Update.
6317 (pascal_object_print_val_fields, pascal_object_print_val):
6318 Remove.
6319 (pascal_object_print_static_field): Update.
6320 * p-lang.h (pascal_val_print): Don't declare.
6321 * p-lang.c (pascal_language_defn): Update.
6322 * opencl-lang.c (opencl_language_defn): Update.
6323 * objc-lang.c (objc_language_defn): Update.
6324 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6325 * m2-lang.h (m2_val_print): Don't declare.
6326 * m2-lang.c (m2_language_defn): Update.
6327 * language.h (struct language_defn) <la_val_print>: Remove.
6328 * language.c (unk_lang_value_print_inner): Rename. Change
6329 argument types.
6330 (unknown_language_defn, auto_language_defn): Update.
6331 * go-valprint.c (go_val_print): Remove.
6332 * go-lang.h (go_val_print): Don't declare.
6333 * go-lang.c (go_language_defn): Update.
6334 * f-valprint.c (f_val_print): Remove.
6335 * f-lang.h (f_value_print): Don't declare.
6336 * f-lang.c (f_language_defn): Update.
6337 * d-valprint.c (d_val_print): Remove.
6338 * d-lang.h (d_value_print): Don't declare.
6339 * d-lang.c (d_language_defn): Update.
6340 * cp-valprint.c (cp_print_value_fields)
6341 (cp_print_value_fields_rtti, cp_print_value): Remove.
6342 (cp_print_static_field): Update.
6343 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6344 (c_val_print_struct, c_val_print_union, c_val_print_int)
6345 (c_val_print_memberptr, c_val_print): Remove.
6346 * c-lang.h (c_val_print_array, cp_print_value_fields)
6347 (cp_print_value_fields_rtti): Don't declare.
6348 * c-lang.c (c_language_defn, cplus_language_defn)
6349 (asm_language_defn, minimal_language_defn): Update.
6350 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6351 (ada_val_print_enum): Take a struct value.
6352 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6353 (ada_val_print): Remove.
6354 (ada_value_print_1): Update.
6355 (printable_val_type): Remove.
6356 * ada-lang.h (ada_val_print): Don't declare.
6357 * ada-lang.c (ada_language_defn): Update.
6358
42331a1e
TT
63592020-03-13 Tom Tromey <tom@tromey.com>
6360
6361 * valprint.c (do_val_print): Update.
6362 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6363 a struct value.
6364 (value_to_value_object_no_release): Declare.
6365 * python/py-value.c (value_to_value_object_no_release): New
6366 function.
6367 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6368 struct value.
6369 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6370 function.
6371 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6372 a struct value.
6373 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6374 Declare.
6375 (gdbscm_apply_val_pretty_printer): Take a struct value.
6376 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6377 value.
6378 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6379 value.
6380 * extension-priv.h (struct extension_language_ops)
6381 <apply_val_pretty_printer>: Take a struct value.
6382 * cp-valprint.c (cp_print_value): Create a struct value.
6383 (cp_print_value): Update.
6384
3a916a97
TT
63852020-03-13 Tom Tromey <tom@tromey.com>
6386
6387 * ada-valprint.c (print_field_values): Call common_val_print.
6388
b59eac37
TT
63892020-03-13 Tom Tromey <tom@tromey.com>
6390
6391 * ada-valprint.c (val_print_packed_array_elements): Remove
6392 bitoffset and val parameters. Call common_val_print.
6393 (ada_val_print_string): Remove offset, address, and original_value
6394 parameters.
6395 (ada_val_print_array): Update.
6396 (ada_value_print_array): New function.
6397 (ada_value_print_1): Call it.
6398
03371129
TT
63992020-03-13 Tom Tromey <tom@tromey.com>
6400
6401 * ada-valprint.c (ada_value_print): Use common_val_print.
6402
2e088f8b
TT
64032020-03-13 Tom Tromey <tom@tromey.com>
6404
6405 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6406
39ef85a8
TT
64072020-03-13 Tom Tromey <tom@tromey.com>
6408
6409 * ada-valprint.c (ada_value_print_num): New function.
6410 (ada_value_print_1): Use it.
6411
b9fa6e07
TT
64122020-03-13 Tom Tromey <tom@tromey.com>
6413
6414 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6415
416595d6
TT
64162020-03-13 Tom Tromey <tom@tromey.com>
6417
6418 * ada-valprint.c (ada_value_print_ptr): New function.
6419 (ada_value_print_1): Use it.
6420
5b5e15ec
TT
64212020-03-13 Tom Tromey <tom@tromey.com>
6422
6423 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6424 call common_val_print.
6425 (ada_val_print_1): Update.
6426 (ada_value_print_1): New function.
6427 (ada_value_print_inner): Rewrite.
6428
fbf54e75
TT
64292020-03-13 Tom Tromey <tom@tromey.com>
6430
6431 * cp-valprint.c (cp_print_value_fields): Update.
6432 (cp_print_value): New function.
6433
64b653ca
TT
64342020-03-13 Tom Tromey <tom@tromey.com>
6435
6436 * m2-valprint.c (m2_value_print_inner): Use
6437 cp_print_value_fields.
6438 * cp-valprint.c (cp_print_value_fields): New function.
6439 * c-valprint.c (c_value_print_struct): New function.
6440 (c_value_print_inner): Use c_value_print_struct.
6441 * c-lang.h (cp_print_value_fields): Declare.
6442
6999f067
TT
64432020-03-13 Tom Tromey <tom@tromey.com>
6444
6445 * c-valprint.c (c_value_print_array): New function.
6446 (c_value_print_inner): Use it.
6447
ce80b8bd
TT
64482020-03-13 Tom Tromey <tom@tromey.com>
6449
6450 * c-valprint.c (c_value_print_memberptr): New function.
6451 (c_value_print_inner): Use it.
6452
2faac269
TT
64532020-03-13 Tom Tromey <tom@tromey.com>
6454
6455 * c-valprint.c (c_value_print_int): New function.
6456 (c_value_print_inner): Use it.
6457
da3e2c29
TT
64582020-03-13 Tom Tromey <tom@tromey.com>
6459
6460 * c-valprint.c (c_value_print_ptr): New function.
6461 (c_value_print_inner): Use it.
6462
50836231
TT
64632020-03-13 Tom Tromey <tom@tromey.com>
6464
6465 * c-valprint.c (c_value_print_inner): Rewrite.
6466
4f412b6e
TT
64672020-03-13 Tom Tromey <tom@tromey.com>
6468
6469 * valprint.c (generic_value_print_complex): New function.
6470 (generic_value_print): Use it.
6471
f5354008
TT
64722020-03-13 Tom Tromey <tom@tromey.com>
6473
6474 * valprint.c (generic_val_print_float): Don't call
6475 val_print_scalar_formatted.
6476 (generic_val_print, generic_value_print): Update.
6477
3eec3b05
TT
64782020-03-13 Tom Tromey <tom@tromey.com>
6479
6480 * valprint.c (generic_value_print_char): New function
6481 (generic_value_print): Use it.
6482
fdddfccb
TT
64832020-03-13 Tom Tromey <tom@tromey.com>
6484
6485 * valprint.c (generic_value_print_int): New function.
6486 (generic_value_print): Use it.
6487
6dde7521
TT
64882020-03-13 Tom Tromey <tom@tromey.com>
6489
6490 * valprint.c (generic_value_print_bool): New function.
6491 (generic_value_print): Use it.
6492
4112d2e6
TT
64932020-03-13 Tom Tromey <tom@tromey.com>
6494
6495 * valprint.c (generic_val_print_func): Simplify.
6496 (generic_val_print, generic_value_print): Update.
6497
65786af6
TT
64982020-03-13 Tom Tromey <tom@tromey.com>
6499
6500 * valprint.c (generic_val_print_flags): Remove.
6501 (generic_val_print, generic_value_print): Update.
6502 (val_print_type_code_flags): Add original_value parameter.
6503
40f3ce18
TT
65042020-03-13 Tom Tromey <tom@tromey.com>
6505
6506 * valprint.c (generic_val_print): Update.
6507 (generic_value_print): Update.
6508 * valprint.c (generic_val_print_enum): Don't call
6509 val_print_scalar_formatted.
6510
2a5b130b
TT
65112020-03-13 Tom Tromey <tom@tromey.com>
6512
6513 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6514 * valprint.c (generic_value_print_ptr): New function.
6515
abc66ce9
TT
65162020-03-13 Tom Tromey <tom@tromey.com>
6517
6518 * valprint.c (generic_value_print): Rewrite.
6519
07a32858
TT
65202020-03-13 Tom Tromey <tom@tromey.com>
6521
6522 * p-valprint.c (pascal_object_print_value_fields)
6523 (pascal_object_print_value): New functions.
6524
64d64d3a
TT
65252020-03-13 Tom Tromey <tom@tromey.com>
6526
6527 * p-valprint.c (pascal_value_print_inner): Rewrite.
6528
6a95a1f5
TT
65292020-03-13 Tom Tromey <tom@tromey.com>
6530
6531 * f-valprint.c (f_value_print_innner): Rewrite.
6532
59fcdac6
TT
65332020-03-13 Tom Tromey <tom@tromey.com>
6534
6535 * m2-valprint.c (m2_print_unbounded_array): New overload.
6536 (m2_print_unbounded_array): Update.
6537 (m2_print_array_contents): Take a struct value.
6538 (m2_value_print_inner): Rewrite.
6539
d133c3e1
TT
65402020-03-13 Tom Tromey <tom@tromey.com>
6541
6542 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6543 (d_value_print_inner): New function.
6544 * d-lang.h (d_value_print_inner): Declare.
6545 * d-lang.c (d_language_defn): Use d_value_print_inner.
6546
23b0f06b
TT
65472020-03-13 Tom Tromey <tom@tromey.com>
6548
6549 * go-valprint.c (go_value_print_inner): New function.
6550 * go-lang.h (go_value_print_inner): Declare.
6551 * go-lang.c (go_language_defn): Use go_value_print_inner.
6552
5f56f7cb
TT
65532020-03-13 Tom Tromey <tom@tromey.com>
6554
6555 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6556 API.
6557 (rust_val_print): Rewrite.
6558 (rust_value_print_inner): New function, from rust_val_print.
6559 (rust_language_defn): Use rust_value_print_inner.
6560
26792ee0
TT
65612020-03-13 Tom Tromey <tom@tromey.com>
6562
6563 * ada-valprint.c (ada_value_print_inner): New function.
6564 * ada-lang.h (ada_value_print_inner): Declare.
6565 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6566
24051bbe
TT
65672020-03-13 Tom Tromey <tom@tromey.com>
6568
6569 * f-valprint.c (f_value_print_innner): New function.
6570 * f-lang.h (f_value_print_innner): Declare.
6571 * f-lang.c (f_language_defn): Use f_value_print_innner.
6572
c0941be6
TT
65732020-03-13 Tom Tromey <tom@tromey.com>
6574
6575 * p-valprint.c (pascal_value_print_inner): New function.
6576 * p-lang.h (pascal_value_print_inner): Declare.
6577 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6578
62c4663d
TT
65792020-03-13 Tom Tromey <tom@tromey.com>
6580
6581 * m2-valprint.c (m2_value_print_inner): New function.
6582 * m2-lang.h (m2_value_print_inner): Declare.
6583 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6584
62182190
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6588 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6589 * c-valprint.c (c_value_print_inner): New function.
6590 * c-lang.h (c_value_print_inner): Declare.
6591 * c-lang.c (c_language_defn, cplus_language_defn)
6592 (asm_language_defn, minimal_language_defn): Use
6593 c_value_print_inner.
6594
1e592a8a
TT
65952020-03-13 Tom Tromey <tom@tromey.com>
6596
6597 * p-valprint.c (pascal_object_print_value_fields): Now static.
6598 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6599
7fe471e9
TT
66002020-03-13 Tom Tromey <tom@tromey.com>
6601
6602 * c-valprint.c (c_val_print_array): Simplify.
6603
d121c6ce
TT
66042020-03-13 Tom Tromey <tom@tromey.com>
6605
6606 * valprint.c (value_print_array_elements): New function.
6607 * valprint.h (value_print_array_elements): Declare.
6608
4dba70ee
TT
66092020-03-13 Tom Tromey <tom@tromey.com>
6610
6611 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6612 * mips-tdep.c (mips_print_register): Use
6613 value_print_scalar_formatted.
6614
4f9ae810
TT
66152020-03-13 Tom Tromey <tom@tromey.com>
6616
6617 * valprint.h (value_print_scalar_formatted): Declare.
6618 * valprint.c (value_print_scalar_formatted): New function.
6619
156bfec9
TT
66202020-03-13 Tom Tromey <tom@tromey.com>
6621
6622 * valprint.h (generic_value_print): Declare.
6623 * valprint.c (generic_value_print): New function.
6624
2b4e573d
TT
66252020-03-13 Tom Tromey <tom@tromey.com>
6626
6627 * valprint.c (do_val_print): Call la_value_print_inner, if
6628 available.
6629 * rust-lang.c (rust_language_defn): Update.
6630 * p-lang.c (pascal_language_defn): Update.
6631 * opencl-lang.c (opencl_language_defn): Update.
6632 * objc-lang.c (objc_language_defn): Update.
6633 * m2-lang.c (m2_language_defn): Update.
6634 * language.h (struct language_defn) <la_value_print_inner>: New
6635 member.
6636 * language.c (unknown_language_defn, auto_language_defn): Update.
6637 * go-lang.c (go_language_defn): Update.
6638 * f-lang.c (f_language_defn): Update.
6639 * d-lang.c (d_language_defn): Update.
6640 * c-lang.c (c_language_defn, cplus_language_defn)
6641 (asm_language_defn, minimal_language_defn): Update.
6642 * ada-lang.c (ada_language_defn): Update.
6643
a1f6a07c
TT
66442020-03-13 Tom Tromey <tom@tromey.com>
6645
6646 * c-valprint.c (c_value_print): Use common_val_print.
6647
410cf315
TT
66482020-03-13 Tom Tromey <tom@tromey.com>
6649
6650 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6651
72a45c93
TT
66522020-03-13 Tom Tromey <tom@tromey.com>
6653
6654 * f-valprint.c (f77_print_array_1, f_val_print): Use
6655 common_val_print.
6656
040f66bd
TT
66572020-03-13 Tom Tromey <tom@tromey.com>
6658
6659 * riscv-tdep.c (riscv_print_one_register_info): Use
6660 common_val_print.
6661
a6e05a6c
TT
66622020-03-13 Tom Tromey <tom@tromey.com>
6663
6664 * mi/mi-main.c (output_register): Use common_val_print.
6665
3444c526
TT
66662020-03-13 Tom Tromey <tom@tromey.com>
6667
6668 * infcmd.c (default_print_one_register_info): Use
6669 common_val_print.
6670
c2a44efe
TT
66712020-03-13 Tom Tromey <tom@tromey.com>
6672
6673 * valprint.h (common_val_print_checked): Declare.
6674 * valprint.c (common_val_print_checked): New function.
6675 * stack.c (print_frame_arg): Use common_val_print_checked.
6676
b0c26e99
TT
66772020-03-13 Tom Tromey <tom@tromey.com>
6678
6679 * valprint.c (do_val_print): New function, from val_print.
6680 (val_print): Use do_val_print.
6681 (common_val_print): Use do_val_print.
6682
ce3acbe9
TT
66832020-03-13 Tom Tromey <tom@tromey.com>
6684
6685 * valprint.c (value_print): Use scoped_value_mark.
6686
96c7f873
TV
66872020-03-13 Tom de Vries <tdevries@suse.de>
6688
6689 PR symtab/25646
6690 * psymtab.c (partial_symtab::partial_symtab): Don't set
6691 globals_offset and statics_offset. Push element onto
6692 current_global_psymbols and current_static_psymbols stacks.
6693 (concat): New function.
6694 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6695 element from current_global_psymbols and current_static_psymbols
6696 stacks. Concat popped elements to global_psymbols and
6697 static_symbols.
6698 (add_psymbol_to_list): Use current_global_psymbols and
6699 current_static_psymbols stacks.
6700 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6701 current_static_psymbols fields.
6702
6ba0a321
CB
67032020-03-12 Christian Biesinger <cbiesinger@google.com>
6704
6705 * corelow.c (sniff_core_bfd): Remove.
6706 (class core_target) <m_core_vec>: Remove.
6707 (core_target::core_target): Update.
6708 (core_file_fns): Remove.
6709 (deprecated_add_core_fns): Remove.
6710 (default_core_sniffer): Remove.
6711 (sniff_core_bfd): Remove.
6712 (default_check_format): Remove.
6713 (gdb_check_format): Remove.
6714 (core_target_open): Update.
6715 (core_target::get_core_register_section): Update.
6716 (get_core_registers_cb): Update.
6717 (core_target::fetch_registers): Update.
6718 * gdbcore.h (struct core_fns): Remove.
6719 (deprecated_add_core_fns): Remove.
6720 (default_core_sniffer): Remove.
6721 (default_check_format): Remove.
6722
227031b2
TT
67232020-03-12 Tom Tromey <tom@tromey.com>
6724
6725 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6726 CORE_ADDR.
6727 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6728
53807e9f
TT
67292020-03-12 Tom Tromey <tom@tromey.com>
6730
6731 * remote.c (remote_target::download_tracepoint)
6732 (remote_target::enable_tracepoint)
6733 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6734 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6735 sprintf_vma.
6736
64f25102
TT
67372020-03-12 Tom Tromey <tom@tromey.com>
6738
6739 * symfile-mem.c: Update CORE_ADDR size assert.
6740
272cd5a3
SM
67412020-03-12 Simon Marchi <simon.marchi@efficios.com>
6742
6743 * selftest.m4: Move to gdbsupport/.
6744 * acinclude.m4: Update path to selftest.m4.
6745
74cd3f9d
SM
67462020-03-12 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6749 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6750 gdbarch-selfselftests.c and selftest-arch.c.
6751 (SUBDIR_UNITTESTS_OBS): Rename to...
6752 (SELFTESTS_OBS): ... this.
6753 (COMMON_SFILES): Remove disasm-selftests.c and
6754 gdbarch-selftests.c.
6755 * configure.ac: Don't add selftest-arch.{c,o} to
6756 CONFIG_{SRCS,OBS}.
6757 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6758 preprocessor conditions.
6759
db6878ac
SM
67602020-03-12 Simon Marchi <simon.marchi@efficios.com>
6761
6762 * configure.ac: Don't source bfd/development.sh.
6763 * selftest.m4: Modify comment.
6764 * configure: Re-generate.
6765
4d696a5c
SM
67662020-03-12 Simon Marchi <simon.marchi@efficios.com>
6767
6768 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6769 not "true" or "false".
6770 * configure: Re-generate.
6771
8dd8e1c7
CB
67722020-03-12 Christian Biesinger <cbiesinger@google.com>
6773
6774 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6775 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6776 renamed to arm_nbsd_supply_gregset.
6777 (fetch_register): Update to call arm_nbsd_supply_gregset.
6778 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6779 (arm_netbsd_nat_target::fetch_registers): Update.
6780 (fetch_elfcore_registers): Removed.
6781 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6782 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6783 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6784 not require NetBSD system headers.
6785 (arm_nbsd_regset): New struct.
6786 (arm_nbsd_iterate_over_regset_sections): New function.
6787 (arm_netbsd_init_abi_common): Updated to call
6788 set_gdbarch_iterate_over_regset_sections.
6789 * arm-nbsd-tdep.h: New file.
6790
dd69bf7a
KB
67912020-03-11 Kevin Buettner <kevinb@redhat.com>
6792
6793 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6794 recursion.
6795
a0761e34
SM
67962020-03-11 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * configure: Re-generate.
6799
e7a82140
TT
68002020-03-11 Tom Tromey <tromey@adacore.com>
6801
6802 * ada-typeprint.c (print_choices): Fix comment.
6803
dcc050c8
AB
68042020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6807 previous item in the list, when the list has no items.
6808
1c33af77
TV
68092020-03-11 Tom de Vries <tdevries@suse.de>
6810
6811 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6812 PROP_LOCLIST handling code.
6813
8c95582d
AB
68142020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6815
6816 * buildsym-legacy.c (record_line): Pass extra parameter to
6817 record_line.
6818 * buildsym.c (buildsym_compunit::record_line): Take an extra
6819 parameter, reduce duplication in the line table, and record the
6820 is_stmt flag in the line table.
6821 * buildsym.h (buildsym_compunit::record_line): Add extra
6822 parameter.
6823 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6824 non-statement lines.
6825 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6826 this to the symtab builder.
6827 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6828 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6829 through to dwarf_record_line_1.
6830 * infrun.c (process_event_stop_test): When stepping, don't stop at
6831 a non-statement instruction, and only refresh the step info when
6832 we land in the middle of a line's range. Also add an extra
6833 comment.
6834 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6835 field.
6836 * record-btrace.c (btrace_find_line_range): Only record lines
6837 marked as is-statement.
6838 * stack.c (frame_show_address): Show the frame address if we are
6839 in a non-statement sal.
6840 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6841 (maintenance_print_one_line_table): Print a header for the is_stmt
6842 column, and include is_stmt information in the output.
6843 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6844 preference to non-statements.
6845 (find_pcs_for_symtab_line): Prefer is-statement entries.
6846 (find_line_common): Likewise.
6847 * symtab.h (struct linetable_entry): Add is_stmt field.
6848 (struct symtab_and_line): Likewise.
6849 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6850 arranging the line table.
6851
e4003a34
TV
68522020-03-07 Tom de Vries <tdevries@suse.de>
6853
6854 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6855 DIE.
6856
e8932576
TT
68572020-03-07 Tom Tromey <tom@tromey.com>
6858
6859 * valops.c (value_literal_complex): Remove obsolete comment.
6860 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6861 comment.
6862
29734269
SM
68632020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6864
6865 * infrun.h: Forward-declare thread_info.
6866 (set_step_info): Add thread_info parameter, add doc.
6867 * infrun.c (set_step_info): Add thread_info parameter, move doc
6868 to header.
6869 * infrun.c (process_event_stop_test): Pass thread to
6870 set_step_info call.
6871 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6872 set_step_info.
6873 (prepare_one_step): Add thread_info parameter, pass it to
6874 set_step_frame and prepare_one_step (recursive) call.
6875 (step_1): Pass thread to prepare_one_step call.
6876 (step_command_fsm::should_stop): Pass thread to
6877 prepare_one_step.
6878 (until_next_fsm): Pass thread to set_step_frame call.
6879 (finish_command): Pass thread to set_step_info call.
6880
b7d64b29
HD
68812020-03-06 Hannes Domani <ssbssa@yahoo.de>
6882
6883 * windows-tdep.c (windows_solib_create_inferior_hook):
6884 Check if inferior is running.
6885
09f2921c
TV
68862020-03-06 Tom de Vries <tdevries@suse.de>
6887
6888 * NEWS: Fix "the the".
6889 * ctfread.c: Same.
6890
fd760e79
TV
68912020-03-06 Tom de Vries <tdevries@suse.de>
6892
6893 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6894
20ea4a60
AB
68952020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * .dir-locals.el: Add a comment referencing the other copies of
6898 this file.
6899
0afbabf0
JB
69002020-03-05 John Baldwin <jhb@FreeBSD.org>
6901
6902 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6903 psargs.
6904
842806cb
TBA
69052020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6906
6907 * .gitattributes: New file.
6908
be1e3d3e
TT
69092020-03-04 Tom Tromey <tom@tromey.com>
6910
6911 * symmisc.c (print_symbol_bcache_statistics)
6912 (print_objfile_statistics): Update.
6913 * symfile.c (allocate_symtab): Use intern.
6914 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6915 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6916 macro_cache>: Remove.
6917 <string_cache>: New member.
6918 (struct objfile) <intern>: New methods.
6919 * elfread.c (elf_symtab_read): Use intern.
6920 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6921 (dwarf2_compute_name, dwarf2_physname)
6922 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6923 names.
6924 (guess_partial_die_structure_name): Update.
6925 (partial_die_info::fixup): Intern name.
6926 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6927 name.
6928 (dwarf2_name): Intern name. Update.
6929 * buildsym.c (buildsym_compunit::get_macro_table): Use
6930 string_cache.
6931
4e7625fd
TT
69322020-03-04 Tom Tromey <tom@tromey.com>
6933
6934 * jit.c (bfd_open_from_target_memory): Make "target" const.
6935 * corefile.c (gnutarget): Now const.
6936 * gdbcore.h (gnutarget): Now const.
6937
46f9f931
HD
69382020-03-04 Hannes Domani <ssbssa@yahoo.de>
6939
6940 * NEWS: Mention support for WOW64 processes.
6941 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6942 (amd64_windows_segment_register_p): Remove static.
6943 (_initialize_amd64_windows_nat): Update.
6944 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6945 * i386-windows-nat.c (context_offset): Update.
6946 (i386_mappings): Rename and remove static.
6947 (i386_windows_segment_register_p): Remove static.
6948 (_initialize_i386_windows_nat): Update.
6949 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6950 (STATUS_WX86_SINGLE_STEP): New macro.
6951 (EnumProcessModulesEx): New macro.
6952 (Wow64SuspendThread): New macro.
6953 (Wow64GetThreadContext): New macro.
6954 (Wow64SetThreadContext): New macro.
6955 (Wow64GetThreadSelectorEntry): New macro.
6956 (windows_set_context_register_offsets): Add static.
6957 (windows_set_segment_register_p): Likewise.
6958 (windows_add_thread): Adapt for WOW64 processes.
6959 (windows_fetch_one_register): Likewise.
6960 (windows_nat_target::fetch_registers): Likewise.
6961 (windows_store_one_register): Likewise.
6962 (display_selector): Likewise.
6963 (display_selectors): Likewise.
6964 (handle_exception): Likewise.
6965 (windows_continue): Likewise.
6966 (windows_nat_target::resume): Likewise.
6967 (windows_add_all_dlls): Likewise.
6968 (do_initial_windows_stuff): Likewise.
6969 (windows_nat_target::attach): Likewise.
6970 (windows_get_exec_module_filename): Likewise.
6971 (windows_nat_target::create_inferior): Likewise.
6972 (windows_xfer_siginfo): Likewise.
6973 (_initialize_loadable): Initialize Wow64SuspendThread,
6974 Wow64GetThreadContext, Wow64SetThreadContext,
6975 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
6976 * windows-nat.h (windows_set_context_register_offsets):
6977 Remove declaration.
6978 (windows_set_segment_register_p): Likewise.
6979 (i386_windows_segment_register_p): Add declaration.
6980 (amd64_windows_segment_register_p): Likewise.
6981
440cf44e
LM
69822020-03-04 Luis Machado <luis.machado@linaro.org>
6983
6984 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
6985 in "info registers" for AArch64/ARM.
6986
6987 The change caused "info registers" to not print GPR's.
6988
6989 gdb/ChangeLog:
6990
6991 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6992
6993 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6994 when reg->group is empty and reggroup is not.
6995
1009d92f
TT
69962020-03-03 Tom Tromey <tromey@adacore.com>
6997
6998 * dwarf2/frame.c (struct dwarf2_frame_cache)
6999 <checked_tailcall_bottom, entry_cfa_sp_offset,
7000 entry_cfa_sp_offset_p>: Remove members.
7001 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7002 (dwarf2_frame_prev_register): Don't call
7003 dwarf2_tailcall_sniffer_first.
7004 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7005 * frame-unwind.c (add_unwinder): New fuction.
7006 (frame_unwind_init): Use it. Add tailcall unwinder.
7007
5e5d66b6
AB
70082020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7009 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7010
7011 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7012 value should be printed as true.
7013
584cf46d
HD
70142020-03-03 Hannes Domani <ssbssa@yahoo.de>
7015
7016 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7017 (windows_init_abi): Set and use windows_so_ops.
7018
7b973adc
SDJ
70192020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7020
7021 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7022 when verifying if dealing with a convenience variable.
7023
bb7b70ab
LM
70242020-03-03 Luis Machado <luis.machado@linaro.org>
7025
7026 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7027
9822cb57
SM
70282020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7029
7030 * infrun.c (gdbarch_supports_displaced_stepping): New.
7031 (use_displaced_stepping): Break up conditions in smaller pieces.
7032 Use gdbarch_supports_displaced_stepping.
7033 (displaced_step_prepare_throw): Use
7034 gdbarch_supports_displaced_stepping.
7035
63e163f2
AB
70362020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7037
7038 * NEWS: Mention new behaviour of the history filename.
7039 * top.c (write_history_p): Add comment.
7040 (show_write_history_p): Add header comment, give a different
7041 message when history writing is on, but the history filename is
7042 empty.
7043 (history_filename): Add comment.
7044 (history_filename_empty): New function.
7045 (show_history_filename): Add header comment, give a different
7046 message when the filename is empty.
7047 (init_history): Compare history_filename against nullptr, and only
7048 read history if the filename is not empty.
7049 (set_history_filename): Add header comment, and only make
7050 non-empty filenames absolute.
7051 (init_main): Make the filename argument to 'set history filename'
7052 optional.
7053
81b86b97
CB
70542020-03-02 Christian Biesinger <cbiesinger@google.com>
7055
7056 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7057 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7058 (fetch_fp_register): Update.
7059 (fetch_fp_regs): Update.
7060 (store_fp_register): Update.
7061 (store_fp_regs): Update.
7062 (arm_netbsd_nat_target::read_description): New function.
7063 (fetch_elfcore_registers): Update.
7064
24ed6739
AB
70652020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7068 general_thread if the stop reply is missing a thread-id.
7069 (remote_target::process_stop_reply): Use the first non-exited
7070 thread if the target didn't pass a thread-id.
7071 * infrun.c (do_target_wait): Move call to
7072 switch_to_inferior_no_thread to ....
7073 (do_target_wait_1): ... here.
7074
a84bb2a0
JT
70752020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7076
7077 * debuginfod-support.c: Include defs.h first.
7078
658dadf0
TV
70792020-02-28 Tom de Vries <tdevries@suse.de>
7080
7081 * symfile.c (set_initial_language): Use default language for lookup.
7082
4ebe4877
SM
70832020-02-28 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7086 reader variable, pass `this` to read_cutu_die_from_dwo.
7087
e5da1139
AM
70882020-02-27 Aaron Merey <amerey@redhat.com>
7089
7090 * source.c (open_source_file): Check for nullptr when computing
7091 srcpath.
7092
317f7127
TT
70932020-02-27 Tom Tromey <tromey@adacore.com>
7094
7095 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7096 member.
7097 (dwarf2_add_field): Don't update nfields.
7098 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7099
3104d9ee
AB
71002020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7101
7102 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7103 abs.
7104
b83470bf
TT
71052020-02-26 Tom Tromey <tom@tromey.com>
7106
7107 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7108 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7109 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7110 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7111 per_cu_data.
7112
edfe0a0c
TT
71132020-02-26 Tom Tromey <tom@tromey.com>
7114
7115 * dwarf2/index-write.c (psym_index_map): Change type.
7116 (add_address_entry_worker, write_one_signatured_type)
7117 (recursively_count_psymbols, recursively_write_psymbols)
7118 (class debug_names, psyms_seen_size, write_gdbindex)
7119 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7120
0d79cdc4
AM
71212020-02-26 Aaron Merey <amerey@redhat.com>
7122
7123 * Makefile.in: Handle optional debuginfod support.
7124 * NEWS: Update.
7125 * README: Add --with-debuginfod summary.
7126 * config.in: Regenerate.
7127 * configure: Regenerate.
7128 * configure.ac: Handle optional debuginfod support.
7129 * debuginfod-support.c: debuginfod helper functions.
7130 * debuginfod-support.h: Ditto.
7131 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7132 summary.
7133 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7134 when a dwz file cannot be found.
7135 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7136 debuginfo file cannot be found.
7137 * source.c (open_source_file): Query debuginfod servers when a
7138 source file cannot be found.
7139 * top.c (print_gdb_configuration): Include
7140 --{with,without}-debuginfod in the output.
7141
b65ce565
JG
71422020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7143
7144 * thread.c (thr_try_catch_cmd): Print thread name.
7145
d4c9a4f8
SM
71462020-02-26 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7149 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7150 dwarf2_fetch_die_type_sect_off): Move to...
7151 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7152 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7153 dwarf2_fetch_die_type_sect_off): ... here.
7154 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7155 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7156 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7157
0dce4280
TV
71582020-02-26 Tom de Vries <tdevries@suse.de>
7159
7160 PR gdb/25603
7161 * symfile.c (set_initial_language): Exit-early if
7162 language_mode == language_mode_manual.
7163
450a1bfc
SM
71642020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7165
7166 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7167 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7168 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7169
9e80cfa1
AB
71702020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7171
7172 * gdbtypes.c (create_array_type_with_stride): Handle negative
7173 array strides.
7174 * valarith.c (value_subscripted_rvalue): Likewise.
7175
09624f1f
LM
71762020-02-25 Luis Machado <luis.machado@linaro.org>
7177
7178 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7179
8cb5117c
SM
71802020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7181
7182 * loc.h (dwarf2_get_die_type): Move to...
7183 * read.h (dwarf2_get_die_type): ... here.
7184 * read.c (dwarf2_get_die_type): Move doc to header.
7185
c325c44e
JB
71862020-02-25 Joel Brobecker <brobecker@adacore.com>
7187
7188 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7189 'gnulib/Makefile.in' to the list.
7190
4ac93832
TT
71912020-02-24 Tom Tromey <tom@tromey.com>
7192
7193 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7194 Remove.
7195 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7196 XOBNEWVEC.
7197
197400e8
TT
71982020-02-24 Tom Tromey <tom@tromey.com>
7199
7200 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7201 New method.
7202 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7203 (dw2_do_instantiate_symtab, dw2_get_file_names)
7204 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7205
76935768
TT
72062020-02-24 Tom Tromey <tom@tromey.com>
7207
7208 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7209 make_scoped_restore.
7210 (dwarf2_psymtab::read_symtab): Don't clear
7211 reading_partial_symbols.
7212
a88ef40d
TV
72132020-02-24 Tom de Vries <tdevries@suse.de>
7214
7215 PR gdb/25592
7216 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7217
c9af6521
TV
72182020-02-24 Tom de Vries <tdevries@suse.de>
7219
7220 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7221 commands layout next/prev/regs.
7222
5707a07a
TT
72232020-02-22 Tom Tromey <tom@tromey.com>
7224
7225 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7226 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7227
3b0fb49e
TT
72282020-02-22 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7231
283be8bf
TT
72322020-02-22 Tom Tromey <tom@tromey.com>
7233
7234 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7235 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7236 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7237 * tui/tui.c (_initialize_tui): Add usage text.
7238
ca793b96
TT
72392020-02-22 Tom Tromey <tom@tromey.com>
7240
7241 * tui/tui-win.c (tui_set_focus_command)
7242 (tui_set_win_height_command): Use error_no_arg.
7243 (_initialize_tui_win): Update help text.
7244 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7245
432b5c40
TT
72462020-02-22 Tom Tromey <tom@tromey.com>
7247
7248 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7249 * tui/tui-disasm.h (struct tui_disasm_window)
7250 <display_start_addr>: Declare.
7251 * tui/tui-source.h (struct tui_source_window)
7252 <display_start_addr>: Declare.
7253 * tui/tui-winsource.h (struct tui_source_window_base)
7254 <show_source_line, display_start_addr>: New methods.
7255 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7256 Rename and move to protected section.
7257 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7258 (tui_source_window_base::do_erase_source_content): Update.
7259 (tui_source_window_base::show_source_line): Now a method.
7260 (tui_source_window_base::show_source_content)
7261 (tui_source_window_base::tui_source_window_base)
7262 (tui_source_window_base::rerender)
7263 (tui_source_window_base::refill)
7264 (tui_source_window_base::do_scroll_horizontal)
7265 (tui_source_window_base::set_is_exec_point_at)
7266 (tui_source_window_base::update_breakpoint_info)
7267 (tui_source_window_base::update_exec_info): Update.
7268 * tui/tui-source.c (tui_source_window::set_contents)
7269 (tui_source_window::showing_source_p)
7270 (tui_source_window::do_scroll_vertical)
7271 (tui_source_window::location_matches_p)
7272 (tui_source_window::line_is_displayed): Update.
7273 (tui_source_window::display_start_addr): New method.
7274 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7275 (tui_disasm_window::do_scroll_vertical)
7276 (tui_disasm_window::location_matches_p): Update.
7277 (tui_disasm_window::display_start_addr): New method.
7278
01b1af32
TT
72792020-02-22 Tom Tromey <tom@tromey.com>
7280
7281 * NEWS: Add entry for gdb.register_window_type.
7282 * tui/tui-layout.h (window_factory): New typedef.
7283 (tui_register_window): Declare.
7284 * tui/tui-layout.c (saved_tui_windows): New global.
7285 (tui_apply_current_layout): Use it.
7286 (tui_register_window): New function.
7287 * python/python.c (do_start_initialization): Call
7288 gdbpy_initialize_tui.
7289 (python_GdbMethods): Add "register_window_type" function.
7290 * python/python-internal.h (gdbpy_register_tui_window)
7291 (gdbpy_initialize_tui): Declare.
7292 * python/py-tui.c: New file.
7293 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7294
fc96d20b
TT
72952020-02-22 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7298
935c78c0
TT
72992020-02-22 Tom Tromey <tom@tromey.com>
7300
7301 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7302 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7303 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7304 (tui_set_win_focus_to): Move from tui-win.c.
7305
0240c8f1
TT
73062020-02-22 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7309 functions.
7310 (known_window_types): New global.
7311 (tui_get_window_by_name): Reimplement.
7312 (initialize_known_windows): New function.
7313 (validate_window_name): Rewrite.
7314 (_initialize_tui_layout): Call initialize_known_windows.
7315
fdb01f0c
TT
73162020-02-22 Tom Tromey <tom@tromey.com>
7317
7318 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7319 Remove constants.
7320 * tui/tui-winsource.h (struct tui_source_window_base)
7321 <tui_source_window_base>: Remove parameter.
7322 * tui/tui-winsource.c
7323 (tui_source_window_base::tui_source_window_base): Remove
7324 parameter.
7325 (tui_source_window_base::refill): Update.
7326 * tui/tui-stack.h (struct tui_locator_window)
7327 <tui_locator_window>: Update.
7328 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7329 Default the constructor.
7330 * tui/tui-regs.h (struct tui_data_item_window)
7331 <tui_data_item_window>: Default the constructor.
7332 (struct tui_data_window) <tui_data_window>: Likewise.
7333 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7334 Default the constructor.
7335 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7336 Default the constructor.
7337 <type>: Remove.
7338 (struct tui_win_info) <tui_win_info>: Default the constructor.
7339 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7340 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7341 Default the constructor.
7342
865a5aec
TT
73432020-02-22 Tom Tromey <tom@tromey.com>
7344
7345 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7346 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7347 * tui/tui-win.c (tui_resize_all): Don't call
7348 tui_delete_invisible_windows.
7349 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7350 done.
7351 (tui_set_layout): Update.
7352 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7353 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7354 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7355
e098d18c
TT
73562020-02-22 Tom Tromey <tom@tromey.com>
7357
7358 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7359 correctly.
7360
eb9c8874
TT
73612020-02-22 Tom Tromey <tom@tromey.com>
7362
7363 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7364
7eed1a8e
TT
73652020-02-22 Tom Tromey <tom@tromey.com>
7366
7367 * tui/tui-winsource.h (struct tui_source_window_iterator)
7368 <inner_iterator>: New etytypedef.
7369 <tui_source_window_iterator>: Take "end" parameter.
7370 <tui_source_window_iterator>: Take iterator.
7371 <operator*, advance>: Update.
7372 <m_iter>: Change type.
7373 <m_end>: New field.
7374 (struct tui_source_windows) <begin, end>: Update.
7375 * tui/tui-layout.c (tui_windows): New global.
7376 (tui_apply_current_layout): Clear tui_windows.
7377 (tui_layout_window::apply): Update tui_windows.
7378 * tui/tui-data.h (tui_windows): Declare.
7379 (all_tui_windows): Now inline function.
7380 (class tui_window_iterator, struct all_tui_windows): Remove.
7381
7c043ba6
TT
73822020-02-22 Tom Tromey <tom@tromey.com>
7383
7384 PR tui/17850:
7385 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7386 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7387 "height" argument.
7388 (class tui_layout_window) <get_sizes>: Likewise.
7389 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7390 argument.
7391 <get_sizes>: Add "height" argument.
7392 <m_vertical>: New field.
7393 * tui/tui-layout.c (tui_layout_split::clone): Update.
7394 (tui_layout_split::get_sizes): Add "height" argument.
7395 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7396 (tui_new_layout_command): Parse "-horizontal".
7397 (_initialize_tui_layout): Update help string.
7398 (tui_layout_split::specification): Add "-horizontal" when needed.
7399 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7400 argument.
7401 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7402 New methods.
7403
6bc56648
TT
74042020-02-22 Tom Tromey <tom@tromey.com>
7405
7406 * tui/tui-layout.h (enum tui_adjust_result): New.
7407 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7408 (class tui_layout_window) <adjust_size>: Return
7409 tui_adjust_result. Rewrite.
7410 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7411 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7412
c22fef7e
TT
74132020-02-22 Tom Tromey <tom@tromey.com>
7414
7415 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7416 parameter and return types.
7417 (class tui_layout_base) <specification>: Add "depth".
7418 (class tui_layout_window) <specification>: Add "depth".
7419 (class tui_layout_split) <specification>: Add "depth".
7420 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7421 and return types.
7422 (tui_new_layout_command): Parse sub-layouts.
7423 (_initialize_tui_layout): Update help string.
7424 (tui_layout_window::specification): Add "depth".
7425 (add_layout_command): Update.
7426
ee325b61
TT
74272020-02-22 Tom Tromey <tom@tromey.com>
7428
7429 * NEWS: Add "tui new-layout" item.
7430 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7431 Add new-layout command to help text.
7432 (validate_window_name): New function.
7433 (tui_new_layout_command): New function.
7434 (_initialize_tui_layout): Register "new-layout".
7435 (tui_layout_window::specification): New method.
7436 (tui_layout_window::specification): New method.
7437 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7438 method.
7439 (class tui_layout_window) <specification>: New method.
7440 (class tui_layout_split) <specification>: New method.
7441
416eb92d
TT
74422020-02-22 Tom Tromey <tom@tromey.com>
7443
7444 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7445 * tui/tui-win.c (window_name_completer): Update comment.
7446 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7447 Declare method.
7448 (class tui_layout_window) <replace_window>: Likewise.
7449 (class tui_layout_split) <replace_window>: Likewise.
7450 (tui_set_layout): Don't declare.
7451 (tui_set_initial_layout): Declare function.
7452 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7453 (asm_regs_layout): New globals.
7454 (tui_current_layout, show_layout): Remove.
7455 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7456 (find_layout, tui_apply_layout): New function.
7457 (layout_completer): Remove.
7458 (tui_next_layout): Reimplement.
7459 (tui_next_layout_command): New function.
7460 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7461 (tui_regs_layout): Reimplement.
7462 (tui_regs_layout_command): New function.
7463 (extract_display_start_addr): Rewrite.
7464 (next_layout, prev_layout): Remove.
7465 (tui_layout_window::replace_window): New method.
7466 (tui_layout_split::replace_window): New method.
7467 (destroy_layout): New function.
7468 (layout_list): New global.
7469 (add_layout_command): New function.
7470 (initialize_layouts): Update.
7471 (tui_layout_command): New function.
7472 (_initialize_tui_layout): Install "layout" commands.
7473 * tui/tui-data.h (enum tui_layout_type): Remove.
7474 (tui_current_layout): Don't declare.
7475
0dbc2fc7
TT
74762020-02-22 Tom Tromey <tom@tromey.com>
7477
7478 * tui/tui-regs.c (tui_reg_layout): Remove.
7479 (tui_reg_command): Use tui_regs_layout.
7480 * tui/tui-layout.h (tui_reg_command): Declare.
7481 * tui/tui-layout.c (tui_reg_command): New function.
7482
5afe342e
TT
74832020-02-22 Tom Tromey <tom@tromey.com>
7484
7485 * tui/tui.c (tui_rl_delete_other_windows): Call
7486 tui_remove_some_windows.
7487 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7488 Declare method.
7489 (class tui_layout_window) <remove_windows>: New method.
7490 (class tui_layout_split) <remove_windows>: Declare.
7491 (tui_remove_some_windows): Declare.
7492 * tui/tui-layout.c (tui_remove_some_windows): New function.
7493 (tui_layout_split::remove_windows): New method.
7494
427326a8
TT
74952020-02-22 Tom Tromey <tom@tromey.com>
7496
7497 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7498 * tui/tui-layout.h (tui_next_layout): Declare.
7499 * tui/tui-layout.c (tui_next_layout): New function.
7500
3fe12b6d
TT
75012020-02-22 Tom Tromey <tom@tromey.com>
7502
7503 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7504 correct coordinates.
7505
59b8b5d2
TT
75062020-02-22 Tom Tromey <tom@tromey.com>
7507
7508 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7509 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7510 DATA_WIN case.
7511
2a3d458b
TT
75122020-02-22 Tom Tromey <tom@tromey.com>
7513
7514 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7515 TUI_DISASM_WIN, not tui_win_list.
7516
3f0cbb04
TT
75172020-02-22 Tom Tromey <tom@tromey.com>
7518
7519 * valprint.c (generic_val_print_enum_1)
7520 (val_print_type_code_flags): Style member names.
7521 * rust-lang.c (val_print_struct, rust_print_enum)
7522 (rust_print_struct_def, rust_internal_print_type): Style member
7523 names.
7524 * p-valprint.c (pascal_object_print_value_fields): Style member
7525 names. Only call fprintf_symbol_filtered for static members.
7526 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7527 * f-valprint.c (f_val_print): Style member names.
7528 * f-typeprint.c (f_type_print_base): Style member names.
7529 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7530 call fprintf_symbol_filtered for static members.
7531 (cp_print_class_member): Style member names.
7532 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7533 member names.
7534 * ada-valprint.c (ada_print_scalar): Style enum names.
7535 (ada_val_print_enum): Likewise.
7536 * ada-typeprint.c (print_enum_type): Style enum names.
7537
d4d947ae
TT
75382020-02-21 Tom Tromey <tom@tromey.com>
7539
7540 * psympriv.h (struct partial_symtab): Update comment.
7541
e94e944b
TT
75422020-02-21 Tom Tromey <tromey@adacore.com>
7543
7544 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7545 type is CORE_ADDR.
7546
1eb73179
TV
75472020-02-21 Tom de Vries <tdevries@suse.de>
7548
7549 PR gdb/25534
7550 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7551 if dependencies[i]->user != NULL.
7552
4f180d53
AT
75532020-02-21 Ali Tamur <tamur@google.com>
7554
7555 * dwarf2/read.c (dwarf2_name): Add null check.
7556
22b6cd70
TT
75572020-02-20 Tom Tromey <tom@tromey.com>
7558
7559 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7560 ">=", in binary search.
7561 (dwarf2_find_containing_comp_unit): New overload.
7562 (run_test): New self-test.
7563 (_initialize_dwarf2_read): Register new test.
7564
bd0cf5a6
NC
75652020-02-20 Nelson Chu <nelson.chu@sifive.com>
7566
7567 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7568 * riscv-tdep.h: Likewise.
7569 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7570 rv32-only CSR.
7571 * features/riscv/64bit-csr.xml: Regenerated.
7572
3f702acd
SDJ
75732020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7574 Tom Tromey <tom@tromey.com>
7575
7576 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7577 of 'fputc_unfiltered'.
7578 (putchar_unfiltered): Call 'fputc_unfiltered'.
7579 (fputc_unfiltered): Call 'fputs_unfiltered'.
7580
d13c7322
AB
75812020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 * config.in: Regenerate.
7584 * configure: Regenerate.
7585 * configure.ac: Add --with-python-libdir option.
7586 * main.c: Use WITH_PYTHON_LIBDIR.
7587
869d8950
TT
75882020-02-19 Tom Tromey <tom@tromey.com>
7589
7590 * symtab.c (general_symbol_info::compute_and_set_names): Use
7591 obstack_strndup. Simplify call to symbol_set_demangled_name.
7592
298e9637
SM
75932020-02-19 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * dwarf2/read.c (allocate_signatured_type_table,
7596 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7597 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7598 Remove objfile parameter, update all callers.
7599
08410482
DE
76002020-02-19 Doug Evans <dje@google.com>
7601
7602 PR rust/25535
7603 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7604 rust_enum_variant calculation.
7605
dfdeeca1
TT
76062020-02-19 Tom Tromey <tromey@adacore.com>
7607
7608 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7609
2ef5453b
TT
76102020-02-19 Tom Tromey <tromey@adacore.com>
7611
7612 * ada-lang.c (cache_symbol): Use obstack_strdup.
7613
9f1528a1
AB
76142020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7615
7616 * configure: Regenerate.
7617
d3c22fa8
TT
76182020-02-19 Tom Tromey <tromey@adacore.com>
7619
7620 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7621 NULL check.
7622
bf84f706
MR
76232020-02-19 Maciej W. Rozycki <macro@wdc.com>
7624
7625 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7626
d1c9b20f
AB
76272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7628
7629 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7630 if GDBSERVER is not defined.
7631 (riscv_tdesc_cache): Likewise, also store const target_desc.
7632 (STATIC_IN_GDB): Define.
7633 (riscv_create_target_description): Update declaration with
7634 STATIC_IN_GDB.
7635 (riscv_lookup_target_description): New function, only define if
7636 GDBSERVER is not defined.
7637 * arch/riscv.h (riscv_create_target_description): Declare only
7638 when GDBSERVER is defined.
7639 (riscv_lookup_target_description): New declaration when GDBSERVER
7640 is not defined.
7641 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7642 (riscv_linux_read_features): ...this, and return
7643 riscv_gdbarch_features instead of target_desc.
7644 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7645 (riscv_linux_read_description): Rename to...
7646 (riscv_linux_read_features): ...this.
7647 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7648 Update to use riscv_gdbarch_features and
7649 riscv_lookup_target_description.
7650 * riscv-tdep.c (riscv_find_default_target_description): Use
7651 riscv_lookup_target_description instead of
7652 riscv_create_target_description.
7653
373d7ac0
SM
76542020-02-18 Simon Marchi <simon.marchi@efficios.com>
7655
7656 * valprint.c (generic_val_print_enum_1): When printing a flag
7657 enum with value 0 and there is no enumerator with value 0, print
7658 just "0" instead of "(unknown: 0x0)".
7659
b29a2df0
SM
76602020-02-18 Simon Marchi <simon.marchi@efficios.com>
7661
7662 * valprint.c (generic_val_print_enum_1): Print unknown part of
7663 flag enum in hex.
7664
6740f0cc
SM
76652020-02-18 Simon Marchi <simon.marchi@efficios.com>
7666
7667 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7668 flag enums to contain duplicate enumerators.
7669 * valprint.c (generic_val_print_enum_1): Update comment.
7670
edd45eb0
SM
76712020-02-18 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * dwarf2/read.c: Include "count-one-bits.h".
7674 (update_enumeration_type_from_children): If an enumerator has
7675 multiple bits set, don't treat the enumeration as a "flag enum".
7676 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7677 of flag enums have 0 or 1 bit set.
7678
6d0cf446
BE
76792020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7680
7681 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7682 conversion.
7683 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7684 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7685 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7686 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7687 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7688
7001c1b7
SM
76892020-02-18 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7692
fdb61c6c
SM
76932020-02-14 Simon Marchi <simon.marchi@efficios.com>
7694
7695 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7696 displaced_step_closure_up.
7697 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7698 (struct displaced_step_closure_up):
7699 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7700 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7701 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7702 Likewise.
7703 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7704 * gdbarch.c, gdbarch.h: Re-generate.
7705 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7706 displaced_step_closure_up.
7707 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7708 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7709 * infrun.h (displaced_step_closure_up): New type alias.
7710 (struct displaced_step_inferior_state) <step_closure>: Change
7711 type to displaced_step_closure_up.
7712 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7713 displaced_step_closure_up.
7714 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7715
a4a38eb4
TT
77162020-02-14 Tom Tromey <tom@tromey.com>
7717
7718 * minidebug.c (gnu_debug_key): New global.
7719 (find_separate_debug_file_in_section): Use it.
7720
e8217e61
SM
77212020-02-14 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7724 std::unique_ptr.
7725 * gdbarch.c: Re-generate.
7726 * gdbarch.h: Re-generate.
7727 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7728 change.
7729 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7730 type to std::unique_ptr.
7731 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7732 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7733 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7734 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7735 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7736 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7737 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7738 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7739 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7740
d8d83535
SM
77412020-02-14 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7744 std::unique_ptr.
7745 (displaced_step_clear): Rename to...
7746 (displaced_step_reset): ... this. Just call displaced->reset ().
7747 (displaced_step_clear_cleanup): Rename to...
7748 (displaced_step_reset_cleanup): ... this.
7749 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7750 (displaced_step_fixup): Likewise.
7751 (resume_1): Likewise.
7752 (handle_inferior_event): Restore child's memory before calling
7753 displaced_step_fixup on the parent.
7754 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7755 to std::unique_ptr.
7756 <step_closure>: Change type to std::unique_ptr.
7757
5f661e03
SM
77582020-02-14 Simon Marchi <simon.marchi@efficios.com>
7759
7760 * arm-tdep.c: Include count-one-bits.h.
7761 (cleanup_block_store_pc): Use count_one_bits.
7762 (cleanup_block_load_pc): Use count_one_bits.
7763 (arm_copy_block_xfer): Use count_one_bits.
7764 (thumb2_copy_block_xfer): Use count_one_bits.
7765 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7766 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7767 (thumb_get_next_pcs_raw): Use count_one_bits.
7768 (arm_get_next_pcs_raw): Use count_one_bits_l.
7769 * arch/arm.c (bitcount): Remove.
7770 * arch/arm.h (bitcount): Remove.
7771
8084e579
TT
77722020-02-14 Tom Tromey <tromey@adacore.com>
7773
7774 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7775 Update.
7776 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7777 * dwarf2/loc.c (call_site_find_chain_1): Return
7778 unique_xmalloc_ptr.
7779 (call_site_find_chain): Likewise.
7780
258bf0ee
RB
77812020-02-14 Richard Biener <rguenther@suse.de>
7782
7783 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7784 on expression with division operators.
7785
f98a8458
AKS
77862020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7787
7788 * MAINTAINERS (Write After Approval): Adding myself.
7789
d1437c0e
TT
77902020-02-12 Tom Tromey <tom@tromey.com>
7791
7792 * event-loop.c (event_data, gdb_event, event_handler_func):
7793 Remove.
7794
3d4560f7
TT
77952020-02-12 Tom Tromey <tom@tromey.com>
7796
7797 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7798 (dwarf2_frame_objfile_data): Add comment.
7799 (find_comp_unit, set_comp_unit): New functions.
7800 (dwarf2_frame_find_fde): Use find_comp_unit.
7801 (dwarf2_build_frame_info): Use set_comp_unit.
7802
21982304
TT
78032020-02-12 Tom Tromey <tom@tromey.com>
7804
7805 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7806 (comp_unit): Don't initialize objfile.
7807 (execute_cfa_program): Add text_offset parameter.
7808 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7809 (dwarf2_frame_cache): Update.
7810 (dwarf2_build_frame_info): Don't set "objfile" member.
7811
4debb237
TT
78122020-02-12 Tom Tromey <tom@tromey.com>
7813
7814 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7815 (decode_frame_entry): Likewise.
7816 (dwarf2_build_frame_info): Update.
7817
0d404d44
TT
78182020-02-12 Tom Tromey <tom@tromey.com>
7819
7820 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7821 (decode_frame_entry_1): Use the comp_unit obstack.
7822
a7a3ae5c
TT
78232020-02-12 Tom Tromey <tom@tromey.com>
7824
7825 * dwarf2/frame.c (struct comp_unit): Add initializers and
7826 constructor.
7827 (dwarf2_frame_objfile_data): Store a comp_unit.
7828 (dwarf2_frame_find_fde): Update.
7829 (dwarf2_build_frame_info): Use "new".
7830
a9d65418
TT
78312020-02-12 Tom Tromey <tom@tromey.com>
7832
7833 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7834 (dwarf2_fde_table): Typedef for std::vector.
7835 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7836 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7837 (decode_frame_entry): Update.
7838 (dwarf2_build_frame_info): Use "new".
7839
7559c217
CB
78402020-02-12 Christian Biesinger <cbiesinger@google.com>
7841
7842 * arm-tdep.c (arm_gdbarch_init): Update.
7843 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7844 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7845 have_neon, is_m>: Change to bool.
7846
aeefc73c
CB
78472020-02-12 Christian Biesinger <cbiesinger@google.com>
7848
7849 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7850
d27b8e5f
TT
78512020-02-12 Tom Tromey <tom@tromey.com>
7852
7853 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7854
cd5900f3
HD
78552020-02-12 Hannes Domani <ssbssa@yahoo.de>
7856
7857 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7858 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7859
f056b22b
TT
78602020-02-11 Tom Tromey <tom@tromey.com>
7861
7862 * psymtab.h: Update comment.
7863
f92ff6b5
TT
78642020-02-11 Tom Tromey <tom@tromey.com>
7865
7866 * gdb_obstack.h (struct auto_obstack): Use
7867 DISABLE_COPY_AND_ASSIGN.
7868
3fd6912b
TT
78692020-02-11 Tom Tromey <tom@tromey.com>
7870
7871 * dwarf2/frame.h (struct objfile): Don't forward declare.
7872
69ed9b74
CB
78732020-02-11 Christian Biesinger <cbiesinger@google.com>
7874
7875 * cris-tdep.c (cris_supply_gregset): Change signature to match
7876 what struct regset expects.
7877 (cris_regset): New struct.
7878 (fetch_core_registers): Remove.
7879 (cris_iterate_over_regset_sections): New function.
7880 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7881 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7882
bda874f6
CB
78832020-02-11 Christian Biesinger <cbiesinger@google.com>
7884
7885 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7886 registers.
7887
754e1564
CB
78882020-02-11 Christian Biesinger <cbiesinger@google.com>
7889
7890 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7891
8ddd8e0e
SM
78922020-02-11 Simon Marchi <simon.marchi@efficios.com>
7893
7894 * configure: Re-generate.
7895
898e7f60
SM
78962020-02-11 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * configure: Re-generate.
7899
58df732b
SM
79002020-02-11 Simon Marchi <simon.marchi@efficios.com>
7901
7902 * acinclude: Update warning.m4 path.
7903 * warning.m4: Move to gdbsupport.
7904
da5bd37e
TT
79052020-02-11 Tom Tromey <tromey@adacore.com>
7906
7907 * remote.c (remote_console_output): Update.
7908 * printcmd.c (printf_command): Update.
7909 * event-loop.c (gdb_wait_for_event): Update.
7910 * linux-nat.c (sigchld_handler): Update.
7911 * remote-sim.c (gdb_os_write_stdout): Update.
7912 (gdb_os_flush_stdout): Update.
7913 (gdb_os_flush_stderr): Update.
7914 (gdb_os_write_stderr): Update.
7915 * exceptions.c (print_exception): Update.
7916 * remote-fileio.c (remote_fileio_func_read): Update.
7917 (remote_fileio_func_write): Update.
7918 * tui/tui.c (tui_enable): Update.
7919 * tui/tui-interp.c (tui_interp::init): Update.
7920 * utils.c (init_page_info): Update.
7921 (putchar_unfiltered, fputc_unfiltered): Update.
7922 (gdb_flush): Update.
7923 (emit_style_escape): Update.
7924 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7925 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7926 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7927 (stderr_file::write): Update.
7928 (stderr_file::puts): Update.
7929 * ui-file.h (ui_file_isatty, ui_file_write)
7930 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7931 (ui_file_puts): Don't declare.
7932
85f0dd3c
TV
79332020-02-10 Tom de Vries <tdevries@suse.de>
7934
7935 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7936 sentinel to char *.
7937
2e927613
TV
79382020-02-09 Tom de Vries <tdevries@suse.de>
7939
7940 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7941 filename if it matches "<artificial>".
7942
6bafc845
HD
79432020-02-09 Hannes Domani <ssbssa@yahoo.de>
7944
7945 * windows-tdep.c (struct enum_value_name): New struct.
7946 (create_enum): New function.
7947 (windows_get_siginfo_type): Create and use enum types.
7948
7928d571
HD
79492020-02-09 Hannes Domani <ssbssa@yahoo.de>
7950
7951 * NEWS: Mention $_siginfo support for Windows.
7952 * windows-nat.c (handle_exception): Set siginfo_er.
7953 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7954 (windows_xfer_siginfo): New function.
7955 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7956 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7957 (init_windows_gdbarch_data): New function.
7958 (get_windows_gdbarch_data): New function.
7959 (windows_get_siginfo_type): New function.
7960 (windows_init_abi): Register windows_get_siginfo_type.
7961 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7962
6751ebae
TT
79632020-02-08 Tom Tromey <tom@tromey.com>
7964
7965 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7966 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7967 <keep>: Declare method.
7968 <m_keep>: Remove member.
7969 <~cutu_reader>: Remove.
7970 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7971 (cutu_reader::cutu_reader): Update.
7972 (cutu_reader::keep): Rename from ~cutu_reader.
7973 (process_psymtab_comp_unit, build_type_psymtabs_1)
7974 (process_skeletonless_type_unit, load_partial_comp_unit)
7975 (load_full_comp_unit, dwarf2_read_addr_index)
7976 (read_signatured_type): Update.
7977
135f5437
TT
79782020-02-08 Tom Tromey <tom@tromey.com>
7979
7980 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
7981 "want_partial_unit" parameter.
7982 (process_psymtab_comp_unit): Change want_partial_unit to bool.
7983 Inline check for DW_TAG_partial_unit.
7984 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
7985
9f66ff1c
TT
79862020-02-08 Tom Tromey <tom@tromey.com>
7987
7988 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
7989 read.c.
7990 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
7991 read.c.
7992
c8a7a66f
TT
79932020-02-08 Tom Tromey <tom@tromey.com>
7994
7995 * dwarf2/read.c (read_address): Move to comp-unit.c.
7996 (dwarf2_rnglists_process, dwarf2_ranges_process)
7997 (read_attribute_value, dwarf_decode_lines_1)
7998 (var_decode_location, decode_locdesc): Update.
7999 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8000 read.c. Remove "cu" parameter.
8001 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8002 method.
8003
8266302d
TT
80042020-02-08 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8007 (read_indirect_line_string): Update.
8008 * dwarf2/comp-unit.c (read_offset): Remove.
8009 (read_comp_unit_head): Update.
8010 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8011 method.
8012 (read_offset): Don't declare.
8013
4057dfde
TT
80142020-02-08 Tom Tromey <tom@tromey.com>
8015
8016 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8017 * dwarf2/read.c (struct comp_unit_head): Move to
8018 dwarf2/comp-unit.h.
8019 (enum class rcuh_kind): Move to comp-unit.h.
8020 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8021 (read_comp_unit_head, error_check_comp_unit_head)
8022 (read_and_check_comp_unit_head): Move to comp-unit.c.
8023 (read_offset, dwarf_unit_type_name): Likewise.
8024 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8025 (cutu_reader::cutu_reader, read_call_site_scope)
8026 (find_partial_die, follow_die_offset): Update.
8027 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8028
24aa364d
TT
80292020-02-08 Tom Tromey <tom@tromey.com>
8030
8031 * dwarf2/read.c (read_offset_1): Move to leb.c.
8032 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8033 (dwarf_decode_macro_bytes): Update.
8034 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8035 * dwarf2/leb.h (read_offset): Declare.
8036
2c7d5afc
TT
80372020-02-08 Tom Tromey <tom@tromey.com>
8038
8039 * dwarf2/read.c (dwarf2_section_size): Remove.
8040 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8041 Update.
8042 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8043
4075cb26
TT
80442020-02-08 Tom Tromey <tom@tromey.com>
8045
8046 * dwarf2/read.c (read_initial_length): Move to leb.c.
8047 * dwarf2/leb.h (read_initial_length): Declare.
8048 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8049 handle_nonstd parameter.
8050 * dwarf2/frame.c (read_initial_length): Remove.
8051 (decode_frame_entry_1): Update.
8052
09ba997f
TT
80532020-02-08 Tom Tromey <tom@tromey.com>
8054
8055 * dwarf2/loc.c (dwarf2_find_location_expression)
8056 (dwarf_evaluate_loc_desc::get_tls_address)
8057 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8058 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8059 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8060 (dwarf2_compile_property_to_c)
8061 (dwarf2_loc_desc_get_symbol_read_needs)
8062 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8063 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8064 (loclist_describe_location, loclist_tracepoint_var_ref)
8065 (loclist_generate_c_location): Update.
8066 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8067 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8068 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8069 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8070 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8071 (dwarf2_per_cu_data::addr_size)
8072 (dwarf2_per_cu_data::ref_addr_size)
8073 (dwarf2_per_cu_data::text_offset)
8074 (dwarf2_per_cu_data::addr_type): Now methods.
8075 (per_cu_header_read_in): Make per_cu "const".
8076 (dwarf2_version): Remove.
8077 (dwarf2_per_cu_data::int_type): Now a method.
8078 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8079 (set_die_type, read_array_type, read_subrange_index_type)
8080 (read_tag_string_type, read_subrange_type): Update.
8081 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8082 offset_size, ref_addr_size, text_offset, addr_type, version,
8083 objfile, int_type, addr_sized_int_type>: Declare methods.
8084
96c738c0
TT
80852020-02-08 Tom Tromey <tom@tromey.com>
8086
8087 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8088 Move earlier.
8089
8fdd972c
TT
80902020-02-08 Tom Tromey <tom@tromey.com>
8091
8092 * dwarf2/read.h (dwarf_line_debug): Declare.
8093 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8094 * dwarf2/read.c: Move line_header code to new files.
8095 (dwarf_line_debug): No longer static.
8096 * dwarf2/line-header.c: New file.
8097 * dwarf2/line-header.h: New file.
8098
03075812
TT
80992020-02-08 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2/read.c (struct line_header) <file_full_name,
8102 file_file_name>: Return unique_xmalloc_ptr.
8103 (line_header::file_file_name): Update.
8104 (line_header::file_full_name): Update.
8105 (dw2_get_file_names_reader): Update.
8106 (macro_start_file): Update.
8107
bb822404
TT
81082020-02-08 Tom Tromey <tom@tromey.com>
8109
8110 * dwarf2/read.c (struct line_header) <file_full_name,
8111 file_file_name>: Declare methods.
8112 (dw2_get_file_names_reader): Update.
8113 (file_file_name): Now a method.
8114 (file_full_name): Likewise.
8115 (macro_start_file): Update.
8116
009b64fc
TT
81172020-02-08 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/read.c (dwarf_always_disassemble)
8120 (show_dwarf_always_disassemble): Move to loc.c.
8121 (_initialize_dwarf2_read): Move "always-disassemble" registration
8122 to loc.c.
8123 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8124 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8125 static.
8126 (show_dwarf_always_disassemble): Move from read.c.
8127 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8128
5895093f
TT
81292020-02-08 Tom Tromey <tom@tromey.com>
8130
8131 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8132 (create_quick_file_names_table): Return htab_up.
8133 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8134 Update.
8135 * dwarf2/read.h (struct dwarf2_per_objfile)
8136 <quick_file_names_table>: Now htab_up.
8137
b3b32279
TT
81382020-02-08 Tom Tromey <tom@tromey.com>
8139
8140 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8141
1d33d811
TT
81422020-02-08 Tom Tromey <tom@tromey.com>
8143
8144 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8145 Rewrite.
8146 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8147 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8148 (abbrev_table::abbrev_table): No longer inline.
8149 (ABBREV_HASH_SIZE): Remove.
8150 (abbrev_table::m_abbrevs): Now an htab_up.
8151
86de1d91
TT
81522020-02-08 Tom Tromey <tom@tromey.com>
8153
8154 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8155 (cutu_reader): Update.
8156 (build_type_psymtabs_1): Update.
8157 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8158 (abbrev_table::alloc_abbrev): Update.
8159 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8160 (abbrev_table::read): New static method, renamed from
8161 abbrev_table_read_table.
8162 (abbrev_table::alloc_abbrev)
8163 (abbrev_table::add_abbrev): Now private.
8164 (abbrev_table::abbrev_table): Now private.
8165 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8166
0335378b
TT
81672020-02-08 Tom Tromey <tom@tromey.com>
8168
8169 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8170 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8171 htab_up.
8172
48b490f2
TT
81732020-02-08 Tom Tromey <tom@tromey.com>
8174
8175 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8176 htab_up.
8177 (lookup_dwo_unit_in_dwp): Update.
8178 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8179 on obstack.
8180
bc68fb19
TT
81812020-02-08 Tom Tromey <tom@tromey.com>
8182
8183 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8184 obstack.
8185
d15acc42
TT
81862020-02-08 Tom Tromey <tom@tromey.com>
8187
8188 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8189 line_header_hash.
8190 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8191 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8192 Change type to htab_up.
8193
eaa5fa8b
TT
81942020-02-08 Tom Tromey <tom@tromey.com>
8195
8196 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8197 htab_up. Don't allocate on obstack.
8198 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8199 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8200 Change type to htab_up.
8201
b0b6a987
TT
82022020-02-08 Tom Tromey <tom@tromey.com>
8203
8204 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8205 Change type to htab_up.
8206 * dwarf2/read.c (create_signatured_type_table_from_index)
8207 (create_signatured_type_table_from_debug_names)
8208 (create_all_type_units, add_type_unit)
8209 (lookup_dwo_signatured_type, lookup_signatured_type)
8210 (process_skeletonless_type_unit): Update.
8211 (create_debug_type_hash_table, create_debug_types_hash_table):
8212 Change type of types_htab.
8213 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8214 htab_up. Don't allocate on obstack.
8215 (create_cus_hash_table): Change type of cus_htab parameter.
8216 (struct dwo_file) <cus, tus>: Now htab_up.
8217 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8218 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8219 (queue_and_load_all_dwo_tus): Update.
8220 * dwarf2/index-write.c (write_gdbindex): Update.
8221 (write_debug_names): Update.
8222
39856def
TT
82232020-02-08 Tom Tromey <tom@tromey.com>
8224
8225 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8226 dwarf2/read.c. Remove "next" member. Add constructor ntad
8227 destructor.
8228 (struct dwarf2_per_objfile) <queue>: New member.
8229 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8230 dwarf2/read.h.
8231 (dwarf2_queue, dwarf2_queue_tail): Remove.
8232 (class dwarf2_queue_guard): Add parameter to constructor. Use
8233 DISABLE_COPY_AND_ASSIGN.
8234 <m_per_objfile>: New member.
8235 <~dwarf2_queue_guard>: Rewrite.
8236 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8237 Update.
8238 (~dwarf2_queue_item): New.
8239
3e225074
TT
82402020-02-08 Tom Tromey <tom@tromey.com>
8241
8242 * dwarf2/read.c (struct die_info) <has_children>: New member.
8243 (dw2_get_file_names_reader): Remove has_children.
8244 (dw2_get_file_names): Update.
8245 (read_cutu_die_from_dwo): Remove has_children.
8246 (cutu_reader::init_tu_and_read_dwo_dies)
8247 (cutu_reader::cutu_reader): Update.
8248 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8249 Remove has_children.
8250 (build_type_psymtabs_1, process_skeletonless_type_unit)
8251 (load_partial_comp_unit, load_full_comp_unit): Update.
8252 (create_dwo_cu_reader): Remove has_children.
8253 (create_cus_hash_table, read_die_and_children): Update.
8254 (read_full_die_1,read_full_die): Remove has_children.
8255 (read_signatured_type): Update.
8256 (class cutu_reader) <has_children>: Remove.
8257
82ca8957
TT
82582020-02-08 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/expr.c: Rename from dwarf2expr.c.
8261 * dwarf2/expr.h: Rename from dwarf2expr.h.
8262 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8263 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8264 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8265 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8266 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8267 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8268 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8269 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8270 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8271 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8272 * dwarf2/loc.c: Rename from dwarf2loc.c.
8273 * dwarf2/loc.h: Rename from dwarf2loc.h.
8274 * dwarf2/read.c: Rename from dwarf2read.c.
8275 * dwarf2/read.h: Rename from dwarf2read.h.
8276 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8277 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8278 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8279 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8280 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8281 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8282 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8283 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8284 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8285 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8286 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8287 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8288 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8289 Update.
8290 * Makefile.in (COMMON_SFILES): Update.
8291 (HFILES_NO_SRCDIR): Update.
8292
9e35d499
TT
82932020-02-08 Tom Tromey <tom@tromey.com>
8294
8295 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8296 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8297
1eba2311
TT
82982020-02-08 Tom Tromey <tom@tromey.com>
8299
8300 * dwarf2read.h (struct die_info): Don't declare.
8301
e41c2da2
TT
83022020-02-08 Tom Tromey <tom@tromey.com>
8303
8304 * dwarf2read.h (die_info_ptr): Remove typedef.
8305
4fc6c0d5
TT
83062020-02-08 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2read.c (read_call_site_scope)
8309 (handle_data_member_location, dwarf2_add_member_fn)
8310 (mark_common_block_symbol_computed, read_common_block)
8311 (attr_to_dynamic_prop, partial_die_info::read)
8312 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8313 (dwarf2_symbol_mark_computed, set_die_type): Update.
8314 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8315 method.
8316 (attr_form_is_block): Don't declare.
8317 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8318
cd6c91b4
TT
83192020-02-08 Tom Tromey <tom@tromey.com>
8320
8321 * dwarf2read.c (dwarf2_find_base_address, )
8322 (read_call_site_scope, rust_containing_type)
8323 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8324 (handle_data_member_location, dwarf2_add_member_fn)
8325 (get_alignment, read_structure_type, process_structure_scope)
8326 (mark_common_block_symbol_computed, read_common_block)
8327 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8328 (partial_die_info::read, read_attribute_value, new_symbol)
8329 (lookup_die_type, dwarf2_get_ref_die_offset)
8330 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8331 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8332 (dwarf2_symbol_mark_computed): Update.
8333 * dwarf2/attribute.h (struct attribute) <value_as_address,
8334 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8335 methods.
8336 (value_as_address, attr_form_is_section_offset)
8337 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8338 * dwarf2/attribute.c (attribute::value_as_address)
8339 (attribute::form_is_section_offset, attribute::form_is_constant)
8340 (attribute::form_is_ref): Now methods.
8341
162dce55
TT
83422020-02-08 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2read.c (struct attribute, DW_STRING)
8345 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8346 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8347 (attr_form_is_block, attr_form_is_section_offset)
8348 (attr_form_is_constant, attr_form_is_ref): Move.
8349 * dwarf2/attribute.h: New file.
8350 * dwarf2/attribute.c: New file, from dwarf2read.c.
8351 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8352
3054dd54
TT
83532020-02-08 Tom Tromey <tom@tromey.com>
8354
8355 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8356 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8357 Move.
8358 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8359 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8360 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8361 abbrev.c.
8362 * dwarf2/abbrev.h: New file.
8363 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8364 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8365
96b79293
TT
83662020-02-08 Tom Tromey <tom@tromey.com>
8367
8368 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8369 (dwarf2_section_size, dwarf2_get_section_info)
8370 (create_signatured_type_table_from_debug_names)
8371 (create_addrmap_from_aranges, read_debug_names_from_section)
8372 (get_gdb_index_contents_from_section, read_comp_unit_head)
8373 (error_check_comp_unit_head, read_abbrev_offset)
8374 (create_debug_type_hash_table, init_cu_die_reader)
8375 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8376 (read_comp_units_from_section, create_cus_hash_table)
8377 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8378 (create_dwp_v2_section, dwarf2_rnglists_process)
8379 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8380 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8381 (read_indirect_string_from_dwz, read_addr_index_1)
8382 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8383 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8384 (fill_in_loclist_baton): Update.
8385 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8386 get_containing_section, get_bfd_owner, get_bfd_section,
8387 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8388 (dwarf2_read_section, get_section_name, get_section_file_name)
8389 (get_containing_section, get_section_bfd_owner)
8390 (get_section_bfd_section, get_section_name, get_section_file_name)
8391 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8392 declare.
8393 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8394 (dwarf2_section_info::get_bfd_owner)
8395 (dwarf2_section_info::get_bfd_section)
8396 (dwarf2_section_info::get_name)
8397 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8398 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8399 (dwarf2_section_info::read): Now methods.
8400 * dwarf-index-write.c (class debug_names): Update.
8401
2c86cff9
TT
84022020-02-08 Tom Tromey <tom@tromey.com>
8403
8404 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8405 Move to dwarf2/section.h.
8406 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8407 (get_section_bfd_section, get_section_name)
8408 (get_section_file_name, get_section_id, get_section_flags)
8409 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8410 dwarf2/section.c.
8411 * dwarf2/section.h: New file.
8412 * dwarf2/section.c: New file, from dwarf2read.c.
8413 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8414
f4382c45
TT
84152020-02-08 Tom Tromey <tom@tromey.com>
8416
8417 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8418 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8419 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8420 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8421 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8422 * dwarf2/leb.h: New file, from dwarf2read.c.
8423 * dwarf2/leb.c: New file, from dwarf2read.c.
8424 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8425 Remove.
8426 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8427 (COMMON_SFILES): Add dwarf2/leb.c.
8428
01840b7a
JB
84292020-02-08 Joel Brobecker <brobecker@adacore.com>
8430
8431 GDB 9.1 released.
8432
dfcb27e4
IB
84332020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8434
8435 PR gdb/25190:
aac66a4c
SM
8436 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8437 * gdb/remote.c (remote_console_output): Update.
8438 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8439 (ui_file_puts): ...this.
8440 * gdb/ui-file.h (ui_file_puts): Add declaration.
8441 * gdb/utils.c (emit_style_escape): Update.
8442 (flush_wrap_buffer): Update.
8443 (fputs_maybe_filtered): Update.
8444 (fputs_unfiltered): Add function.
dfcb27e4 8445
faa17681
IB
84462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8447
aac66a4c
SM
8448 * gdb/event-loop.c (gdb_wait_for_event): Update.
8449 * gdb/printcmd.c (printf_command): Update.
8450 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8451 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8452 (gdb_os_flush_stderr): Update.
8453 * gdb/remote.c (remote_console_output): Update.
8454 * gdb/ui-file.c (gdb_flush): Rename to...
8455 (ui_file_flush): ...this.
8456 (stderr_file::write): Update.
8457 (stderr_file::puts): Update.
8458 * gdb/ui-file.h (gdb_flush): Rename to...
8459 (ui_file_flush): ...this.
8460 * gdb/utils.c (gdb_flush): Add function.
8461 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8462
5abbbe1d
TT
84632020-02-07 Tom Tromey <tromey@adacore.com>
8464
8465 PR breakpoints/24915:
8466 * source.c (find_and_open_source): Do not check basenames_may_differ.
8467
919adfe8
TT
84682020-02-07 Tom Tromey <tom@tromey.com>
8469
8470 * README: Update gdbserver documentation.
8471 * gdbserver: Move to top level.
8472 * configure.tgt (build_gdbserver): Remove.
8473 * configure.ac: Remove --enable-gdbserver.
8474 * configure: Rebuild.
8475 * Makefile.in (distclean): Don't mention gdbserver.
8476
1d5d29e7
SV
84772020-02-06 Shahab Vahedi <shahab@synopsys.com>
8478
8479 * source-cache.c (source_cache::ensure): Surround
8480 get_plain_source_lines with a try/catch.
8481 (source_cache::get_line_charpos): Get rid of try/catch
8482 and only check for the return value of "ensure".
8483 * tui/tui-source.c (tui_source_window::set_contents):
8484 Simplify "nlines" calculation.
8485
6eb1129c
SV
84862020-02-06 Shahab Vahedi <shahab@synopsys.com>
8487
8488 * MAINTAINERS (Write After Approval): Add myself.
8489
c6a42d11
CB
84902020-02-05 Christian Biesinger <cbiesinger@google.com>
8491
8492 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8493 function call.
8494
c8ecdda6
CB
84952020-02-05 Christian Biesinger <cbiesinger@google.com>
8496
8497 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8498
f6480e70
MR
84992020-02-05 Maciej W. Rozycki <macro@wdc.com>
8500
8501 * nat/riscv-linux-tdesc.h: New file.
8502 * nat/riscv-linux-tdesc.c: New file, taking code from...
8503 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8504 ... here.
8505 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8506 NATDEPFILES.
8507
dcc9fbc6
AB
85082020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8509
8510 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8511 we don't set the fake simulator ptid to the null_ptid.
8512
719546c4
SM
85132020-02-03 Simon Marchi <simon.marchi@efficios.com>
8514
8515 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8516 * gdbthread.h (class thread_info) <resumed>: Likewise.
8517 * infrun.c (resume_1): Likewise.
8518 (proceed): Likewise.
8519 (infrun_thread_stop_requested): Likewise.
8520 (stop_all_threads): Likewise.
8521 (handle_inferior_event): Likewise.
8522 (restart_threads): Likewise.
8523 (finish_step_over): Likewise.
8524 (keep_going_stepped_thread): Likewise.
8525 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8526 (linux_handle_extended_wait): Likewise.
8527 * record-btrace.c (get_thread_current_frame_id): Likewise.
8528 * record-full.c (record_full_wait_1): Likewise.
8529 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8530 * target.c (target_resume): Likewise.
8531 * thread.c (set_running_thread): Likewise.
8532
e409c542
AKS
85332020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8534
8535 * f-valprint.c (f77_print_array_1): Changed datatype of index
8536 variable to LONGEST from int to enable it to contain bound
8537 values correctly.
8538
ee98c0da
MR
85392020-02-03 Maciej W. Rozycki <macro@wdc.com>
8540
8541 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8542 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8543 offsets according to FLEN determined.
8544 (riscv_linux_nat_target::read_description): Determine FLEN
8545 dynamically.
8546 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8547 according to FLEN determined.
8548 (riscv_linux_nat_target::store_registers): Likewise.
8549
aa66aac4
SV
85502020-02-01 Shahab Vahedi <shahab@synopsys.com>
8551
8552 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8553 when reg->group is empty and reggroup is not.
8554
fd9faca8
TT
85552020-01-31 Tom Tromey <tromey@adacore.com>
8556
8557 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8558 Call beneath target's mourn_inferior after unpushing.
8559
42330a68
AB
85602020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 PR tui/9765
8563 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8564 have enough lines to fill the screen, still return the lowest
8565 address we found.
8566
7a27a45b
AB
85672020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8568
8569 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8570 '-', '<', and '>' commands.
8571
c47f70e2
PA
85722020-01-29 Pedro Alves <palves@redhat.com>
8573 Sergio Durigan Junior <sergiodj@redhat.com>
8574
8575 * infcmd.c (construct_inferior_arguments): Assert that
8576 'argc' is greater than 0.
8577
5133a315
LM
85782020-01-29 Luis Machado <luis.machado@linaro.org>
8579
8580 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8581 (BRK_INSN_MASK): Define to 0xd4200000.
8582 (aarch64_program_breakpoint_here_p): New function.
8583 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8584 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8585 breakpoint.c.
8586 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8587 breakpoint.h
8588 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8589 call gdbarch_program_breakpoint_here_p.
8590 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8591 default_program_breakpoint_here_p, changed return type to bool and
8592 simplified.
8593 * breakpoint.h (program_breakpoint_here): Moved prototype to
8594 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8595 return type to bool.
8596 * gdbarch.c: Regenerate.
8597 * gdbarch.h: Regenerate.
8598 * gdbarch.sh (program_breakpoint_here_p): New method.
8599 * infrun.c (handle_signal_stop): Call
8600 gdbarch_program_breakpoint_here_p.
8601
168f8c6b
TT
86022020-01-26 Tom Tromey <tom@tromey.com>
8603
8604 * ctfread.c (struct ctf_fp_info): Reindent.
8605 (_initialize_ctfread): Remove.
8606
128a391f
TT
86072020-01-26 Tom Tromey <tom@tromey.com>
8608
8609 * psymtab.c (partial_map_expand_apply)
8610 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8611 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8612 (psym_print_stats, psym_expand_symtabs_for_function)
8613 (psym_map_symbol_filenames, psym_map_matching_symbols)
8614 (psym_expand_symtabs_matching)
8615 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8616 (maintenance_check_psymtabs): Use new methods.
8617 * psympriv.h (struct partial_symtab) <readin_p,
8618 get_compunit_symtab>: New methods.
8619 <readin, compunit_symtab>: Remove members.
8620 (struct standard_psymtab): New.
8621 (struct legacy_psymtab): Derive from standard_psymtab.
8622 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8623 standard_psymtab.
8624 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8625
0494dbec
TT
86262020-01-26 Tom Tromey <tom@tromey.com>
8627
8628 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8629 read_dependencies. Add assert.
8630 * psymtab.c (partial_symtab::read_dependencies): New method.
8631 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8632 method.
8633 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8634 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8635 read_dependencies.
8636 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8637 Add assert.
8638
8566b89b
TT
86392020-01-26 Tom Tromey <tom@tromey.com>
8640
8641 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8642 Call expand_psymtab.
8643 (xcoff_read_symtab): Call expand_psymtab.
8644 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8645 legacy_expand_psymtab.
8646 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8647 method.
8648 (struct legacy_psymtab) <expand_psymtab>: Implement.
8649 <legacy_expand_psymtab>: New member.
8650 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8651 (parse_partial_symbols): Set legacy_expand_psymtab.
8652 (psymtab_to_symtab_1): Change argument order. Call
8653 expand_psymtab.
8654 (new_psymtab): Set legacy_expand_psymtab.
8655 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8656 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8657 expand_psymtab.
8658 (dwarf2_psymtab::expand_psymtab): Rename from
8659 psymtab_to_symtab_1. Call expand_psymtab.
8660 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8661 (dbx_end_psymtab): Likewise.
8662 (dbx_psymtab_to_symtab_1): Change argument order. Call
8663 expand_psymtab.
8664 (dbx_read_symtab): Call expand_psymtab.
8665 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8666 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8667 (ctf_psymtab::read_symtab): Call expand_psymtab.
8668
077cbab2
TT
86692020-01-26 Tom Tromey <tom@tromey.com>
8670
8671 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8672 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8673 messages.
8674 * mdebugread.c (mdebug_read_symtab): Remove prints.
8675 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8676 assert.
8677 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8678
891813be
TT
86792020-01-26 Tom Tromey <tom@tromey.com>
8680
8681 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8682 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8683 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8684 legacy_symtab.
8685 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8686 * psymtab.c (psymtab_to_symtab): Call method.
8687 (dump_psymtab): Update.
8688 * psympriv.h (struct partial_symtab): Add virtual destructor.
8689 <read_symtab>: New method.
8690 (struct legacy_symtab): New.
8691 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8692 (struct pst_map) <pst>: Now a legacy_psymtab.
8693 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8694 (new_psymtab): Use legacy_psymtab.
8695 * dwarf2read.h (struct dwarf2_psymtab): New.
8696 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8697 * dwarf2read.c (dwarf2_create_include_psymtab)
8698 (dwarf2_build_include_psymtabs, create_type_unit_group)
8699 (create_partial_symtab, process_psymtab_comp_unit_reader)
8700 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8701 (set_partial_user): Use dwarf2_psymtab.
8702 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8703 (psymtab_to_symtab_1, process_full_comp_unit)
8704 (process_full_type_unit, dwarf2_ranges_read)
8705 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8706 (dwarf_decode_lines): Use dwarf2_psymtab.
8707 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8708 (add_address_entry_worker, write_one_signatured_type)
8709 (recursively_count_psymbols, recursively_write_psymbols)
8710 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8711 (write_debug_names): Likewise.
8712 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8713 <pst>: Now a legacy_psymtab.
8714 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8715 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8716 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8717 * ctfread.c (struct ctf_psymtab): New.
8718 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8719 ctf_psymtab.
8720 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8721 (create_partial_symtab): Return a ctf_psymtab.
8722 (scan_partial_symbols): Update.
8723
c3693a1d
TT
87242020-01-26 Tom Tromey <tom@tromey.com>
8725
8726 * xcoffread.c (xcoff_start_psymtab): Use new.
8727 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8728 renamed from start_psymtab_common.
8729 * psympriv.h (struct partial_symtab): Add new constructor.
8730 (start_psymtab_common): Don't declare.
8731 * mdebugread.c (parse_partial_symbols): Use new.
8732 * dwarf2read.c (create_partial_symtab): Use new.
8733 * dbxread.c (start_psymtab): Use new.
8734 * ctfread.c (create_partial_symtab): Use new.
8735
32caafd0
TT
87362020-01-26 Tom Tromey <tom@tromey.com>
8737
8738 * xcoffread.c (xcoff_end_psymtab): Use new.
8739 * psymtab.c (start_psymtab_common): Use new.
8740 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8741 Update.
8742 * psympriv.h (struct partial_symtab): Add parameters to
8743 constructor. Don't inline.
8744 (allocate_psymtab): Don't declare.
8745 * mdebugread.c (new_psymtab): Use new.
8746 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8747 * dbxread.c (dbx_end_psymtab): Use new.
8748
abaa2f23
TT
87492020-01-26 Tom Tromey <tom@tromey.com>
8750
8751 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8752 allocate_psymtab. Update documentation.
8753 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8754 allocate_psymtab. Do not use new.
8755 (allocate_psymtab): Use new. Update.
8756
6d94535f
TT
87572020-01-26 Tom Tromey <tom@tromey.com>
8758
8759 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8760 * psymtab.c (psym_print_stats): Update.
8761 * psympriv.h (struct partial_symtab) <readin,
8762 psymtabs_addrmap_supported, anonymous>: Now bool.
8763 * mdebugread.c (psymtab_to_symtab_1): Update.
8764 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8765 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8766 (process_full_comp_unit, process_full_type_unit): Update.
8767 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8768 * ctfread.c (psymtab_to_symtab): Update.
8769
6f17252b
TT
87702020-01-26 Tom Tromey <tom@tromey.com>
8771
8772 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8773 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8774 * psymtab.c (psymtab_storage): Delete psymtabs.
8775 (psymtab_storage::allocate_psymtab): Use new.
8776 (psymtab_storage::discard_psymtab): Use delete.
8777 * psympriv.h (struct partial_symtab): Add constructor and
8778 initializers.
8779
f6f1cebc
TT
87802020-01-26 Tom Tromey <tom@tromey.com>
8781
8782 * machoread.c: Do not include psympriv.h.
8783
e47e48f6
PW
87842020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8785
8786 * NEWS: Mention the new option and the set/show commands.
8787
a2fedca9
PW
87882020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8789
8790 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8791 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8792 (validate_exec_file): New variables, enums, functions.
8793 (exec_file_locate_attach, print_section_info): Style the filenames.
8794 (_initialize_exec): Install show_exec_file_mismatch_command and
8795 set_exec_file_mismatch_command.
8796 * gdbcore.h (validate_exec_file): Declare.
8797 * infcmd.c (attach_command): Call validate_exec_file.
8798 * remote.c ( remote_target::remote_add_inferior): Likewise.
8799
7ffa82e1
AB
88002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * frame.c (find_frame_sal): Move call to get_next_frame into more
8803 inner scope.
8804 * inline-frame.c (inilne_state) <inline_state>: Update argument
8805 types.
8806 (inilne_state) <skipped_symbol>: Rename to...
8807 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8808 (skip_inline_frames): Build vector of skipped symbols and use this
8809 to reate the inline_state.
8810 (inline_skipped_symbol): Add a comment and some assertions, fetch
8811 skipped symbol from the list.
8812
3d92a3e3
AB
88132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8814
8815 * buildsym.c (lte_is_less_than): Delete.
8816 (buildsym_compunit::end_symtab_with_blockvector): Create local
8817 lambda function to sort line table entries, and use
8818 std::stable_sort instead of std::sort.
8819 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8820 markers when looking for a previous line.
8821
94a72be7
AB
88222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 * dwarf2read.c (lnp_state_machine::record_line): Include
8825 end_sequence parameter in debug print out. Record the line if we
8826 are at an end_sequence marker even if it's not the start of a
8827 statement.
8828 * symmisc.c (maintenance_print_one_line_table): Print end of
8829 sequence markers with 'END' not '0'.
8830
53af73bf
PA
88312020-01-24 Pedro Alves <palves@redhat.com>
8832
8833 PR gdb/25410
8834 * thread.c (scoped_restore_current_thread::restore): Use
8835 switch_to_inferior_no_thread.
8836 * exec.c: Include "progspace-and-thread.h".
8837 (add_target_sections, remove_target_sections):
8838 scoped_restore_current_pspace_and_thread instead of
8839 scoped_restore_current_thread.
8840 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8841 and aspace to the inferior before calling clone_program_space.
8842 Remove stale comment.
8843
3050c6f4
CB
88442020-01-24 Christian Biesinger <cbiesinger@google.com>
8845
8846 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8847 (arm_netbsd_nat_target::fetch_registers): ...this.
8848 (arm_nbsd_nat_target::store_registers): Rename to...
8849 (arm_netbsd_nat_target::store_registers): ...this.
8850
73685c7e
CB
88512020-01-24 Christian Biesinger <cbiesinger@google.com>
8852
8853 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8854 register_t.
8855
89203d40
CB
88562020-01-24 Christian Biesinger <cbiesinger@google.com>
8857
8858 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8859 Update comment.
8860 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8861 Likewise.
8862 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8863 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8864 the correct replacement (iterate_over_regset_sections).
8865 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8866 Update comment.
8867
1ba1ac88
AB
88682020-01-24 Graham Markall <graham.markall@embecosm.com>
8869
8870 PR gdb/23718
8871 * gdb/python/python.c (execute_gdb_command): Call
8872 async_enable_stdin in catch block.
8873
f3364a6d
AB
88742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8875
8876 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8877 SWITCH_THRU_ALL_UIS.
8878
733d0a67
AB
88792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8880
8881 PR tui/9765
8882 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8883 comment, add extra parameter, and update to store previous symbol
8884 when appropriate.
8885 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8886 add extra parameter.
8887 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8888 remove unneeded parameter, add try/catch around gdb_print_insn,
8889 rewrite to add items to asm_lines vector.
8890 (tui_find_backward_disassembly_start_address): New function.
8891 (tui_find_disassembly_address): Updated throughout.
8892 (tui_disasm_window::set_contents): Update for changes to
8893 tui_disassemble.
8894 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8895 number of lines to scroll.
8896
b3b3bada
SM
88972020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8898
8899 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8900 (SECT_OFF_DATA): Likewise.
8901 (SECT_OFF_RODATA): Likewise.
8902 (SECT_OFF_TEXT): Likewise.
8903 (SECT_OFF_BSS): Likewise.
8904 (struct objfile) <text_section_offset, data_section_offset>: New
8905 methods.
8906 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8907 objfile::text_section_offset.
8908 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8909 * coffread.c (coff_symtab_read): Likewise.
8910 (enter_linenos): Likewise.
8911 (process_coff_symbol): Likewise.
8912 * ctfread.c (get_objfile_text_range): Likewise.
8913 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8914 Use objfile::data_section_offset.
8915 * dwarf2-frame.c (execute_cfa_program): Use
8916 objfile::text_section_offset.
8917 (dwarf2_frame_find_fde): Likewise.
8918 * dwarf2read.c (create_addrmap_from_index): Likewise.
8919 (create_addrmap_from_aranges): Likewise.
8920 (dw2_find_pc_sect_compunit_symtab): Likewise.
8921 (process_psymtab_comp_unit_reader): Likewise.
8922 (add_partial_symbol): Likewise.
8923 (add_partial_subprogram): Likewise.
8924 (process_full_comp_unit): Likewise.
8925 (read_file_scope): Likewise.
8926 (read_func_scope): Likewise.
8927 (read_lexical_block_scope): Likewise.
8928 (read_call_site_scope): Likewise.
8929 (dwarf2_rnglists_process): Likewise.
8930 (dwarf2_ranges_process): Likewise.
8931 (dwarf2_ranges_read): Likewise.
8932 (dwarf_decode_lines_1): Likewise.
8933 (new_symbol): Likewise.
8934 (dwarf2_fetch_die_loc_sect_off): Likewise.
8935 (dwarf2_per_cu_text_offset): Likewise.
8936 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8937 * hppa-tdep.c (read_unwind_info): Likewise.
8938 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8939 * psympriv.h (struct partial_symtab): Likewise.
8940 * psymtab.c (find_pc_sect_psymtab): Likewise.
8941 * solib-svr4.c (enable_break): Likewise.
8942 * stap-probe.c (relocate_address): Use
8943 objfile::data_section_offset.
8944 * xcoffread.c (enter_line_range): Use
8945 objfile::text_section_offset.
8946 (read_xcoff_symtab): Likewise.
8947
ab53f382
SM
89482020-01-23 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8951 declaration to narrower scopes.
8952
e7eee665
SM
89532020-01-23 Simon Marchi <simon.marchi@efficios.com>
8954
8955 * darwin-nat.h (struct darwin_exception_msg, enum
8956 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8957 Move up.
8958 (class darwin_nat_target) <wait_1, check_new_threads,
8959 decode_exception_message, decode_message, stop_inferior,
8960 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8961 * darwin-nat.c (darwin_check_new_threads): Rename to...
8962 (darwin_nat_target::check_new_threads): ... this.
8963 (darwin_suspend_inferior_it): Remove.
8964 (darwin_decode_exception_message): Rename to...
8965 (darwin_nat_target::decode_exception_message): ... this.
8966 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8967 (darwin_decode_message): Rename to...
8968 (darwin_nat_target::decode_message): ... this.
8969 (cancel_breakpoint): Rename to...
8970 (darwin_nat_target::cancel_breakpoint): ... this.
8971 (darwin_wait): Rename to...
8972 (darwin_nat_target::wait_1): ... this. Use range-based for loop
8973 instead of iterate_over_inferiors.
8974 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
8975 (darwin_stop_inferior): Rename to...
8976 (darwin_nat_target::stop_inferior): ... this.
8977 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
8978 (darwin_init_thread_list): Rename to...
8979 (darwin_nat_target::init_thread_list): ... this.
8980 (darwin_ptrace_him): Rename to...
8981 (darwin_nat_target::ptrace_him): ... this.
8982 (darwin_nat_target::create_inferior): Pass lambda function to
8983 fork_inferior.
8984 (darwin_nat_target::detach): Call stop_inferior instead of
8985 darwin_stop_inferior.
8986 * fork-inferior.h (fork_inferior): Change init_trace_fun
8987 parameter to gdb::function_view.
8988 * fork-inferior.c (fork_inferior): Likewise.
8989
c162ed3e
HD
89902020-01-23 Hannes Domani <ssbssa@yahoo.de>
8991
8992 * i386-cygwin-tdep.c (core_process_module_section): Update.
8993 * windows-nat.c (struct lm_info_windows): Add text_offset.
8994 (windows_xfer_shared_libraries): Update.
8995 * windows-tdep.c (windows_xfer_shared_library):
8996 Add text_offset_cached argument.
8997 * windows-tdep.h (windows_xfer_shared_library): Update.
8998
a1237872
SM
89992020-01-21 Simon Marchi <simon.marchi@efficios.com>
9000
9001 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9002
b3ee6dd9
SM
90032020-01-21 Simon Marchi <simon.marchi@efficios.com>
9004
9005 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9006 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9007 replace with range-based for.
9008 (gdbsim_interrupt_inferior): Remove.
9009 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9010 with a range-based for. Inline code from
9011 gdbsim_interrupt_inferior.
9012
f9fac3c8
SM
90132020-01-21 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * infrun.c (proceed): Fix indentation.
9016
f6474de9
TT
90172020-01-21 Tom Tromey <tromey@adacore.com>
9018
9019 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9020 * python/python.c (python_extension_ops): Update.
9021 (gdbpy_colorize): New function.
9022 * python/lib/gdb/__init__.py (colorize): New function.
9023 * extension.h (ext_lang_colorize): Declare.
9024 * extension.c (ext_lang_colorize): New function.
9025 * extension-priv.h (struct extension_language_ops) <colorize>: New
9026 member.
9027 * cli/cli-style.c (_initialize_cli_style): Update help text.
9028
f0c702d4
LM
90292020-01-21 Luis Machado <luis.machado@linaro.org>
9030
9031 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9032 <cond>: Change type to bool.
9033 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9034 (aarch64_displaced_step_cb): Likewise.
9035 (aarch64_displaced_step_tb): Likewise.
9036
1ab139e5
LM
90372020-01-21 Luis Machado <luis.machado@linaro.org>
9038
9039 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9040 output.
9041
0c271889
LM
90422020-01-21 Luis Machado <luis.machado@linaro.org>
9043
9044 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9045 <pc_adjust>: Adjust the documentation.
9046 (aarch64_displaced_step_fixup): Check if PC really moved before
9047 adjusting it.
9048
4d89c1c7
TT
90492020-01-19 Tom Tromey <tom@tromey.com>
9050
9051 * disasm.c (~gdb_disassembler): New destructor.
9052 (gdb_buffered_insn_length): Call disassemble_free_target.
9053 * disasm.h (class gdb_disassembler): Declare destructor. Use
9054 DISABLE_COPY_AND_ASSIGN.
9055
c0ab21c2
TT
90562020-01-19 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9059 (die_reader_func_ftype): Remove.
9060 (cutu_reader): New class.
9061 (dw2_get_file_names_reader): Remove "data" parameter.
9062 (dw2_get_file_names): Use cutu_reader.
9063 (create_debug_type_hash_table): Update.
9064 (read_cutu_die_from_dwo): Update comment.
9065 (lookup_dwo_unit): Add dwo_name parameter.
9066 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9067 die_reader_func_ftype and data parameters.
9068 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9069 Remove die_reader_func_ftype and data parameters.
9070 (~cutu_reader): New; from init_cutu_and_read_dies.
9071 (cutu_reader::cutu_reader): Rename from
9072 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9073 and data parameters.
9074 (init_cutu_and_read_dies_simple): Remove.
9075 (struct process_psymtab_comp_unit_data): Remove.
9076 (process_psymtab_comp_unit_reader): Remove data parameter; add
9077 want_partial_unit and pretend_language parameters.
9078 (process_psymtab_comp_unit): Use cutu_reader.
9079 (build_type_psymtabs_reader): Remove data parameter.
9080 (build_type_psymtabs_1): Use cutu_reader.
9081 (process_skeletonless_type_unit): Likewise.
9082 (load_partial_comp_unit_reader): Remove.
9083 (load_partial_comp_unit): Use cutu_reader.
9084 (load_full_comp_unit_reader): Remove.
9085 (load_full_comp_unit): Use cutu_reader.
9086 (struct create_dwo_cu_data): Remove.
9087 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9088 dwo_unit parameters.
9089 (create_cus_hash_table): Use cutu_reader.
9090 (struct dwarf2_read_addr_index_data): Remove.
9091 (dwarf2_read_addr_index_reader): Remove.
9092 (dwarf2_read_addr_index): Use cutu_reader.
9093 (read_signatured_type_reader): Remove.
9094 (read_signatured_type): Use cutu_reader.
9095
45bbae5c
TT
90962020-01-19 Tom Tromey <tom@tromey.com>
9097
9098 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9099 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9100 (tui_wrefresh): Declare.
9101 * tui/tui-wingeneral.c (suppress_output): New global.
9102 (tui_suppress_output, ~tui_suppress_output): New constructor and
9103 destructor.
9104 (tui_wrefresh): New function.
9105 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9106 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9107 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9108 method.
9109 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9110 tui_wrefresh.
9111 (tui_data_window::no_refresh): New method.
9112 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9113 (tui_reg_command): Use tui_suppress_output
9114 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9115 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9116 method.
9117 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9118
4f13c1c0
TT
91192020-01-19 Tom Tromey <tom@tromey.com>
9120
9121 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9122 Handle case where symtab is null.
9123
fa47e446
SM
91242020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9125
9126 * linux-fork.c (one_fork_p): Simplify.
9127
26f42329
SM
91282020-01-17 Simon Marchi <simon.marchi@efficios.com>
9129
9130 * top.c (struct qt_args): Remove.
9131 (kill_or_detach): Change return type to void, replace `void *`
9132 parameter with a proper one.
9133 (print_inferior_quit_action): Likewise.
9134 (quit_confirm): Use range-based for loop to iterate over inferiors.
9135 (quit_force): Likewise.
9136
a9ac81b1
SM
91372020-01-17 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9140 `void *` parameter with proper parameters.
9141 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9142 (print_one_inferior): Change return type to void, replace `void *`
9143 parameter with proper parameters.
9144 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9145 inferiors.
9146 (get_other_inferior): Remove.
9147 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9148 inferiors.
9149
788eca49
SM
91502020-01-17 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * mi/mi-interp.c (report_initial_inferior): Remove.
9153 (mi_interp::init): Use range-based for to iterate over inferiors.
9154
d9bc85b6
SM
91552020-01-17 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * python/py-inferior.c (build_inferior_list): Remove.
9158 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9159
40c94099
CB
91602020-01-16 Christian Biesinger <cbiesinger@google.com>
9161
9162 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9163 (btrace_stitch_trace): Likewise.
9164 * charset.c (intermediate_encoding): Likewise (vaild).
9165 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9166 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9167 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9168
e0cdfe3c
HD
91692020-01-16 Hannes Domani <ssbssa@yahoo.de>
9170
9171 * windows-tdep.c (windows_get_tlb_type):
9172 Add rtl_user_process_parameters type.
9173
790f1718 91742020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9175 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9176
9177 PR build/24805
9178 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9179 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9180 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9181 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9182 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9183 (ps_plog): Redeclare exported functions with default visibility.
9184
3112ed97
NA
91852020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9186
9187 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9188 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9189
8dc3273e
SM
91902020-01-15 Simon Marchi <simon.marchi@efficios.com>
9191
9192 * infcmd.c (post_create_inferior): Use get_thread_regcache
9193 instead of get_current_regcache.
9194
ff47f4f0
TT
91952020-01-14 Tom Tromey <tom@tromey.com>
9196
9197 PR symtab/12535:
9198 * python/python.c (gdbpy_decode_line): Treat empty string the same
9199 as no argument.
9200
975f45b7
TT
92012020-01-14 Tom Tromey <tom@tromey.com>
9202
9203 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9204
25e57356
TT
92052020-01-14 Tom Tromey <tom@tromey.com>
9206
9207 * nat/linux-btrace.c: Don't include <config.h>.
9208 * nat/linux-ptrace.c: Don't include <config.h>.
9209 * nat/x86-linux-dregs.c: Don't include <config.h>.
9210
05ea2a05
TT
92112020-01-14 Tom Tromey <tom@tromey.com>
9212
9213 * configure: Rebuild.
9214 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9215
01027315
TT
92162020-01-14 Tom Tromey <tom@tromey.com>
9217
9218 * nat/x86-linux-dregs.c: Include configh.h.
9219 * nat/linux-ptrace.c: Include configh.h.
9220 * nat/linux-btrace.c: Include configh.h.
9221 * defs.h: Include config.h, bfd.h.
9222 * configure.ac: Don't source common.host.
9223 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9224 * configure: Rebuild.
9225 * acinclude.m4: Update path.
9226 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9227 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9228 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9229 (CLIBS): Add LIBSUPPORT.
9230 (CDEPS): Likewise.
9231 (COMMON_SFILES): Remove gdbsupport files.
9232 (HFILES_NO_SRCDIR): Likewise.
9233 (stamp-version): Update path to create-version.sh.
9234 (ALLDEPFILES): Remove gdbsupport files.
9235
b2ceabe8
TT
92362020-01-14 Tom Tromey <tom@tromey.com>
9237
9238 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9239 USE_WIN32API when needed.
9240 * configure.ac (USE_WIN32API): Don't define.
9241 (WIN32LIBS): Use WIN32APILIBS.
9242 * configure: Rebuild.
9243
25c51f71
TT
92442020-01-14 Tom Tromey <tom@tromey.com>
9245
9246 * configure: Rebuild.
9247 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9248
717c684d
BE
92492020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9250
9251 * skip.c (skip_function_command): Make skip w/o arguments use the
9252 name of the inlined function if pc is inside any inlined function.
9253
7da6a5b9
LM
92542020-01-14 Luis Machado <luis.machado@linaro.org>
9255
9256 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9257 * infrun.c (resume_1): Likewise.
9258 (handle_inferior_event): Remove stale comment.
9259 * linux-nat.c (linux_nat_target::resume): Update comments.
9260 (save_stop_reason): Likewise.
9261 (linux_nat_filter_event): Likewise.
9262 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9263
44e4c775
AB
92642020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9265
9266 * elfread.c (record_minimal_symbol): Set section index to 0 for
9267 non-allocatable sections.
9268
18a8505e
AT
9269
92702020-01-13 Ali Tamur <tamur@google.com>
9271
9272 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9273 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9274 to gdb::optional. Update comments.
9275 (dwo_file): Update comments.
9276 (read_attribute): Update API to take an additional out parameter,
9277 need_reprocess. This is used to mark attributes that need other
9278 attributes (e.g. str_offsets_base) for correct computation which may not
9279 have been read yet.
9280 (read_attribute_reprocess): New function declaration.
9281 (read_addr_index): Likewise.
9282 (read_dwo_str_index): Likewise.
9283 (read_stub_str_index): Likewise.
9284 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9285 (lookup_addr_base): New function definition.
9286 (lookup_ranges_base): Likewise.
9287 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9288 lookup_ranges_base.
9289 (init_cutu_and_read_dies): Update comments.
9290 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9291 unit. This is used to inherit parent's str_offsets_base and addr_base.
9292 Update comments.
9293 (init_cutu_and_read_dies_simple): Reflect API changes.
9294 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9295 (create_cus_hash_table): Change API to take parent compile unit.
9296 Reflect API changes.
9297 (open_and_init_dwo_file): Reflect API changes.
9298 (dwarf2_get_pc_bounds): Update comments.
9299 (dwarf2_record_block_ranges): Likewise.
9300 (read_full_die_1): Change implementation to reprocess attributes that
9301 need str_offsets_base and addr_base.
9302 (partial_die_info::read): Likewise.
9303 (read_attribute_reprocess): New function definition.
9304 (read_attribute_value): Change API to take an additional out parameter,
9305 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9306 when a non-dwo compile unit has index based attributes.
9307 (read_attribute): Reflect API changes.
9308 (read_addr_index_1): Reflect API changes. Update comments.
9309 (dwarf2_read_addr_index_data): Reflect API changes.
9310 (dwarf2_read_addr_index): Likewise.
9311 (read_str_index): Change API and implementation. This becomes a helper
9312 to be used by the new string index related methods. Update error
9313 message and comments.
9314 (read_dwo_str_index): New function definition.
9315 (read_stub_str_index): Likewise.
9316 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9317 * symfile.h (dwarf2_debug_sections): Likewise.
9318 * xcoffread.c (dwarf2_debug_sections): Likewise.
9319
0cac9354
SM
93202020-01-13 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9323 core_reg_sect type to gdb_byte *.
9324 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9325 * cris-tdep.c (fetch_core_registers): Likewise.
9326 * corelow.c (core_target::get_core_register_section): Change
9327 type of `contents` to gdb::byte_vector.
9328
9a6d629c
AB
93292020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9330
9331 * tui/tui-wingeneral.c (box_win): Position the title in the center
9332 of the border.
9333
d8b2f9e3
SM
93342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * corelow.c (core_target::get_core_register_section): Use
9337 std::vector instead of alloca.
9338
bb564c58
SM
93392020-01-13 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * warning.m4: Add -Wmissing-declarations to build_warnings.
9342 * configure: Re-generate.
9343
6b366111
SM
93442020-01-13 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * python/python.c (init__gdb_module): Add declaration.
9347
6c265988
SM
93482020-01-13 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9351 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9352 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9353 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9354 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9355 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9356 * ada-exp.y (_initialize_ada_exp): Add declaration.
9357 * ada-lang.c (_initialize_ada_language): Add declaration.
9358 * ada-tasks.c (_initialize_tasks): Add declaration.
9359 * agent.c (_initialize_agent): Add declaration.
9360 * aix-thread.c (_initialize_aix_thread): Add declaration.
9361 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9362 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9363 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9364 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9365 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9366 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9367 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9368 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9369 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9370 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9371 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9372 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9373 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9374 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9375 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9376 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9377 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9378 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9379 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9380 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9381 * annotate.c (_initialize_annotate): Add declaration.
9382 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9383 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9384 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9385 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9386 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9387 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9388 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9389 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9390 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9391 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9392 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9393 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9394 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9395 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9396 * auto-load.c (_initialize_auto_load): Add declaration.
9397 * auxv.c (_initialize_auxv): Add declaration.
9398 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9399 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9400 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9401 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9402 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9403 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9404 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9405 * breakpoint.c (_initialize_breakpoint): Add declaration.
9406 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9407 * btrace.c (_initialize_btrace): Add declaration.
9408 * charset.c (_initialize_charset): Add declaration.
9409 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9410 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9411 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9412 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9413 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9414 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9415 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9416 * coffread.c (_initialize_coffread): Add declaration.
9417 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9418 * compile/compile.c (_initialize_compile): Add declaration.
9419 * complaints.c (_initialize_complaints): Add declaration.
9420 * completer.c (_initialize_completer): Add declaration.
9421 * copying.c (_initialize_copying): Add declaration.
9422 * corefile.c (_initialize_core): Add declaration.
9423 * corelow.c (_initialize_corelow): Add declaration.
9424 * cp-abi.c (_initialize_cp_abi): Add declaration.
9425 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9426 * cp-support.c (_initialize_cp_support): Add declaration.
9427 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9428 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9429 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9430 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9431 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9432 * ctfread.c (_initialize_ctfread): Add declaration.
9433 * d-lang.c (_initialize_d_language): Add declaration.
9434 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9435 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9436 * dbxread.c (_initialize_dbxread): Add declaration.
9437 * dcache.c (_initialize_dcache): Add declaration.
9438 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9439 * disasm.c (_initialize_disasm): Add declaration.
9440 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9441 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9442 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9443 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9444 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9445 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9446 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9447 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9448 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9449 * elfread.c (_initialize_elfread): Add declaration.
9450 * exec.c (_initialize_exec): Add declaration.
9451 * extension.c (_initialize_extension): Add declaration.
9452 * f-lang.c (_initialize_f_language): Add declaration.
9453 * f-valprint.c (_initialize_f_valprint): Add declaration.
9454 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9455 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9456 * filesystem.c (_initialize_filesystem): Add declaration.
9457 * findcmd.c (_initialize_mem_search): Add declaration.
9458 * findvar.c (_initialize_findvar): Add declaration.
9459 * fork-child.c (_initialize_fork_child): Add declaration.
9460 * frame-base.c (_initialize_frame_base): Add declaration.
9461 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9462 * frame.c (_initialize_frame): Add declaration.
9463 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9464 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9465 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9466 * gcore.c (_initialize_gcore): Add declaration.
9467 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9468 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9469 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9470 * gdbarch.c (_initialize_gdbarch): Add declaration.
9471 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9472 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9473 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9474 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9475 * go-lang.c (_initialize_go_language): Add declaration.
9476 * go32-nat.c (_initialize_go32_nat): Add declaration.
9477 * guile/guile.c (_initialize_guile): Add declaration.
9478 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9479 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9480 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9481 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9482 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9483 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9484 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9485 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9486 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9487 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9488 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9489 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9490 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9491 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9492 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9493 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9494 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9495 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9496 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9497 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9498 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9499 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9500 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9501 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9502 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9503 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9504 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9505 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9506 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9507 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9508 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9509 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9510 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9511 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9512 * infcall.c (_initialize_infcall): Add declaration.
9513 * infcmd.c (_initialize_infcmd): Add declaration.
9514 * inflow.c (_initialize_inflow): Add declaration.
9515 * infrun.c (_initialize_infrun): Add declaration.
9516 * interps.c (_initialize_interpreter): Add declaration.
9517 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9518 * jit.c (_initialize_jit): Add declaration.
9519 * language.c (_initialize_language): Add declaration.
9520 * linux-fork.c (_initialize_linux_fork): Add declaration.
9521 * linux-nat.c (_initialize_linux_nat): Add declaration.
9522 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9523 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9524 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9525 * m2-lang.c (_initialize_m2_language): Add declaration.
9526 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9527 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9528 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9529 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9530 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9531 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9532 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9533 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9534 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9535 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9536 * machoread.c (_initialize_machoread): Add declaration.
9537 * macrocmd.c (_initialize_macrocmd): Add declaration.
9538 * macroscope.c (_initialize_macroscope): Add declaration.
9539 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9540 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9541 * maint.c (_initialize_maint_cmds): Add declaration.
9542 * mdebugread.c (_initialize_mdebugread): Add declaration.
9543 * memattr.c (_initialize_mem): Add declaration.
9544 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9545 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9546 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9547 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9548 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9549 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9550 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9551 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9552 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9553 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9554 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9555 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9556 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9557 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9558 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9559 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9560 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9561 * mipsread.c (_initialize_mipsread): Add declaration.
9562 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9563 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9564 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9565 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9566 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9567 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9568 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9569 * nto-procfs.c (_initialize_procfs): Add declaration.
9570 * objc-lang.c (_initialize_objc_language): Add declaration.
9571 * observable.c (_initialize_observer): Add declaration.
9572 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9573 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9574 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9575 * osabi.c (_initialize_gdb_osabi): Add declaration.
9576 * osdata.c (_initialize_osdata): Add declaration.
9577 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9578 * parse.c (_initialize_parse): Add declaration.
9579 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9580 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9581 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9582 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9583 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9584 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9585 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9586 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9587 * printcmd.c (_initialize_printcmd): Add declaration.
9588 * probe.c (_initialize_probe): Add declaration.
9589 * proc-api.c (_initialize_proc_api): Add declaration.
9590 * proc-events.c (_initialize_proc_events): Add declaration.
9591 * proc-service.c (_initialize_proc_service): Add declaration.
9592 * procfs.c (_initialize_procfs): Add declaration.
9593 * producer.c (_initialize_producer): Add declaration.
9594 * psymtab.c (_initialize_psymtab): Add declaration.
9595 * python/python.c (_initialize_python): Add declaration.
9596 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9597 * record-btrace.c (_initialize_record_btrace): Add declaration.
9598 * record-full.c (_initialize_record_full): Add declaration.
9599 * record.c (_initialize_record): Add declaration.
9600 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9601 * regcache.c (_initialize_regcache): Add declaration.
9602 * reggroups.c (_initialize_reggroup): Add declaration.
9603 * remote-notif.c (_initialize_notif): Add declaration.
9604 * remote-sim.c (_initialize_remote_sim): Add declaration.
9605 * remote.c (_initialize_remote): Add declaration.
9606 * reverse.c (_initialize_reverse): Add declaration.
9607 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9608 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9609 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9610 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9611 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9612 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9613 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9614 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9615 Add declaration.
9616 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9617 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9618 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9619 * rust-exp.y (_initialize_rust_exp): Add declaration.
9620 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9621 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9622 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9623 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9624 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9625 * score-tdep.c (_initialize_score_tdep): Add declaration.
9626 * ser-go32.c (_initialize_ser_dos): Add declaration.
9627 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9628 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9629 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9630 * ser-uds.c (_initialize_ser_socket): Add declaration.
9631 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9632 * serial.c (_initialize_serial): Add declaration.
9633 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9634 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9635 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9636 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9637 * skip.c (_initialize_step_skip): Add declaration.
9638 * sol-thread.c (_initialize_sol_thread): Add declaration.
9639 * solib-aix.c (_initialize_solib_aix): Add declaration.
9640 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9641 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9642 * solib-frv.c (_initialize_frv_solib): Add declaration.
9643 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9644 * solib-target.c (_initialize_solib_target): Add declaration.
9645 * solib.c (_initialize_solib): Add declaration.
9646 * source-cache.c (_initialize_source_cache): Add declaration.
9647 * source.c (_initialize_source): Add declaration.
9648 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9649 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9650 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9651 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9652 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9653 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9654 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9655 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9656 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9657 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9658 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9659 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9660 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9661 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9662 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9663 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9664 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9665 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9666 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9667 * stabsread.c (_initialize_stabsread): Add declaration.
9668 * stack.c (_initialize_stack): Add declaration.
9669 * stap-probe.c (_initialize_stap_probe): Add declaration.
9670 * std-regs.c (_initialize_frame_reg): Add declaration.
9671 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9672 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9673 * symfile.c (_initialize_symfile): Add declaration.
9674 * symmisc.c (_initialize_symmisc): Add declaration.
9675 * symtab.c (_initialize_symtab): Add declaration.
9676 * target.c (_initialize_target): Add declaration.
9677 * target-connection.c (_initialize_target_connection): Add
9678 declaration.
9679 * target-dcache.c (_initialize_target_dcache): Add declaration.
9680 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9681 * thread.c (_initialize_thread): Add declaration.
9682 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9683 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9684 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9685 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9686 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9687 * tracectf.c (_initialize_ctf): Add declaration.
9688 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9689 * tracefile.c (_initialize_tracefile): Add declaration.
9690 * tracepoint.c (_initialize_tracepoint): Add declaration.
9691 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9692 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9693 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9694 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9695 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9696 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9697 * tui/tui.c (_initialize_tui): Add declaration.
9698 * typeprint.c (_initialize_typeprint): Add declaration.
9699 * ui-style.c (_initialize_ui_style): Add declaration.
9700 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9701 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9702 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9703 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9704 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9705 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9706 * unittests/filtered_iterator-selftests.c
9707 (_initialize_filtered_iterator_selftests): Add declaration.
9708 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9709 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9710 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9711 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9712 * unittests/main-thread-selftests.c
9713 (_initialize_main_thread_selftests): Add declaration.
9714 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9715 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9716 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9717 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9718 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9719 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9720 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9721 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9722 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9723 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9724 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9725 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9726 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9727 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9728 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9729 declaration.
9730 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9731 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9732 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9733 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9734 * user-regs.c (_initialize_user_regs): Add declaration.
9735 * utils.c (_initialize_utils): Add declaration.
9736 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9737 * valops.c (_initialize_valops): Add declaration.
9738 * valprint.c (_initialize_valprint): Add declaration.
9739 * value.c (_initialize_values): Add declaration.
9740 * varobj.c (_initialize_varobj): Add declaration.
9741 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9742 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9743 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9744 * windows-nat.c (_initialize_windows_nat): Add declaration.
9745 (_initialize_check_for_gdb_ini): Add declaration.
9746 (_initialize_loadable): Add declaration.
9747 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9748 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9749 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9750 * xcoffread.c (_initialize_xcoffread): Add declaration.
9751 * xml-support.c (_initialize_xml_support): Add declaration.
9752 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9753 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9754 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9755 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9756
e2de1eec
SM
97572020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9758
9759 * regformats/regdat.sh: Generate declaration for init function.
9760
e0037b4c
SM
97612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9762
9763 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9764 up.
9765 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9766 close_one_inferior>: New methods.
9767 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9768 pass down target to find_inferior_pid.
9769 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9770 Pass down target to find_inferior_ptid.
9771 (gdbsim_target::create_inferior): Pass down target to
9772 add_thread_silent.
9773 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9774 target down to find_inferior_ptid and switch_to_thread.
9775 (gdbsim_target::close): Update to call close_one_inferior.
9776 (struct resume_data): Remove.
9777 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9778 directly, rather than through a void pointer.
9779 (gdbsim_target::resume): Update to call resume_one_inferior.
9780
58920b5b
SM
97812020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9782
9783 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9784
4ec89149
PA
97852020-01-12 Pedro Alves <palves@redhat.com>
9786
9787 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9788 directly for the current inferior instead of
9789 discard_all_inferiors.
9790 (discard_all_inferiors): Delete.
9791
7c392d1d
TT
97922020-01-11 Tom Tromey <tom@tromey.com>
9793
9794 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9795 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9796 deprecated_safe_get_selected_frame.
9797
d9ebdab7
TBA
97982020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9799
9800 * inferior.c (print_inferior): Switch inferior before printing it.
9801
f3c469b9
PA
98022020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9803 Pedro Alves <palves@redhat.com>
9804
9805 * progspace-and-thread.c (switch_to_program_space_and_thread):
9806 Assert there's an inferior for PSPACE. Use
9807 switch_to_inferior_no_thread to switch the inferior too.
9808 * progspace.c (program_space::~program_space): Call
9809 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9810 (program_space::free_all_objfiles): Don't call clear_symtab_users
9811 here.
9812 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9813
65c574f6
PA
98142020-01-10 Pedro Alves <palves@redhat.com>
9815
9816 * NEWS: Mention multi-target debugging, "info connections", and
9817 "add-inferior -no-connection".
9818
2f4fcf00
PA
98192020-01-10 Pedro Alves <palves@redhat.com>
9820
9821 * infrun.c: Include "target-connection.h".
9822 (check_multi_target_resumption): New.
9823 (proceed): Call it.
9824 * target-connection.c (make_target_connection_string): Make
9825 extern.
9826 * target-connection.h (make_target_connection_string): Declare.
9827
121b3efd
PA
98282020-01-10 Pedro Alves <palves@redhat.com>
9829
9830 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9831 * inferior.c (uiout_field_connection): New function.
9832 (print_inferior): Add new "connection-id" column.
9833 (add_inferior_command): Show connection number/string of added
9834 inferior.
9835 * process-stratum-target.h
9836 (process_stratum_target::connection_string): New virtual method.
9837 (process_stratum_target::connection_number): New field.
9838 * remote.c (remote_target::connection_string): New override.
9839 * target-connection.c: New file.
9840 * target-connection.h: New file.
9841 * target.c (decref_target): Remove process_stratum targets from
9842 the connection list.
9843 (target_stack::push): Add process_stratum targets to the
9844 connection list.
9845
4f837581
PA
98462020-01-10 Pedro Alves <palves@redhat.com>
9847
9848 Revert:
9849 2016-04-12 Pedro Alves <palves@redhat.com>
9850 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9851 Remove references to name.
9852 * serial.h (struct serial) <name>: Delete.
9853
f4ec508e
PA
98542020-01-10 Pedro Alves <palves@redhat.com>
9855
9856 * gdbarch-selftests.c (register_to_value_test): Remove "target
9857 already pushed" check.
9858
5b6d1e4f
PA
98592020-01-10 Pedro Alves <palves@redhat.com>
9860 John Baldwin <jhb@FreeBSD.org>
9861
9862 * aarch64-linux-nat.c
9863 (aarch64_linux_nat_target::thread_architecture): Adjust.
9864 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9865 (task_command_1): Likewise.
9866 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9867 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9868 (aix_thread_target::store_registers)
9869 (aix_thread_target::thread_alive): Adjust.
9870 * amd64-fbsd-tdep.c: Include "inferior.h".
9871 (amd64fbsd_get_thread_local_address): Pass down target.
9872 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9873 thread's gdbarch instead of target_gdbarch.
9874 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9875 get_last_target_status.
9876 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9877 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9878 inferiors.
9879 (update_inserted_breakpoint_locations): Skip if inferiors with no
9880 execution.
9881 (update_global_location_list): When handling moribund locations,
9882 find representative inferior for location's pspace, and use thread
9883 count of its process_stratum target.
9884 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9885 * bsd-uthread.c (bsd_uthread_target::wait): Use
9886 as_process_stratum_target and adjust thread_change_ptid and
9887 add_thread calls.
9888 (bsd_uthread_target::update_thread_list): Use
9889 as_process_stratum_target and adjust find_thread_ptid,
9890 thread_change_ptid and add_thread calls.
9891 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9892 find_thread_ptid call.
9893 * corelow.c (add_to_thread_list): Adjust add_thread call.
9894 (core_target_open): Adjust add_thread_silent and thread_count
9895 calls.
9896 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9897 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9898 * event-top.c (async_disconnect): Pop targets from all inferiors.
9899 * exec.c (add_target_sections): Push exec target on all inferiors
9900 sharing the program space.
9901 (remove_target_sections): Remove the exec target from all
9902 inferiors sharing the program space.
9903 (exec_on_vfork): New.
9904 * exec.h (exec_on_vfork): Declare.
9905 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9906 Pass it down.
9907 (fbsd_nat_target::update_thread_list): Adjust.
9908 (fbsd_nat_target::resume): Adjust.
9909 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9910 down.
9911 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9912 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9913 get_thread_arch_regcache call.
9914 * fork-child.c (gdb_startup_inferior): Pass target down to
9915 startup_inferior and set_executing.
9916 * gdbthread.h (struct process_stratum_target): Forward declare.
9917 (add_thread, add_thread_silent, add_thread_with_info)
9918 (in_thread_list): Add process_stratum_target parameter.
9919 (find_thread_ptid(inferior*, ptid_t)): New overload.
9920 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9921 parameter.
9922 (all_threads()): Delete overload.
9923 (all_threads, all_non_exited_threads): Add process_stratum_target
9924 parameter.
9925 (all_threads_safe): Use brace initialization.
9926 (thread_count): Add process_stratum_target parameter.
9927 (set_resumed, set_running, set_stop_requested, set_executing)
9928 (threads_are_executing, finish_thread_state): Add
9929 process_stratum_target parameter.
9930 (switch_to_thread): Use is_current_thread.
9931 * i386-fbsd-tdep.c: Include "inferior.h".
9932 (i386fbsd_get_thread_local_address): Pass down target.
9933 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9934 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9935 have_inferiors check.
9936 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9937 (inf_ptrace_target::attach): Adjust.
9938 * infcall.c (run_inferior_call): Adjust.
9939 * infcmd.c (run_command_1): Pass target to
9940 scoped_finish_thread_state.
9941 (proceed_thread_callback): Skip inferiors with no execution.
9942 (continue_command): Rename 'all_threads' local to avoid hiding
9943 'all_threads' function. Adjust get_last_target_status call.
9944 (prepare_one_step): Adjust set_running call.
9945 (signal_command): Use user_visible_resume_target. Compare thread
9946 pointers instead of inferior_ptid.
9947 (info_program_command): Adjust to pass down target.
9948 (attach_command): Mark target's 'thread_executing' flag.
9949 (stop_current_target_threads_ns): New, factored out from ...
9950 (interrupt_target_1): ... this. Switch inferior before making
9951 target calls.
9952 * inferior-iter.h
9953 (struct all_inferiors_iterator, struct all_inferiors_range)
9954 (struct all_inferiors_safe_range)
9955 (struct all_non_exited_inferiors_range): Filter on
9956 process_stratum_target too. Remove explicit.
9957 * inferior.c (inferior::inferior): Push dummy target on target
9958 stack.
9959 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9960 Add process_stratum_target parameter, and pass it down.
9961 (have_live_inferiors): Adjust.
9962 (switch_to_inferior_and_push_target): New.
9963 (add_inferior_command, clone_inferior_command): Handle
9964 "-no-connection" parameter. Use
9965 switch_to_inferior_and_push_target.
9966 (_initialize_inferior): Mention "-no-connection" option in
9967 the help of "add-inferior" and "clone-inferior" commands.
9968 * inferior.h: Include "process-stratum-target.h".
9969 (interrupt_target_1): Use bool.
9970 (struct inferior) <push_target, unpush_target, target_is_pushed,
9971 find_target_beneath, top_target, process_target, target_at,
9972 m_stack>: New.
9973 (discard_all_inferiors): Delete.
9974 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
9975 (all_inferiors, all_non_exited_inferiors): Add
9976 process_stratum_target parameter.
9977 * infrun.c: Include "gdb_select.h" and <unordered_map>.
9978 (target_last_proc_target): New global.
9979 (follow_fork_inferior): Push target on new inferior. Pass target
9980 to add_thread_silent. Call exec_on_vfork. Handle target's
9981 reference count.
9982 (follow_fork): Adjust get_last_target_status call. Also consider
9983 target.
9984 (follow_exec): Push target on new inferior.
9985 (struct execution_control_state) <target>: New field.
9986 (user_visible_resume_target): New.
9987 (do_target_resume): Call target_async.
9988 (resume_1): Set target's threads_executing flag. Consider resume
9989 target.
9990 (commit_resume_all_targets): New.
9991 (proceed): Also consider resume target. Skip threads of inferiors
9992 with no execution. Commit resumtion in all targets.
9993 (start_remote): Pass current inferior to wait_for_inferior.
9994 (infrun_thread_stop_requested): Consider target as well. Pass
9995 thread_info pointer to clear_inline_frame_state instead of ptid.
9996 (infrun_thread_thread_exit): Consider target as well.
9997 (random_pending_event_thread): New inferior parameter. Use it.
9998 (do_target_wait): Rename to ...
9999 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10000 down.
10001 (threads_are_resumed_pending_p, do_target_wait): New.
10002 (prepare_for_detach): Adjust calls.
10003 (wait_for_inferior): New inferior parameter. Handle it. Use
10004 do_target_wait_1 instead of do_target_wait.
10005 (fetch_inferior_event): Adjust. Switch to representative
10006 inferior. Pass target down.
10007 (set_last_target_status): Add process_stratum_target parameter.
10008 Save target in global.
10009 (get_last_target_status): Add process_stratum_target parameter and
10010 handle it.
10011 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10012 (context_switch): Check inferior_ptid == null_ptid before calling
10013 inferior_thread().
10014 (get_inferior_stop_soon): Pass down target.
10015 (wait_one): Rename to ...
10016 (poll_one_curr_target): ... this.
10017 (struct wait_one_event): New.
10018 (wait_one): New.
10019 (stop_all_threads): Adjust.
10020 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10021 event's target.
10022 (switch_back_to_stepped_thread): Also consider target.
10023 (print_stop_event): Update.
10024 (normal_stop): Update. Also consider the resume target.
10025 * infrun.h (wait_for_inferior): Remove declaration.
10026 (user_visible_resume_target): New declaration.
10027 (get_last_target_status, set_last_target_status): New
10028 process_stratum_target parameter.
10029 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10030 process_stratum_target parameter, and use it.
10031 (clear_inline_frame_state (thread_info*)): New.
10032 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10033 process_stratum_target parameter.
10034 (clear_inline_frame_state (thread_info*)): Declare.
10035 * linux-fork.c (delete_checkpoint_command): Pass target down to
10036 find_thread_ptid.
10037 (checkpoint_command): Adjust.
10038 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10039 instead of just tweaking inferior_ptid.
10040 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10041 (exit_lwp): Pass target down to find_thread_ptid.
10042 (attach_proc_task_lwp_callback): Pass target down to
10043 add_thread/set_running/set_executing.
10044 (linux_nat_target::attach): Pass target down to
10045 thread_change_ptid.
10046 (get_detach_signal): Pass target down to find_thread_ptid.
10047 Consider last target status's target.
10048 (linux_resume_one_lwp_throw, resume_lwp)
10049 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10050 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10051 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10052 (linux_nat_target::async_wait_fd): New.
10053 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10054 target down.
10055 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10056 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10057 * linux-thread-db.c (struct thread_db_info::process_target): New
10058 field.
10059 (add_thread_db_info): Save target.
10060 (get_thread_db_info): New process_stratum_target parameter. Also
10061 match target.
10062 (delete_thread_db_info): New process_stratum_target parameter.
10063 Also match target.
10064 (thread_from_lwp): Adjust to pass down target.
10065 (thread_db_notice_clone): Pass down target.
10066 (check_thread_db_callback): Pass down target.
10067 (try_thread_db_load_1): Always push the thread_db target.
10068 (try_thread_db_load, record_thread): Pass target down.
10069 (thread_db_target::detach): Pass target down. Always unpush the
10070 thread_db target.
10071 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10072 target down. Always unpush the thread_db target.
10073 (find_new_threads_callback, thread_db_find_new_threads_2)
10074 (thread_db_target::update_thread_list): Pass target down.
10075 (thread_db_target::pid_to_str): Pass current inferior down.
10076 (thread_db_target::get_thread_local_address): Pass target down.
10077 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10078 target down.
10079 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10080 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10081 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10082 (procfs_init_inferior): Rename to ...
10083 (procfs_target::procfs_init_inferior): ... this and adjust.
10084 (procfs_target::create_inferior, procfs_notice_thread)
10085 (procfs_do_thread_registers): Adjust.
10086 * ppc-fbsd-tdep.c: Include "inferior.h".
10087 (ppcfbsd_get_thread_local_address): Pass down target.
10088 * proc-service.c (ps_xfer_memory): Switch current inferior and
10089 program space as well.
10090 (get_ps_regcache): Pass target down.
10091 * process-stratum-target.c
10092 (process_stratum_target::thread_address_space)
10093 (process_stratum_target::thread_architecture): Pass target down.
10094 * process-stratum-target.h
10095 (process_stratum_target::threads_executing): New field.
10096 (as_process_stratum_target): New.
10097 * ravenscar-thread.c
10098 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10099 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10100 down.
10101 * record-btrace.c (record_btrace_target::info_record): Adjust.
10102 (record_btrace_target::record_method)
10103 (record_btrace_target::record_is_replaying)
10104 (record_btrace_target::fetch_registers)
10105 (get_thread_current_frame_id, record_btrace_target::resume)
10106 (record_btrace_target::wait, record_btrace_target::stop): Pass
10107 target down.
10108 * record-full.c (record_full_wait_1): Switch to event thread.
10109 Pass target down.
10110 * regcache.c (regcache::regcache)
10111 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10112 process_stratum_target parameter and handle it.
10113 (current_thread_target): New global.
10114 (get_thread_regcache): Add process_stratum_target parameter and
10115 handle it. Switch inferior before calling target method.
10116 (get_thread_regcache): Pass target down.
10117 (get_thread_regcache_for_ptid): Pass target down.
10118 (registers_changed_ptid): Add process_stratum_target parameter and
10119 handle it.
10120 (registers_changed_thread, registers_changed): Pass target down.
10121 (test_get_thread_arch_aspace_regcache): New.
10122 (current_regcache_test): Define a couple local test_target_ops
10123 instances and use them for testing.
10124 (readwrite_regcache): Pass process_stratum_target parameter.
10125 (cooked_read_test, cooked_write_test): Pass mock_target down.
10126 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10127 (get_thread_arch_aspace_regcache): Add process_stratum_target
10128 parameter.
10129 (regcache::target): New method.
10130 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10131 (regcache::registers_changed_ptid): Add process_stratum_target
10132 parameter.
10133 (regcache::m_target): New field.
10134 (registers_changed_ptid): Add process_stratum_target parameter.
10135 * remote.c (remote_state::supports_vCont_probed): New field.
10136 (remote_target::async_wait_fd): New method.
10137 (remote_unpush_and_throw): Add remote_target parameter.
10138 (get_current_remote_target): Adjust.
10139 (remote_target::remote_add_inferior): Push target.
10140 (remote_target::remote_add_thread)
10141 (remote_target::remote_notice_new_inferior)
10142 (get_remote_thread_info): Pass target down.
10143 (remote_target::update_thread_list): Skip threads of inferiors
10144 bound to other targets. (remote_target::close): Don't discard
10145 inferiors. (remote_target::add_current_inferior_and_thread)
10146 (remote_target::process_initial_stop_replies)
10147 (remote_target::start_remote)
10148 (remote_target::remote_serial_quit_handler): Pass down target.
10149 (remote_target::remote_unpush_target): New remote_target
10150 parameter. Unpush the target from all inferiors.
10151 (remote_target::remote_unpush_and_throw): New remote_target
10152 parameter. Pass it down.
10153 (remote_target::open_1): Check whether the current inferior has
10154 execution instead of checking whether any inferior is live. Pass
10155 target down.
10156 (remote_target::remote_detach_1): Pass down target. Use
10157 remote_unpush_target.
10158 (extended_remote_target::attach): Pass down target.
10159 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10160 (remote_target::append_resumption): Pass down target.
10161 (remote_target::append_pending_thread_resumptions)
10162 (remote_target::remote_resume_with_hc, remote_target::resume)
10163 (remote_target::commit_resume): Pass down target.
10164 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10165 (remote_target::interrupt_query)
10166 (remote_target::remove_new_fork_children)
10167 (remote_target::check_pending_events_prevent_wildcard_vcont)
10168 (remote_target::remote_parse_stop_reply)
10169 (remote_target::process_stop_reply): Pass down target.
10170 (first_remote_resumed_thread): New remote_target parameter. Pass
10171 it down.
10172 (remote_target::wait_as): Pass down target.
10173 (unpush_and_perror): New remote_target parameter. Pass it down.
10174 (remote_target::readchar, remote_target::remote_serial_write)
10175 (remote_target::getpkt_or_notif_sane_1)
10176 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10177 down target.
10178 (remote_target::mourn_inferior): Pass down target. Use
10179 remote_unpush_target.
10180 (remote_target::core_of_thread)
10181 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10182 (remote_target::pid_to_exec_file)
10183 (remote_target::thread_handle_to_thread_info): Pass down target.
10184 (remote_target::async_wait_fd): New.
10185 * riscv-fbsd-tdep.c: Include "inferior.h".
10186 (riscv_fbsd_get_thread_local_address): Pass down target.
10187 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10188 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10189 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10190 Adjust.
10191 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10192 * solib-svr4.c (enable_break): Pass down target.
10193 * spu-multiarch.c (parse_spufs_run): Pass down target.
10194 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10195 * target-delegates.c: Regenerate.
10196 * target.c (g_target_stack): Delete.
10197 (current_top_target): Return the current inferior's top target.
10198 (target_has_execution_1): Refer to the passed-in inferior's top
10199 target.
10200 (target_supports_terminal_ours): Check whether the initial
10201 inferior was already created.
10202 (decref_target): New.
10203 (target_stack::push): Incref/decref the target.
10204 (push_target, push_target, unpush_target): Adjust.
10205 (target_stack::unpush): Defref target.
10206 (target_is_pushed): Return bool. Adjust to refer to the current
10207 inferior's target stack.
10208 (dispose_inferior): Delete, and inline parts ...
10209 (target_preopen): ... here. Only dispose of the current inferior.
10210 (target_detach): Hold strong target reference while detaching.
10211 Pass target down.
10212 (target_thread_name): Add assertion.
10213 (target_resume): Pass down target.
10214 (target_ops::beneath, find_target_at): Adjust to refer to the
10215 current inferior's target stack.
10216 (get_dummy_target): New.
10217 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10218 has a thread running.
10219 (initialize_targets): Rename to ...
10220 (_initialize_target): ... this.
10221 * target.h: Include "gdbsupport/refcounted-object.h".
10222 (struct target_ops): Inherit refcounted_object.
10223 (target_ops::shortname, target_ops::longname): Make const.
10224 (target_ops::async_wait_fd): New method.
10225 (decref_target): Declare.
10226 (struct target_ops_ref_policy): New.
10227 (target_ops_ref): New typedef.
10228 (get_dummy_target): Declare function.
10229 (target_is_pushed): Return bool.
10230 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10231 (all_matching_threads_iterator::all_matching_threads_iterator):
10232 Handle filter target.
10233 * thread-iter.h (struct all_matching_threads_iterator, struct
10234 all_matching_threads_range, class all_non_exited_threads_range):
10235 Filter by target too. Remove explicit.
10236 * thread.c (threads_executing): Delete.
10237 (inferior_thread): Pass down current inferior.
10238 (clear_thread_inferior_resources): Pass down thread pointer
10239 instead of ptid_t.
10240 (add_thread_silent, add_thread_with_info, add_thread): Add
10241 process_stratum_target parameter. Use it for thread and inferior
10242 searches.
10243 (is_current_thread): New.
10244 (thread_info::deletable): Use it.
10245 (find_thread_ptid, thread_count, in_thread_list)
10246 (thread_change_ptid, set_resumed, set_running): New
10247 process_stratum_target parameter. Pass it down.
10248 (set_executing): New process_stratum_target parameter. Pass it
10249 down. Adjust reference to 'threads_executing'.
10250 (threads_are_executing): New process_stratum_target parameter.
10251 Adjust reference to 'threads_executing'.
10252 (set_stop_requested, finish_thread_state): New
10253 process_stratum_target parameter. Pass it down.
10254 (switch_to_thread): Also match inferior.
10255 (switch_to_thread): New process_stratum_target parameter. Pass it
10256 down.
10257 (update_threads_executing): Reimplement.
10258 * top.c (quit_force): Pop targets from all inferior.
10259 (gdb_init): Don't call initialize_targets.
10260 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10261 Declare.
10262 (windows_add_thread, windows_delete_thread): Adjust.
10263 (get_windows_debug_event): Rename to ...
10264 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10265 * tracefile-tfile.c (tfile_target_open): Pass down target.
10266 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10267 Forward declare.
10268 (switch_to_thread): Add process_stratum_target parameter.
10269 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10270 parameter. Use it.
10271 (mi_on_resume): Pass target down.
10272 * nat/fork-inferior.c (startup_inferior): Add
10273 process_stratum_target parameter. Pass it down.
10274 * nat/fork-inferior.h (startup_inferior): Add
10275 process_stratum_target parameter.
10276 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10277
75c6c844
PA
102782020-01-10 Pedro Alves <palves@redhat.com>
10279
10280 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10281 directly. Instead find the first thread in the thread list and
10282 use switch_to_thread.
10283
78f2c40a
PA
102842020-01-10 Pedro Alves <palves@redhat.com>
10285
10286 * remote.c (remote_target::remote_add_inferior): Don't bind a
10287 process to the current inferior if the current inferior is already
10288 bound to a process.
10289
e7af6c70
TBA
102902020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10291 Pedro Alves <palves@redhat.com>
10292
10293 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10294 If no process is specified, return null_ptid instead of
10295 inferior_ptid.
10296 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10297 TARGET_WAITKIND_SIGNALLED with no pid.
10298
31ba933e
PA
102992020-01-10 Pedro Alves <palves@redhat.com>
10300
10301 * remote.c (first_remote_resumed_thread): New.
10302 (remote_target::wait_as): Use it as default event_ptid instead of
10303 inferior_ptid.
10304
735fc2ca
PA
103052020-01-10 Pedro Alves <palves@redhat.com>
10306
10307 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10308
c17e02e1
PA
103092020-01-10 Pedro Alves <palves@redhat.com>
10310
10311 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10312 not -1.
10313
ab1ddbcf
PA
103142020-01-10 Pedro Alves <palves@redhat.com>
10315
10316 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10317 ptid to get_last_target_status.
10318 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10319 ptid to get_last_target_status.
10320 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10321 get_last_target_status.
10322 (info_program_command): Don't pass a target_waitstatus to
10323 get_last_target_status.
10324 * infrun.c (init_wait_for_inferior): Use
10325 nullify_last_target_wait_ptid.
10326 (get_last_target_status): Handle nullptr arguments.
10327 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10328 (print_stop_event): Don't pass a ptid to get_last_target_status.
10329 (normal_stop): Don't pass a ptid to get_last_target_status.
10330 * infrun.h (get_last_target_status, set_last_target_status): Move
10331 comments here and update.
10332 (nullify_last_target_wait_ptid): Declare.
10333 * linux-fork.c (fork_load_infrun_state): Remove local extern
10334 declaration of nullify_last_target_wait_ptid.
10335 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10336 to get_last_target_status.
10337
f3f8ece4
PA
103382020-01-10 Pedro Alves <palves@redhat.com>
10339
10340 * gdbthread.h (scoped_restore_current_thread)
10341 <dont_restore, restore, m_dont_restore>: Declare.
10342 * thread.c (thread_alive): Add assertion. Return bool.
10343 (switch_to_thread_if_alive): New.
10344 (prune_threads): Switch inferior/thread.
10345 (print_thread_info_1): Switch thread before calling target methods.
10346 (scoped_restore_current_thread::restore): New, factored out from
10347 ...
10348 (scoped_restore_current_thread::~scoped_restore_current_thread):
10349 ... this.
10350 (scoped_restore_current_thread::scoped_restore_current_thread):
10351 Add assertion.
10352 (thread_apply_all_command, thread_select): Use
10353 switch_to_thread_if_alive.
10354 * infrun.c (proceed, restart_threads, handle_signal_stop)
10355 (switch_back_to_stepped_thread): Switch current thread before
10356 calling target methods.
10357
db2d40f7
PA
103582020-01-10 Pedro Alves <palves@redhat.com>
10359
10360 * inferior.c (switch_to_inferior_no_thread): New function,
10361 factored out from ...
10362 (inferior_command): ... here.
10363 * inferior.h (switch_to_inferior_no_thread): Declare.
10364 * mi/mi-main.c (run_one_inferior): Use
10365 switch_to_inferior_no_thread.
10366
bd420a2d
PA
103672020-01-10 Pedro Alves <palves@redhat.com>
10368
10369 * infcmd.c (kill_command): Remove dead code.
10370
ddf5db90
PA
103712020-01-10 Pedro Alves <palves@redhat.com>
10372
10373 * remote.c (remote_target::mourn_inferior): No longer check
10374 whether the target is running.
10375
5018ce90
PA
103762020-01-10 Pedro Alves <palves@redhat.com>
10377
10378 * corelow.c (core_target::has_execution): Change parameter type to
10379 inferior pointer.
10380 * inferior.c (number_of_live_inferiors): Use
10381 inferior::has_execution instead of target_has_execution_1.
10382 * inferior.h (inferior::has_execution): New.
10383 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10384 inferior::has_execution instead of target_has_execution_1.
10385 * process-stratum-target.c
10386 (process_stratum_target::has_execution): Change parameter type to
10387 inferior pointer. Check the inferior's PID instead of
10388 inferior_ptid.
10389 * process-stratum-target.h
10390 (process_stratum_target::has_execution): Change parameter type to
10391 inferior pointer.
10392 * record-full.c (record_full_core_target::has_execution): Change
10393 parameter type to inferior pointer.
10394 * target.c (target_has_execution_1): Change parameter type to
10395 inferior pointer.
10396 (target_has_execution_current): Adjust.
10397 * target.h (target_ops::has_execution): Change parameter type to
10398 inferior pointer.
10399 (target_has_execution_1): Change parameter type to inferior
10400 pointer. Change return type to bool.
10401 * tracefile.h (tracefile_target::has_execution): Change parameter
10402 type to inferior pointer.
10403
74375d18
PA
104042020-01-10 Pedro Alves <palves@redhat.com>
10405
10406 * exceptions.c (print_flush): Remove current_top_target() check.
10407
acdf84a6
PA
104082020-01-10 Pedro Alves <palves@redhat.com>
10409
10410 * remote.c (show_remote_exec_file): Show the current inferior's
10411 exec-file instead of the command variable's value.
10412
ec506636
PA
104132020-01-10 Pedro Alves <palves@redhat.com>
10414
10415 * record-full.c (record_full_resume_ptid): New global.
10416 (record_full_target::resume): Set it.
10417 (record_full_wait_1): Use record_full_resume_ptid instead of
10418 inferior_ptid.
10419
873657b9
PA
104202020-01-10 Pedro Alves <palves@redhat.com>
10421
10422 * gdbthread.h (scoped_restore_current_thread)
10423 <dont_restore, restore, m_dont_restore>: Declare.
10424 * thread.c (thread_alive): Add assertion. Return bool.
10425 (switch_to_thread_if_alive): New.
10426 (prune_threads): Switch inferior/thread.
10427 (print_thread_info_1): Switch thread before calling target methods.
10428 (scoped_restore_current_thread::restore): New, factored out from
10429 ...
10430 (scoped_restore_current_thread::~scoped_restore_current_thread):
10431 ... this.
10432 (scoped_restore_current_thread::scoped_restore_current_thread):
10433 Add assertion.
10434 (thread_apply_all_command, thread_select): Use
10435 switch_to_thread_if_alive.
10436
7f0ae84c
GB
104372020-01-10 George Barrett <bob@bob131.so>
10438
10439 * stap-probe.c (stap_modify_semaphore): Don't check for null
10440 semaphores.
10441 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10442 for null semaphores.
10443
f5a7c406
AB
104442020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10445
10446 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10447 all source windows, and maintain horizontal scroll status while
10448 doing so.
10449
9ae6bf64
TT
104502020-01-09 Tom Tromey <tom@tromey.com>
10451
10452 PR tui/18932:
10453 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10454 update_source_window, not print_source_lines.
10455
b2efe70c
AB
104562020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10457
10458 * tui/tui.c (tui_enable): Register tui hooks after calling
10459 tui_display_main.
10460
5f23a082
CB
104612020-01-09 Christian Biesinger <cbiesinger@google.com>
10462
10463 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10464
3061113b
SM
104652020-01-08 Simon Marchi <simon.marchi@efficios.com>
10466
10467 * thread.c (print_thread_info_1): Fix indentation.
10468
57d75002
CB
104692020-01-09 Christian Biesinger <cbiesinger@google.com>
10470
10471 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10472 unique_xmalloc_ptr outside the if to always free the demangled name.
10473
6a053cb1
TT
104742020-01-08 Tom Tromey <tromey@adacore.com>
10475
10476 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10477 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10478 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10479 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10480 Remove.
10481 (section_offsets): New typedef.
10482 * symtab.c (fixup_section, get_msymbol_address): Update.
10483 * symmisc.c (dump_msymbols): Update.
10484 * symfile.h (relative_addr_info_to_section_offsets)
10485 (symfile_map_offsets_to_segments): Update.
10486 * symfile.c (build_section_addr_info_from_objfile)
10487 (init_objfile_sect_indices): Update.
10488 (struct place_section_arg): Change type of "offsets".
10489 (place_section): Update.
10490 (relative_addr_info_to_section_offsets): Change type of
10491 "section_offsets". Remove "num_sections" parameter.
10492 (default_symfile_offsets, syms_from_objfile_1)
10493 (set_objfile_default_section_offset): Update.
10494 (reread_symbols): No need to preserve section offsets by hand.
10495 (symfile_map_offsets_to_segments): Change type of "offsets".
10496 * stap-probe.c (relocate_address): Update.
10497 * stabsread.h (process_one_symbol): Update.
10498 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10499 (solib_target_relocate_section_addresses): Update.
10500 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10501 Update.
10502 * solib-frv.c (frv_relocate_main_executable): Update.
10503 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10504 * solib-aix.c (solib_aix_get_section_offsets): Change return
10505 type.
10506 (solib_aix_solib_create_inferior_hook): Update.
10507 * remote.c (remote_target::get_offsets): Update.
10508 * psymtab.c (find_pc_sect_psymtab): Update.
10509 * psympriv.h (struct partial_symbol) <address, text_low,
10510 text_high>: Update.
10511 * objfiles.h (obj_section_offset): Update.
10512 (struct objfile) <section_offsets>: Change type.
10513 <num_sections>: Remove.
10514 (objfile_relocate): Update.
10515 * objfiles.c (entry_point_address_query): Update
10516 (relocate_one_symbol): Change type of "section_offsets".
10517 (objfile_relocate1, objfile_relocate1): Change type of
10518 "new_offsets".
10519 (objfile_rebase1): Update.
10520 * mipsread.c (mipscoff_symfile_read): Update.
10521 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10522 parameter.
10523 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10524 (parse_external, psymtab_to_symtab_1): Update.
10525 * machoread.c (macho_symfile_offsets): Update.
10526 * ia64-tdep.c (ia64_find_unwind_table): Update.
10527 * hppa-tdep.c (read_unwind_info): Update.
10528 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10529 * dwarf2read.c (create_addrmap_from_index)
10530 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10531 (process_psymtab_comp_unit_reader, add_partial_symbol)
10532 (add_partial_subprogram, process_full_comp_unit)
10533 (read_file_scope, read_func_scope, read_lexical_block_scope)
10534 (read_call_site_scope, dwarf2_rnglists_process)
10535 (dwarf2_ranges_process, dwarf2_ranges_read)
10536 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10537 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10538 Update.
10539 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10540 Update.
10541 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10542 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10543 (process_one_symbol): Change type of "section_offsets".
10544 * ctfread.c (get_objfile_text_range): Update.
10545 * coffread.c (coff_symtab_read, enter_linenos)
10546 (process_coff_symbol): Update.
10547 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10548 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10549
456e800a
TT
105502020-01-08 Tom Tromey <tromey@adacore.com>
10551
10552 * dwarf2read.c (parse_macro_definition): Use std::string.
10553 (parse_macro_definition): Likewise.
10554
6dfa2fc2
TT
105552020-01-08 Tom Tromey <tromey@adacore.com>
10556
10557 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10558 (ATTR_ALLOC_CHUNK): Remove.
10559
421d1616
TT
105602020-01-08 Tom Tromey <tromey@adacore.com>
10561
10562 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10563
43816ebc
TT
105642020-01-08 Tom Tromey <tromey@adacore.com>
10565
10566 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10567 (dwarf2_compute_name, open_dwo_file): Likewise.
10568 (process_enumeration_scope): Use std::vector.
10569 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10570 (partial_die_info::fixup, dwarf2_start_subfile)
10571 (guess_full_die_structure_name, dwarf2_name): Likewise.
10572 (determine_prefix): Update.
10573 (guess_full_die_structure_name): Make return type const.
10574 (partial_die_full_name): Return unique_xmalloc_ptr.
10575 (DW_FIELD_ALLOC_CHUNK): Remove.
10576
4212d509
TT
105772020-01-07 Tom Tromey <tromey@adacore.com>
10578
10579 PR build/24937:
10580 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10581
06a6207a
JT
105822020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10583
10584 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10585
153d79c4
AB
105862020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 * stack.c (print_frame_info): Move disassemble_next_line code
10589 inside source_print block.
10590
66182876
EZ
105912020-01-06 Eli Zaretskii <eliz@gnu.org>
10592
10593 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10594 gdb/signals.h, as we are now using native signal symbols.
10595
cbfa8581
SV
105962020-01-06 Shahab Vahedi <shahab@synopsys.com>
10597
10598 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10599 overflow by an early check of content vs threshold.
aac66a4c 10600 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10601 Likewise.
10602
3f602821
EZ
106032020-01-06 Eli Zaretskii <eliz@gnu.org>
10604
10605 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10606
a08c904d
JT
106072020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10608
10609 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10610 export table if no section contains it's RVA.
10611
89a65580
EZ
106122020-01-06 Eli Zaretskii <eliz@gnu.org>
10613
10614 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10615
8b7fcda2
HD
106162020-01-06 Hannes Domani <ssbssa@yahoo.de>
10617
10618 * source.c (print_source_lines_base): Set last_line_listed.
10619
a61b4f69
SV
106202020-01-06 Shahab Vahedi <shahab@synopsys.com>
10621
10622 * tui/tui-disasm.c: Remove trailing spaces.
10623
559e7e50
EZ
106242020-01-06 Eli Zaretskii <eliz@gnu.org>
10625 Pedro Alves <palves@redhat.com>
10626
10627 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10628 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10629 (windows_gdb_signal_to_target): New function, uses the above
10630 enumeration to convert GDB internal signal codes to equivalent
10631 Windows codes.
10632 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10633 * windows-nat.c: Include "gdb_wait.h".
10634 (get_windows_debug_event): Extract the fatal exception from the
10635 exit status and convert to the equivalent Posix signal number.
10636 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10637 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10638 * gdbsupport/gdb_wait.c: New file, implements
10639 windows_status_to_termsig.
10640 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10641 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10642
f2302a34
AB
106432020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10644
10645 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10646 show_layout.
10647
6a5206eb
LM
106482020-01-05 Luis Machado <luis.machado@linaro.org>
10649
10650 * aarch64-linux-nat.c
10651 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10652 and bfd_mach_aarch64.
10653
6ec1d75e
PW
106542020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10655
10656 * ui-file.c (stdio_file::can_emit_style_escape)
10657 (tee_file::can_emit_style_escape): Ensure style is used also on
10658 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10659 to gdb_stdout.
10660 * main.c (set_gdb_data_directory): Use file style to output the
10661 warning that the given pathname is not a directory.
10662 * top.c (show_history_filename, gdb_safe_append_history)
10663 (show_gdb_datadir): Use file style.
10664
44f81a76
HD
106652020-01-03 Hannes Domani <ssbssa@yahoo.de>
10666
10667 * solib-target.c (struct lm_info_target):
10668 Change offsets to be a unique_xmalloc_ptr.
10669 (solib_target_relocate_section_addresses): Update.
10670
25057eb0
HD
106712020-01-03 Hannes Domani <ssbssa@yahoo.de>
10672
10673 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10674
6e2118f5
BE
106752020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10676
10677 * MAINTAINERS (Write After Approval): Add myself.
10678
8133c7dc
LM
106792020-01-02 Luis Machado <luis.machado@linaro.org>
10680
10681 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10682 Cell BE architecture.
10683 * target.h (struct target_ops) <thread_architecture>: Likewise.
10684
48189bec
HD
106852020-01-01 Hannes Domani <ssbssa@yahoo.de>
10686
10687 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10688
ead1063b
HD
106892020-01-01 Hannes Domani <ssbssa@yahoo.de>
10690
10691 * MAINTAINERS (Write After Approval): Add myself.
10692
e5d78223
JB
106932020-01-01 Joel Brobecker <brobecker@adacore.com>
10694
10695 * gdbarch.sh: Update copyright year range of generated files.
10696
b811d2c2
JB
106972020-01-01 Joel Brobecker <brobecker@adacore.com>
10698
10699 Update copyright year range in all GDB files.
10700
5f4def5c
JB
107012020-01-01 Joel Brobecker <brobecker@adacore.com>
10702
10703 * copyright.py: Convert to Python 3.
10704
51fd4002
JB
107052020-01-01 Joel Brobecker <brobecker@adacore.com>
10706
10707 * copyright.py: Adapt after move of gnulib directory from gdb
10708 directory to toplevel directory.
10709
5fb651f2
JB
107102020-01-01 Joel Brobecker <brobecker@adacore.com>
10711
10712 * copyright.py (main): Exit if run from the wrong directory.
10713
5dd8bf88
JB
107142020-01-01 Joel Brobecker <brobecker@adacore.com>
10715
10716 * top.c (print_gdb_version): Change copyright year to 2020.
10717
9f71dacb 107182020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10719
9f71dacb 10720 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10721
9f71dacb 10722For older changes see ChangeLog-2019.
c906108c
SS
10723\f
10724Local Variables:
10725mode: change-log
10726left-margin: 8
10727fill-column: 74
10728version-control: never
57da7796 10729coding: utf-8
c906108c 10730End:
This page took 4.588312 seconds and 4 git commands to generate.