Remove body of tui_locator_window constructor
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1eb2161f
TT
12020-07-01 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4
7134f2eb
TT
52020-07-01 Tom Tromey <tom@tromey.com>
6
7 * tui/tui-regs.c (tui_data_window::display_registers_from)
8 (tui_data_window::display_registers_from)
9 (tui_data_window::first_data_item_displayed)
10 (tui_data_window::delete_data_content_windows): Update.
11 (tui_data_window::refresh_window, tui_data_window::no_refresh):
12 Remove.
13 (tui_data_window::check_register_values): Update.
14 (tui_data_item_window::rerender): Add parameters. Update.
15 (tui_data_item_window::refresh_window): Remove.
16 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
17 virtual.
18 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
19 tui_gen_win_info.
20 <refresh_window, max_height, min_height>: Remove.
21 <rerender>: Add parameters.
22 <x, y, visible>: New members.
23 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
24 <m_item_width>: New member.
25
22b7b041
TT
262020-07-01 Tom Tromey <tom@tromey.com>
27
28 * tui/tui-regs.c (tui_data_window::show_register_group)
29 (tui_data_window::check_register_values): Update.
30 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
31 from item_no.
32
c9753adb
TT
332020-07-01 Tom Tromey <tom@tromey.com>
34
35 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
36 useless "if".
37
9ab26b4a
TT
382020-07-01 Tom Tromey <tom@tromey.com>
39
40 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
41 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
42
e555083f
TT
432020-07-01 Tom Tromey <tom@tromey.com>
44
45 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
46 * tui/tui-winsource.h (enum tui_line_or_address_kind)
47 (struct tui_line_or_address): Move from tui-data.h.
48 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
49 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
50 (tui_cmd_window, tui_source_window_base, tui_source_window)
51 (tui_disasm_window): Don't declare.
52 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
53 to tui-winsource.h.
54 (SINGLE_KEY): Move to tui-stack.c.
55
7a02bab7
TT
562020-07-01 Tom Tromey <tom@tromey.com>
57
58 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
59 std::string.
60 * tui/tui-regs.c (class tab_expansion_file): New.
61 (tab_expansion_file::write): New method.
62 (tui_register_format): Change return type. Use
63 tab_expansion_file.
64 (tui_get_register, tui_data_window::display_registers_from)
65 (tui_data_item_window::rerender): Update.
66 * tui/tui-io.h (tui_expand_tabs): Don't declare.
67 * tui/tui-io.c (tui_expand_tabs): Remove.
68
ea68593b
TT
692020-07-01 Tom Tromey <tom@tromey.com>
70
71 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
72
a8caed5d
FS
732020-07-01 Fangrui Song <maskray@google.com>
74
75 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
76
9cdf9820
AKS
772020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
78
79 * dwarf2/read.c (set_die_type): Removed conditions to restrict
80 forms for DW_AT_associated and DW_AT_allocated attributes,
81 which is already checked in function attr_to_dynamic_prop.
82
a1520ad8
TT
832020-06-30 Tom Tromey <tromey@adacore.com>
84
85 * dwarf2/read.c (quirk_rust_enum): Correctly call
86 alloc_rust_variant for default-less enum.
87
5ac58899
TT
882020-06-30 Tom Tromey <tromey@adacore.com>
89
90 PR build/26183:
91 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
92 gdb::to_string.
93
19b187a9
SM
942020-06-29 Simon Marchi <simon.marchi@efficios.com>
95
96 * gdbarch.sh (displaced_step_copy_insn): Update doc.
97 * gdbarch.h: Re-generate.
98
cd4c4c07
TT
992020-06-28 Tom Tromey <tom@tromey.com>
100
101 * command.h (cmd_types): Remove.
102 (cmd_type): Don't declare.
103 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
104 typedef.
105 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
106 * cli/cli-decode.c (cmd_type): Remove.
107
05779d57
PA
1082020-06-27 Pedro Alves <palves@redhat.com>
109
110 * fork-child.c (prefork_hook): Adjust.
111 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
112 Delete.
113 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
114 * inferior.c (inferior::set_tty, inferior::tty): New methods.
115 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
116 Remove declarations.
117 (struct inferior) <set_tty, tty>: New methods.
118 (struct inferior) <terminal>: Rename to ...
119 (struct inferior) <m_terminal>: ... this and make private.
120 * main.c (captured_main_1): Adjust.
121 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
122 (mi_cmd_inferior_tty_show): Adjust.
123 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
124 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
125
1776e3e5
NA
1262020-06-26 Nick Alcock <nick.alcock@oracle.com>
127
128 * configure.ac: Add --enable-libctf: handle --disable-static
129 properly.
130 * acinclude.m4: sinclude ../config/enable.m4.
131 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
132 (LIBCTF): Substitute in.
133 (CTF_DEPS): New, likewise.
134 (CLIBS): libctf needs symbols from libbfd: move earlier.
135 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
136 flags.
137 * ctfread.c: Surround in ENABLE_LIBCTF.
138 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
139 * configure: Regenerate.
140 * config.in: Likewise.
141
58373b80
SM
1422020-06-25 Simon Marchi <simon.marchi@efficios.com>
143
144 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
145
277474ee
SM
1462020-06-25 Simon Marchi <simon.marchi@efficios.com>
147
148 * inferior.h (struct inferior) <terminal>: Change type to
149 gdb::unique_xmalloc_ptr<char>.
150 * inferior.c (inferior::~inferior): Don't free inf->terminal.
151 * infcmd.c (set_inferior_io_terminal): Don't free terminal
152 field, adjust to unique pointer.
153 (get_inferior_io_terminal): Adjust to unique pointer.
154
6d74da72
AB
1552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * riscv-tdep.c (riscv_print_registers_info): Loop over all
158 registers, not just the known core set of registers.
159
2e52d038
AB
1602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
161
162 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
163 fflags, frm, and fcsr registers.
164 (riscv_register_reggroup_p): Remove unknown CSRs from save and
165 restore groups.
166 (riscv_tdesc_unknown_reg): New function.
167 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
168 tdesc_use_registers.
169 * riscv-tdep.h (struct gdbarch_tdep): Add
170 unknown_csrs_first_regnum, unknown_csrs_count,
171 duplicate_fflags_regnum, duplicate_frm_regnum, and
172 duplicate_fcsr_regnum fields.
173
be64fd07
AB
1742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * target-descriptions.c (tdesc_use_registers): Add new parameter a
177 callback, use the callback (when not null) to help number unknown
178 registers.
179 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
180 (tdesc_use_registers): Add extra parameter to declaration.
181
3b9fce96
AB
1822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
185 in the file.
186 (class riscv_pending_register_alias): Likewise.
187 (riscv_register_feature::register_info): Change 'required_p' field
188 to 'required', and change its type. Add 'check' member function.
189 (riscv_register_feature::register_info::check): Define new member
190 function.
191 (riscv_xreg_feature): Change initialisation of 'required' field.
192 (riscv_freg_feature): Likewise.
193 (riscv_virtual_feature): Likewise.
194 (riscv_csr_feature): Likewise.
195 (riscv_check_tdesc_feature): Take extra parameter, the csr
196 tdesc_feature, rewrite the function to use the new
197 riscv_register_feature::register_info::check function.
198 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
199
865bad26
AB
2002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
201
202 * features/Makefile: Remove all references to the deleted files
203 below.
204 * features/riscv/32bit-csr.c: Deleted.
205 * features/riscv/32bit-csr.xml: Deleted.
206 * features/riscv/64bit-csr.c: Deleted.
207 * features/riscv/64bit-csr.xml: Deleted.
208 * features/riscv/rebuild-csr-xml.sh: Deleted.
209
ed69cbc8
AB
2102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
211
212 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
213 whitespace error for declaration of names member variable.
214 (struct riscv_register_feature): Add new prefer_first_name member
215 variable, and fix whitespace error in declaration of registers.
216 (riscv_xreg_feature): Initialize prefer_first_name field.
217 (riscv_freg_feature): Likewise.
218 (riscv_virtual_feature): Likewise.
219 (riscv_csr_feature): Likewise.
220 (riscv_register_name): Expand on comments. Remove register name
221 modifications for CSR and virtual registers.
222
4445e8f5
AB
2232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
226 errors.
227
767a879e
AB
2282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
231 riscv-opc.h.
232 (class riscv_pending_register_alias): New class.
233 (riscv_check_tdesc_feature): Take vector of pending aliases and
234 populate it as appropriate.
235 (riscv_setup_register_aliases): Delete.
236 (riscv_gdbarch_init): Create vector of pending aliases and pass it
237 to riscv_check_tdesc_feature in all cases. Use the vector to
238 create the register aliases.
239
bb6e55f3
RO
2402020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241
242 * sol2-tdep.c (sol2_static_transform_name): Remove.
243 (sol2_init_abi): Don't register it.
244 * gdbarch.sh (static_transform_name): Remove.
245 * gdbarch.c, gdbarch.h: Regenerate.
246
247 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
248 gdbarch_static_transform_name.
249 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
250 * stabsread.c (define_symbol) <'X'>: Remove.
251 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
252 handling.
253 <'V'>: Likewise.
254 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
255 <'S'>: Remove call to gdbarch_static_transform_name.
256
c6d36836
RO
2572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
258
259 * procfs.c (procfs_pre_trace): New function.
260 (procfs_target::create_inferior): Pass it to fork_inferior.
261
a7e6196b
RO
2622020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
263
264 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
265 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
266 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
267 sol2-tdep.o, sparc-sol2-tdep.o.
268 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
269 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
270 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
271 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
272
d412e696
RO
2732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
274
275 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
276 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
277 Call sol2_init_abi.
278 Remove calls to set_gdbarch_skip_solib_resolver,
279 set_gdbarch_core_pid_to_str.
280 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
281 (i386_sol2_static_transform_name): Remove.
282 (i386_sol2_init_abi): Call sol2_init_abi.
283 Remove calls to set_gdbarch_sofun_address_maybe_missing,
284 set_gdbarch_static_transform_name,
285 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
286 Use sol2_sigtramp_p.
287 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
288 (sol2_sigtramp_p): New function.
289 (sol2_static_transform_name): New function.
290 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
291 (sol2_init_abi): New function.
292 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
293 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
294 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
295 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
296 (sparc_sol2_static_transform_name): Remove.
297 (sparc32_sol2_init_abi): Call sol2_init_abi.
298 Remove calls to set_gdbarch_sofun_address_maybe_missing,
299 set_gdbarch_static_transform_name,
300 set_gdbarch_skip_solib_resolver,
301 set_gdbarch_core_pid_to_str.
302 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
303 (sparc_sol2_static_transform_name): Remove
304 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
305 call sol2_sigtramp_p.
306 (sparc64_sol2_init_abi): Call sol2_init_abi.
307 Remove calls to set_gdbarch_sofun_address_maybe_missing,
308 set_gdbarch_static_transform_name,
309 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
310
a8654e7d
PW
3112020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
312
313 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
314 * exec.c (validate_exec_file): If from_tty, set both
315 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
316 * symfile.c (symbol_file_add_with_addrs): if always_confirm
317 and from_tty, unconditionally ask a confirmation.
318
caa7fd04
AB
3192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * target-descriptions.c (tdesc_architecture_name): Protect against
322 NULL pointer dereference.
323 (maint_print_xml_tdesc_cmd): New function.
324 (_initialize_target_descriptions): Register new 'maint print
325 xml-tdesc' command and give it the filename completer.
326 * NEWS: Mention new 'maint print xml-tdesc' command.
327
fbf42f4e
AB
3282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * target-descriptions.c (class tdesc_compatible_info): New class.
331 (struct target_desc): Change type of compatible vector.
332 (tdesc_compatible_p): Update for change in type of
333 target_desc::compatible.
334 (tdesc_compatible_info_list): New function.
335 (tdesc_compatible_info_arch_name): New function.
336 (tdesc_add_compatible): Update for change in type of
337 target_desc::compatible.
338 (print_c_tdesc::visit_pre): Likewise.
339
20821f4e
AB
3402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
343 whitespace to underscore.
344 (maint_print_c_tdesc_cmd): Use fake filename for target
345 descriptions that came from the target.
346 (_initialize_target_descriptions): Add filename command completion
347 for 'maint print c-tdesc'.
348
1fb5ee62
SM
3492020-06-23 Simon Marchi <simon.marchi@efficios.com>
350
351 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
352 lines.
353
fc3ecb3e
SM
3542020-06-23 Simon Marchi <simon.marchi@efficios.com>
355
356 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
357 lines.
358 (dwarf2_find_location_expression): Likewise.
359 (call_site_parameter_matches): Likewise.
360 (dwarf2_compile_expr_to_ax): Likewise.
361 (disassemble_dwarf_expression): Likewise.
362 (loclist_describe_location): Likewise.
363
236ef034
PA
3642020-06-23 Pedro Alves <palves@redhat.com>
365
366 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
367 progspace-and-thread.h. Include scoped-mock-context.h instead.
368 (register_to_value_test): Use scoped_mock_context.
369 * regcache.c: Include "scoped-mock-context.h".
370 (cooked_read_test): Don't error out if a target is already pushed.
371 Use scoped_mock_context. Adjust.
372 * scoped-mock-context.h: New file.
373
39e7ecca
AB
3742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
377 initializer.
378 (ada_language::is_string_type_p): New member function.
379 * c-lang.c (c_language_data): Delete la_is_string_type_p
380 initializer.
381 (cplus_language_data): Likewise.
382 (asm_language_data): Likewise.
383 (minimal_language_data): Likewise.
384 * d-lang.c (d_language_data): Likewise.
385 * f-lang.c (f_is_string_type_p): Delete function, implementation
386 moved to f_language::is_string_type_p.
387 (f_language_data): Delete la_is_string_type_p initializer.
388 (f_language::is_string_type_p): New member function,
389 implementation from f_is_string_type_p.
390 * go-lang.c (go_is_string_type_p): Delete function, implementation
391 moved to go_language::is_string_type_p.
392 (go_language_data): Delete la_is_string_type_p initializer.
393 (go_language::is_string_type_p): New member function,
394 implementation from go_is_string_type_p.
395 * language.c (language_defn::is_string_type_p): Define new member
396 function.
397 (default_is_string_type_p): Make static, add comment copied from
398 header file.
399 (unknown_language_data): Delete la_is_string_type_p initializer.
400 (unknown_language::is_string_type_p): New member function.
401 (auto_language_data): Delete la_is_string_type_p initializer.
402 (auto_language::is_string_type_p): New member function.
403 * language.h (language_data): Delete la_is_string_type_p field.
404 (language_defn::is_string_type_p): Declare new function.
405 (default_is_string_type_p): Delete desclaration, move comment to
406 definition.
407 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
408 moved to m2_language::is_string_type_p.
409 (m2_language_data): Delete la_is_string_type_p initializer.
410 (m2_language::is_string_type_p): New member function,
411 implementation from m2_is_string_type_p.
412 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
413 initializer.
414 * opencl-lang.c (opencl_language_data): Likewise.
415 * p-lang.c (pascal_is_string_type_p): Delete function,
416 implementation moved to pascal_language::is_string_type_p.
417 (pascal_language_data): Delete la_is_string_type_p initializer.
418 (pascal_language::is_string_type_p): New member function,
419 implementation from pascal_is_string_type_p.
420 * rust-lang.c (rust_is_string_type_p): Delete function,
421 implementation moved to rust_language::is_string_type_p.
422 (rust_language_data): Delete la_is_string_type_p initializer.
423 (rust_language::is_string_type_p): New member function,
424 implementation from rust_is_string_type_p.
425 * valprint.c (val_print_scalar_or_string_type_p): Update call to
426 is_string_type_p.
427
4ffc13fb
AB
4282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * ada-lang.c (ada_language_data): Delete la_print_typedef
431 initializer.
432 (ada_language::print_typedef): New member function.
433 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
434 (cplus_language_data): Likewise.
435 (asm_language_data): Likewise.
436 (minimal_language_data): Likewise.
437 * d-lang.c (d_language_data): Likewise.
438 * f-lang.c (f_language_data): Likewise.
439 (f_language::print_typedef): New member function.
440 * go-lang.c (go_language_data): Delete la_print_typedef
441 initializer.
442 * language.c (language_defn::print_typedef): Define member
443 function.
444 (unknown_language_data): Delete la_print_typedef initializer.
445 (unknown_language::print_typedef): New member function.
446 (auto_language_data): Delete la_print_typedef initializer.
447 (auto_language::print_typedef): New member function.
448 * language.h (language_data): Delete la_print_typedef field.
449 (language_defn::print_typedef): Declare new member function.
450 (LA_PRINT_TYPEDEF): Update call to print_typedef.
451 (default_print_typedef): Delete declaration.
452 * m2-lang.c (m2_language_data): Delete la_print_typedef
453 initializer.
454 (m2_language::print_typedef): New member function.
455 * objc-lang.c (objc_language_data): Delete la_print_typedef
456 initializer.
457 * opencl-lang.c (opencl_language_data): Likewise.
458 * p-lang.c (pascal_language_data): Likewise.
459 (pascal_language::print_typedef): New member function.
460 * rust-lang.c (rust_print_typedef): Delete function,
461 implementation moved to rust_language::print_typedef.
462 (rust_language): Delete la_print_typedef initializer.
463 (rust_language::print_typedef): New member function,
464 implementation from rust_print_typedef.
465 * typeprint.c (default_print_typedef): Delete.
466
d711ee67
AB
4672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
470 (ada_language::printstr): New member function.
471 * c-lang.c (c_language_data): Delete la_printstr initializer.
472 (cplus_language_data): Likewise.
473 (asm_language_data): Likewise.
474 (minimal_language_data): Likewise.
475 * d-lang.c (d_language_data): Likewise.
476 * f-lang.c (f_printstr): Rename to f_language::printstr.
477 (f_language_data): Delete la_printstr initializer.
478 (f_language::printstr): New member function, implementation from
479 f_printstr.
480 * go-lang.c (go_language_data): Delete la_printstr initializer.
481 * language.c (language_defn::printstr): Define new member
482 function.
483 (unk_lang_printstr): Delete.
484 (unknown_language_data): Delete la_printstr initializer.
485 (unknown_language::printstr): New member function.
486 (auto_language_data): Delete la_printstr initializer.
487 (auto_language::printstr): New member function.
488 * language.h (language_data): Delete la_printstr field.
489 (language_defn::printstr): Declare new member function.
490 (LA_PRINT_STRING): Update call to printstr.
491 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
492 (m2_language_data): Delete la_printstr initializer.
493 (m2_language::printstr): New member function, implementation from
494 m2_printstr.
495 * objc-lang.c (objc_language_data): Delete la_printstr
496 initializer.
497 * opencl-lang.c (opencl_language_data): Likewise.
498 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
499 (pascal_language_data): Delete la_printstr initializer.
500 (pascal_language::printstr): New member function, implementation
501 from pascal_printstr.
502 * p-lang.h (pascal_printstr): Delete declaration.
503 * rust-lang.c (rust_printstr): Update header comment.
504 (rust_language_data): Delete la_printstr initializer.
505 (rust_language::printstr): New member function.
506
52b50f2c
AB
5072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
508
509 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
510 (ada_language::printchar): New member function.
511 * c-lang.c (c_language_data): Delete la_printchar initializer.
512 (cplus_language_data): Likewise.
513 (asm_language_data): Likewise.
514 (minimal_language_data): Likewise.
515 * d-lang.c (d_language_data): Likewise.
516 * f-lang.c (f_printchar): Rename to f_language::printchar.
517 (f_language_data): Delete la_printchar initializer.
518 (f_language::printchar): New member function, implementation from
519 f_printchar.
520 * go-lang.c (go_language_data): Delete la_printchar initializer.
521 * language.c (unk_lang_printchar): Delete.
522 (language_defn::printchar): Define new member function.
523 (unknown_language_data): Delete la_printchar initializer.
524 (unknown_language::printchar): New member function.
525 (auto_language_data): Delete la_printchar initializer.
526 (auto_language::printchar): New member function.
527 * language.h (language_data): Delete la_printchar field.
528 (language_defn::printchar): Declare new member function.
529 (LA_PRINT_CHAR): Update call to printchar.
530 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
531 (m2_language::printchar): New member function.
532 * objc-lang.c (objc_language_data): Delete la_printchar
533 initializer.
534 * opencl-lang.c (opencl_language_data): Likewise.
535 * p-lang.c (pascal_language_data): Delete la_printchar
536 initializer.
537 (pascal_language::printchar): New member function.
538 * rust-lang.c (rust_printchar): Rename to
539 rust_language::printchar.
540 (rust_language_data): Delete la_printchar initializer.
541 (rust_language::printchar): New member function, implementation
542 from rust_printchar.
543
ec8cec5b
AB
5442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
547 (ada_language_data): Delete la_emitchar initializer.
548 (ada_language::emitchar): New member function, implementation from
549 emit_char.
550 * c-lang.c (c_language_data): Delete la_emitchar initializer.
551 (cplus_language_data): Likewise.
552 (asm_language_data): Likewise.
553 (minimal_language_data): Likewise.
554 * d-lang.c (d_language_data): Likewise.
555 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
556 (f_language_data): Delete la_emitchar initializer.
557 (f_language::emitchar): New member function, implementation from
558 f_emit_char.
559 * go-lang.c (go_language_data): Delete la_emitchar initializer.
560 * language.c (unk_lang_emit_char): Delete.
561 (language_defn::emitchar): New member function definition.
562 (unknown_language_data): Delete la_emitchar initializer.
563 (unknown_language::emitchar): New member function.
564 (auto_language_data): Delete la_emitchar initializer.
565 (auto_language::emitchar): New member function.
566 * language.h (language_data): Delete la_emitchar field.
567 (language_defn::emitchar): New member field declaration.
568 (LA_EMIT_CHAR): Update call to emitchar.
569 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
570 (m2_language_data): Delete la_emitchar initializer.
571 (m2_language::emitchar): New member function, implementation from
572 m2_emit_char.
573 * objc-lang.c (objc_language_data): Delete la_emitchar
574 initializer.
575 * opencl-lang.c (opencl_language_data): Likewise.
576 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
577 (pascal_language_data): Delete la_emitchar initializer.
578 (pascal_language::emitchar): New member function, implementation
579 from pascal_emit_char.
580 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
581 (rust_language_data): Delete la_emitchar initializer.
582 (rust_language::emitchar): New member function, implementation
583 from rust_emitchar.
584
1bf9c363
AB
5852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * ada-lang.c (resolve): Rename to ada_language::post_parser.
588 (ada_language_data): Delete la_post_parser initializer.
589 (ada_language::post_parser): New member function.
590 * c-lang.c (c_language_data): Delete la_post_parser initializer.
591 (cplus_language_data): Likewise.
592 (asm_language_data): Likewise.
593 (minimal_language_data): Likewise.
594 * d-lang.c (d_language_data): Likewise.
595 * f-lang.c (f_language_data): Likewise.
596 * go-lang.c (go_language_data): Likewise.
597 * language.c (unknown_language_data): Likewise.
598 (auto_language_data): Likewise.
599 * language.h (language_data): Delete la_post_parser field.
600 (language_defn::post_parser): New member function.
601 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
602 * objc-lang.c (objc_language_data): Likewise.
603 * opencl-lang.c (opencl_language_data): Likewise.
604 * p-lang.c (pascal_language_data): Likewise.
605 * parse.c (parse_exp_in_context): Update call to post_parser.
606 (null_post_parser): Delete definition.
607 * parser-defs.h (null_post_parser): Delete declaration.
608 * rust-lang.c (rust_language_data): Delete la_post_parser
609 initializer.
610
87afa652
AB
6112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * ada-lang.c (parse): Rename to ada_language::parser.
614 (ada_language_data): Delete la_parser initializer.
615 (ada_language::parser): New member function, implementation from
616 parse.
617 * c-lang.c (c_language_data): Delete la_parser initializer.
618 (cplus_language_data): Likewise.
619 (asm_language_data): Likewise.
620 (minimal_language_data): Likewise.
621 * d-lang.c (d_language_data): Likewise.
622 (d_language::parser): New member function.
623 * f-lang.c (f_language_data): Delete la_parser initializer.
624 (f_language::parser): New member function.
625 * go-lang.c (go_language_data): Delete la_parser initializer.
626 (go_language::parser): New member function.
627 * language.c (unk_lang_parser): Delete.
628 (language_defn::parser): Define new member function.
629 (unknown_language_data): Delete la_parser initializer.
630 (unknown_language::parser): New member function.
631 (auto_language_data): Delete la_parser initializer.
632 (auto_language::parser): New member function.
633 * language.h (language_data): Delete la_parser field.
634 (language_defn::parser): Declare new member function.
635 * m2-lang.c (m2_language_data): Delete la_parser initializer.
636 (m2_language::parser): New member function.
637 * objc-lang.c (objc_language_data): Delete la_parser initializer.
638 * opencl-lang.c (opencl_language_data): Likewise.
639 * p-lang.c (pascal_language_data): Likewise.
640 (pascal_language::parser): New member function.
641 * parse.c (parse_exp_in_context): Update call to parser.
642 * rust-lang.c (rust_language_data): Delete la_parser initializer.
643 (rust_language::parser): New member function.
644
37825800
AB
6452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
646
647 * top.c (print_gdb_configuration): Print --with-python-libdir
648 configuration value.
649
5b860c93
PW
6502020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
651
652 * NEWS: Mention change to the alias command.
653
cf00cd6f
PW
6542020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
655
656 * cli/cli-cmds.c (lookup_cmd_for_default_args)
657 (alias_command_completer)
658 (make_alias_options_def_group): New functions.
659 (alias_opts, alias_option_defs): New struct and array.
660 (alias_usage_error): Update usage.
661 (alias_command): Handles optional DEFAULT-ARGS... arguments.
662 Use option framework.
663 (_initialize_cli_cmds): Update alias command help.
664 Update aliases command help.
665 (show_user):
666 Add NULL for new default_args lookup_cmd argument.
667 (valid_command_p): Rename to validate_aliased_command.
668 Add NULL for new default_args lookup_cmd argument. Verify that the
669 aliased_command has no default args.
670 * cli/cli-decode.c (help_cmd): Show aliases definitions.
671 (lookup_cmd_1, lookup_cmd): New argument default_args.
672 (add_alias_cmd):
673 Add NULL for new default_args lookup_cmd argument.
674 (print_help_for_command): Show default args under the layout
675 alias some_alias = some_aliased_cmd some_alias_default_arg.
676 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
677 xfree default_args in destructor.
678 * cli/cli-script.c (process_next_line, do_define_command):
679 Add NULL for new default_args lookup_cmd argument.
680 * command.h: Declare new default_args argument in lookup_cmd
681 and lookup_cmd_1.
682 * completer.c (complete_line_internal_1):
683 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
684 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
685 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
686 Likewise.
687 * infcmd.c (_initialize_infcmd): Likewise.
688 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
689 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
690 * python/py-param.c (add_setshow_generic): Likewise.
691 * remote.c (_initialize_remote): Likewise.
692 * top.c (execute_command): Prepend default_args if command has some.
693 (set_verbose):
694 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
695 * tracepoint.c (validate_actionline, encode_actions_1):
696 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
697
bd920864
TBA
6982020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699
700 * jit.c (jit_read_descriptor): Use bool as the return type.
701 (jit_breakpoint_re_set_internal): Use bool as the return type.
702 Invert the return value logic; return true if the jit breakpoint
703 has been successfully initialized.
704 (jit_inferior_init): Update the call to
705 jit_breakpoint_re_set_internal.
706
f8098322
PA
7072020-06-22 Pedro Alves <palves@redhat.com>
708
709 PR gdb/25939
710 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
711 Use the current inferior instead. Don't return
712 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
713 wait again.
714 * sol-thread.c (sol_thread_target::wait): Don't reference
715 inferior_ptid.
716 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
717 (sol_update_thread_list_callback): Use the current inferior's pid
718 instead of inferior_ptid.
719
196535a6
RO
7202020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
721
722 * procfs.c: Cleanup many comments.
723
724 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
725 (AFTER_WATCHFLAG): Replace by value.
726
727 (MAIN_PROC_NAME_FORMAT): Inline ...
728 (create_procinfo): ... here.
729
730 (procfs_debug_inferior): Remove SYS_exec handling.
731 (syscall_is_exec): Likewise.
732 (procfs_set_exec_trap): Likewise.
733
734 (syscall_is_lwp_exit): Inline in callers.
735 (syscall_is_exit): Likewise.
736 (syscall_is_exec): Likewise.
737 (syscall_is_lwp_create): Likewise.
738
739 (invalidate_cache): Remove #if 0 code.
740
741 (make_signal_thread_runnable): Remove.
742 (procfs_target::resume): Remove #if 0 code.
743
cf6f3e86
RO
7442020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
745
746 PR gdb/25939
747 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
748 call ...
749 (procfs_target::create_inferior): ... here.
750
48e9cc84
PW
7512020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
752
753 * exec.c (validate_exec_file): Ensure the build-id is up to
754 date by calling reopen_exec_file (that checks file timestamp
755 to decide to re-read the file).
756
3922b302
PA
7572020-06-18 Pedro Alves <palves@redhat.com>
758
759 PR gdb/25412
760 * gdbthread.h (delete_thread, delete_thread_silent)
761 (find_thread_ptid): Update comments.
762 * thread.c (current_thread_): New global.
763 (is_current_thread): Move higher, and reimplement.
764 (inferior_thread): Reimplement.
765 (set_thread_exited): Use bool. Add assertions.
766 (add_thread_silent): Simplify thread-reuse handling by always
767 calling delete_thread.
768 (delete_thread): Remove intro comment.
769 (find_thread_ptid): Skip exited threads.
770 (switch_to_thread_no_regs): Write to current_thread_.
771 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
772 INFERIOR_PTID. Clear current_thread_.
773
6dbdab44
PA
7742020-06-18 Pedro Alves <palves@redhat.com>
775
776 * aix-thread.c (pd_update): Use switch_to_thread.
777
2da4b788
PA
7782020-06-18 Pedro Alves <palves@redhat.com>
779
780 * ravenscar-thread.c (ravenscar_thread_target): Update.
781 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
782 (ravenscar_thread_target::add_active_thread): ... this. Don't
783 set m_base_ptid here. Update to avoid referencing inferior_ptid.
784 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
785
50838d1b
PA
7862020-06-18 Pedro Alves <palves@redhat.com>
787
788 * nat/windows-nat.c (current_windows_thread): Remove.
789 * nat/windows-nat.h (current_windows_thread): Remove.
790 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
791 Adjust.
792 (display_selectors): Adjust to fetch the current
793 windows_thread_info based on inferior_ptid.
794 (fake_create_process): No longer write to current_windows_thread.
795 (windows_nat_target::get_windows_debug_event):
796 Don't set inferior_ptid or current_windows_thread.
797 (windows_nat_target::wait): Adjust to not rely on
798 current_windows_thread.
799 (do_initial_windows_stuff): Now a method of windows_nat_target.
800 Switch to the last_ptid thread.
801 (windows_nat_target::attach): Adjust.
802 (windows_nat_target::detach): Use switch_to_no_thread instead of
803 writing to inferior_ptid directly.
804 (windows_nat_target::create_inferior): Adjust.
805
31ce04e9
PA
8062020-06-18 Pedro Alves <palves@redhat.com>
807
808 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
809
1ee1a363
PA
8102020-06-18 Pedro Alves <palves@redhat.com>
811
812 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
813 after creating it, instead of writing to inferior_ptid. Don't
814 write to inferior_ptid.
815
6d350754
PA
8162020-06-18 Pedro Alves <palves@redhat.com>
817
818 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
819
5d971d48
PA
8202020-06-18 Pedro Alves <palves@redhat.com>
821
822 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
823 it, instead of writing to inferior_ptid.
824
86e57d1b
PA
8252020-06-18 Pedro Alves <palves@redhat.com>
826
827 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
828 to inferior_ptid.
829
f2e1c129
PA
8302020-06-18 Pedro Alves <palves@redhat.com>
831
832 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
833 instead of writing to inferior_ptid directly.
834
60db1b85
PA
8352020-06-18 Pedro Alves <palves@redhat.com>
836
837 * corelow.c (core_target::close): Use switch_to_no_thread instead
838 of writing to inferior_ptid directly.
839 (add_to_thread_list, core_target_open): Use switch_to_thread
840 instead of writing to inferior_ptid directly.
841
fe7d6a8d
PA
8422020-06-18 Pedro Alves <palves@redhat.com>
843
844 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
845 inferior_ptid.
846 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
847 inferior_ptid.
848 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
849 inferior_ptid directly.
850 (darwin_nat_target::init_thread_list): Switch to thread, instead
851 of writing to inferior_ptid.
852 (darwin_nat_target::attach): Don't write to inferior_ptid.
853 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
854
975f8708
PA
8552020-06-18 Pedro Alves <palves@redhat.com>
856
857 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
858 thread.
859 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
860 Instead use switch_to_thread.
861 (gnu_nat_target::detach): Use switch_to_no_thread
862 instead of writing to inferior_ptid directly. Used passed-in
863 inferior instead of looking up the inferior by pid.
864
1a204730
PA
8652020-06-18 Pedro Alves <palves@redhat.com>
866
867 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
868 inferior_ptid.
869
ebe84f23
PA
8702020-06-18 Pedro Alves <palves@redhat.com>
871
872 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
873 inferior_ptid.
874 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
875 thread.
876 (nto_procfs_target::detach): Avoid referencing
877 inferior_ptid. Use switch_to_no_thread instead of writing to
878 inferior_ptid directly.
879 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
880 instead of writing to inferior_ptid directly.
881 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
882 to thread.
883
191f02e5
PA
8842020-06-18 Pedro Alves <palves@redhat.com>
885
886 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
887 after creating it, instead of writing to inferior_ptid.
888 (gdbsim_target_open): Use switch_to_no_thread instead of writing
889 to inferior_ptid directly.
890 (gdbsim_target::wait): Don't write to inferior_ptid.
891
0ac55310
PA
8922020-06-18 Pedro Alves <palves@redhat.com>
893
894 * remote.c (remote_target::remote_notice_new_inferior): Use
895 switch_to_thread instead of writing to inferior_ptid directly.
896 (remote_target::add_current_inferior_and_thread): Use
897 switch_to_no_thread instead of writing to inferior_ptid directly.
898 (extended_remote_target::attach): Use switch_to_inferior_no_thread
899 and switch_to_thread instead of using set_current_inferior or
900 writing to inferior_ptid directly.
901
5233f39b
PA
9022020-06-18 Pedro Alves <palves@redhat.com>
903
904 * tracectf.c (ctf_target_open): Switch to added thread instead of
905 writing to inferior_ptid directly.
906 (ctf_target::close): Use switch_to_no_thread instead of writing to
907 inferior_ptid directly.
908
087e161b
PA
9092020-06-18 Pedro Alves <palves@redhat.com>
910
911 * tracefile-tfile.c (tfile_target_open): Don't write to
912 inferior_ptid directly, instead switch to added thread.
913 (tfile_target::close): Use switch_to_no_thread instead of writing
914 to inferior_ptid directly.
915
7fb43e53
PA
9162020-06-18 Pedro Alves <palves@redhat.com>
917
918 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
919 (procfs_target::detach): Use switch_to_no_thread
920 instead of writing to inferior_ptid directly.
921 (do_attach): Change return type to void. Switch to the added
922 thread.
923 (procfs_target::create_inferior): Switch to the added thread.
924 (procfs_do_thread_registers): Don't write to inferior_ptid.
925
18493a00
PA
9262020-06-18 Pedro Alves <palves@redhat.com>
927
928 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
929 of writing to inferior_ptid.
930 (scoped_restore_exited_inferior): Delete.
931 (handle_vfork_child_exec_or_exit): Simplify using
932 scoped_restore_current_pspace_and_thread. Use switch_to_thread
933 instead of writing to inferior_ptid.
934 (THREAD_STOPPED_BY): Delete.
935 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
936 (thread_stopped_by_hw_breakpoint): Delete.
937 (save_waitstatus): Use
938 scoped_restore_current_thread+switch_to_thread, and call
939 target_stopped_by_watchpoint instead of
940 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
941 instead of thread_stopped_by_sw_breakpoint, and
942 target_stopped_by_hw_breakpoint instead of
943 thread_stopped_by_hw_breakpoint.
944 (handle_inferior_event)
945 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
946 inferior_ptid directly, nor
947 set_current_inferior/set_current_program_space. Use
948 switch_to_thread / switch_to_inferior_no_thread instead.
949
a0776b13
PA
9502020-06-18 Pedro Alves <palves@redhat.com>
951
952 * target.c (generic_mourn_inferior): Use switch_to_no_thread
953 instead of writing to inferior_ptid.
954
6155c136
PA
9552020-06-18 Pedro Alves <palves@redhat.com>
956
957 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
958 added thread.
959 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
960 to the added thread.
961 (inf_ptrace_target::detach_success): Use switch_to_no_thread
962 instead of writing to inferior_ptid.
963
c5316fc6
PA
9642020-06-18 Pedro Alves <palves@redhat.com>
965
966 * gdbarch-selftests.c: Include "progspace-and-thread.h".
967 (register_to_value_test): Mock a program_space too. Heap-allocate
968 the address space. Don't write to inferior_ptid. Use
969 switch_to_thread instead.
970
8df01799
PA
9712020-06-18 Pedro Alves <palves@redhat.com>
972
973 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
974 Delete.
975 (find_signalled_thread()): New, factored out from
976 linux_make_corefile_notes and adjusted to handle exited threads.
977 (linux_make_corefile_notes): Adjust to use the new
978 find_signalled_thread.
979
41792d68
PA
9802020-06-18 Pedro Alves <palves@redhat.com>
981
982 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
983 of saving/restoring inferior_ptid.
984
612f258a
TT
9852020-06-17 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
988 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
989 declare.
990 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
991
efb763a5
SM
9922020-06-15 Simon Marchi <simon.marchi@efficios.com>
993
994 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
995 of partial symtabs.
996
2951f6c0
SM
9972020-06-17 Simon Marchi <simon.marchi@efficios.com>
998
999 * regformats/reg-arm.dat: Remove.
1000 * regformats/reg-bfin.dat: Remove.
1001 * regformats/reg-cris.dat: Remove.
1002 * regformats/reg-crisv32.dat: Remove.
1003 * regformats/reg-m32r.dat: Remove.
1004 * regformats/reg-tilegx.dat: Remove.
1005 * regformats/reg-tilegx32.dat: Remove.
1006
7d458ea5
SM
10072020-06-17 Simon Marchi <simon.marchi@efficios.com>
1008
1009 * features/Makefile (WHICH): Remove arm files.
1010 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1011 * regformats/arm/arm-with-neon.dat: Remove.
1012 * regformats/arm/arm-with-vfpv2.dat: Remove.
1013 * regformats/arm/arm-with-vfpv3.dat: Remove.
1014
3af96c0d
SM
10152020-06-17 Simon Marchi <simon.marchi@efficios.com>
1016
1017 * features/Makefile (XMLTOC): Remove rx.xml.
1018
b25e22fd
PA
10192020-06-17 Pedro Alves <palves@redhat.com>
1020
1021 * gdbthread.h (thread_control_state) <trap_expected> Update
1022 comments.
1023
a78a19b1
AB
10242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1027 ada_language::lookup_symbol_nonlocal.
1028 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1029 (ada_language::lookup_symbol_nonlocal): New member function,
1030 implementation from ada_lookup_symbol_nonlocal.
1031 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1032 initializer.
1033 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1034 initializer.
1035 (cplus_language::lookup_symbol_nonlocal): New member function.
1036 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1037 (minimal_language_data) Likewise.
1038 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1039 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1040 initializer.
1041 (d_language::lookup_symbol_nonlocal): New member function.
1042 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1043 initializer.
1044 (f_language::lookup_symbol_nonlocal): New member function.
1045 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1046 initializer.
1047 * language.c (unknown_language_data): Likewise.
1048 (auto_language_data): Likewise.
1049 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1050 field.
1051 (language_defn::lookup_symbol_nonlocal): New member function.
1052 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1053 initializer.
1054 * objc-lang.c (objc_language_data): Likewise.
1055 * opencl-lang.c (opencl_language_data): Likewise.
1056 * p-lang.c (pascal_language_data): Likewise.
1057 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1058 rust_language::lookup_symbol_nonlocal.
1059 (rust_language_data): Delete la_lookup_symbol_nonlocal
1060 initializer.
1061 (rust_language::lookup_symbol_nonlocal): New member function,
1062 implementation from rust_lookup_symbol_nonlocal.
1063 * symtab.c (lookup_symbol_aux): Update call to
1064 lookup_symbol_nonlocal.
1065 (basic_lookup_symbol_nonlocal): Rename to...
1066 (language_defn::lookup_symbol_nonlocal): ...this, and update
1067 header comment. Remove language_defn parameter, and replace with
1068 uses of `this'.
1069 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1070
ebe2334e
AB
10712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1072
1073 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1074 initializer.
1075 (ada_language::value_print_inner): New member function.
1076 * c-lang.c (c_language_data): Delete la_value_print_inner
1077 initializer.
1078 (cplus_language_data): Likewise.
1079 (asm_language_data): Likewise.
1080 (minimal_language_data): Likewise.
1081 * d-lang.c (d_language_data): Likewise.
1082 (d_language::value_print_inner): New member function.
1083 * f-lang.c (f_language_data): Delete la_value_print_inner
1084 initializer.
1085 (f_language::value_print_inner): New member function.
1086 * f-lang.h (f_value_print_innner): Rename to...
1087 (f_value_print_inner): ...this (note spelling of 'inner').
1088 * f-valprint.c (f_value_print_innner): Rename to...
1089 (f_value_print_inner): ...this (note spelling of 'inner').
1090 * go-lang.c (go_language_data): Delete la_value_print_inner
1091 initializer.
1092 (go_language::value_print_inner): New member function.
1093 * language.c (language_defn::value_print_inner): Define new member
1094 function.
1095 (unk_lang_value_print_inner): Delete.
1096 (unknown_language_data): Delete la_value_print_inner initializer.
1097 (unknown_language::value_print_inner): New member function.
1098 (auto_language_data): Delete la_value_print_inner initializer.
1099 (auto_language::value_print_inner): New member function.
1100 * language.h (language_data): Delete la_value_print_inner field.
1101 (language_defn::value_print_inner): Delcare new member function.
1102 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1103 initializer.
1104 (m2_language::value_print_inner): New member function.
1105 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1106 initializer.
1107 * opencl-lang.c (opencl_language_data): Likewise.
1108 * p-lang.c (pascal_language_data): Likewise.
1109 (pascal_language::value_print_inner): New member function.
1110 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1111 initializer.
1112 (rust_language::value_print_inner): New member function.
1113 * valprint.c (do_val_print): Update call to value_print_inner.
1114
a1d1fa3e
AB
11152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * ada-lang.c (ada_language_data): Delete la_value_print
1118 initializer.
1119 (ada_language::value_print): New member function.
1120 * c-lang.c (c_language_data): Delete la_value_print initializer.
1121 (cplus_language_data): Likewise.
1122 (asm_language_data): Likewise.
1123 (minimal_language_data): Likewise.
1124 * d-lang.c (d_language_data): Likewise.
1125 * f-lang.c (f_language_data): Likewise.
1126 * go-lang.c (go_language_data): Likewise.
1127 * language.c (unk_lang_value_print): Delete.
1128 (language_defn::value_print): Define new member function.
1129 (unknown_language_data): Delete la_value_print initializer.
1130 (unknown_language::value_print): New member function.
1131 (auto_language_data): Delete la_value_print initializer.
1132 (auto_language::value_print): New member function.
1133 * language.h (language_data): Delete la_value_print field.
1134 (language_defn::value_print): Declare new member function.
1135 (LA_VALUE_PRINT): Update call to value_print.
1136 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1137 * objc-lang.c (objc_language_data): Likewise.
1138 * opencl-lang.c (opencl_language_data): Likewise.
1139 * p-lang.c (pascal_language_data): Likewise.
1140 (pascal_language::value_print): New member function.
1141 * rust-lang.c (rust_language_data): Delete la_value_print
1142 initializer.
1143
f16a9f57
AB
11442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * ada-lang.c (ada_watch_location_expression): Rename to
1147 ada_language::watch_location_expression.
1148 (ada_language_data): Delete la_watch_location_expression
1149 initializer.
1150 (ada_language::watch_location_expression): New member function,
1151 implementation from ada_watch_location_expression.
1152 * breakpoint.c (watch_command_1): Update call to
1153 watch_location_expression.
1154 * c-lang.c (c_watch_location_expression): Rename to
1155 language_defn::watch_location_expression.
1156 (c_language_data): Delete la_watch_location_expression
1157 initializer.
1158 (cplus_language_data): Likewise.
1159 (asm_language_data): Likewise.
1160 (minimal_language_data): Likewise.
1161 * c-lang.h (c_watch_location_expression): Delete declaration.
1162 * d-lang.c (d_language_data): Delete la_watch_location_expression
1163 initializer.
1164 * f-lang.c (f_language_data): Likewise.
1165 * go-lang.c (go_language_data): Likewise.
1166 * language.c (language_defn::watch_location_expression): Member
1167 function implementation from c_watch_location_expression.
1168 (unknown_language_data): Delete la_watch_location_expression
1169 initializer.
1170 (auto_language_data): Likewise.
1171 * language.h (language_data): Delete la_watch_location_expression
1172 field.
1173 (language_defn::watch_location_expression): Declare new member
1174 function.
1175 * m2-lang.c (m2_language_data): Delete
1176 la_watch_location_expression initializer.
1177 * objc-lang.c (objc_language_data): Likewise.
1178 * opencl-lang.c (opencl_language_data): Likewise.
1179 * p-lang.c (pascal_language_data): Likewise.
1180 * rust-lang.c (rust_watch_location_expression): Rename to
1181 rust_language::watch_location_expression.
1182 (rust_language_data): Delete la_watch_location_expression
1183 initializer.
1184 (rust_language::watch_location_expression): New member function,
1185 implementation from rust_watch_location_expression.
1186
7e56227d
AB
11872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1190 ada_language::collect_symbol_completion_matches.
1191 (ada_language_data): Delete la_collect_symbol_completion_matches
1192 initializer.
1193 (ada_language::collect_symbol_completion_matches): New member
1194 function, implementation from
1195 ada_collect_symbol_completion_matches.
1196 * c-lang.c (c_language_data): Delete
1197 la_collect_symbol_completion_matches initializer.
1198 (cplus_language_data): Likewise.
1199 (asm_language_data): Likewise.
1200 (minimal_language_data): Likewise.
1201 * d-lang.c (d_language_data): Likewise.
1202 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1203 f_language::collect_symbol_completion_matches.
1204 (f_language_data): Delete la_collect_symbol_completion_matches
1205 initializer.
1206 (f_language::collect_symbol_completion_matches) New member
1207 function, implementation from f_collect_symbol_completion_matches.
1208 * go-lang.c (go_language_data): Delete
1209 la_collect_symbol_completion_matches initializer.
1210 * language.c (unknown_language_data): Likewise.
1211 (auto_language_data): Likewise.
1212 * language.h (language_data): Delete
1213 la_collect_symbol_completion_matches field.
1214 (language_defn::collect_symbol_completion_matches): New member
1215 function.
1216 * m2-lang.c (m2_language_data): Delete
1217 la_collect_symbol_completion_matches initializer.
1218 * objc-lang.c (objc_language_data): Likewise.
1219 * opencl-lang.c (opencl_language_data): Likewise.
1220 * p-lang.c (pascal_language_data): Likewise.
1221 * rust-lang.c (rust_language_data): Likewise.
1222 * symtab.c (default_collect_symbol_completion_matches): Delete.
1223 (collect_symbol_completion_matches): Update call to
1224 collect_symbol_completion_matches.
1225 (collect_symbol_completion_matches_type): Likewise.
1226 * symtab.h (default_collect_symbol_completion_matches): Delete
1227 declaration.
1228
53fc67f8
AB
12292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1232 (ada_language_data): Delete la_word_break_characters initializer.
1233 (ada_language::word_break_characters): New member function.
1234 * c-lang.c (c_language_data): Delete la_word_break_characters
1235 initializer.
1236 (cplus_language_data): Likewise.
1237 (asm_language_data): Likewise.
1238 (minimal_language_data): Likewise.
1239 * completer.c: Update global comment.
1240 (advance_to_expression_complete_word_point): Update call to
1241 word_break_characters.
1242 (complete_files_symbols): Likewise.
1243 (complete_line_internal_1): Likewise.
1244 (default_completer_handle_brkchars): Likewise.
1245 (skip_quoted_chars): Likewise.
1246 * d-lang.c (d_language_data): Delete la_word_break_characters
1247 initializer.
1248 * f-lang.c (f_word_break_characters): Delete.
1249 (f_language_data): Delete la_word_break_characters initializer.
1250 (f_language::word_break_characters): New member function.
1251 * go-lang.c (go_language_data): Delete la_word_break_characters
1252 initializer.
1253 * language.c (unknown_language_data): Likewise.
1254 (auto_language_data): Likewise.
1255 * language.h (default_word_break_characters): Move declaration to
1256 earlier in the file.
1257 (language_data): Delete la_word_break_characters field.
1258 (language_defn::word_break_characters): New member function.
1259 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1260 initializer.
1261 * objc-lang.c (objc_language_data): Likewise.
1262 * opencl-lang.c (opencl_language_data): Likewise.
1263 * p-lang.c (pascal_language_data): Likewise.
1264 * rust-lang.c (rust_language_data): Likewise.
1265
c9debfb9
AB
12662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1267
1268 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1269 (ada_language_data): Delete la_get_symbol_name_matcher
1270 initializer.
1271 (language_defn::get_symbol_name_matcher_inner): New member
1272 function.
1273 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1274 initializer.
1275 (cplus_language_data): Likewise.
1276 (cplus_language::get_symbol_name_matcher_inner): New member
1277 function.
1278 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1279 (minimal_language_data): Likewise.
1280 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1281 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1282 initializer.
1283 * dictionary.c (iter_match_first_hashed): Update call to
1284 get_symbol_name_matcher.
1285 (iter_match_next_hashed): Likewise.
1286 (iter_match_next_linear): Likewise.
1287 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1288 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1289 initializer.
1290 (f_language::get_symbol_name_matcher_inner): New member function.
1291 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1292 initializer.
1293 * language.c (default_symbol_name_matcher): Update header comment,
1294 make static.
1295 (language_defn::get_symbol_name_matcher): New definition.
1296 (language_defn::get_symbol_name_matcher_inner): Likewise.
1297 (get_symbol_name_matcher): Delete.
1298 (unknown_language_data): Delete la_get_symbol_name_matcher
1299 initializer.
1300 (auto_language_data): Likewise.
1301 * language.h (language_data): Delete la_get_symbol_name_matcher
1302 field.
1303 (language_defn::get_symbol_name_matcher): New member function.
1304 (language_defn::get_symbol_name_matcher_inner): Likewise.
1305 (default_symbol_name_matcher): Delete declaration.
1306 * linespec.c (find_methods): Update call to
1307 get_symbol_name_matcher.
1308 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1309 initializer.
1310 * minsyms.c (lookup_minimal_symbol): Update call to
1311 get_symbol_name_matcher.
1312 (iterate_over_minimal_symbols): Likewise.
1313 * objc-lang.c (objc_language_data): Delete
1314 la_get_symbol_name_matcher initializer.
1315 * opencl-lang.c (opencl_language_data): Likewise.
1316 * p-lang.c (pascal_language_data): Likewise.
1317 * psymtab.c (psymbol_name_matches): Update call to
1318 get_symbol_name_matcher.
1319 * rust-lang.c (rust_language_data): Delete
1320 la_get_symbol_name_matcher initializer.
1321 * symtab.c (symbol_matches_search_name): Update call to
1322 get_symbol_name_matcher.
1323 (compare_symbol_name): Likewise.
1324
9a49ad8c
AB
13252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * ada-lang.c (ada_language_data): Delete la_compute_program
1328 initializer.
1329 * c-lang.c (c_language_data): Likewise.
1330 (c_language::compute_program): New member function.
1331 (cplus_language_data): Delete la_compute_program initializer.
1332 (cplus_language::compute_program): New member function.
1333 (asm_language_data): Delete la_compute_program initializer.
1334 (minimal_language_data): Likewise.
1335 * c-lang.h (c_compute_program): Update comment.
1336 (cplus_compute_program): Likewise.
1337 * compile/compile-c-support.c (c_compute_program): Likewise.
1338 (cplus_compute_program): Likewise.
1339 * compile/compile.c (compile_to_object): Update call to
1340 la_compute_program.
1341 * d-lang.c (d_language_data): Delete la_compute_program
1342 initializer.
1343 * f-lang.c (f_language_data): Likewise.
1344 * go-lang.c (go_language_data): Likewise.
1345 * language.c (unknown_language_data): Likewise.
1346 (auto_language_data): Likewise.
1347 * language.h (language_data): Delete la_compute_program field.
1348 (language_defn::compute_program): New member function.
1349 * m2-lang.c (m2_language_data): Delete la_compute_program
1350 initializer.
1351 * objc-lang.c (objc_language_data): Likewise.
1352 * opencl-lang.c (opencl_language_data): Likewise.
1353 * p-lang.c (pascal_language_data): Likewise.
1354 * rust-lang.c (rust_language_data): Likewise.
1355
eff93b4d
AB
13562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * ada-lang.c (ada_language_data) Delete
1359 la_class_name_from_physname initializer.
1360 * c-lang.c (c_language_data): Likewise.
1361 (cplus_language_data): Likewise.
1362 (cplus_language::class_name_from_physname): New member function.
1363 (asm_language_data): Delete la_class_name_from_physname
1364 initializer.
1365 (minimal_language_data): Likewise.
1366 * d-lang.c (d_language_data): Likewise.
1367 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1368 method on language_defn class.
1369 (guess_full_die_structure_name): Likewise.
1370 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1371 initializer.
1372 * go-lang.c (go_language_data): Likewise.
1373 * language.c (language_class_name_from_physname): Delete.
1374 (unk_lang_class_name): Delete.
1375 (unknown_language_data): Delete la_class_name_from_physname
1376 initializer.
1377 (auto_language_data): Likewise.
1378 * language.h (language_data): Delete la_class_name_from_physname
1379 field.
1380 (language_defn::class_name_from_physname): New function.
1381 (language_class_name_from_physname): Delete declaration.
1382 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1383 initializer.
1384 * objc-lang.c (objc_language_data): Likewise.
1385 * opencl-lang.c (opencl_language_data): Likewise.
1386 * p-lang.c (pascal_language_data): Likewise.
1387 * rust-lang.c (rust_language_data): Likewise.
1388
de543742
TT
13892020-06-16 Tom Tromey <tom@tromey.com>
1390
1391 * tui/tui-data.h (STATUS_NAME): New macro.
1392 * tui/tui-layout.c (tui_remove_some_windows)
1393 (initialize_known_windows, tui_register_window)
1394 (tui_layout_split::remove_windows, initialize_layouts)
1395 (tui_new_layout_command): Don't use hard-coded window names.
1396
a350efd4
TT
13972020-06-16 Tom Tromey <tom@tromey.com>
1398
1399 PR tui/25348:
1400 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1401 tui_initialize_readline. Only run once. Call rl_initialize.
1402 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1403 tui_initialize_readline.
1404 * tui/tui-io.c (tui_setup_io): Call
1405 tui_ensure_readline_initialized.
1406 * tui/tui-interp.c (tui_interp::init): Update.
1407
39ec0490
TT
14082020-06-16 Tom Tromey <tom@tromey.com>
1409
1410 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1411 Also preserve the status window.
1412
d2d1ea20
TT
14132020-06-16 Tom Tromey <tom@tromey.com>
1414
1415 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1416 where m_window==nullptr.
1417
66920317
TT
14182020-06-15 Tom Tromey <tromey@adacore.com>
1419
1420 * windows-nat.c (windows_nat::handle_output_debug_string):
1421 Update.
1422 (windows_nat::handle_ms_vc_exception): Update.
1423 * target.h (target_read_string): Change API.
1424 * target.c (target_read_string): Change API.
1425 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1426 Update.
1427 * solib-frv.c (frv_current_sos): Update.
1428 * solib-dsbt.c (dsbt_current_sos): Update.
1429 * solib-darwin.c (darwin_current_sos): Update.
1430 * linux-thread-db.c (inferior_has_bug): Update.
1431 * expprint.c (print_subexp_standard): Update.
1432 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1433 (ada_exception_message_1): Update.
1434
a5d871dd
TT
14352020-06-15 Tom Tromey <tromey@adacore.com>
1436
1437 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1438
670e35fa
TT
14392020-06-15 Tom Tromey <tromey@adacore.com>
1440
1441 * valprint.c (read_string): Update comment.
1442 * target.c (MIN): Remove.
1443 (target_read_string): Rewrite.
1444
f5272a3b
TT
14452020-06-15 Tom Tromey <tromey@adacore.com>
1446
1447 * corefile.c (read_memory_string): Remove.
1448 * ada-valprint.c (ada_value_print_ptr): Update.
1449 * ada-lang.h (ada_tag_name): Change return type.
1450 * ada-lang.c (type_from_tag): Update.
1451 (ada_tag_name_from_tsd): Change return type. Use
1452 target_read_string.
1453 (ada_tag_name): Likewise.
1454 * gdbcore.h (read_memory_string): Don't declare.
1455
2c074f49
HD
14562020-06-14 Hannes Domani <ssbssa@yahoo.de>
1457
1458 * symtab.c (rbreak_command): Ignore Windows drive colon.
1459
6a17d503
SM
14602020-06-12 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * NEWS: Mention removed GDBserver host support.
1463
453c733f
NC
14642020-06-12 Nelson Chu <nelson.chu@sifive.com>
1465
1466 * features/riscv/rebuild-csr-xml.sh: Updated.
1467
2b4e6a3f
TT
14682020-06-11 Tom Tromey <tom@tromey.com>
1469
1470 PR gdb/18318:
1471 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1472
4412332f
JG
14732020-06-09 Jonny Grant <jg@jguk.org>
14742020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 * main.c (captured_main_1): Don't print new line after help.
1477 (print_gdb_help): add mailing list and IRC channel information
1478 to --help. Add new lines between items in the footer. Remove
1479 quotes around bug url.
1480
2f33032a
KS
14812020-06-11 Keith Seitz <keiths@redhat.com>
1482
1483 PR gdb/21356
1484 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1485 Resolve typedefs for type length calculations.
1486
7ab96794
TV
14872020-06-10 Tom de Vries <tdevries@suse.de>
1488
1489 PR ada/24713
1490 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1491 (write_psymbols): Enable .gdb_index for ada.
1492 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1493 ada.
1494
e5f3ece2
TV
14952020-06-10 Tom de Vries <tdevries@suse.de>
1496
1497 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1498 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1499 namei" instead of "const char *name" argument.
1500 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1501 dw2_symtab_iter_init.
1502
940da03e
SM
15032020-06-08 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1506 to use type::field and field::type instead.
1507
b6cdac4b
SM
15082020-06-08 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1511 to use field::type instead.
1512
5d14b6e5
SM
15132020-06-08 Simon Marchi <simon.marchi@efficios.com>
1514
1515 * gdbtypes.h (struct field) <type, set_type>: New methods.
1516 Rename `type` field to...
1517 <m_type>: ... this. Change references throughout to use type or
1518 set_type methods.
1519 (FIELD_TYPE): Use field::type. Change call sites that modify
1520 the field's type to use field::set_type instead.
1521
3d967001
SM
15222020-06-08 Simon Marchi <simon.marchi@efficios.com>
1523
1524 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1525 to use type::index_type instead.
1526
262abc0d
SM
15272020-06-08 Simon Marchi <simon.marchi@efficios.com>
1528
1529 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1530 methods.
1531 (TYPE_INDEX_TYPE): Use type::index_type.
1532 * gdbtypes.c (create_array_type_with_stride): Likewise.
1533
82836c92
TT
15342020-06-07 Tom Tromey <tom@tromey.com>
1535
1536 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1537 parameter.
1538 (generic_value_print): Update.
1539
940dace9
AB
15402020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1541
1542 Revert commit 982a38f60b0.
1543 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1544
982a38f6
AB
15452020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1548 avoid use after free.
1549
82f06518
TV
15502020-06-05 Tom de Vries <tdevries@suse.de>
1551
1552 * NEWS: Fix typos.
1553
f8c41851
SM
15542020-06-04 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1557 the per_bfd object.
1558 (dwarf2_read_debug_names): Likewise.
1559 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1560 object when re-using a per_bfd object with an index.
1561
f9b5d5ea
TV
15622020-06-03 Tom de Vries <tdevries@suse.de>
1563
1564 PR symtab/26046
1565 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1566 children for C++.
1567 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1568 DW_TAG_subprogram.
1569
f6eee2d0
AB
15702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * ada-lang.c (ada_language_data): Delete skip_trampoline
1573 initializer.
1574 * c-lang.c (c_language_data): Likewise.
1575 (cplus_language_data): Likewise.
1576 (cplus_language::skip_trampoline): New member function.
1577 (asm_language_data): Delete skip_trampoline initializer.
1578 (minimal_language_data): Likewise.
1579 * d-lang.c (d_language_data): Likewise.
1580 * f-lang.c (f_language_data): Likewise.
1581 * go-lang.c (go_language_data): Likewise.
1582 * language.c (unk_lang_trampoline): Delete function.
1583 (skip_language_trampoline): Update.
1584 (unknown_language_data): Delete skip_trampoline initializer.
1585 (auto_language_data): Likewise.
1586 * language.h (language_data): Delete skip_trampoline field.
1587 (language_defn::skip_trampoline): New function.
1588 * m2-lang.c (m2_language_data): Delete skip_trampoline
1589 initializer.
1590 * objc-lang.c (objc_skip_trampoline): Delete function, move
1591 implementation to objc_language::skip_trampoline.
1592 (objc_language_data): Delete skip_trampoline initializer.
1593 (objc_language::skip_trampoline): New member function with
1594 implementation from objc_skip_trampoline.
1595 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1596 initializer.
1597 * p-lang.c (pascal_language_data): Likewise.
1598 * rust-lang.c (rust_language_data): Likewise.
1599
0a50df5d
AB
16002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1603 (ada_language::demangle): New member function.
1604 * c-lang.c (c_language_data): Delete la_demangle initializer.
1605 (cplus_language_data): Delete la_demangle initializer.
1606 (cplus_language::demangle): New member function.
1607 (asm_language_data): Delete la_demangle initializer.
1608 (minimal_language_data): Delete la_demangle initializer.
1609 * d-lang.c (d_language_data): Delete la_demangle initializer.
1610 (d_language::demangle): New member function.
1611 * f-lang.c (f_language_data): Delete la_demangle initializer.
1612 (f_language::demangle): New member function.
1613 * go-lang.c (go_language_data): Delete la_demangle initializer.
1614 (go_language::demangle): New member function.
1615 * language.c (language_demangle): Update.
1616 (unk_lang_demangle): Delete.
1617 (unknown_language_data): Delete la_demangle initializer.
1618 (unknown_language::demangle): New member function.
1619 (auto_language_data): Delete la_demangle initializer.
1620 (auto_language::demangle): New member function.
1621 * language.h (language_data): Delete la_demangle field.
1622 (language_defn::demangle): New function.
1623 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1624 * objc-lang.c (objc_language_data): Delete la_demangle
1625 initializer.
1626 (objc_language::demangle): New member function.
1627 * opencl-lang.c (opencl_language_data): Delete la_demangle
1628 initializer.
1629 * p-lang.c (pascal_language_data): Likewise.
1630 * rust-lang.c (rust_language_data): Likewise.
1631 (rust_language::demangle): New member function.
1632
fbfb0a46
AB
16332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * ada-lang.c (ada_language_data): Delete la_print_type
1636 initializer.
1637 (ada_language::print_type): New member function.
1638 * c-lang.c (c_language_data): Delete la_print_type initializer.
1639 (c_language::print_type): New member function.
1640 (cplus_language_data): Delete la_print_type initializer.
1641 (cplus_language::print_type): New member function.
1642 (asm_language_data): Delete la_print_type initializer.
1643 (asm_language::print_type): New member function.
1644 (minimal_language_data): Delete la_print_type initializer.
1645 (minimal_language::print_type): New member function.
1646 * d-lang.c (d_language_data): Delete la_print_type initializer.
1647 (d_language::print_type): New member function.
1648 * f-lang.c (f_language_data): Delete la_print_type initializer.
1649 (f_language::print_type): New member function.
1650 * go-lang.c (go_language_data): Delete la_print_type initializer.
1651 (go_language::print_type): New member function.
1652 * language.c (unk_lang_print_type): Delete.
1653 (unknown_language_data): Delete la_print_type initializer.
1654 (unknown_language::print_type): New member function.
1655 (auto_language_data): Delete la_print_type initializer.
1656 (auto_language::print_type): New member function.
1657 * language.h (language_data): Delete la_print_type field.
1658 (language_defn::print_type): New function.
1659 (LA_PRINT_TYPE): Update.
1660 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1661 (m2_language::print_type): New member function.
1662 * objc-lang.c (objc_language_data): Delete la_print_type
1663 initializer.
1664 (objc_language::print_type): New member function.
1665 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1666 to opencl_language::print_type.
1667 (opencl_language_data): Delete la_print_type initializer.
1668 (opencl_language::print_type): New member function, implementation
1669 from opencl_print_type.
1670 * p-lang.c (pascal_language_data): Delete la_print_type
1671 initializer.
1672 (pascal_language::print_type): New member function.
1673 * rust-lang.c (rust_print_type): Delete, implementation moved to
1674 rust_language::print_type.
1675 (rust_language_data): Delete la_print_type initializer.
1676 (rust_language::print_type): New member function, implementation
1677 from rust_print_type.
1678
6f827019
AB
16792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1680
1681 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1682 implementation moves to...
1683 (ada_language::sniff_from_mangled_name): ...here. Update return
1684 type.
1685 (ada_language_data): Delete la_sniff_from_mangled_name
1686 initializer.
1687 * c-lang.c (c_language_data): Likewise.
1688 (cplus_language_data): Likewise.
1689 (cplus_language::sniff_from_mangled_name): New member function,
1690 implementation taken from gdb_sniff_from_mangled_name.
1691 (asm_language_data): Delete la_sniff_from_mangled_name
1692 initializer.
1693 (minimal_language_data): Likewise.
1694 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1695 implementation moves to cplus_language::sniff_from_mangled_name.
1696 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1697 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1698 moves to...
1699 (d_language::sniff_from_mangled_name): ...here.
1700 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1701 * f-lang.c (f_language_data): Likewise.
1702 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1703 moves to...
1704 (go_language::sniff_from_mangled_name): ...here.
1705 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1706 * language.c (language_sniff_from_mangled_name): Delete.
1707 (unknown_language_data): Delete la_sniff_from_mangled_name
1708 initializer.
1709 (auto_language_data): Likewise.
1710 * language.h (language_data): Delete la_sniff_from_mangled_name
1711 field.
1712 (language_defn::sniff_from_mangled_name): New function.
1713 (language_sniff_from_mangled_name): Delete declaration.
1714 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1715 field.
1716 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1717 implementation moves to...
1718 (objc_language::sniff_from_mangled_name): ...here.
1719 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1720 * opencl-lang.c (opencl_language_data): Likewise.
1721 * p-lang.c (pascal_language_data): Likewise.
1722 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1723 implementation moves to...
1724 (rust_language::sniff_from_mangled_name): ...here.
1725 (rust_language_data): Delete la_sniff_from_mangled_name
1726 initializer.
1727 * symtab.c (symbol_find_demangled_name): Call
1728 sniff_from_mangled_name member function.
1729
fb8006fd
AB
17302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1733 initializer.
1734 * c-lang.c (c_language_data): Likewise.
1735 (cplus_language_data): Likewise.
1736 (cplus_language::search_name_hash): New member function.
1737 (asm_language_data): Delete la_search_name_hash initializer.
1738 (minimal_language_data): Likewise.
1739 * d-lang.c (d_language_data): Likewise.
1740 * dictionary.c (default_search_name_hash): Rename to...
1741 (language_defn::search_name_hash): ...this.
1742 * f-lang.c (f_language_data): Likewise.
1743 (f_language::search_name_hash): New member function.
1744 * go-lang.c (go_language_data): Delete la_search_name_hash
1745 initializer.
1746 * language.c (unknown_language_data): Likewise.
1747 (auto_language_data): Likewise.
1748 * language.h (struct language_data): Delete la_search_name_hash
1749 field.
1750 (language_defn::search_name_hash): Declare new member function.
1751 (default_search_name_hash): Delete declaration.
1752 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1753 initializer.
1754 * objc-lang.c (objc_language_data): Likewise.
1755 * opencl-lang.c (opencl_language_data): Likewise.
1756 * p-lang.c (pascal_language_data): Likewise.
1757 * rust-lang.c (rust_language_data): Likewise.
1758 * symtab.c (search_name_hash): Update call.
1759
8e25bafe
AB
17602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1763 initializer.
1764 * c-lang.c (class compile_instance): Declare.
1765 (c_language_data): Delete la_get_compile_instance initializer.
1766 (c_language::get_compile_instance): New member function.
1767 (cplus_language_data): Delete la_get_compile_instance initializer.
1768 (cplus_language::get_compile_instance): New member function.
1769 (asm_language_data): Delete la_get_compile_instance initializer.
1770 (minimal_language_data): Likewise.
1771 * c-lang.h (c_get_compile_context): Update comment.
1772 (cplus_get_compile_context): Update comment.
1773 * compile/compile.c (compile_to_object): Update calls, don't rely
1774 on function pointer being NULL.
1775 * d-lang.c (d_language_data): Delete la_get_compile_instance
1776 initializer.
1777 * f-lang.c (f_language_data): Likewise.
1778 * go-lang.c (go_language_data): Likewise.
1779 * language.c (unknown_language_data): Likewise.
1780 (auto_language_data): Likewise.
1781 * language.h (language_data): Delete la_get_compile_instance field.
1782 (language_defn::get_compile_instance): New member function.
1783 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1784 initializer.
1785 * objc-lang.c (objc_language_data): Likewise.
1786 * opencl-lang.c (opencl_language_data): Likewise.
1787 * p-lang.c (pascal_language_data): Likewise.
1788 * rust-lang.c (rust_language_data): Likewise.
1789
4009ee92
AB
17902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1791
1792 * ada-lang.c (ada_add_all_symbols): Update comment.
1793 (ada_iterate_over_symbols): Delete, move implementation to...
1794 (ada_language::iterate_over_symbols): ...here, a new member
1795 function, rewrite to use range based for loop.
1796 (ada_language_data): Delete la_iterate_over_symbols initializer.
1797 * c-lang.c (c_language_data): Likewise.
1798 (cplus_language_data): Likewise.
1799 (asm_language_data): Likewise.
1800 (minimal_language_data): Likewise.
1801 * d-lang.c (d_language_data): Likewise.
1802 * f-lang.c (f_language_data): Likewise.
1803 * go-lang.c (go_language_data): Likewise.
1804 * language.c (unknown_language_data): Likewise.
1805 (auto_language_data): Likewise.
1806 * language.h (language_data): Delete la_iterate_over_symbols field.
1807 (language_defn::iterate_over_symbols): New member function.
1808 (LA_ITERATE_OVER_SYMBOLS): Update.
1809 * linespec.c (iterate_over_all_matching_symtabs): Update.
1810 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1811 initializer.
1812 * objc-lang.c (objc_language_data): Likewise.
1813 * opencl-lang.c (opencl_language_data): Likewise.
1814 * p-lang.c (pascal_language_data): Likewise.
1815 * rust-lang.c (rust_language_data): Likewise.
1816
54f4ca46
AB
18172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * ada-lang.c (ada_language_data): Delete
1820 la_lookup_transparent_type initializer.
1821 * c-lang.c (c_language_data): Likewise.
1822 (cplus_language_data): Likewise.
1823 (cplus_language::lookup_transparent_type): New member function.
1824 (asm_language_data): Delete la_lookup_transparent_type
1825 initializer.
1826 (minimal_language_data): Likewise.
1827 * d-lang.c (d_language_data): Likewise.
1828 * f-lang.c (f_language_data): Likewise.
1829 * go-lang.c (go_language_data): Likewise.
1830 * language.c (unknown_language_data): Likewise.
1831 (auto_language_data): Likewise.
1832 * language.h (struct language_data): Delete
1833 la_lookup_transparent_type field.
1834 (language_defn::lookup_transparent_type): New member function.
1835 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1836 initializer.
1837 * objc-lang.c (objc_language_data): Likewise.
1838 * opencl-lang.c (opencl_language_data): Likewise.
1839 * p-lang.c (pascal_language_data): Likewise.
1840 * rust-lang.c (rust_language_data): Likewise.
1841 * symtab.c (symbol_matches_domain): Update call.
1842
1fb314aa
AB
18432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1844
1845 * ada-lang.c (ada_language_arch_info): Delete function, move
1846 implementation to...
1847 (ada_language::language_arch_info): ...here, a new member
1848 function.
1849 (ada_language_data): Delete la_language_arch_info.
1850 * c-lang.c (c_language_data): Likewise.
1851 (c_language::language_arch_info): New member function.
1852 (cplus_language_arch_info): Delete function, move
1853 implementation to...
1854 (cplus_language::language_arch_info): ...here, a new member
1855 function.
1856 (cplus_language_data): Delete la_language_arch_info.
1857 (asm_language_data): Likewise.
1858 (asm_language::language_arch_info): New member function.
1859 (minimal_language_data): Delete la_language_arch_info.
1860 (minimal_language::language_arch_info): New member function.
1861 * d-lang.c (d_language_arch_info): Delete function, move
1862 implementation to...
1863 (d_language::language_arch_info): ...here, a new member
1864 function.
1865 (d_language_data): Delete la_language_arch_info.
1866 * f-lang.c (f_language_arch_info): Delete function, move
1867 implementation to...
1868 (f_language::language_arch_info): ...here, a new member
1869 function.
1870 (f_language_data): Delete la_language_arch_info.
1871 * go-lang.c (go_language_arch_info): Delete function, move
1872 implementation to...
1873 (go_language::language_arch_info): ...here, a new member
1874 function.
1875 (go_language_data): Delete la_language_arch_info.
1876 * language.c (unknown_language_data): Likewise.
1877 (unknown_language::language_arch_info): New member function.
1878 (auto_language_data): Delete la_language_arch_info.
1879 (auto_language::language_arch_info): New member function.
1880 (language_gdbarch_post_init): Update call to
1881 la_language_arch_info.
1882 * language.h (language_data): Delete la_language_arch_info
1883 function pointer.
1884 (language_defn::language_arch_info): New function.
1885 * m2-lang.c (m2_language_arch_info): Delete function, move
1886 implementation to...
1887 (m2_language::language_arch_info): ...here, a new member
1888 function.
1889 (m2_language_data): Delete la_language_arch_info.
1890 * objc-lang.c (objc_language_arch_info): Delete function, move
1891 implementation to...
1892 (objc_language::language_arch_info): ...here, a new member
1893 function.
1894 (objc_language_data): Delete la_language_arch_info.
1895 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1896 implementation to...
1897 (opencl_language::language_arch_info): ...here, a new member
1898 function.
1899 (opencl_language_data): Delete la_language_arch_info.
1900 * p-lang.c (pascal_language_arch_info): Delete function, move
1901 implementation to...
1902 (pascal_language::language_arch_info): ...here, a new member
1903 function.
1904 (pascal_language_data): Delete la_language_arch_info.
1905 * rust-lang.c (rust_language_arch_info): Delete function, move
1906 implementation to...
1907 (rust_language::language_arch_info): ...here, a new member
1908 function.
1909 (rust_language_data): Delete la_language_arch_info.
1910
48448202
AB
19112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1914 initializer.
1915 * c-lang.c (c_language_data): Likewise.
1916 (cplus_language_data): Likewise.
1917 (cplus_language::pass_by_reference_info): New method.
1918 (asm_language_data): Delete la_pass_by_reference initializer.
1919 (minimal_language_data): Likewise.
1920 * cp-abi.c (cp_pass_by_reference): Remove use of
1921 default_pass_by_reference.
1922 * d-lang.c (d_language_data): Likewise.
1923 * f-lang.c (f_language_data): Likewise.
1924 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1925 default_pass_by_reference.
1926 * go-lang.c (go_language_data): Likewise.
1927 * language.c (language_pass_by_reference): Update.
1928 (default_pass_by_reference): Delete.
1929 (unknown_language_data): Delete la_pass_by_reference
1930 initializer.
1931 (auto_language_data): Likewise.
1932 * language.h (struct language_data): Delete la_pass_by_reference
1933 field.
1934 (language_defn::pass_by_reference_info): New member function.
1935 (default_pass_by_reference): Delete declaration.
1936 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1937 initializer.
1938 * objc-lang.c (objc_language_data): Likewise.
1939 * opencl-lang.c (opencl_language_data): Likewise.
1940 * p-lang.c (pascal_language_data): Likewise.
1941 * rust-lang.c (rust_language_data): Likewise.
1942
15e5fd35
AB
19432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * ada-lang.c (ada_read_var_value): Delete function, move
1946 implementation to...
1947 (ada_language::read_var_value): ...here.
1948 (ada_language_data): Delete la_read_var_value initializer.
1949 * c-lang.c (c_language_data): Likewise.
1950 (cplus_language_data): Likewise.
1951 (minimal_language_data): Likewise.
1952 * d-lang.c (d_language_data): Likewise.
1953 * f-lang.c (f_language_data): Likewise.
1954 * findvar.c (default_read_var_value): Rename to...
1955 (language_defn::read_var_value): ...this.
1956 * findvar.c (read_var_value): Update header comment, and change to
1957 call member function instead of function pointer.
1958 * go-lang.c (go_language_data): Likewise.
1959 * language.c (unknown_language_data): Delete la_read_var_value
1960 initializer.
1961 (auto_language_data): Likewise.
1962 * language.h (struct language_data): Delete la_read_var_value
1963 field.
1964 (language_defn::read_var_value): New member function.
1965 (default_read_var_value): Delete declaration.
1966 * m2-lang.c (m2_language_data): Delete la_read_var_value
1967 initializer.
1968 * objc-lang.c (objc_language_data): Likewise.
1969 * opencl-lang.c (opencl_language_data): Likewise.
1970 * p-lang.c (pascal_language_data): Likewise.
1971 * rust-lang.c (rust_language_data): Likewise.
1972 * value.h (default_read_var_value): Delete declaration.
1973
5bd40f2a
AB
19742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * ada-lang.c (ada_print_array_index): Delete function, move
1977 implementation to...
1978 (ada_language::print_array_index): ...here.
1979 (ada_language_data): Delete la_print_array_index initializer.
1980 * c-lang.c (c_language_data): Likewise.
1981 (cplus_language_data): Likewise.
1982 (minimal_language_data): Likewise.
1983 * d-lang.c (d_language_data): Likewise.
1984 * f-lang.c (f_language_data): Likewise.
1985 * go-lang.c (go_language_data): Likewise.
1986 * language.c (default_print_array_index): Delete function, move
1987 implementation to...
1988 (language_defn::print_array_index): ...here.
1989 (unknown_language_data): Delete la_print_array_index initializer.
1990 (auto_language_data): Likewise.
1991 * language.h (struct language_data): Delete la_print_array_index
1992 field.
1993 (language_defn::print_array_index): New member function.
1994 (LA_PRINT_ARRAY_INDEX): Update.
1995 (default_print_array_index): Delete declaration.
1996 * m2-lang.c (m2_language_data): Delete la_print_array_index
1997 initializer.
1998 * objc-lang.c (objc_language_data): Likewise.
1999 * opencl-lang.c (opencl_language_data): Likewise.
2000 * p-lang.c (pascal_language_data): Likewise.
2001 * rust-lang.c (rust_language_data): Likewise.
2002
0874fd07
AB
20032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * gdb/ada-lang.c (ada_language_defn): Convert to...
2006 (ada_language_data): ...this.
2007 (class ada_language): New class.
2008 (ada_language_defn): New static global.
2009 * gdb/c-lang.c (c_language_defn): Convert to...
2010 (c_language_data): ...this.
2011 (class c_language): New class.
2012 (c_language_defn): New static global.
2013 (cplus_language_defn): Convert to...
2014 (cplus_language_data): ...this.
2015 (class cplus_language): New class.
2016 (cplus_language_defn): New static global.
2017 (asm_language_defn): Convert to...
2018 (asm_language_data): ...this.
2019 (class asm_language): New class.
2020 (asm_language_defn): New static global.
2021 (minimal_language_defn): Convert to...
2022 (minimal_language_data): ...this.
2023 (class minimal_language): New class.
2024 (minimal_language_defn): New static global.
2025 * gdb/d-lang.c (d_language_defn): Convert to...
2026 (d_language_data): ...this.
2027 (class d_language): New class.
2028 (d_language_defn): New static global.
2029 * gdb/f-lang.c (f_language_defn): Convert to...
2030 (f_language_data): ...this.
2031 (class f_language): New class.
2032 (f_language_defn): New static global.
2033 * gdb/go-lang.c (go_language_defn): Convert to...
2034 (go_language_data): ...this.
2035 (class go_language): New class.
2036 (go_language_defn): New static global.
2037 * gdb/language.c (unknown_language_defn): Remove declaration.
2038 (current_language): Initialize to nullptr, real initialization is
2039 moved to _initialize_language.
2040 (languages): Delete global.
2041 (language_defn::languages): Define.
2042 (set_language_command): Use language_defn::languages.
2043 (set_language): Likewise.
2044 (range_error): Likewise.
2045 (language_enum): Likewise.
2046 (language_def): Likewise.
2047 (add_set_language_command): Use language_def::languages for the
2048 language list, and language_def to lookup language pointers.
2049 (skip_language_trampoline): Use language_defn::languages.
2050 (unknown_language_defn): Convert to...
2051 (unknown_language_data): ...this.
2052 (class unknown_language): New class.
2053 (unknown_language_defn): New static global.
2054 (auto_language_defn): Convert to...
2055 (auto_language_data): ...this.
2056 (class auto_language): New class.
2057 (auto_language_defn): New static global.
2058 (language_gdbarch_post_init): Use language_defn::languages.
2059 (_initialize_language): Initialize current_language.
2060 * gdb/language.h (struct language_defn): Rename to...
2061 (struct language_data): ...this.
2062 (struct language_defn): New.
2063 (auto_language_defn): Delete.
2064 (unknown_language_defn): Delete.
2065 (minimal_language_defn): Delete.
2066 (ada_language_defn): Delete.
2067 (asm_language_defn): Delete.
2068 (c_language_defn): Delete.
2069 (cplus_language_defn): Delete.
2070 (d_language_defn): Delete.
2071 (f_language_defn): Delete.
2072 (go_language_defn): Delete.
2073 (m2_language_defn): Delete.
2074 (objc_language_defn): Delete.
2075 (opencl_language_defn): Delete.
2076 (pascal_language_defn): Delete.
2077 (rust_language_defn): Delete.
2078 * gdb/m2-lang.c (m2_language_defn): Convert to...
2079 (m2_language_data): ...this.
2080 (class m2_language): New class.
2081 (m2_language_defn): New static global.
2082 * gdb/objc-lang.c (objc_language_defn): Convert to...
2083 (objc_language_data): ...this.
2084 (class objc_language): New class.
2085 (objc_language_defn): New static global.
2086 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2087 (opencl_language_data): ...this.
2088 (class opencl_language): New class.
2089 (opencl_language_defn): New static global.
2090 * gdb/p-lang.c (pascal_language_defn): Convert to...
2091 (pascal_language_data): ...this.
2092 (class pascal_language): New class.
2093 (pascal_language_defn): New static global.
2094 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2095 language pointer, update comment format.
2096 * gdb/rust-lang.c (rust_language_defn): Convert to...
2097 (rust_language_data): ...this.
2098 (class rust_language): New class.
2099 (rust_language_defn): New static global.
2100
1313c56e
AB
21012020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2104 member variable.
2105 <m_stmt_at_address>: New member variable.
2106 (lnp_state_machine::record_line): Don't record some lines, update
2107 tracking of is_stmt at the same address.
2108 (lnp_state_machine::lnp_state_machine): Initialise new member
2109 variables.
2110
b7ed9f3d
ST
21112020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2112
2113 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2114 "-include gnu-nat-mig.h".
2115 * gnu-nat-mig.h: New file.
2116 * gnu-nat.c: Include "gnu-nat-mig.h".
2117 (exc_server, msg_reply_server, notify_server,
2118 process_reply_server): Remove declarations.
2119
14a8ad62
ST
21202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2121
2122 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2123 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2124 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2125 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2126 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2127 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2128 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2129 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2130 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2131 to gnu_nat_target class.
2132 * gnu-nat.c: Likewise.
2133 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2134 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2135 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2136 object.
2137 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2138 instead of `gnu_target'.
2139
0af5e106
ST
21402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2141
2142 * i386-gnu-tdep.c: Include "gdbcore.h"
2143 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2144 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2145 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2146 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2147 i386_gnu_sigcontext_addr): New functions
2148 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2149 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2150 tdep.
2151
078f2fc9
ST
21522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2153
2154 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2155 before fork_inferior call. Avoid calling it if target_is_pushed returns
2156 true.
2157
53dff92c
ST
21582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2159
2160 * gnu-nat.h (gnu_target): New variable declaration.
2161 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2162 gnu_target.
2163 * gnu-nat.c (gnu_target): New variable.
2164 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2165 add_thread_silent, and add_thread calls.
2166 (gnu_nat_target::create_inferior): Pass gnu_target to
2167 add_thread_silent, thread_change_ptid call.
2168 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2169 call.
2170
5a8b8627
ST
21712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2172
2173 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2174 (gnu_nat_target::find_memory_regions): Remove unused
2175 `old_address' variable.
2176
366f550a
ST
21772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2178
2179 * gnu-nat.c: Include "gdbarch.h".
2180
f14871bf
ST
21812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2182
2183 * reply_mig_hack.awk (Error return): Cast function through
2184 void *, to bypass compiler function call check.
2185
c6887cfb
ST
21862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2187
2188 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2189 $(srcdir)/reply_mig_hack.awk.
2190
6930bffe
ST
21912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2192
2193 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2194
112c22ed
JG
21952020-05-30 Jonny Grant <jg@jguk.org>
2196
2197 * configure.ac (ACX_BUGURL): change bug URL to https.
2198
f68f85b5
PA
21992020-05-30 Pedro Alves <palves@redhat.com>
2200
2201 * cp-support.c (replace_typedefs_template): New.
2202 (replace_typedefs_qualified_name): Handle
2203 DEMANGLE_COMPONENT_TEMPLATE.
2204
976ca316
SM
22052020-05-29 Simon Marchi <simon.marchi@efficios.com>
2206
2207 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2208 dwarf2/index-cache.h, dwarf2/index-write.c,
2209 dwarf2/index-write.h, dwarf2/line-header.c,
2210 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2211 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2212 variables and fields from `dwarf2_per_objfile` to just
2213 `per_objfile` throughout.
2214
989ade05
SM
22152020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2218 <push_dwarf_reg_entry_value>: Add comment.
2219
c47bae85
KB
22202020-05-28 Kevin Buettner <kevinb@redhat.com>
2221 Keith Seitz <keiths@redhat.com>
2222
2223 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2224 instead of PyEval_ReleaseLock.
2225 (class gdbpy_gil): Move to earlier in file.
2226 (finalize_python): Set gdb_python_initialized.
2227 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2228 when not initialized.
2229
44486dcf
SM
22302020-05-28 Simon Marchi <simon.marchi@efficios.com>
2231
2232 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2233 <push_dwarf_reg_entry_value>: Remove assert. Override
2234 per_objfile with caller_per_objfile.
2235
f030440d
TV
22362020-05-28 Tom de Vries <tdevries@suse.de>
2237
2238 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2239 PR gold/15646 workaround to symbol kind "type".
2240
f0fbb768
TT
22412020-05-27 Tom Tromey <tromey@adacore.com>
2242
2243 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2244
af0b2a3e
TT
22452020-05-27 Tom Tromey <tromey@adacore.com>
2246
2247 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2248 Use htab_find_with_hash.
2249 <add_abbrev>: Remove "abbrev_number" parameter.
2250 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2251 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2252 (hash_abbrev): Add comment.
2253 (abbrev_table::lookup_abbrev): Move to header file.
2254 (abbrev_table::read): Update.
2255
7d00ffec
TT
22562020-05-27 Tom Tromey <tromey@adacore.com>
2257
2258 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2259 method.
2260 <canonical_name>: New member.
2261 <raw_name>: Rename from "name".
2262 (partial_die_info): Initialize canonical_name.
2263 (scan_partial_symbols): Check raw_name.
2264 (partial_die_parent_scope, partial_die_full_name)
2265 (add_partial_symbol, add_partial_subprogram)
2266 (add_partial_enumeration, load_partial_dies): Use "name" method.
2267 (partial_die_info::name): New method.
2268 (partial_die_info::read, guess_partial_die_structure_name)
2269 (partial_die_info::fixup): Update.
2270
697bba18
TT
22712020-05-27 Tom Tromey <tromey@adacore.com>
2272
2273 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2274 <get_ref_die_offset>: Inline.
2275 <get_ref_die_offset_complaint>: New method.
2276 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2277 (attribute::get_ref_die_offset_complaint): Rename from
2278 get_ref_die_offset. Just issue complaint.
2279
c17ace43
HD
22802020-05-27 Hannes Domani <ssbssa@yahoo.de>
2281
2282 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2283
96445f0b
HD
22842020-05-27 Hannes Domani <ssbssa@yahoo.de>
2285
2286 * exec.c (exec_file_attach): Use errno value of first openp failure.
2287
ac637ec3
HD
22882020-05-27 Hannes Domani <ssbssa@yahoo.de>
2289
2290 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2291 Don't close thread handle.
2292
17ee85fc
TT
22932020-05-27 Tom Tromey <tom@tromey.com>
2294 Simon Marchi <simon.marchi@efficios.com>
2295
2296 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2297 shared_ptr.
2298 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2299 member.
2300 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2301 dwarf2_per_bfd_objfile_data_key>: New globals.
2302 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2303 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2304 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2305 shared.
2306 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2307 short-circuit when sharing.
2308 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2309 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2310
39b16f87
SM
23112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2312
2313 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2314 to...
2315 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2316 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2317
fcf23d5b
SM
23182020-05-27 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2321 build_name_components, find_name_components_bounds>:
2322 Add per_objfile parameter.
2323 (struct mapped_index) <symbol_name_at>: Likewise.
2324 (struct mapped_debug_names): Remove constructor.
2325 <dwarf2_per_objfile>: Remove field.
2326 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2327 (mapped_index_base::find_name_components_bounds,
2328 mapped_index_base::build_name_components,
2329 dw2_expand_symtabs_matching_symbol): Likewise.
2330 (class mock_mapped_index) <symbol_name_at>: Likewise.
2331 (check_match): Likewise.
2332 (check_find_bounds_finds): Likewise.
2333 (test_mapped_index_find_name_component_bounds): Update.
2334 (CHECK_MATCH): Update.
2335 (dw2_expand_symtabs_matching): Update.
2336 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2337 per_objfile parameter.
2338 <find_vec_in_debug_names>: Likewise.
2339 <m_per_objfile>: New field.
2340 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2341 parameter.
2342 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2343 (dw2_debug_names_iterator::next): Update.
2344 (dw2_debug_names_lookup_symbol): Update.
2345 (dw2_debug_names_expand_symtabs_for_function): Update.
2346 (dw2_debug_names_map_matching_symbols): Update.
2347 (dw2_debug_names_expand_symtabs_matching): Update.
2348 (dwarf2_read_debug_names): Update.
2349
7188ed02
SM
23502020-05-27 Simon Marchi <simon.marchi@efficios.com>
2351
2352 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2353 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2354 move to dwarf2_per_objfile.
2355 <read_in_chain>: Remove.
2356 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2357 remove_all_cus, age_comp_units>: New methods.
2358 <m_dwarf2_cus>: New member.
2359 (struct dwarf2_per_cu_data) <cu>: Remove.
2360 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2361 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2362 moved to methods of dwarf2_per_objfile.
2363 (dwarf2_clear_marks): Remove.
2364 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2365 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2366 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2367 (dwarf2_per_objfile::remove_all_cus): New.
2368 (class free_cached_comp_units) <~free_cached_comp_units>:
2369 Update.
2370 (load_cu): Update.
2371 (dw2_do_instantiate_symtab): Adjust.
2372 (fill_in_sig_entry_from_dwo_entry): Adjust.
2373 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2374 (cutu_reader::cutu_reader): Likewise.
2375 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2376 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2377 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2378 and dwarf2_per_objfile::age_comp_units.
2379 (load_partial_comp_unit): Update.
2380 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2381 (process_queue): Likewise.
2382 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2383 backlink.
2384 (dwarf2_read_addr_index): Likewise.
2385 (follow_die_offset): Likewise.
2386 (dwarf2_fetch_die_loc_sect_off): Likewise.
2387 (dwarf2_fetch_constant_bytes): Likewise.
2388 (dwarf2_fetch_die_type_sect_off): Likewise.
2389 (follow_die_sig_1): Likewise.
2390 (load_full_type_unit): Likewise.
2391 (read_signatured_type): Likewise.
2392 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2393 (dwarf2_cu::~dwarf2_cu): Remove.
2394 (dwarf2_per_objfile::get_cu): New.
2395 (dwarf2_per_objfile::set_cu): New.
2396 (age_cached_comp_units): Rename to...
2397 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2398 to std::unordered_map.
2399 (free_one_cached_comp_unit): Rename to...
2400 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2401 to std::unordered_map.
2402 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2403 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2404 a dwarf2_per_objfile in data.
2405 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2406 (dwarf2_clear_marks): Remove.
2407
2e671100
SM
24082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2409
2410 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2411 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2412 (init_tu_and_read_dwo_dies): Likewise.
2413 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2414 (cutu_reader::cutu_reader): Likewise.
2415 (load_partial_comp_unit): Likewise.
2416 (process_psymtab_comp_unit): Update.
2417 (build_type_psymtabs_1): Update.
2418 (process_skeletonless_type_unit): Update.
2419 (load_full_comp_unit): Update.
2420 (find_partial_die): Update.
2421 (dwarf2_read_addr_index): Update.
2422 (read_signatured_type): Update.
2423
2e6a9f79
SM
24242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2425
2426 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2427 m_header_read_in>: New fields.
2428 <get_header>: New method.
2429 * dwarf2/read.c (per_cu_header_read_in): Remove.
2430 (dwarf2_per_cu_data::get_header): New.
2431 (dwarf2_per_cu_data::addr_size): Update.
2432 (dwarf2_per_cu_data::offset_size): Update.
2433 (dwarf2_per_cu_data::ref_addr_size): Update.
2434
1b555f17
SM
24352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2438 (dw2_do_instantiate_symtab): Update.
2439 (queue_and_load_all_dwo_tus): Change parameter from
2440 dwarf2_per_cu_data to dwarf2_cu.
2441 (dwarf2_fetch_die_loc_sect_off): Update.
2442 (dwarf2_fetch_constant_bytes): Update.
2443 (dwarf2_fetch_die_type_sect_off): Update.
2444
8fc0b21d
SM
24452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * dwarf2/read.c (process_full_comp_unit,
2448 process_full_type_unit): Remove per_cu, per_objfile paramters.
2449 Add dwarf2_cu parameter.
2450 (process_queue): Update.
2451
168c9250
SM
24522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2453
2454 * dwarf2/read.c (create_cu_from_index_list): Replace
2455 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2456 (create_cus_from_index_list): Likewise.
2457 (create_cus_from_index): Likewise.
2458 (create_signatured_type_table_from_index): Likewise.
2459 (create_cus_from_debug_names_list): Likewise.
2460 (create_cus_from_debug_names): Likewise.
2461 (dwarf2_read_gdb_index): Update.
2462 (dwarf2_read_debug_names): Update.
2463
e286671b
TT
24642020-05-27 Tom Tromey <tom@tromey.com>
2465 Simon Marchi <simon.marchi@efficios.com>
2466
2467 * dwarf2/read.h (struct dwarf2_per_objfile)
2468 <get_type_for_signatured_type, set_type_for_signatured_type>:
2469 New methods.
2470 <m_type_map>: New member.
2471 (struct signatured_type) <type>: Remove.
2472 * dwarf2/read.c
2473 (dwarf2_per_objfile::get_type_for_signatured_type,
2474 dwarf2_per_objfile::set_type_for_signatured_type): New.
2475 (get_signatured_type): Use new methods.
2476
8adb8487
TT
24772020-05-27 Tom Tromey <tom@tromey.com>
2478 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2481 (struct dwarf2_per_objfile) <type_units>: New member.
2482 <get_type_unit_group_unshareable>: New method.
2483 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2484 num_symtabs, symtabs>: Remove; move to
2485 type_unit_group_unshareable.
2486 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2487 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2488 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2489
127bbf4b
SM
24902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2491
2492 * dwarf2/read.h (struct dwarf2_per_cu_data):
2493 <dwarf2_per_objfile>: Remove.
2494 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2495 dwarf2_per_objfile.
2496 (create_signatured_type_table_from_index): Likewise.
2497 (create_signatured_type_table_from_debug_names): Likewise.
2498 (create_debug_type_hash_table): Likewise.
2499 (fill_in_sig_entry_from_dwo_entry): Likewise.
2500 (create_type_unit_group): Likewise.
2501 (read_comp_units_from_section): Likewise.
2502 (create_cus_hash_table): Likewise.
2503
f6e649dd
SM
25042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2505
2506 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2507 dwarf2_per_cu_data::dwarf2_per_objfile.
2508 (compute_compunit_symtab_includes): Likewise.
2509 (dwarf2_cu::start_symtab): Likewise.
2510
aa66c379
SM
25112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2512
2513 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2514 parameter.
2515 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2516 (read_namespace_alias): Update.
2517 (lookup_die_type): Update.
2518 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2519 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2520 Update.
2521 (disassemble_dwarf_expression): Update.
2522
120ce1b5
SM
25232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2524
2525 * dwarf2/read.h (struct dwarf2_queue_item): Add
2526 dwarf2_per_objfile parameter, assign new parameter.
2527 <per_objfile>: New field.
2528 * dwarf2/read.c (free_one_cached_comp_unit): Add
2529 dwarf2_per_objfile parameter.
2530 (queue_comp_unit): Likewise.
2531 (dw2_do_instantiate_symtab): Update.
2532 (process_psymtab_comp_unit): Update.
2533 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2534 (process_imported_unit_die): Update.
2535 (queue_and_load_dwo_tu): Update.
2536 (follow_die_offset): Update.
2537 (follow_die_sig_1): Update.
2538
9f47c707
SM
25392020-05-27 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2542 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2543 (read_call_site_scope): Assign per_objfile.
2544 (dwarf2_per_cu_data::objfile): Remove.
2545 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2546 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2547 dwarf2_per_objfile parameter.
2548 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2549 dwarf2_per_objfile parameter.
2550 (dwarf_expr_reg_to_entry_parameter): Add output
2551 dwarf2_per_objfile parameter.
2552 (locexpr_get_frame_base): Update.
2553 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2554 <push_dwarf_reg_entry_value>: Update.
2555 <call_site_to_target_addr>: Update.
2556 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2557 parameter.
2558 (value_of_dwarf_reg_entry): Update.
2559 (rw_pieced_value): Update.
2560 (indirect_synthetic_pointer): Update.
2561 (dwarf2_evaluate_property): Update.
2562 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2563 parameter.
2564 (locexpr_read_variable): Update.
2565 (locexpr_get_symbol_read_needs): Update.
2566 (loclist_read_variable): Update.
2567
14095eb3
SM
25682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2571 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2572 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2573 parameter.
2574 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2575 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2576 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2577 parameter.
2578 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2579 sect_variable_value): Add dwarf2_per_objfile parameter.
2580 (class dwarf_evaluate_loc_desc) <dwarf_call,
2581 dwarf_variable_value>: Update.
2582 (fetch_const_value_from_synthetic_pointer): Add
2583 dwarf2_per_objfile parameter.
2584 (fetch_const_value_from_synthetic_pointer): Update.
2585 (coerced_pieced_ref): Update.
2586 (class symbol_needs_eval_context) <dwarf_call,
2587 dwarf_variable_value>: Update.
2588 (dwarf2_compile_expr_to_ax): Update.
2589
3c3cd3d4
SM
25902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2593 parameter.
2594 (dwarf2_evaluate_loc_desc_full): Update.
2595
82ca3f51
SM
25962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2597
2598 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2599 parameter.
2600 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2601 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2602 dwarf2_per_objfile parameter.
2603 (decode_debug_loc_dwo_addresses): Likewise.
2604 (dwarf2_find_location_expression): Update.
2605 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2606 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2607 parameter.
2608 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2609 parameter.
2610 (locexpr_describe_location_1): Likewise.
2611 (locexpr_describe_location): Update.
2612
4b167ea1
SM
26132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2614
2615 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2616 Remove.
2617 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2618 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2619 (dwarf2_compile_property_to_c): Update.
2620 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2621 use text offset from objfile.
2622 (locexpr_tracepoint_var_ref): Update.
2623 (locexpr_generate_c_location): Update.
2624 (loclist_describe_location): Update.
2625 (loclist_tracepoint_var_ref): Update.
2626 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2627 dwarf2_per_objfile parameter.
2628 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2629 use text offset from objfile.
2630 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2631
89b07335
SM
26322020-05-27 Simon Marchi <simon.marchi@efficios.com>
2633
2634 * dwarf2/expr.h (struct dwarf_expr_context)
2635 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2636 <offset>: Remove.
2637 <per_objfile>: New member.
2638 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2639 dwarf2_per_objfile parameter. Don't set offset, set
2640 per_objfile.
2641 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2642 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2643 a dwarf2_per_objfile object instead of an offset.
2644 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2645 constructor.
2646 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2647 to dwarf2_expr_executor constructor. Don't set offset.
2648 (dwarf2_fetch_cfa_info): Update.
2649 (struct dwarf2_frame_cache) <text_offset>: Remove.
2650 <per_objfile>: New field.
2651 (dwarf2_frame_cache): Update.
2652 (dwarf2_frame_prev_register): Update.
2653 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2654 <dwarf_evaluate_loc_desc>: Add constructor.
2655 (dwarf2_evaluate_loc_desc_full): Update.
2656 (dwarf2_locexpr_baton_eval): Update.
2657 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2658 Add constructor.
2659 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2660
293e7e51
SM
26612020-05-27 Simon Marchi <simon.marchi@efficios.com>
2662
2663 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2664 addr_sized_int_type>: Move to dwarf2_cu.
2665 <int_type>: Move to dwarf2_per_objfile.
2666 (struct dwarf2_per_objfile) <int_type>: Move here.
2667 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2668 addr_sized_int_type>: Move here.
2669 (read_func_scope): Update.
2670 (read_array_type): Update.
2671 (read_tag_string_type): Update.
2672 (attr_to_dynamic_prop): Update.
2673 (dwarf2_per_cu_data::int_type): Rename to...
2674 (dwarf2_per_objfile::int_type): ... this.
2675 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2676 (dwarf2_cu::addr_sized_int_type): ... this.
2677 (read_subrange_type): Update.
2678 (dwarf2_per_cu_data::addr_type): Rename to...
2679 (dwarf2_cu::addr_type): ... this.
2680 (set_die_type): Update.
2681
64874a40
SM
26822020-05-27 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2685 data through per_cu->cu.
2686
4ab09049
SM
26872020-05-27 Simon Marchi <simon.marchi@efficios.com>
2688
2689 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2690 dwarf2_per_cu_data parameter fo dwarf2_cu.
2691 (lookup_dwo_type_unit): Likewise.
2692 (read_cutu_die_from_dwo): Likewise.
2693 (lookup_dwo_unit): Likewise.
2694 (open_and_init_dwo_file): Likewise.
2695 (lookup_dwo_cutu): Likewise.
2696 (lookup_dwo_comp_unit): Likewise.
2697 (lookup_dwo_type_unit): Likewise.
2698 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2699 (cutu_reader::cutu_reader): Update.
2700
47b14e86
SM
27012020-05-27 Simon Marchi <simon.marchi@efficios.com>
2702
2703 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2704 parameter.
2705 (process_full_type_unit): Likewise.
2706 (process_queue): Update.
2707
43182c09
SM
27082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2709
2710 * dwarf2/read.c (recursively_compute_inclusions): Add
2711 dwarf2_per_objfile parameter.
2712 (compute_compunit_symtab_includes): Likewise.
2713 (process_cu_includes): Update.
2714
7aa104c4
SM
27152020-05-27 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2718 parameter.
2719 (create_type_unit_group): Update.
2720 (process_psymtab_comp_unit_reader): Update.
2721 (build_type_psymtabs_reader): Update.
2722
e3beb21d
SM
27232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2726 object through m_this_cu->cu.
2727
d460f660
SM
27282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2729
2730 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2731 the info parameter.
2732 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2733
ab432490
SM
27342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2735
2736 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2737 per_objfile parameter.
2738 (load_full_type_unit): Add per_objfile parameter.
2739 (read_signatured_type): Likewise.
2740 (load_full_comp_unit): Likewise.
2741 (load_cu): Likewise.
2742 (dw2_do_instantiate_symtab): Likewise.
2743 (dw2_get_file_names): Likewise.
2744 (dw2_map_symtabs_matching_filename): Update.
2745 (dw_expand_symtabs_matching_file_matcher): Update.
2746 (dw2_map_symbol_filenames): Update.
2747 (process_psymtab_comp_unit): Add per_objfile parameter.
2748 (build_type_psymtabs_1): Update.
2749 (process_skeletonless_type_unit): Update.
2750 (dwarf2_build_psymtabs_hard): Update.
2751 (load_partial_comp_unit): Add per_objfile parameter.
2752 (scan_partial_symbols): Update.
2753 (load_full_comp_unit): Add per_objfile parameter.
2754 (process_imported_unit_die): Update.
2755 (create_cus_hash_table): Update.
2756 (find_partial_die): Update.
2757 (dwarf2_read_addr_index): Update.
2758 (follow_die_offset): Update.
2759 (dwarf2_fetch_die_loc_sect_off): Update.
2760 (dwarf2_fetch_constant_bytes): Update.
2761 (dwarf2_fetch_die_type_sect_off): Update.
2762 (follow_die_sig_1): Update.
2763 (load_full_type_unit): Add per_objfile parameter.
2764 (read_signatured_type): Likewise.
2765
313bad1b
SM
27662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2767
2768 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2769 of objfile_name.
2770
c3699833
SM
27712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2774 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2775 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2776 field.
2777 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2778 (create_cus_from_index): Update.
2779 (dwarf2_read_gdb_index): Update.
2780 (create_cus_from_debug_names): Update.
2781 (dwarf2_read_debug_names): Update.
2782 (get_abbrev_section_for_cu): Update.
2783 (create_all_comp_units): Update.
2784 (read_attribute_value): Update.
2785 (get_debug_line_section): Update.
2786 * dwarf2/index-cache.c (index_cache::store): Update.
2787 * dwarf2/index-write.c (save_gdb_index_command): Update.
2788 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2789
1859c670
SM
27902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2791
2792 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2793 member.
2794 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2795 dwarf2_per_cu_data::per_bfd.
2796 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2797 (create_type_unit_group): Likewise.
2798 (queue_comp_unit): Remove reference to
2799 per_cu->dwarf2_per_objfile.
2800 (maybe_queue_comp_unit): Likewise.
2801 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2802 (create_cus_hash_table): Assign new field.
2803
5e22e966
SM
28042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * dwarf2/read.c: Replace
2807 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2808 dwarf2_cu->per_objfile throughout.
2809
97a1449a
SM
28102020-05-27 Simon Marchi <simon.marchi@efficios.com>
2811
2812 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2813 parameter, don't use per_cu->dwarf2_per_objfile.
2814 (dw2_instantiate_symtab): Likewise.
2815 (dw2_find_last_source_symtab): Update.
2816 (dw2_map_expand_apply): Update.
2817 (dw2_lookup_symbol): Update.
2818 (dw2_expand_symtabs_for_function): Update.
2819 (dw2_expand_all_symtabs): Update.
2820 (dw2_expand_symtabs_with_fullname): Update.
2821 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2822 don't use per_cu->dwarf2_per_objfile.
2823 (dw2_expand_marked_cus): Update.
2824 (dw2_find_pc_sect_compunit_symtab): Update.
2825 (dw2_debug_names_lookup_symbol): Update.
2826 (dw2_debug_names_expand_symtabs_for_function): Update.
2827 (dw2_debug_names_map_matching_symbols): Update.
2828 (dwarf2_psymtab::expand_psymtab): Update.
2829
9e021579
SM
28302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2833 <per_objfile>: New member.
2834 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2835 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2836 call to dwarf2_cu.
2837 (cutu_reader::cutu_reader): Update.
2838 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2839
ae090bdb
SM
28402020-05-27 Simon Marchi <simon.marchi@efficios.com>
2841
2842 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2843 struct dwarf2_per_objfile.
2844 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2845 dwarf2_per_bfd.
2846 * dwarf2/read.c (set_die_type): Update.
2847 (get_die_type_at_offset): Update.
2848
af758d11
SM
28492020-05-27 Tom Tromey <tom@tromey.com>
2850 Simon Marchi <simon.marchi@efficios.com>
2851
2852 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2853 method.
2854 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2855 get_symtab, set_symtab>: New methods.
2856 <m_symtabs>: New field.
2857 (struct dwarf2_psymtab): Derive from partial_symtab.
2858 <readin_p, get_compunit_symtab>: Declare methods.
2859 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2860 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2861 New methods.
2862 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2863 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2864 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2865 (dw2_symtab_iter_next, dw2_print_stats)
2866 (dw2_expand_symtabs_with_fullname)
2867 (dw2_expand_symtabs_matching_one)
2868 (dw_expand_symtabs_matching_file_matcher)
2869 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2870 (dw2_debug_names_iterator::next)
2871 (dw2_debug_names_map_matching_symbols)
2872 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2873 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2874 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2875 New methods.
2876 (get_compunit_symtab, process_full_comp_unit)
2877 (process_full_type_unit): Update.
2878 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2879
5989a64e
SM
28802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2881
2882 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2883 then introduce a new dwarf2_per_objfile type.
2884 <read_line_string>: Move to the new dwarf2_per_objfile type.
2885 <objfile>: Likewise.
2886 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2887 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2888 dwarf2_per_objfile->per_bfd.
2889 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2890 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2891 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2892 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2893 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2894 (dwarf2_per_objfile::locate_sections): Rename to...
2895 (dwarf2_per_bfd::locate_sections): ... this.
2896 (dwarf2_per_objfile::get_cutu): Rename to...
2897 (dwarf2_per_bfd::get_cutu): ... this.
2898 (dwarf2_per_objfile::get_cu): Rename to...
2899 (dwarf2_per_bfd::get_cu): ... this.
2900 (dwarf2_per_objfile::get_tu): Rename to...
2901 (dwarf2_per_bfd::get_tu): ... this.
2902 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2903 (dwarf2_per_bfd::allocate_per_cu): ... this.
2904 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2905 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2906 (get_gdb_index_contents_ftype): Change parameter from
2907 dwarf2_per_objfile to dwarf2_per_bfd.
2908 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2909 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2910
a50264ba
TT
29112020-05-27 Tom Tromey <tom@tromey.com>
2912 Simon Marchi <simon.marchi@efficios.com>
2913
2914 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2915 (allocate_piece_closure): Set "per_objfile" member.
2916 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2917 (locexpr_describe_location, loclist_describe_location): Use new
2918 member.
2919 * dwarf2/read.c (read_call_site_scope)
2920 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2921 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2922 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2923 handle_data_member_location): Set per_objfile member.
2924 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2925 member.
2926 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2927
d3473f0c
TT
29282020-05-27 Tom Tromey <tom@tromey.com>
2929
2930 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2931 allocate_signatured_type>: Declare new methods.
2932 <m_num_psymtabs>: New member.
2933 (struct dwarf2_per_cu_data) <index>: New member.
2934 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2935 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2936 (create_cu_from_index_list): Use allocate_per_cu.
2937 (create_signatured_type_table_from_index)
2938 (create_signatured_type_table_from_debug_names)
2939 (create_debug_type_hash_table, add_type_unit)
2940 (read_comp_units_from_section): Use allocate_signatured_type.
2941
5717c425
TT
29422020-05-27 Tom Tromey <tom@tromey.com>
2943
2944 * psymtab.c (partial_map_expand_apply)
2945 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2946 (psym_lookup_global_symbol_language)
2947 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2948 (psym_print_stats, psym_expand_symtabs_for_function)
2949 (psym_map_symbol_filenames, psym_map_matching_symbols)
2950 (psym_expand_symtabs_matching)
2951 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2952 (maintenance_check_psymtabs): Update.
2953 * psympriv.h (struct partial_symtab) <readin_p,
2954 get_compunit_symtab>: Add objfile parameter.
2955 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2956 Likewise.
2957 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2958 get_compunit_symtab>: Likewise.
2959 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2960
45940949
TT
29612020-05-27 Tom Tromey <tom@tromey.com>
2962
2963 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2964 member.
2965 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2966 (create_cu_from_index_list)
2967 (create_signatured_type_table_from_index)
2968 (create_signatured_type_table_from_debug_names)
2969 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2970 (dwarf2_create_include_psymtab)
2971 (create_debug_type_hash_table, add_type_unit)
2972 (create_type_unit_group, read_comp_units_from_section)
2973 (dwarf2_compute_name, create_cus_hash_table)
2974 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2975 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2976 obstack.
2977 (dw2_get_real_path): Likewise. Change argument to
2978 dwarf2_per_objfile.
2979
f8c6d152
LM
29802020-05-27 Luis Machado <luis.machado@linaro.org>
2981
2982 PR tdep/26000
2983 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2984 for ldrd (immediate).
2985
e98d2e6d
PW
29862020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2987
2988 * command.h: Add comment giving the name of class_tui.
2989 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2990 create the fake command for the help for class_tui.
2991
53a47a3e
TT
29922020-05-26 Tom Tromey <tromey@adacore.com>
2993
2994 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2995 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2996 (val_atr): New function.
2997 (value_val_atr): Use it.
2998 * ada-valprint.c (print_optional_low_bound): Change low bound
2999 handling for enums.
3000 (val_print_packed_array_elements): Don't call discrete_position.
3001 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3002 discrete_position for enum types.
3003 * language.c (default_print_array_index): Change type.
3004 * language.h (struct language_defn) <la_print_array_index>: Add
3005 index_type parameter, change type of index_value.
3006 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3007 (default_print_array_index): Update.
3008 * valprint.c (maybe_print_array_index): Don't call
3009 value_from_longest. Update.
3010 (value_print_array_elements): Don't call discrete_position.
3011
0bc2354b
TT
30122020-05-26 Tom Tromey <tromey@adacore.com>
3013
3014 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3015 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3016
1218a4bf
CDA
30172020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3018
3019 PR gdb/13519
3020 * avr-tdep.c (avr_integer_to_address): Return data or code
3021 address accordingly to the second 'type' argument of the
3022 function.
3023
92651b1d
MW
30242020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3025
3026 * infcmd.c, inferior.h: (construct_inferior_arguments):
3027 Moved function from here to gdbsupport/common-inferior.{h,cc}
3028
0a4f5f8c
TT
30292020-05-23 Tom Tromey <tom@tromey.com>
3030
3031 Revert commit eca1f90c:
3032 * NEWS: Remove entry for completion styling.
3033 * completer.c (_rl_completion_prefix_display_length): Move
3034 declaration later.
3035 (gdb_fnprint): Revert.
3036 (gdb_display_match_list_1): Likewise.
3037 * cli/cli-style.c (completion_prefix_style)
3038 (completion_difference_style, completion_suffix_style): Remove.
3039 (_initialize_cli_style): Revert.
3040 * cli/cli-style.h (completion_prefix_style)
3041 (completion_difference_style, completion_suffix_style): Don't
3042 declare.
3043
e08bd6c5
PA
30442020-05-24 Pedro Alves <palves@redhat.com>
3045
3046 * symtab.c (completion_list_add_name): Return boolean indication
3047 of whether the symbol matched.
3048 (completion_list_add_symbol): Don't try to remove C++ aliases if
3049 the symbol didn't match in the first place.
3050 * symtab.h (completion_list_add_name): Return bool.
3051
ceacbf6e
SM
30522020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3055 type::field.
3056
26f16254
JB
30572020-05-23 Joel Brobecker <brobecker@adacore.com>
3058
3059 GDB 9.2 released.
3060
eca1f90c
TT
30612020-05-23 Tom Tromey <tom@tromey.com>
3062
3063 * NEWS: Add entry for completion styling.
3064 * completer.c (_rl_completion_prefix_display_length): Move
3065 declaration earlier.
3066 (gdb_fnprint): Use completion_style.
3067 (gdb_display_match_list_1): Likewise.
3068 * cli/cli-style.c (completion_prefix_style)
3069 (completion_difference_style, completion_suffix_style): New
3070 globals.
3071 (_initialize_cli_style): Register new globals.
3072 * cli/cli-style.h (completion_prefix_style)
3073 (completion_difference_style, completion_suffix_style): Declare.
3074
51e2cfa2
PA
30752020-05-23 Pedro Alves <palves@redhat.com>
3076
3077 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3078 (parse_escape): Use ISDIGIT instead of isdigit.
3079 (puts_debug): Use gdb_isprint instead of isprint.
3080 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3081 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3082 ISSPACE instead of isspace.
3083 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3084 instead of isspace.
3085 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3086 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3087 instead of isxdigit and ISDIGIT instead of isdigit.
3088
80fc5e77
SM
30892020-05-22 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * gdbtypes.h (struct type) <field>: New method.
3092 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3093 or type::field.
3094
3cabb6b0
SM
30952020-05-22 Simon Marchi <simon.marchi@efficios.com>
3096
3097 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3098 (TYPE_FIELDS): Use type::fields. Change all call sites that
3099 modify the propery to use type::set_fields instead.
3100
1f704f76
SM
31012020-05-22 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3104 type::num_fields instead.
3105
5e33d5f4
SM
31062020-05-22 Simon Marchi <simon.marchi@efficios.com>
3107
3108 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3109 methods.
3110 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3111 that modify the number of fields to use type::set_num_fields
3112 instead.
3113
9392ebb3
TT
31142020-05-22 Tom Tromey <tromey@adacore.com>
3115
3116 * compile/compile-object-load.h (munmap_list_free): Don't
3117 declare.
3118
7c13f4e8
AB
31192020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * annotate.c (annotate_source_line): Update return type, add call
3122 to update current symtab and line.
3123 * annotate.h (annotate_source_line): Update return type, and
3124 extend header comment.
3125 * source.c (info_line_command): Check annotation_level before
3126 calling annotate_source_line.
3127 * stack.c (print_frame_info): If calling annotate_source_line
3128 returns true, then don't print any other source line information.
3129
aa370940
SM
31302020-05-21 Simon Marchi <simon.marchi@efficios.com>
3131
3132 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3133
84d53fa9
SM
31342020-05-21 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * coffread.c (patch_type): Remove NULL check before xfree.
3137 * corefile.c (set_gnutarget): Likewise.
3138 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3139 * exec.c (build_section_table): Likewise.
3140 * remote.c (remote_target::pass_signals): Likewise.
3141 * utils.c (n_spaces): Likewise.
3142 * cli/cli-script.c (document_command): Likewise.
3143 * i386-windows-tdep.c (core_process_module_section): Likewise.
3144 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3145
9d428aae
SM
31462020-05-20 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * symfile.c (reread_symbols): Clear objfile's section_offsets
3149 vector and section indices, re-compute them by calling
3150 sym_offsets.
3151
250106a7
TT
31522020-05-20 Tom Tromey <tromey@adacore.com>
3153
3154 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3155 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3156
9a0bacfb
TV
31572020-05-20 Tom de Vries <tdevries@suse.de>
3158
3159 PR symtab/25833
3160 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3161
7b958a48
AM
31622020-05-20 Alan Modra <amodra@gmail.com>
3163
3164 PR 25993
3165 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3166 bfd_set_filename.
3167 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3168 passed to bfd_set_filename.
3169 * symfile-mem.c (add_vsyscall_page): Likewise for string
3170 passed to symbol_file_add_from_memory.
3171 (symbol_file_add_from_memory): Make name param a const char* and
3172 don't strdup.
3173
c7e97679
AM
31742020-05-20 Alan Modra <amodra@gmail.com>
3175
3176 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3177 rather than accessing bfd->filename directly.
3178 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3179 and use bfd_section_name.
3180 * dwarf2/frame.c (decode_frame_entry): Likewise.
3181 * exec.c (exec_set_section_address): Likewise.
3182 * solib-aix.c (solib_aix_bfd_open): Likewise.
3183 * stap-probe.c (get_stap_base_address): Likewise.
3184 * symfile.c (reread_symbols): Likewise.
3185
563c591b
TT
31862020-05-19 Tom Tromey <tromey@adacore.com>
3187
3188 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3189
f408d82c
SM
31902020-05-19 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3193
98c59b52
PA
31942020-05-19 Pedro Alves <palves@redhat.com>
3195
3196 * NEWS (set exec-file-mismatch): Adjust entry.
3197 * exec.c: Include "build-id.h".
3198 (validate_exec_file): Try to match build IDs instead of filenames.
3199 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3200 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3201 and pass down 'warn_if_slow'.
3202 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3203 gdb_bfd_open_closure to pass it down.
3204 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3205
4111f652
PA
32062020-05-19 Pedro Alves <palves@redhat.com>
3207
3208 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3209 * target.c (target_fileio_open_1): Rename to target_fileio_open
3210 and make extern. Use bool.
3211 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3212 (target_fileio_read_alloc_1): Adjust.
3213 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3214 (target_fileio_open_warn_if_slow): Delete declaration.
3215
ad80db5b
PA
32162020-05-19 Pedro Alves <palves@redhat.com>
3217
3218 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3219 Adjust all callers.
3220
1d6ce4d3
YS
32212020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3222
3223 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3224 whether disp is negative.
3225
9005fbbb
SM
32262020-05-19 Simon Marchi <simon.marchi@efficios.com>
3227
3228 * symfile.h (struct symfile_segment_data)
3229 <~symfile_segment_data>: Remove.
3230 <segment_info>: Change to std::vector.
3231 * symfile.c (default_symfile_segments): Update.
3232 * elfread.c (elf_symfile_segments): Update.
3233
68b888ff
SM
32342020-05-19 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3237 <segments>: New.
3238 <segment_bases, segment_sizes>: Remove.
3239 * symfile.c (default_symfile_segments): Update.
3240 * elfread.c (elf_symfile_segments): Update.
3241 * remote.c (remote_target::get_offsets): Update.
3242 * solib-target.c (solib_target_relocate_section_addresses):
3243 Update.
3244
62982abd
SM
32452020-05-19 Simon Marchi <simon.marchi@efficios.com>
3246
3247 * symfile.h (struct symfile_segment_data): Initialize fields.
3248 <~symfile_segment_data>: Add.
3249 (symfile_segment_data_up): New.
3250 (struct sym_fns) <sym_segments>: Return a
3251 symfile_segment_data_up.
3252 (default_symfile_segments): Return a symfile_segment_data_up.
3253 (free_symfile_segment_data): Remove.
3254 (get_symfile_segment_data): Return a symfile_segment_data_up.
3255 * symfile.c (default_symfile_segments): Likewise.
3256 (get_symfile_segment_data): Likewise.
3257 (free_symfile_segment_data): Remove.
3258 (symfile_find_segment_sections): Update.
3259 * elfread.c (elf_symfile_segments): Return a
3260 symfile_segment_data_up.
3261 * remote.c (remote_target::get_offsets): Update.
3262 * solib-target.c (solib_target_relocate_section_addresses):
3263 Update.
3264 * symfile-debug.c (debug_sym_segments): Return a
3265 symfile_segment_data_up.
3266
7f204339
RO
32672020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3268
e52a0f1b
RO
3269 PR build/25981
3270 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3271 Hardcode register numbers.
3272
7f204339
RO
3273 PR build/25981
3274 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3275 procfs_find_LDT_entry): Remove.
3276 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3277 procfs_find_LDT_entry): Remove.
3278 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3279 Remove.
3280
7f32a4d5
PA
32812020-05-17 Pedro Alves <palves@redhat.com>
3282 Andrew Burgess <andrew.burgess@embecosm.com>
3283 Keno Fischer <keno@juliacomputing.com>
3284
3285 PR gdb/25741
3286 * breakpoint.c (build_target_condition_list): Update comments.
3287 (build_target_command_list): Update comments and skip matching
3288 locations.
3289 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3290 a separate function. Simplify "set breakpoint auto-hw off"
3291 handling.
3292 (insert_breakpoints): Update comment.
3293 (tracepoint_locations_match): New parameter. For breakpoints,
3294 compare location types too, if the caller wants to.
3295 (handle_automatic_hardware_breakpoints): New functions.
3296 (bp_location_is_less_than): Also sort by location type and
3297 hardware breakpoint length.
3298 (update_global_location_list): Handle "set breakpoint auto-hw on"
3299 here.
3300 (update_breakpoint_locations): Ask breakpoint_locations_match to
3301 ignore location types.
3302
7d93a1e0
SM
33032020-05-16 Simon Marchi <simon.marchi@efficios.com>
3304
3305 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3306 type::name instead.
3307
d0e39ea2
SM
33082020-05-16 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * gdbtypes.h (struct type) <name, set_name>: New methods.
3311 (TYPE_CODE): Use type::name. Change all call sites used to set
3312 the name to use type::set_name instead.
3313
2dab0c7b
TT
33142020-05-16 Tom Tromey <tom@tromey.com>
3315
3316 * top.c (quit_force): Update.
3317 * infrun.c (handle_no_resumed): Update.
3318 * top.h (all_uis): New function.
3319 (ALL_UIS): Remove.
3320
59f7bd8d
SM
33212020-05-16 Simon Marchi <simon.marchi@efficios.com>
3322
3323 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3324
9bf058f0
PA
33252020-05-16 Pedro Alves <palves@redhat.com>
3326
3327 * ia64-linux-nat.c
3328 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3329 Declare method.
3330 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3331
8f86ae1a
SM
33322020-05-15 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3335 (sparc64_adi_info): Likewise.
3336
d6bc0792
TT
33372020-05-15 Tom Tromey <tom@tromey.com>
3338
3339 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3340 block_objfile.
3341 (lookup_objfile_from_block): Remove.
3342 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3343 (lookup_global_symbol): Use block_objfile.
3344 * symtab.h (lookup_objfile_from_block): Don't declare.
3345 * printcmd.c (clear_dangling_display_expressions): Use
3346 block_objfile.
3347 * parse.c (operator_check_standard): Use block_objfile.
3348
8c14c3a3
TT
33492020-05-15 Tom Tromey <tom@tromey.com>
3350
3351 * language.c (language_alloc_type_symbol): Set
3352 SYMBOL_SECTION.
3353 * symtab.c (initialize_objfile_symbol): Remove.
3354 (allocate_symbol): Remove.
3355 (allocate_template_symbol): Remove.
3356 * dwarf2/read.c (fixup_go_packaging): Use "new".
3357 (new_symbol): Use "new".
3358 (read_variable): Don't call initialize_objfile_symbol. Use
3359 "new".
3360 (read_func_scope): Use "new".
3361 * xcoffread.c (process_xcoff_symbol): Don't call
3362 initialize_objfile_symbol.
3363 (SYMBOL_DUP): Remove.
3364 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3365 "new".
3366 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3367 (allocate_template_symbol): Don't declare.
3368 (struct symbol): Add copy constructor. Change defaults.
3369 * jit.c (finalize_symtab): Use "new".
3370 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3371 Use "new".
3372 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3373 (common_block_end): Use "new".
3374 * mdebugread.c (parse_symbol): Use "new".
3375 (new_symbol): Likewise.
3376
5b4a1a8d
PW
33772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3378
3379 * NEWS: Mention changes to help and apropos.
3380
57b4f16e
PW
33812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3382
3383 * command.h (enum command_class): Improve comments, document
3384 that class_alias is for user-defined aliases, give the class
3385 name for each class, remove unused class_xdb.
3386 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3387 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3388 by a precise class.
3389 * infcmd.c (_initialize_infcmd): Likewise.
3390 * reverse.c (_initialize_reverse): Likewise.
3391 * stack.c (_initialize_stack): Likewise.
3392 * symfile.c (_initialize_symfile): Likewise.
3393 * tracepoint.c (_initialize_tracepoint): Likewise.
3394
7c05caf7
PW
33952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3396
3397 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3398 when their aliased command is traversed.
3399 (help_cmd): Add fput_command_names_styled call to
3400 output command name and aliases when command has an alias.
3401
3b3aaacb
PW
34022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3403
3404 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3405 * cli/cli-decode.c (help_cmd_list): Declare as static,
3406 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3407 a command together with the command.
3408 (fput_command_name_styled, fput_command_names_styled): New functions.
3409 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3410 fput_command_name_styled.
3411 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3412 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3413
7aa1b46f
PW
34142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3415
3416 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3417 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3418 * command.h (cmd_show_list): Likewise.
3419 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3420 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3421
89bcba74
PW
34222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3423
3424 * unittests/command-def-selftests.c (traverse_command_structure):
3425 Verify all commands of a list have the same prefix command and
3426 that only the top cmdlist commands have a null prefix.
3427
3f4d92eb
PW
34282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3429
3430 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3431 as prefix, not one of its aliases.
3432 (set_cmd_prefix): Remove.
3433 (do_add_cmd): Centralize the setting of the prefix of a command, when
3434 command is defined after its full chain of prefix commands.
3435 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3436 (add_setshow_cmd_full): Likewise.
3437 (update_prefix_field_of_prefixed_commands): New function.
3438 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3439 update_prefix_field_of_prefixed_commands.
3440 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3441 addresses of remote_set_cmdlist and remote_show_cmdlist given
3442 as argument, not the address of an argument.
3443 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3444 * gdb/remote.c (_initialize_remote): Likewise.
3445
0605465f
PW
34462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3447
3448 * cli/cli-cmds.c (alias_command): Check for an existing alias
3449 using lookup_cmd_composition, as valid_command_p is too strict
3450 and forbids aliases that are the prefix of an existing alias
3451 or command.
3452 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3453 command is properly recognised as a valid command.
3454
58e6ac70
PW
34552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3456
3457 * unittests/help-doc-selftests.c: Rename to
3458 unittests/command-def-selftests.c
3459 * unittests/command-def-selftests.c (help_doc_tests): Update some
3460 comments.
3461 (command_structure_tests, traverse_command_structure): New namespace
3462 and function.
3463 (command_structure_invariants_tests): New function.
3464 (_initialize_command_def_selftests) Renamed from
3465 _initialize_help_doc_selftests, register command_structure_invariants
3466 selftest.
3467
a7b9ceb8
PW
34682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3469
3470 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3471 an alias of 'show'.
3472
b2188a06
JB
34732020-05-15 Joel Brobecker <brobecker@adacore.com>
3474
3475 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3476 ada_is_fixed_point_type. Update all callers.
3477 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3478 all callers.
3479 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3480 Update all callers.
3481 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3482 print_fixed_point_type. Update all callers.
3483 * ada-valprint.c (ada_value_print_num): Replace call to
3484 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3485
a51951c2
KB
34862020-05-14 Kevin Buettner <kevinb@redhat.com>
3487
3488 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3489 processors.
3490 (cpu_supports_bts): Add CV_AMD case.
3491
29d6859f
LM
34922020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3493 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * infrun.c (stop_all_threads): Collect multiple wait events at
3496 each pass.
3497
78134374
SM
34982020-05-14 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3501 type::code instead.
3502
67607e24
SM
35032020-05-14 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * gdbtypes.h (struct type) <code, set_code>: New methods.
3506 (TYPE_CODE): Use type::code. Change all call sites used to set
3507 the code to use type::set_code instead.
3508
a05575d3
TBA
35092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3510 Tom de Vries <tdevries@suse.de>
3511 Pedro Alves <palves@redhat.com>
3512
3513 PR threads/25478
3514 * infrun.c (stop_all_threads): Do NOT ignore
3515 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3516 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3517 received.
3518 (handle_no_resumed): Remove code handling a live inferior with no
3519 threads.
3520 * remote.c (has_single_non_exited_thread): New.
3521 (remote_target::update_thread_list): Do not delete a thread if is
3522 the last thread of the process.
3523 * thread.c (thread_select): Call delete_exited_threads instead of
3524 prune_threads.
3525
6ad82919
TBA
35262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3527
3528 * infrun.c (stop_all_threads): Enable/disable thread events of all
3529 targets. Move a debug message denoting the end of the function
3530 into the SCOPED_EXIT block.
3531
d890404b
TBA
35322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3533
3534 * process-stratum-target.h: Include <set>.
3535 (all_non_exited_process_targets, switch_to_target_no_thread): New
3536 function declarations.
3537 * process-stratum-target.c (all_non_exited_process_targets)
3538 (switch_to_target_no_thread): New function implementations.
3539
293b3ebc
TBA
35402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3541
3542 * infrun.c (handle_inferior_event): Extract out a piece of code
3543 into...
3544 (mark_non_executing_threads): ...this new function.
3545
7ca9b62a
TBA
35462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3547
3548 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3549 use.
3550
fc75c28b
TBA
35512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552
3553 * regcache.c (regcache_read_pc_protected): New function
3554 implementation that returns 0 if the PC cannot read via
3555 'regcache_read_pc'.
3556 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3557 instead of 'regcache_read_pc'.
3558 (keep_going_pass_signal): Ditto.
3559
a89febbd
TT
35602020-05-13 Tom Tromey <tromey@adacore.com>
3561
3562 * ada-lang.c (align_value): Remove.
3563 (ada_template_to_fixed_record_type_1): Use align_up.
3564
f7e23710
TBA
35652020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3566
3567 * async-event.c: Update the copyright year.
3568 * async-event.h: Update the copyright year.
3569
02ff80c2
SM
35702020-05-12 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * objfiles.h (is_addr_in_objfile,
3573 shared_objfile_contains_address_p): Return bool.
3574 * objfile.c (is_addr_in_objfile,
3575 shared_objfile_contains_address_p): Return bool.
3576
4fd6c7e8
TT
35772020-05-11 Tom Tromey <tromey@adacore.com>
3578
3579 * cli/cli-cmds.c (info_command): Restore.
3580 (_initialize_cli_cmds): Use add_prefix_command for "info".
3581 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3582
5eb68a39
TT
35832020-05-11 Tom Tromey <tromey@adacore.com>
3584
3585 * ada-lang.c (ada_value_primitive_field): Now public.
3586 * ada-lang.h (ada_value_primitive_field): Declare.
3587 * ada-valprint.c (print_field_values): Use
3588 ada_value_primitive_field for wrapper fields.
3589
7666722f
TV
35902020-05-11 Tom de Vries <tdevries@suse.de>
3591
3592 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3593 MODULE_DOMAIN.
3594
3ee6bb11
TV
35952020-05-11 Tom de Vries <tdevries@suse.de>
3596
3597 PR symtab/25941
3598 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3599 with length 0, if not gdb-produced.
3600 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3601
43434996
TV
36022020-05-09 Tom de Vries <tdevries@suse.de>
3603
3604 PR gdb/25955
3605 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3606 calculation.
3607
2f78cffc
TT
36082020-05-09 Tom Tromey <tom@tromey.com>
3609
3610 * top.c (server_command): Now bool.
3611 * top.h (server_command): Now bool.
3612
4f7bc5ed
TT
36132020-05-08 Tom Tromey <tromey@adacore.com>
3614
3615 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3616 already being processed.
3617
8be4b118
TT
36182020-05-08 Tom Tromey <tom@tromey.com>
3619
3620 * printcmd.c (struct display) <next>: Remove.
3621 <display>: New constructor.
3622 <exp_string>: Now a std::string.
3623 <enabled_p>: Now a bool.
3624 (display_number): Move definition earlier.
3625 (displays): Rename from display_chain. Now a std::vector.
3626 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3627 (display_command): Update.
3628 (do_one_display, disable_display)
3629 (enable_disable_display_command, do_enable_disable_display):
3630 Update.
3631 (free_display): Remove.
3632 (clear_displays): Rewrite.
3633 (delete_display): Update.
3634 (map_display_numbers): Use function_view. Remove "data"
3635 parameter. Update.
3636 (do_delete_display): Remove.
3637 (undisplay_command): Update.
3638 (do_one_display, do_displays, disable_display)
3639 (info_display_command): Update.
3640 (do_enable_disable_display): Remove.
3641 (enable_disable_display_command)
3642 (clear_dangling_display_expressions): Update.
3643
94c93c35
TT
36442020-05-08 Tom Tromey <tom@tromey.com>
3645
3646 * symtab.c (set_symbol_cache_size)
3647 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3648 (maintenance_print_symbol_cache_statistics): Update.
3649 * symmisc.c (print_symbol_bcache_statistics)
3650 (print_objfile_statistics, maintenance_print_objfiles)
3651 (maintenance_info_symtabs, maintenance_check_symtabs)
3652 (maintenance_expand_symtabs, maintenance_info_line_tables):
3653 Update.
3654 * symfile-debug.c (set_debug_symfile): Update.
3655 * source.c (forget_cached_source_info): Update.
3656 * python/python.c (gdbpy_progspaces): Update.
3657 * psymtab.c (maintenance_info_psymtabs): Update.
3658 * probe.c (parse_probes): Update.
3659 * linespec.c (iterate_over_all_matching_symtabs)
3660 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3661 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3662 * exec.c (exec_target::close): Update.
3663 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3664 * breakpoint.c (print_one_breakpoint_location)
3665 (create_longjmp_master_breakpoint)
3666 (create_std_terminate_master_breakpoint): Update.
3667 * progspace.c (program_spaces): Now a std::vector.
3668 (maybe_new_address_space): Update.
3669 (add_program_space): Remove.
3670 (program_space::program_space): Update.
3671 (remove_program_space): Update.
3672 (number_of_program_spaces): Remove.
3673 (print_program_space, update_address_spaces): Update.
3674 * progspace.h (program_spaces): Change type.
3675 (ALL_PSPACES): Remove.
3676 (number_of_program_spaces): Don't declare.
3677 (struct program_space) <next>: Remove.
3678
a1fd1ac9
TT
36792020-05-08 Tom Tromey <tom@tromey.com>
3680
3681 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3682 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3683 (enable_break): Update.
3684 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3685 (frv_fdpic_find_canonical_descriptor): Update.
3686 (frv_fetch_objfile_link_map): Update.
3687 * progspace.c (program_space::free_all_objfiles): Update.
3688 (program_space::solibs): New method.
3689 * progspace.h (struct program_space) <solibs>: New method.
3690 * solist.h (master_so_list): Don't declare.
3691 (ALL_SO_LIBS): Remove.
3692 * solib.h (so_list_head): Remove.
3693 (update_solib_list): Update comment.
3694 * solib.c (master_so_list): Remove.
3695 (solib_used, update_solib_list, solib_add)
3696 (info_sharedlibrary_command, clear_solib)
3697 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3698
38eae084
TT
36992020-05-08 Tom Tromey <tom@tromey.com>
3700
3701 * extension.c (extension_languages): Now a std::array.
3702 (ALL_EXTENSION_LANGUAGES): Remove.
3703 (get_ext_lang_defn, get_ext_lang_of_file)
3704 (eval_ext_lang_from_control_command): Update.
3705 (finish_ext_lang_initialization)
3706 (auto_load_ext_lang_scripts_for_objfile)
3707 (ext_lang_type_printers::ext_lang_type_printers)
3708 (apply_ext_lang_type_printers)
3709 (ext_lang_type_printers::~ext_lang_type_printers)
3710 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3711 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3712 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3713 (get_matching_xmethod_workers, ext_lang_colorize)
3714 (ext_lang_before_prompt): Update.
3715 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3716
596dc4ad
TT
37172020-05-08 Tom Tromey <tom@tromey.com>
3718
3719 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3720 overload.
3721 <swap_string, m_string>: Remove.
3722 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3723 Update.
3724 * stabsread.c (define_symbol, read_type): Update.
3725 * linespec.c (find_linespec_symbols): Update.
3726 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3727 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3728 * dbxread.c (read_dbx_symtab): Update.
3729 * cp-support.h (cp_canonicalize_string_full)
3730 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3731 Return unique_xmalloc_ptr.
3732 * cp-support.c (inspect_type): Update.
3733 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3734 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3735 Likewise.
3736 * c-typeprint.c (print_name_maybe_canonical): Update.
3737 * break-catch-throw.c (check_status_exception_catchpoint):
3738 Update.
3739
bf4cb9be
TV
37402020-05-08 Tom de Vries <tdevries@suse.de>
3741
3742 * infrun.c (follow_fork): Copy current_line and current_symtab to
3743 child thread.
3744
a1b68f28
SM
37452020-05-07 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * async-event.c (struct async_signal_handler, struct
3748 async_event_handler): Reformat, remove typedef.
3749
98d48915
SM
37502020-05-07 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3753 access thistype->main_type->dyn_prop_list directly.
3754
7aa91313
SM
37552020-05-07 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3758 (remove_dyn_prop): Remove. Update all users to use
3759 type::remove_dyn_prop.
3760 * gdbtypes.c (remove_dyn_prop): Rename to...
3761 (type::remove_dyn_prop): ... this.
3762
5c54719c
SM
37632020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3764
3765 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3766 (add_dyn_prop): Remove. Update all users to use
3767 type::add_dyn_prop.
3768 * gdbtypes.c (add_dyn_prop): Rename to...
3769 (type::add_dyn_prop): ... this.
3770
24e99c6c
SM
37712020-05-07 Simon Marchi <simon.marchi@efficios.com>
3772
3773 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3774 (get_dyn_prop): Remove. Update all users to use
3775 type::dyn_prop.
3776 * gdbtypes.c (get_dyn_prop): Rename to...
3777 (type::dyn_prop): ... this.
3778
0d4bf016
SM
37792020-05-06 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3782
ac4a4f1c
SM
37832020-05-06 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3786 instruction, skip it if it's there.
3787
a3bbacc1
SM
37882020-05-05 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3791
c3236f84
SM
37922020-05-04 Simon Marchi <simon.marchi@efficios.com>
3793
3794 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3795 * gdbtypes.c (recursive_dump_type): Remove use of
3796 TYPE_INCOMPLETE.
3797
3b6acaee
TT
37982020-05-03 Tom Tromey <tom@tromey.com>
3799
3800 * breakpoint.c (catch_command, tcatch_command): Remove.
3801 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3802 add_show_prefix_cmd.
3803 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3804 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3805 Remove.
3806 (add_internal_problem_command): Use add_basic_prefix_cmd,
3807 add_show_prefix_cmd.
3808 * mips-tdep.c (set_mipsfpu_command): Remove.
3809 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3810 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3811 (_initialize_index_cache): Use add_basic_prefix_cmd.
3812 * memattr.c (dummy_cmd): Remove.
3813 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3814 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3815 (_initialize_tui_win): Use add_basic_prefix_cmd,
3816 add_show_prefix_cmd.
3817 * cli/cli-logging.c (set_logging_command): Remove.
3818 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3819 add_show_prefix_cmd.
3820 (show_logging_command): Remove.
3821 * target.c (target_command): Remove.
3822 (add_target): Use add_basic_prefix_cmd.
3823
a51119cd
HD
38242020-05-02 Hannes Domani <ssbssa@yahoo.de>
3825
3826 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3827
652fc23a 38282020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3829
652fc23a
PW
3830 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3831 info_command.
3832
117539e6
KR
38332020-04-30 Kamil Rytarowski <n54@gmx.com>
3834
3835 * nbsd-nat.c (nbsd_enable_proc_events)
3836 (nbsd_nat_target::post_startup_inferior): Add.
3837 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3838 (nbsd_nat_target::update_thread_list): Rewrite.
3839 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3840 "PTRACE_LWP_CREATE".
3841 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3842
102e38eb 38432020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3844
102e38eb
PW
3845 * stack.c (_initialize_stack): Remove duplicated creation
3846 of "frame" command and "f" alias.
3847
ee9d1e5f
HD
38482020-04-30 Hannes Domani <ssbssa@yahoo.de>
3849
3850 PR gdb/18706
3851 * gdbtypes.c (check_typedef): Calculate size of array of
3852 stubbed type.
3853
627c7fb8
HD
38542020-04-30 Hannes Domani <ssbssa@yahoo.de>
3855
3856 PR gdb/15559
3857 * i386-tdep.c (i386_push_dummy_call): Call
3858 i386_thiscall_push_dummy_call.
3859 (i386_thiscall_push_dummy_call): New function.
3860 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3861 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3862 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3863
ffc2844e
SM
38642020-04-29 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * gdbarch.sh (do_read): Add shellcheck disable directive for
3867 warning SC2162.
3868
1207375d
SM
38692020-04-29 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3872 "referenced but not assigned" warning.
3873
9fdb2916
SM
38742020-04-29 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * gdbarch.sh: Remove code that sets fallbackdefault.
3877
759cea5e
SM
38782020-04-29 Simon Marchi <simon.marchi@efficios.com>
3879
3880 * gdbarch.sh: Use shell operators && and || instead of
3881 -a and -o.
3882
cb02ab24
SM
38832020-04-29 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * gdbarch.sh: Use $(...) instead of `...`.
3886
a6fc5ffc
SM
38872020-04-29 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * gdbarch.sh: Use double quotes around variables.
3890
8d113d13
SM
38912020-04-29 Simon Marchi <simon.marchi@efficios.com>
3892
3893 * gdbarch.sh: Use %s with printf, instead of variables in the
3894 format string.
3895
ed6acedd
TT
38962020-04-29 Tom Tromey <tromey@adacore.com>
3897
3898 PR ada/25875:
3899 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3900 type fields here.
3901 (read_enumeration_type): Call
3902 update_enumeration_type_from_children later. Update comments.
3903 (process_enumeration_scope): Don't create type fields.
3904
b68b1b58
KR
39052020-04-29 Kamil Rytarowski <n54@gmx.com>
3906
3907 * nbsd-tdep.c: Include "xml-syscall.h".
3908 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3909
f94b2e03
KR
39102020-04-29 Kamil Rytarowski <n54@gmx.com>
3911
3912 * nbsd-nat.c: Include "sys/wait.h".
3913 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3914 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3915 (nbsd_nat_target::remove_exec_catchpoint)
3916 (nbsd_nat_target::set_syscall_catchpoint): Add.
3917 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3918 (nbsd_nat_target::insert_exec_catchpoint)
3919 (nbsd_nat_target::remove_exec_catchpoint)
3920 (nbsd_nat_target::set_syscall_catchpoint): Add.
3921 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3922 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3923 `nbsd_get_syscall_number'.
3924
fc49bc72
TT
39252020-04-29 Tom Tromey <tom@tromey.com>
3926
3927 * stack.c (print_block_frame_labels): Remove.
3928
d642b692
HD
39292020-04-29 Hannes Domani <ssbssa@yahoo.de>
3930
3931 PR gdb/17320
3932 * ada-valprint.c (val_print_packed_array_elements): Move array
3933 end bracket to new line.
3934 (ada_val_print_string): Remove extra spaces before first array
3935 element.
3936 * c-valprint.c (c_value_print_array): Likewise.
3937 * m2-valprint.c (m2_print_array_contents): Likewise.
3938 (m2_value_print_inner): Likewise.
3939 * p-valprint.c (pascal_value_print_inner): Likewise.
3940 * valprint.c (generic_val_print_array): Likewise.
3941 (value_print_array_elements): Move first array element and array
3942 end bracket to new line.
3943
ea90f227
TV
39442020-04-29 Tom de Vries <tdevries@suse.de>
3945
3946 PR symtab/25889
3947 * linespec.c (find_method): Fix ix calculation.
3948
4498ef4f
KR
39492020-04-28 Kamil Rytarowski <n54@gmx.com>
3950
3951 * syscalls/update-netbsd.sh: New file.
3952 * syscalls/netbsd.xml: Regenerate.
3953 * data-directory/Makefile.in: Register `netbsd.xml' in
3954 `SYSCALLS_FILES'.
3955
a55e30b5
SM
39562020-04-28 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * syscalls/update-freebsd.sh: Add double quotes.
3959
2b2fbab8
TT
39602020-04-28 Tom Tromey <tom@tromey.com>
3961
3962 * NEWS: Update.
3963 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3964 (cmdpy_init): Allow class_tui.
3965
a65189c9
TV
39662020-04-28 Mark Williams <mark@myosotissp.com>
3967
3968 PR gdb/24480
3969 * dwarf2read.c: Add missing assingments to list_in_scope when
3970 start_symtab was already called.
3971
1b95cdb7
SM
39722020-04-28 Simon Marchi <simon.marchi@efficios.com>
3973
3974 PR gdb/25881
3975 * dwarf2/read.c (offset_map_type): Use
3976 gdb:hash_enum<sect_offset> as hash function.
3977
15cd93d0
TV
39782020-04-28 Tom de Vries <tdevries@suse.de>
3979
3980 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3981 with DW_AT_signature.
3982
1eb39914
SM
39832020-04-27 Simon Marchi <simon.marchi@efficios.com>
3984
3985 * configure.ac: Remove check for fs_base/gs_base in
3986 user_regs_struct.
3987 * configure: Re-generate.
3988 * config.in: Re-generate.
3989 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3990 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3991 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3992
991a3e2e
LM
39932020-04-27 Luis Machado <luis.machado@linaro.org>
3994
3995 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3996 problematic inline frame unwinding situation.
3997 * frame.c (frame_id_computed_p): New function.
3998 * frame.h (frame_id_computed_p): New prototype.
3999
361ba0e8
TT
40002020-04-26 Tom Tromey <tom@tromey.com>
4001
4002 * command.h (enum command_class) <class_pseudo>: Remove.
4003
bc3609fd
PW
40042020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4005
4006 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4007 and whitespace.
4008
b9771db7
KR
40092020-04-25 Kamil Rytarowski <n54@gmx.com>
4010
ec16513e
SM
4011 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4012 `PT_GET_PROCESS_STATE' block.
b9771db7 4013
7151c1af
TT
40142020-04-24 Tom Tromey <tom@tromey.com>
4015
4016 * symtab.h (symbol_get_demangled_name): Don't declare.
4017 * symtab.c (symbol_get_demangled_name): Remove.
4018 (general_symbol_info::natural_name)
4019 (general_symbol_info::demangled_name): Update.
4020
906bb4c5
TT
40212020-04-24 Tom Tromey <tom@tromey.com>
4022
4023 PR rust/25025:
4024 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4025
bcfe6157
TT
40262020-04-24 Tom Tromey <tom@tromey.com>
4027
4028 PR symtab/12707:
4029 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4030 exists.
4031 (new_symbol): Likewise.
4032 * compile/compile-object-load.c (get_out_value_type): Use
4033 symbol_matches_search_name.
4034
f049a313
TT
40352020-04-24 Tom Tromey <tom@tromey.com>
4036
4037 * dwarf2/read.c (add_partial_symbol): Do not call
4038 compute_and_set_names.
4039
76e288d1
TT
40402020-04-24 Tom Tromey <tom@tromey.com>
4041
4042 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4043 overload.
4044
2467f4f6
TT
40452020-04-24 Tom Tromey <tom@tromey.com>
4046
4047 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4048 (add_psymbol_to_list): New overload. Make old overload call new
4049 one.
4050 * psympriv.h (add_psymbol_to_list): New overload.
4051
e61108c9
TT
40522020-04-24 Tom Tromey <tom@tromey.com>
4053
4054 * dwarf2/read.c (partial_die_info::read) <case
4055 DW_AT_linkage_name>: Use value_as_string.
4056 (dwarf2_string_attr): Use value_as_string.
4057 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4058 method.
4059 * dwarf2/attribute.c (attribute::value_as_string): New method.
4060
8c87a452
TT
40612020-04-24 Tom Tromey <tom@tromey.com>
4062
4063 * symtab.c (general_symbol_info::natural_name)
4064 (general_symbol_info::demangled_name): Check for language_rust.
4065
787de330
TT
40662020-04-24 Tom Tromey <tom@tromey.com>
4067
4068 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4069 (dwarf2_physname): ... from here.
4070 (partial_die_info::read): Add Rust "{" hack.
4071
ff985671
TT
40722020-04-24 Tom Tromey <tom@tromey.com>
4073
4074 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4075 method.
4076 (symbol_set_demangled_name): Don't declare.
4077 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4078 symbol_set_demangled_name.
4079 (general_symbol_info::set_language)
4080 (general_symbol_info::compute_and_set_names): Update.
4081 * minsyms.c (minimal_symbol_reader::install): Update.
4082 * dwarf2/read.c (new_symbol): Update.
4083
1acda803
TT
40842020-04-24 Tom Tromey <tromey@adacore.com>
4085
4086 PR python/23662:
4087 * python/py-type.c (convert_field): Handle
4088 FIELD_LOC_KIND_DWARF_BLOCK.
4089 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4090 (typy_get_dynamic): Nw function.
4091 (type_object_getset): Add "dynamic".
4092 * NEWS: Add entry.
4093
d656f129
TT
40942020-04-24 Tom Tromey <tromey@adacore.com>
4095
4096 * ada-typeprint.c (print_choices, print_variant_part)
4097 (print_record_field_types_dynamic): New functions.
4098 (print_record_field_types): Use print_record_field_types_dynamic.
4099
7d79de9a
TT
41002020-04-24 Tom Tromey <tromey@adacore.com>
4101
4102 * dwarf2/read.c (handle_data_member_location): New overload.
4103 (dwarf2_add_field): Use it.
4104 (decode_locdesc): Add "computed" parameter. Update comment.
4105 * gdbtypes.c (is_dynamic_type_internal): Also look for
4106 FIELD_LOC_KIND_DWARF_BLOCK.
4107 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4108 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4109 virtual base classes.
4110 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4111 FIELD_LOC_KIND_DWARF_BLOCK.
4112
f8e89861
TT
41132020-04-24 Tom Tromey <tromey@adacore.com>
4114
4115 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4116 * gdbtypes.c (is_dynamic_type_internal): Check
4117 TYPE_HAS_DYNAMIC_LENGTH.
4118 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4119 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4120 New macros.
4121 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4122 constant.
4123
9c6a1327
TT
41242020-04-24 Tom Tromey <tromey@adacore.com>
4125
4126 * dwarf2/read.c (struct variant_field): Rewrite.
4127 (struct variant_part_builder): New.
4128 (struct nextfield): Remove "variant" field. Add "offset".
4129 (struct field_info): Add "current_variant_part" and
4130 "variant_parts".
4131 (alloc_discriminant_info): Remove.
4132 (alloc_rust_variant): New function.
4133 (quirk_rust_enum): Update.
4134 (dwarf2_add_field): Set "offset" member. Don't handle
4135 DW_TAG_variant_part.
4136 (offset_map_type): New typedef.
4137 (convert_variant_range, create_one_variant)
4138 (create_one_variant_part, create_variant_parts)
4139 (add_variant_property): New functions.
4140 (dwarf2_attach_fields_to_type): Call add_variant_property.
4141 (read_structure_type): Don't handle DW_TAG_variant_part.
4142 (handle_variant_part, handle_variant): New functions.
4143 (handle_struct_member_die): Use them.
4144 (process_structure_scope): Don't handle variant parts.
4145 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4146 (struct discriminant_info): Remove.
4147 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4148 (struct main_type) <flag_discriminated_union>: Remove.
4149 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4150 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4151 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4152 Update.
4153 * valops.c (value_union_variant): Remove.
4154 * value.h (value_union_variant): Don't declare.
4155
b249d2c2
TT
41562020-04-24 Tom Tromey <tromey@adacore.com>
4157
4158 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4159 (ada_value_primitive_packed_val): Update.
4160 * ada-valprint.c (ada_value_print_1): Update.
4161 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4162 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4163 just an address. Use evaluate_for_locexpr_baton.
4164 (dwarf2_evaluate_property): Update.
4165 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4166 array_view.
4167 * findvar.c (default_read_var_value): Update.
4168 * gdbtypes.c (compute_variant_fields_inner)
4169 (resolve_dynamic_type_internal): Update.
4170 (resolve_dynamic_type): Change type of valaddr parameter.
4171 * gdbtypes.h (resolve_dynamic_type): Update.
4172 * valarith.c (value_subscripted_rvalue): Update.
4173 * value.c (value_from_contents_and_address): Update.
4174
61122aa9
TT
41752020-04-24 Tom Tromey <tromey@adacore.com>
4176
4177 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4178 "push_initial_value" parameter.
4179 (dwarf2_evaluate_property): Likewise.
4180 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4181
ef83a141
TT
41822020-04-24 Tom Tromey <tromey@adacore.com>
4183
4184 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4185 (variant::matches, compute_variant_fields_recurse)
4186 (compute_variant_fields_inner, compute_variant_fields): New
4187 functions.
4188 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4189 Use resolved_type after type is made.
4190 (operator==): Add new cases.
4191 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4192 (struct discriminant_range, struct variant, struct variant_part):
4193 New.
4194 (union dynamic_prop_data) <variant_parts, original_type>: New
4195 members.
4196 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4197 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4198 constants.
4199 * value.c (unpack_bits_as_long): Now public.
4200 * value.h (unpack_bits_as_long): Declare.
4201
675127ec
TT
42022020-04-24 Tom Tromey <tromey@adacore.com>
4203
4204 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4205 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4206
9852ceef
HD
42072020-04-24 Hannes Domani <ssbssa@yahoo.de>
4208
4209 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4210
7632c6ce
KR
42112020-04-24 Kamil Rytarowski <n54@gmx.com>
4212
4213 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4214 (remove_fork_catchpoint, post_startup_inferior)
4215 (post_attach): Move...
4216 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4217 (remove_fork_catchpoint, post_startup_inferior)
4218 (post_attach): ...here.
4219 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4220 (remove_fork_catchpoint, post_startup_inferior)
4221 (post_attach): Move...
4222 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4223 (remove_fork_catchpoint, post_startup_inferior)
4224 (post_attach): ...here.
4225
7be2bb4f
TT
42262020-04-24 Tom Tromey <tromey@adacore.com>
4227
4228 * nat/windows-nat.h (struct windows_thread_info)
4229 <pc_adjusted>: New member.
4230 * windows-nat.c (windows_fetch_one_register): Check
4231 pc_adjusted.
4232 (windows_nat_target::get_windows_debug_event)
4233 (windows_nat_target::wait): Set pc_adjusted.
4234
f80cb3b4
TV
42352020-04-24 Tom de Vries <tdevries@suse.de>
4236
4237 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4238 Run gdb-add-index inside temp dir.
4239
29514b87
TT
42402020-04-23 Tom Tromey <tromey@adacore.com>
4241
4242 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4243 in loop.
4244
5939967b
LM
42452020-04-23 Luis Machado <luis.machado@linaro.org>
4246
4247 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4248 get_frame_register instead of gdbarch_unwind_pc.
4249
70bc38f5
TV
42502020-04-23 Tom de Vries <tdevries@suse.de>
4251
4252 * symtab.c (lookup_global_symbol): Prefer def over decl.
4253
de82891c
TV
42542020-04-23 Tom de Vries <tdevries@suse.de>
4255
4256 PR symtab/25807
4257 * block.c (best_symbol, better_symbol): Promote to external.
4258 * block.h (best_symbol, better_symbol): Declare.
4259 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4260 decl.
4261
ecc6c606
TT
42622020-04-23 Tom Tromey <tromey@adacore.com>
4263
4264 PR ada/25837:
4265 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4266 "const char *", not a "const std::string &".
4267 <name_and_matcher::operator==>: Update.
4268 * unittests/lookup_name_info-selftests.c: Change type of
4269 "result".
4270
740480b8
TT
42712020-04-23 Tom Tromey <tom@tromey.com>
4272
4273 * inferior.h (iterate_over_inferiors): Don't declare.
4274 * inferior.c (iterate_over_inferiors): Remove.
4275 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4276 Remove.
4277 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4278 use iterate_over_inferiors.
4279 (darwin_resume_inferior_it)
4280 (struct resume_inferior_threads_param)
4281 (darwin_resume_inferior_threads_it): Remove.
4282 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4283
ae3ab1f0
TV
42842020-04-23 Tom de Vries <tdevries@suse.de>
4285
4286 * blockframe.c (find_pc_partial_function): Use
4287 find_pc_sect_compunit_symtab rather than
4288 objfile->sf->qf->find_pc_sect_compunit_symtab.
4289
317d2668
TV
42902020-04-22 Tom de Vries <tdevries@suse.de>
4291
4292 PR symtab/25764
4293 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4294 in psymtabs.
4295
eea9e357
TV
42962020-04-22 Tom de Vries <tdevries@suse.de>
4297
4298 PR symtab/25801
4299 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4300 symtabs.
4301
3d5afab3
TV
43022020-04-22 Tom de Vries <tdevries@suse.de>
4303
4304 PR symtab/25700
4305 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4306 CU if already created.
4307
d43b7a2d
TBA
43082020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4309
4310 * infrun.c (displaced_step_fixup): Switch to the event_thread
4311 before calling displaced_step_restore, not after.
4312
d89edf9b
MM
43132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4314
4315 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4316 its inferior is not recorded by us.
4317 (record_btrace_target_open): Replace call to
4318 all_non_exited_threads () with call to current_inferior
4319 ()->non_exited_threads ().
4320 (record_btrace_target::stop_recording): Likewise.
4321 (record_btrace_target::close): Likewise.
4322 (record_btrace_target::wait): Likewise.
4323 (record_btrace_target::record_stop_replaying): Likewise.
4324
5897fd49
MM
43252020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4326
4327 * btrace.c (btrace_enable): Throw an error on double enables and
4328 when enabling recording fails.
4329 (btrace_disable): Throw an error if the thread is not recorded.
4330
1a476b6d
MM
43312020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4332
4333 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4334 request if we do not have a thread_info.
4335
4778a5f8
TV
43362020-04-21 Tom de Vries <tdevries@suse.de>
4337
4338 PR gdb/25471
4339 * thread.c
4340 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4341 exception in get_frame_id.
4342
0fa7617d
TT
43432020-04-20 Tom Tromey <tromey@adacore.com>
4344
4345 * python/python.c (struct gdbpy_event): Mark move constructor as
4346 noexcept.
4347 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4348 constructor as noexcept.
4349 * completer.h (struct completion_result): Mark move constructor as
4350 noexcept.
4351 * completer.c (completion_result::completion_result): Use
4352 initialization style. Don't call reset_match_list.
4353
ad23bda0
MS
43542020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4355
4356 * MAINTAINERS (Write After Approval): Add myself.
4357
45e1f031
TT
43582020-04-18 Tom Tromey <tom@tromey.com>
4359
4360 * windows-tdep.c (init_w32_command_list)
4361 (w32_prefix_command_valid): Restore.
4362 (_initialize_windows_tdep): Call init_w32_command_list.
4363
08feed99
TT
43642020-04-18 Tom Tromey <tom@tromey.com>
4365
4366 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4367 * value.c (value_fn_field): Update.
4368 * valops.c (find_function_in_inferior)
4369 (value_allocate_space_in_inferior): Update.
4370 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4371 Update.
4372 * tui/tui-source.c (tui_source_window::set_contents): Update.
4373 * symtab.c (lookup_global_or_static_symbol)
4374 (find_function_start_sal_1, skip_prologue_sal)
4375 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4376 * symmisc.c (dump_msymbols, dump_symtab_1)
4377 (maintenance_print_one_line_table): Update.
4378 * symfile.c (init_entry_point_info, section_is_mapped)
4379 (list_overlays_command, simple_read_overlay_table)
4380 (simple_overlay_update_1): Update.
4381 * stap-probe.c (handle_stap_probe): Update.
4382 * stabsread.c (dbx_init_float_type, define_symbol)
4383 (read_one_struct_field, read_enum_type, read_range_type): Update.
4384 * source.c (info_line_command): Update.
4385 * python/python.c (gdbpy_source_objfile_script)
4386 (gdbpy_execute_objfile_script): Update.
4387 * python/py-type.c (save_objfile_types): Update.
4388 * python/py-objfile.c (py_free_objfile): Update.
4389 * python/py-inferior.c (python_new_objfile): Update.
4390 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4391 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4392 (maintenance_check_psymtabs): Update.
4393 * printcmd.c (info_address_command): Update.
4394 * objfiles.h (struct objfile) <arch>: New method, from
4395 get_objfile_arch.
4396 (get_objfile_arch): Don't declare.
4397 * objfiles.c (get_objfile_arch): Remove.
4398 (filter_overlapping_sections): Update.
4399 * minsyms.c (msymbol_is_function): Update.
4400 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4401 (output_nondebug_symbol): Update.
4402 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4403 (mdebug_expand_psymtab): Update.
4404 * machoread.c (macho_add_oso_symfile): Update.
4405 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4406 Update.
4407 * linux-fork.c (checkpoint_command): Update.
4408 * linespec.c (convert_linespec_to_sals): Update.
4409 * jit.c (finalize_symtab): Update.
4410 * infrun.c (insert_exception_resume_from_probe): Update.
4411 * ia64-tdep.c (ia64_find_unwind_table): Update.
4412 * hppa-tdep.c (internalize_unwinds): Update.
4413 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4414 Update.
4415 * gcore.c (call_target_sbrk): Update.
4416 * elfread.c (record_minimal_symbol, elf_symtab_read)
4417 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4418 (elf_gnu_ifunc_resolve_by_got): Update.
4419 * dwarf2/read.c (create_addrmap_from_index)
4420 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4421 (read_debug_names_from_section)
4422 (process_psymtab_comp_unit_reader, add_partial_symbol)
4423 (add_partial_subprogram, process_full_comp_unit)
4424 (read_file_scope, read_func_scope, read_lexical_block_scope)
4425 (read_call_site_scope, dwarf2_ranges_read)
4426 (dwarf2_record_block_ranges, dwarf2_add_field)
4427 (mark_common_block_symbol_computed, read_tag_pointer_type)
4428 (read_tag_string_type, dwarf2_init_float_type)
4429 (dwarf2_init_complex_target_type, read_base_type)
4430 (partial_die_info::read, partial_die_info::read)
4431 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4432 (dwarf2_fetch_die_loc_sect_off): Update.
4433 * dwarf2/loc.c (dwarf2_find_location_expression)
4434 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4435 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4436 (dwarf2_loc_desc_get_symbol_read_needs)
4437 (locexpr_describe_location_piece, locexpr_describe_location_1)
4438 (loclist_describe_location): Update.
4439 * dwarf2/index-write.c (write_debug_names): Update.
4440 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4441 * dtrace-probe.c (dtrace_process_dof): Update.
4442 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4443 (process_one_symbol): Update.
4444 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4445 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4446 (coff_read_enum_type): Update.
4447 * cli/cli-cmds.c (edit_command, list_command): Update.
4448 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4449 * breakpoint.c (create_overlay_event_breakpoint)
4450 (create_longjmp_master_breakpoint)
4451 (create_std_terminate_master_breakpoint)
4452 (create_exception_master_breakpoint, get_sal_arch): Update.
4453 * block.c (block_gdbarch): Update.
4454 * annotate.c (annotate_source_line): Update.
4455
0743fc83
TT
44562020-04-17 Tom Tromey <tromey@adacore.com>
4457
4458 * auto-load.c (show_auto_load_cmd): Remove.
4459 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4460 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4461 (maintenance_print_arc_command): Remove.
4462 * tui/tui-win.c (tui_command): Remove.
4463 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4464 * tui/tui-layout.c (tui_layout_command): Remove.
4465 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4466 * python/python.c (user_set_python, user_show_python): Remove.
4467 (_initialize_python): Use add_basic_prefix_cmd,
4468 add_show_prefix_cmd.
4469 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4470 (install_gdb_commands): Use add_basic_prefix_cmd,
4471 add_show_prefix_cmd.
4472 (info_guile_command): Remove.
4473 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4474 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4475 add_show_prefix_cmd.
4476 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4477 Remove do_set and do_show parameters.
4478 * cli/cli-style.c (set_style, show_style): Remove.
4479 (_initialize_cli_style): Use add_basic_prefix_cmd,
4480 add_show_prefix_cmd.
4481 (cli_style_option::add_setshow_commands): Remove do_set and
4482 do_show parameters.
4483 (cli_style_option::add_setshow_commands): Use
4484 add_basic_prefix_cmd, add_show_prefix_cmd.
4485 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4486 (set_style_name): Remove.
4487 * cli/cli-dump.c (dump_command, append_command): Remove.
4488 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4489 (tekhex_dump_command, binary_dump_command)
4490 (binary_append_command): Remove.
4491 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4492 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4493 (init_w32_command_list): Remove; move into ...
4494 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4495 * valprint.c (set_print, show_print, set_print_raw)
4496 (show_print_raw): Remove.
4497 (_initialize_valprint): Use add_basic_prefix_cmd,
4498 add_show_prefix_cmd.
4499 * typeprint.c (set_print_type, show_print_type): Remove.
4500 (_initialize_typeprint): Use add_basic_prefix_cmd,
4501 add_show_prefix_cmd.
4502 * record.c (set_record_command, show_record_command): Remove.
4503 (_initialize_record): Use add_basic_prefix_cmd,
4504 add_show_prefix_cmd.
4505 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4506 add_show_prefix_cmd.
4507 (info_command, show_command, set_debug, show_debug): Remove.
4508 * top.h (set_history, show_history): Don't declare.
4509 * top.c (set_history, show_history): Remove.
4510 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4511 (unset_tdesc_cmd): Remove.
4512 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4513 add_show_prefix_cmd.
4514 * symtab.c (info_module_command): Remove.
4515 (_initialize_symtab): Use add_basic_prefix_cmd.
4516 * symfile.c (overlay_command): Remove.
4517 (_initialize_symfile): Use add_basic_prefix_cmd.
4518 * sparc64-tdep.c (info_adi_command): Remove.
4519 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4520 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4521 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4522 add_show_prefix_cmd.
4523 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4524 (_initialize_serial): Use add_basic_prefix_cmd,
4525 add_show_prefix_cmd.
4526 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4527 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4528 add_show_prefix_cmd.
4529 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4530 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4531 add_show_prefix_cmd.
4532 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4533 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4534 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4535 add_show_prefix_cmd.
4536 * remote.c (remote_command, set_remote_cmd): Remove.
4537 (_initialize_remote): Use add_basic_prefix_cmd.
4538 * record-full.c (set_record_full_command)
4539 (show_record_full_command): Remove.
4540 (_initialize_record_full): Use add_basic_prefix_cmd,
4541 add_show_prefix_cmd.
4542 * record-btrace.c (cmd_set_record_btrace)
4543 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4544 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4545 (cmd_show_record_btrace_pt): Remove.
4546 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4547 add_show_prefix_cmd.
4548 * ravenscar-thread.c (set_ravenscar_command)
4549 (show_ravenscar_command): Remove.
4550 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4551 add_show_prefix_cmd.
4552 * mips-tdep.c (show_mips_command, set_mips_command)
4553 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4554 add_show_prefix_cmd.
4555 * maint.c (maintenance_command, maintenance_info_command)
4556 (maintenance_check_command, maintenance_print_command)
4557 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4558 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4559 add_show_prefix_cmd.
4560 (show_per_command_cmd): Remove.
4561 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4562 Remove.
4563 (maintenance_show_test_settings_cmd): Remove.
4564 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4565 add_show_prefix_cmd.
4566 * maint-test-options.c (maintenance_test_options_command):
4567 Remove.
4568 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4569 * macrocmd.c (macro_command): Remove
4570 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4571 * language.c (set_check, show_check): Remove.
4572 (_initialize_language): Use add_basic_prefix_cmd,
4573 add_show_prefix_cmd.
4574 * infcmd.c (unset_command): Remove.
4575 (_initialize_infcmd): Use add_basic_prefix_cmd.
4576 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4577 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4578 add_show_prefix_cmd.
4579 * go32-nat.c (go32_info_dos_command): Remove.
4580 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4581 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4582 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4583 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4584 (_initialize_frame): Use add_basic_prefix_cmd,
4585 add_show_prefix_cmd.
4586 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4587 (_initialize_dcache): Use add_basic_prefix_cmd,
4588 add_show_prefix_cmd.
4589 * cp-support.c (maint_cplus_command): Remove.
4590 (_initialize_cp_support): Use add_basic_prefix_cmd.
4591 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4592 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4593 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4594 add_basic_prefix_cmd, add_show_prefix_cmd.
4595 * breakpoint.c (save_command): Remove.
4596 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4597 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4598 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4599 add_show_prefix_cmd.
4600 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4601 (set_ada_command, show_ada_command): Remove.
4602 (_initialize_ada_language): Use add_basic_prefix_cmd,
4603 add_show_prefix_cmd.
4604 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4605
3557f442
KR
46062020-04-16 Kamil Rytarowski <n54@gmx.com>
4607
4608 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4609 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4610
16197208
SM
46112020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4612
4613 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4614 warning messages.
4615
00ac85d3
SM
46162020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4617
4618 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4619 import table is not at beginning of .idata section.
4620
381ce63f
PA
46212020-04-16 Pedro Alves <palves@redhat.com>
4622
4623 * inferior.c (delete_inferior): Use delete operator directly
4624 instead of delete_program_space.
4625 * progspace.c (add_program_space): New, factored out from
4626 program_space::program_space.
4627 (remove_program_space): New, factored out from
4628 delete_program_space.
4629 (program_space::program_space): Remove intro comment. Rewrite.
4630 (program_space::~program_space): Remove intro comment. Call
4631 remove_program_space.
4632 (delete_program_space): Delete.
4633 * progspace.h (program_space::program_space): Make explicit. Move
4634 intro comment here, adjusted.
4635 (program_space::~program_space): Move intro comment here,
4636 adjusted.
4637 (delete_program_space): Remove.
4638
a010605f
TT
46392020-04-16 Tom Tromey <tromey@adacore.com>
4640
4641 * windows-nat.c (windows_nat::handle_access_violation): New
4642 function.
4643 * nat/windows-nat.h (handle_access_violation): Declare.
4644 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4645 windows-nat.c. Call handle_access_violation.
4646
efba5c23
TV
46472020-04-16 Tom de Vries <tdevries@suse.de>
4648
4649 PR symtab/25791
4650 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4651 CUs without psymtab.
4652
97ed802d
KB
46532020-04-16 Kevin Buettner <kevinb@redhat.com>
4654
4655 * python/python.c (do_start_initialization): Don't call
4656 PyEval_InitThreads for Python 3.9 and beyond.
4657
c7d64809
KR
46582020-04-15 Kamil Rytarowski <n54@gmx.com>
4659
4660 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4661 thread functions.
4662 (obsd_nat_target::wait): Likewise.
4663
ce127a96
TT
46642020-04-15 Tom Tromey <tromey@adacore.com>
4665
4666 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4667 (DEBUG_EXCEPT): Use debug_printf.
4668
99f1bc6a
AB
46692020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4670
4671 * completer.c (class completion_tracker::completion_hash_entry)
4672 <hash_name>: New member function.
4673 (completion_tracker::discard_completions): New callback to hash a
4674 completion_hash_entry, pass this to htab_create_alloc.
4675
a0e9b532
JT
46762016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4677
4678 * windows-nat.c (windows_make_so): Warn rather than stopping with
4679 an error if realpath() fails.
4680
06ca5dd4
KR
46812020-04-14 Kamil Rytarowski <n54@gmx.com>
4682
4683 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4684 (nbsd_nat_target::info_proc): Add do_status.
4685
194d088f
TV
46862020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4687 Tom de Vries <tdevries@suse.de>
4688
4689 PR symtab/25718
4690 * psympriv.h (struct partial_symtab::read_symtab)
4691 (struct partial_symtab::expand_psymtab)
4692 (struct partial_symtab::read_dependencies): Update comments.
4693 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4694 read_symtab for includer.
4695 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4696 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4697 (struct dwarf2_include_psymtab::m_readin): Remove.
4698 (struct dwarf2_include_psymtab::includer): New member function.
4699 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4700
c1a66c06
TV
47012020-04-14 Tom de Vries <tdevries@suse.de>
4702
4703 PR symtab/25720
4704 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4705 with NULL symbol_matcher and lookup_name.
4706 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4707 and lookup_name.
4708 * dwarf2/read.c (dw2_expand_symtabs_matching)
4709 (dw2_debug_names_expand_symtabs_matching): Same.
4710 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4711 Make lookup_name a pointer. Update comment.
4712 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4713 lookup_name being a pointer.
4714 * symfile.c (expand_symtabs_matching): Same.
4715 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4716 * linespec.c (iterate_over_all_matching_symtabs): Same.
4717
400b5eca
TT
47182020-04-13 Tom Tromey <tom@tromey.com>
4719
4720 * run-on-main-thread.c: Update include.
4721 * unittests/main-thread-selftests.c: Update include.
4722 * tui/tui-win.c: Update include.
4723 * tui/tui-io.c: Update include.
4724 * tui/tui-interp.c: Update include.
4725 * tui/tui-hooks.c: Update include.
4726 * top.h: Update include.
4727 * top.c: Update include.
4728 * ser-base.c: Update include.
4729 * remote.c: Update include.
4730 * remote-notif.c: Update include.
4731 * remote-fileio.c: Update include.
4732 * record-full.c: Update include.
4733 * record-btrace.c: Update include.
4734 * python/python.c: Update include.
4735 * posix-hdep.c: Update include.
4736 * mingw-hdep.c: Update include.
4737 * mi/mi-main.c: Update include.
4738 * mi/mi-interp.c: Update include.
4739 * main.c: Update include.
4740 * linux-nat.c: Update include.
4741 * interps.c: Update include.
4742 * infrun.c: Update include.
4743 * inf-loop.c: Update include.
4744 * event-top.c: Update include.
4745 * event-loop.c: Move to ../gdbsupport/.
4746 * event-loop.h: Move to ../gdbsupport/.
4747 * async-event.h: Update include.
4748 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4749
93b54c8e
TT
47502020-04-13 Tom Tromey <tom@tromey.com>
4751
4752 * tui/tui-win.c: Include async-event.h.
4753 * remote.c: Include async-event.h.
4754 * remote-notif.c: Include async-event.h.
4755 * record-full.c: Include async-event.h.
4756 * record-btrace.c: Include async-event.h.
4757 * infrun.c: Include async-event.h.
4758 * event-top.c: Include async-event.h.
4759 * event-loop.h: Move some declarations to async-event.h.
4760 * event-loop.c: Don't include ser-event.h or top.h. Move some
4761 code to async-event.c.
4762 * async-event.h: New file.
4763 * async-event.c: New file.
4764 * Makefile.in (COMMON_SFILES): Add async-event.c.
4765 (HFILES_NO_SRCDIR): Add async-event.h.
4766
c1cd3163
TT
47672020-04-13 Tom Tromey <tom@tromey.com>
4768
4769 * utils.c (flush_streams): New function.
4770 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4771
29f2bf4f
TT
47722020-04-13 Tom Tromey <tom@tromey.com>
4773
4774 * event-loop.c (handle_file_event): Use warning, not
4775 printf_unfiltered.
4776
98029d02
TT
47772020-04-13 Tom Tromey <tom@tromey.com>
4778
4779 * event-loop.c: Include <chrono>.
4780
06cc9596
TT
47812020-04-13 Tom Tromey <tom@tromey.com>
4782
4783 * gdb_select.h: Move to ../gdbsupport/.
4784 * event-loop.c: Update include path.
4785 * top.c: Update include path.
4786 * ser-base.c: Update include path.
4787 * ui-file.c: Update include path.
4788 * ser-tcp.c: Update include path.
4789 * guile/scm-ports.c: Update include path.
4790 * posix-hdep.c: Update include path.
4791 * ser-unix.c: Update include path.
4792 * gdb_usleep.c: Update include path.
4793 * mingw-hdep.c: Update include path.
4794 * inflow.c: Update include path.
4795 * infrun.c: Update include path.
4796 * event-top.c: Update include path.
4797
8ae8e197
TT
47982020-04-13 Tom Tromey <tom@tromey.com>
4799
4800 * configure: Rebuild.
4801 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4802
58cf28e8
TT
48032020-04-13 Tom Tromey <tom@tromey.com>
4804
4805 * event-loop.h (start_event_loop): Don't declare.
4806 * event-loop.c (start_event_loop): Move...
4807 * main.c (start_event_loop): ...here. Now static.
4808
b7f999ae
SDJ
48092020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4810
4811 * MAINTAINERS: Update my email address.
4812
1085dfd4
KR
48132020-04-12 Kamil Rytarowski <n54@gmx.com>
4814
4815 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4816 IP_ALL.
4817
49d1d1f5
KR
48182020-04-12 Kamil Rytarowski <n54@gmx.com>
4819
4820 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4821 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4822
b4848d2a
KR
48232020-04-12 Kamil Rytarowski <n54@gmx.com>
4824
4825 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4826 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4827
51c133d5
KR
48282020-04-12 Kamil Rytarowski <n54@gmx.com>
4829
4830 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4831
54b8cbd0
KR
48322020-04-11 Kamil Rytarowski <n54@gmx.com>
4833
4834 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4835 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4836 (nbsd_nat_target::info_proc): New functions.
4837 * nbsd-nat.c (kinfo_get_vmmap): New function.
4838 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4839 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4840 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4841 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4842 functions.
4843 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4844 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4845 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4846 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4847 (KINFO_VME_FLAG_GROWS_DOWN): New.
4848
cf83625d
AS
48492020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4850
4851 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4852 bit shift.
4853
0c4311ab
TT
48542020-04-10 Tom Tromey <tromey@adacore.com>
4855
4856 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4857
3e65b3e9
TT
48582020-04-10 Tom Tromey <tromey@adacore.com>
4859
4860 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4861 separate debug files.
4862
13302e95
HD
48632020-04-10 Hannes Domani <ssbssa@yahoo.de>
4864
4865 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4866 Move to...
4867 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4868 ... here.
4869 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4870 Check for STATUS_WX86_BREAKPOINT.
4871 (windows_nat_target::wait): Same.
4872
bdfc1e8a
TV
48732020-04-10 Tom de Vries <tdevries@suse.de>
4874
4875 PR cli/25808
4876 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4877
f4460aec
SM
48782020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4879
4880 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4881 (Write After Approval): Remove Tom de Vries.
4882
a25198bb
BE
48832020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4884
4885 revert partially:
4886 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4887
aac66a4c
SM
4888 * buildsym.c (record_line): Fix undefined behavior and preserve
4889 lines at eof.
a25198bb 4890
206c98a6
KR
48912020-04-09 Kamil Rytarowski <n54@gmx.com>
4892
4893 * auxv.h (svr4_auxv_parse): New.
4894 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4895 and generic_auxv_parse.
4896 (svr4_auxv_parse): Add.
4897 * obsd-tdep.c: Include "auxv.h".
4898 (obsd_auxv_parse): Remove.
4899 (obsd_init_abi): Remove comment.
4900 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4901 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4902 * nbsd-tdep.c: Include "auxv.h".
4903 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4904
71fbdbaf
TT
49052020-04-08 Tom Tromey <tromey@adacore.com>
4906
4907 * nat/windows-nat.h (last_wait_event): Don't declare.
4908 (wait_for_debug_event): Update comment.
4909 * nat/windows-nat.c (last_wait_event): Now static.
4910
2c1d95e8
TT
49112020-04-08 Tom Tromey <tromey@adacore.com>
4912
4913 * windows-nat.c (wait_for_debug_event): Move to
4914 nat/windows-nat.c.
4915 * nat/windows-nat.h (wait_for_debug_event): Declare.
4916 * nat/windows-nat.c (wait_for_debug_event): Move from
4917 windows-nat.c. No longer static.
4918
d2977bc4
TT
49192020-04-08 Tom Tromey <tromey@adacore.com>
4920
4921 * windows-nat.c (get_windows_debug_event): Use
4922 fetch_pending_stop.
4923 * nat/windows-nat.h (fetch_pending_stop): Declare.
4924 * nat/windows-nat.c (fetch_pending_stop): New function.
4925
e758e19c
TT
49262020-04-08 Tom Tromey <tromey@adacore.com>
4927
4928 * windows-nat.c (windows_continue): Use matching_pending_stop and
4929 continue_last_debug_event.
4930 * nat/windows-nat.h (matching_pending_stop)
4931 (continue_last_debug_event): Declare.
4932 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4933 (matching_pending_stop, continue_last_debug_event): New
4934 functions.
4935
8d30e395
TT
49362020-04-08 Tom Tromey <tromey@adacore.com>
4937
4938 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4939 (handle_exception_result): Move to nat/windows-nat.h.
4940 (DEBUG_EXCEPTION_SIMPLE): Remove.
4941 (windows_nat::handle_ms_vc_exception): New function.
4942 (handle_exception): Move to nat/windows-nat.c.
4943 (get_windows_debug_event): Update.
4944 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4945 nat/windows-nat.c.
4946 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4947 (handle_exception_result): Move from windows-nat.c.
4948 (handle_exception): Declare.
4949 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4950 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4951 windows-nat.c.
4952
29de418d
TT
49532020-04-08 Tom Tromey <tromey@adacore.com>
4954
4955 * windows-nat.c (exception_count, event_count): Remove.
4956 (handle_exception, get_windows_debug_event)
4957 (do_initial_windows_stuff): Update.
4958
a816ba18
TT
49592020-04-08 Tom Tromey <tromey@adacore.com>
4960
4961 * windows-nat.c (windows_nat::handle_load_dll)
4962 (windows_nat::handle_unload_dll): Rename. No longer static.
4963 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4964 Declare.
4965
a00caa12
TT
49662020-04-08 Tom Tromey <tromey@adacore.com>
4967
4968 * complaints.h (stop_whining): Declare at top-level.
4969 (complaint): Don't declare stop_whining.
4970
d41b524f
TT
49712020-04-08 Tom Tromey <tromey@adacore.com>
4972
4973 * windows-nat.c (windows_nat::handle_output_debug_string):
4974 Rename. No longer static.
4975 * nat/windows-nat.h (handle_output_debug_string): Declare.
4976
3c76026d
TT
49772020-04-08 Tom Tromey <tromey@adacore.com>
4978
4979 * windows-nat.c (current_process_handle, current_process_id)
4980 (main_thread_id, last_sig, current_event, last_wait_event)
4981 (current_windows_thread, desired_stop_thread_id, pending_stops)
4982 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4983 (display_selectors, fake_create_process)
4984 (get_windows_debug_event): Update.
4985 * nat/windows-nat.h (current_process_handle, current_process_id)
4986 (main_thread_id, last_sig, current_event, last_wait_event)
4987 (current_windows_thread, desired_stop_thread_id, pending_stops)
4988 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4989 * nat/windows-nat.c (current_process_handle, current_process_id)
4990 (main_thread_id, last_sig, current_event, last_wait_event)
4991 (current_windows_thread, desired_stop_thread_id, pending_stops)
4992 (siginfo_er): New globals. Move from windows-nat.c.
4993
9d8679cc
TT
49942020-04-08 Tom Tromey <tromey@adacore.com>
4995
4996 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4997 (handle_load_dll): Update.
4998 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4999
28688adf
TT
50002020-04-08 Tom Tromey <tromey@adacore.com>
5001
5002 * windows-nat.c (enum thread_disposition_type): Move to
5003 nat/windows-nat.h.
5004 (windows_nat::thread_rec): Rename from thread_rec. No longer
5005 static.
5006 (windows_add_thread, windows_nat_target::fetch_registers)
5007 (windows_nat_target::store_registers, handle_exception)
5008 (windows_nat_target::resume, get_windows_debug_event)
5009 (windows_nat_target::get_tib_address)
5010 (windows_nat_target::thread_name)
5011 (windows_nat_target::thread_alive): Update.
5012 * nat/windows-nat.h (enum thread_disposition_type): Move from
5013 windows-nat.c.
5014 (thread_rec): Declare.
5015
4834dad0
TT
50162020-04-08 Tom Tromey <tromey@adacore.com>
5017
5018 * windows-nat.c: Add "using namespace".
5019 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5020 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5021
65bafd5b
TT
50222020-04-08 Tom Tromey <tromey@adacore.com>
5023
5024 * nat/windows-nat.h (struct windows_thread_info): Declare
5025 destructor.
5026 * nat/windows-nat.c (~windows_thread_info): New.
5027
0a4afda3
TT
50282020-04-08 Tom Tromey <tromey@adacore.com>
5029
5030 PR gdb/22992
5031 * windows-nat.c (current_event): Update comment.
5032 (last_wait_event, desired_stop_thread_id): New globals.
5033 (struct pending_stop): New.
5034 (pending_stops): New global.
5035 (windows_nat_target) <stopped_by_sw_breakpoint>
5036 <supports_stopped_by_sw_breakpoint>: New methods.
5037 (windows_fetch_one_register): Add assertions. Adjust PC.
5038 (windows_continue): Handle pending stops. Suspend other threads
5039 when stepping. Use last_wait_event
5040 (wait_for_debug_event): New function.
5041 (get_windows_debug_event): Use wait_for_debug_event. Handle
5042 pending stops. Queue spurious stops.
5043 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5044 (windows_nat_target::kill): Use wait_for_debug_event.
5045 * nat/windows-nat.h (struct windows_thread_info)
5046 <stopped_at_software_breakpoint>: New field.
5047 * nat/windows-nat.c (windows_thread_info::resume): Clear
5048 stopped_at_software_breakpoint.
5049
8e61ebec
TT
50502020-04-08 Tom Tromey <tromey@adacore.com>
5051
5052 * windows-nat.c (enum thread_disposition_type): New.
5053 (thread_rec): Replace "get_context" parameter with "disposition";
5054 change type.
5055 (windows_add_thread, windows_nat_target::fetch_registers)
5056 (windows_nat_target::store_registers, handle_exception)
5057 (windows_nat_target::resume, get_windows_debug_event)
5058 (windows_nat_target::get_tib_address)
5059 (windows_nat_target::thread_name)
5060 (windows_nat_target::thread_alive): Update.
5061
98a03287
TT
50622020-04-08 Tom Tromey <tromey@adacore.com>
5063
5064 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5065 (windows_continue): Use windows_continue::resume.
5066 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5067 resume>: Declare new methods.
5068 * nat/windows-nat.c: New file.
5069 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5070
7c7411bc
TT
50712020-04-08 Tom Tromey <tromey@adacore.com>
5072
5073 * windows-nat.c (windows_add_thread, windows_delete_thread)
5074 (windows_nat_target::fetch_registers)
5075 (windows_nat_target::store_registers, fake_create_process)
5076 (windows_nat_target::resume, windows_nat_target::resume)
5077 (get_windows_debug_event, windows_nat_target::wait)
5078 (windows_nat_target::pid_to_str)
5079 (windows_nat_target::get_tib_address)
5080 (windows_nat_target::get_ada_task_ptid)
5081 (windows_nat_target::thread_name)
5082 (windows_nat_target::thread_alive): Use lwp, not tid.
5083
2950fdf7
TT
50842020-04-08 Tom Tromey <tromey@adacore.com>
5085
5086 * windows-nat.c (handle_exception)
5087 (windows_nat_target::thread_name): Update.
5088 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5089 <name>: Now unique_xmalloc_ptr.
5090
62fe396b
TT
50912020-04-08 Tom Tromey <tromey@adacore.com>
5092
5093 * windows-nat.c (thread_rec)
5094 (windows_nat_target::fetch_registers): Update.
5095 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5096 Update comment.
5097 <debug_registers_changed, reload_context>: Now bool.
5098
e9534bd2
TT
50992020-04-08 Tom Tromey <tromey@adacore.com>
5100
5101 * windows-nat.c (windows_add_thread): Use new.
5102 (windows_init_thread_list, windows_delete_thread): Use delete.
5103 (get_windows_debug_event): Update.
5104 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5105 destructor, and initializers.
5106
ae1f8880
TT
51072020-04-08 Tom Tromey <tromey@adacore.com>
5108
5109 * windows-nat.c (struct windows_thread_info): Remove.
5110 * nat/windows-nat.h: New file.
5111
55a1e039
TT
51122020-04-08 Tom Tromey <tromey@adacore.com>
5113
5114 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5115 (thread_rec, windows_add_thread, windows_delete_thread)
5116 (windows_continue): Update.
5117
93366324
TT
51182020-04-08 Tom Tromey <tromey@adacore.com>
5119
5120 * windows-nat.c (struct windows_thread_info): Remove typedef.
5121 (thread_head): Remove.
5122 (thread_list): New global.
5123 (thread_rec, windows_add_thread, windows_init_thread_list)
5124 (windows_delete_thread, windows_continue): Update.
5125
0f2265e2
SM
51262020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5127
5128 * windows-tdep.h (windows_init_abi): Add comment.
5129 (cygwin_init_abi): New declaration.
5130 * windows-tdep.c: Split signal enumeration in two, one for
5131 Windows and one for Cygwin.
5132 (windows_gdb_signal_to_target): Only deal with signal of the
5133 Windows OS ABI.
5134 (cygwin_gdb_signal_to_target): New function.
5135 (windows_init_abi): Rename to windows_init_abi_common, don't set
5136 gdb_signal_to_target gdbarch method. Add new new function with
5137 this name.
5138 (cygwin_init_abi): New function.
5139 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5140 comment. Don't call windows_init_abi.
5141 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5142 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5143 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5144 i386_windows_init_abi_common, don't call windows_init_abi. Add
5145 a new function of this name.
5146 (i386_cygwin_init_abi): New function.
5147 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5148 OS ABI Cygwin.
5149
3810f182
SM
51502020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5151
5152 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5153 parameter.c.
5154 (dwarf2_read_gdb_index): Update.
5155
063f8e80
KR
51562020-04-07 Kamil Rytarowski <n54@gmx.com>
5157
5158 * nbsd-tdep.c: Include "objfiles.h".
5159 (nbsd_skip_solib_resolver): New.
5160 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5161
85a9510c 51622020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5163
5164 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5165 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5166 with DW_LLE_base_addressx are being emitted in DWARFv5.
5167 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5168 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5169 unsigned integer.
5170
9fc3eaae 51712020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5172
5173 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5174 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5175 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5176 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5177 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5178 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5179 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5180
5181
41144253 51822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5183
5184 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5185 (read_loclist_index): New function definition.
5186 (lookup_loclist_base): New function definition.
5187 (read_loclist_header): New function definition.
5188 (dwarf2_cu): Add loclist_base and loclist_header field.
5189 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5190 (read_full_die_1): Read the value of DW_AT_loclists_base.
5191 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5192 (read_attribute_value): Handle DW_FORM_loclistx.
5193 (skip_one_die): Handle DW_FORM_loclistx.
5194 (loclist_header): New structure declaration.
5195 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5196
9f4e76a4
SM
51972020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5200 constructor. Remove `addr` parameter from other constructor and
5201 add `per_cu` parameter.
5202 * dwarf2/read.c (create_partial_symtab): Update.
5203
25c11aca
TV
52042020-04-07 Tom de Vries <tdevries@suse.de>
5205
5206 PR symtab/25796
5207 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5208 (partial_die_info::fixup): Inherit has_const_value.
5209
5707e24b
TV
52102020-04-07 Tom de Vries <tdevries@suse.de>
5211
5212 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5213 symbols without address.
5214
05f00e22
KR
52152020-04-06 Kamil Rytarowski <n54@gmx.com>
5216
5217 * nbsd-nat.h (struct thread_info): Add forward declaration.
5218 (nbsd_nat_target::thread_alive): Add.
5219 (nbsd_nat_target::thread_name): Likewise.
5220 (nbsd_nat_target::update_thread_list): Likewise.
5221 (update_thread_list::post_attach): Likewise.
5222 (post_attach::pid_to_str): Likewise.
5223 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5224 (nbsd_thread_lister): Add.
5225 (nbsd_nat_target::thread_alive): Likewise.
5226 (nbsd_nat_target::thread_name): Likewise.
5227 (nbsd_add_threads): Likewise.
5228 (update_thread_list::post_attach): Likewise.
5229 (nbsd_nat_target::update_thread_list): Likewise.
5230 (post_attach::pid_to_str): Likewise.
5231
6ee448cc
TT
52322020-04-06 Tom Tromey <tromey@adacore.com>
5233
5234 * ada-valprint.c (print_variant_part): Extract the variant field.
5235 (print_field_values): Use the field as the outer value when
5236 recursing.
5237
dea34e8c
TT
52382020-04-06 Tom Tromey <tromey@adacore.com>
5239
5240 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5241 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5242 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5243 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5244 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5245
93689ce9
TT
52462020-04-06 Tom Tromey <tromey@adacore.com>
5247
5248 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5249 TYPE_CODE_ERROR.
5250
79743962
KR
52512020-04-06 Kamil Rytarowski <n54@gmx.com>
5252
5253 * nbsd-tdep.c: Include "gdbarch.h".
5254 Define enum with NetBSD signal numbers.
5255 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5256 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5257 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5258 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5259 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5260 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5261 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5262 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5263 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5264 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5265 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5266 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5267
9e7c9a03
HD
52682020-04-03 Hannes Domani <ssbssa@yahoo.de>
5269
5270 PR gdb/25325
5271 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5272
d9e49b61
TT
52732020-04-03 Tom Tromey <tromey@adacore.com>
5274
5275 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5276 Read constant block.
5277
e0fc5c3f
SM
52782020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5281 (gdb_bfd_get_full_section_contents): New declaration.
5282 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5283 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5284 gdb_bfd_get_full_section_contents.
5285
e2ff18a0
SM
52862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5287
5288 * exec.c (build_section_table): Replace internal_error with
5289 gdb_assert.
5290 (section_table_xfer_memory_partial): Likewise.
5291 * mdebugread.c (parse_partial_symbols): Likewise.
5292 * psymtab.c (lookup_partial_symbol): Likewise.
5293 * utils.c (wrap_here): Likewise.
5294
0830d301
TT
52952020-04-02 Tom Tromey <tromey@adacore.com>
5296
5297 * f-lang.c (build_fortran_types): Use arch_type to initialize
5298 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5299
e7da7f8f
TT
53002020-04-02 Tom Tromey <tromey@adacore.com>
5301
5302 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5303 of attributes.
5304
c90d28ac
AB
53052020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5306 Bernd Edlinger <bernd.edlinger@hotmail.de>
5307 Tom Tromey <tromey@adacore.com>
5308
5309 * buildsym.c (buildsym_compunit::record_line): Remove
5310 deduplication code.
5311
1aa98955
TV
53122020-04-02 Tom de Vries <tdevries@suse.de>
5313
5314 PR ada/24671
5315 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5316
d3214198
TV
53172020-04-02 Tom de Vries <tdevries@suse.de>
5318
5319 * dwarf2/read.c (dwarf2_gdb_index_functions,
5320 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5321 NULL.
5322 * psymtab.c (psym_lookup_global_symbol_language): New function.
5323 (psym_functions): Init psym_lookup_global_symbol_language with
5324 psym_lookup_global_symbol_language.
5325 * symfile-debug.c (debug_sym_quick_functions): Init
5326 lookup_global_symbol_language with NULL.
5327 * symfile.c (set_initial_language): Remove fixme comment.
5328 * symfile.h (struct quick_symbol_functions): Add
5329 lookup_global_symbol_language.
5330 * symtab.c (find_quick_global_symbol_language): New function.
5331 (find_main_name): Use find_quick_global_symbol_language.
5332
2836752f
SM
53332020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5334
5335 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5336
64dc2d4b
BE
53372020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5338
5339 * buildsym.c (record_line): Fix undefined behavior and preserve
5340 lines at eof.
5341
bbe3dc41
BE
53422020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5343
5344 * buildsym.c (record_line): Fix the resizing condition.
5345
6b4a335b
TT
53462020-04-01 Tom Tromey <tom@tromey.com>
5347
5348 * value.h (value_literal_complex): Add comment.
5349 * valops.c (value_literal_complex): Refer to value.h.
5350
3638a098
TT
53512020-04-01 Tom Tromey <tom@tromey.com>
5352
5353 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5354 (scalar_type): New rule, from typebase.
5355 (typebase): Use scalar_type. Recognize complex types.
5356 (field_name): Handle FLOAT_KEYWORD.
5357 (ident_tokens): Add _Complex and __complex__.
5358
c34e8714
TT
53592020-04-01 Tom Tromey <tom@tromey.com>
5360
5361 PR exp/25299:
5362 * valarith.c (promotion_type, complex_binop): New functions.
5363 (scalar_binop): Handle complex numbers. Use promotion_type.
5364 (value_pos, value_neg, value_complement): Handle complex numbers.
5365
fa649bb7
TT
53662020-04-01 Tom Tromey <tom@tromey.com>
5367
5368 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5369 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5370 (parse_number): Handle complex numbers.
5371
981c08ce
TT
53722020-04-01 Tom Tromey <tom@tromey.com>
5373
5374 * c-valprint.c (c_decorations): Change complex suffix to "i".
5375
4c99290d
TT
53762020-04-01 Tom Tromey <tom@tromey.com>
5377
5378 * valprint.c (generic_value_print_complex): Use accessors.
5379 * value.h (value_real_part, value_imaginary_part): Declare.
5380 * valops.c (value_real_part, value_imaginary_part): New
5381 functions.
5382 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5383
5b930b45
TT
53842020-04-01 Tom Tromey <tom@tromey.com>
5385
5386 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5387 (read_range_type): Update.
5388 * mdebugread.c (basic_type): Update.
5389 * go-lang.c (build_go_types): Use init_complex_type.
5390 * gdbtypes.h (struct main_type) <complex_type>: New member.
5391 (init_complex_type): Update.
5392 (arch_complex_type): Don't declare.
5393 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5394 Make name if none given. Use alloc_type_copy. Look for cached
5395 complex type.
5396 (arch_complex_type): Remove.
5397 (gdbtypes_post_init): Use init_complex_type.
5398 * f-lang.c (build_fortran_types): Use init_complex_type.
5399 * dwarf2/read.c (read_base_type): Update.
5400 * d-lang.c (build_d_types): Use init_complex_type.
5401 * ctfread.c (read_base_type): Update.
5402
53cccef1
TBA
54032020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5404
5405 * infrun.c (stop_all_threads): Update assertion, plus when
5406 stopping threads, take into account that we might be trying
5407 to stop an all-stop target.
5408 (stop_waiting): Call 'stop_all_threads' if there exists a
5409 non-stop target.
5410
a0714d30
TBA
54112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5412
5413 * target.h (exists_non_stop_target): New function declaration.
5414 * target.c (exists_non_stop_target): New function.
5415
60e22c1e
HD
54162020-04-01 Hannes Domani <ssbssa@yahoo.de>
5417
5418 PR gdb/24789
5419 * eval.c (is_integral_or_integral_reference): New function.
5420 (evaluate_subexp_standard): Allow integer references in
5421 pointer arithmetic.
5422
e139a727
TBA
54232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5424
5425 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5426 check for no ptid in the stop reply when the target is non-stop.
5427
e0802d59
TT
54282020-04-01 Tom Tromey <tromey@adacore.com>
5429
5430 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5431 "name" parameter to rvalue reference. Initialize m_name_holder.
5432 <lookup_name_info>: New overloads.
5433 <name>: Return gdb::string_view.
5434 <c_str>: New method.
5435 <make_ignore_params>: Update.
5436 <search_name_hash>: Update.
5437 <language_lookup_name>: Return const char *.
5438 <m_name>: Change type.
5439 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5440 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5441 (lookup_name_info::match_any): Update.
5442 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5443 Update.
5444 * minsyms.c (linkage_name_str): Update.
5445 * language.c (default_symbol_name_matcher): Update.
5446 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5447 Update.
5448 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5449 (ada_lookup_name_info::ada_lookup_name_info): Update.
5450 (literal_symbol_name_matcher): Update.
5451
8c072cb6
TT
54522020-04-01 Tom Tromey <tromey@adacore.com>
5453
5454 * psymtab.c (psymtab_search_name): Remove function.
5455 (psym_lookup_symbol): Create search name and lookup name here.
5456 (lookup_partial_symbol): Remove "name" parameter; add
5457 lookup_name.
5458 (psym_expand_symtabs_for_function): Update.
5459
6f29a534
TT
54602020-03-31 Joel Jones <joelkevinjones@gmail.com>
5461
5462 PR tui/25597:
5463 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5464
af62665e
TT
54652020-03-31 Tom Tromey <tromey@adacore.com>
5466
5467 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5468 memcpy.
5469
d1a89da5
NC
54702020-03-30 Nelson Chu <nelson.chu@sifive.com>
5471
5472 * features/riscv/32bit-csr.xml: Regenerated.
5473 * features/riscv/64bit-csr.xml: Regenerated.
5474
d8af9068
TT
54752020-03-30 Tom Tromey <tromey@adacore.com>
5476
5477 * ada-valprint.c (print_variant_part): Update.
5478 * ada-lang.h (ada_which_variant_applies): Update.
5479 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5480 outer_valaddr parameters; replace with "outer" value parameter.
5481 (to_fixed_variant_branch_type): Update.
5482
227c0bf4
PFC
54832020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5484
5485 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5486 <list>. Remove inclusion of observable.h.
5487 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5488 (struct arch_lwp_info): New struct.
5489 (class ppc_linux_dreg_interface): New class.
5490 (struct ppc_linux_process_info): New struct.
5491 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5492 <low_new_clone, low_forget_process, low_prepare_to_resume>
5493 <copy_thread_dreg_state, mark_thread_stale>
5494 <mark_debug_registers_changed, register_hw_breakpoint>
5495 <clear_hw_breakpoint, register_wp, clear_wp>
5496 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5497 <num_memory_accesses, get_trigger_type>
5498 <create_watchpoint_request, hwdebug_point_cmp>
5499 <init_arch_lwp_info, get_arch_lwp_info>
5500 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5501 methods.
5502 <struct ptid_hash>: New inner struct.
5503 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5504 members.
5505 (saved_dabr_value, hwdebug_info, max_slots_number)
5506 (struct hw_break_tuple, struct thread_points, ppc_threads)
5507 (have_ptrace_hwdebug_interface)
5508 (hwdebug_find_thread_points_by_tid)
5509 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5510 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5511 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5512 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5513 use m_dreg_interface.
5514 (hwdebug_point_cmp): Change to...
5515 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5516 reference arguments instead of pointers.
5517 (ppc_linux_nat_target::ranged_break_num_registers): Use
5518 m_dreg_interface.
5519 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5520 m_dreg_interface. Call register_hw_breakpoint.
5521 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5522 m_dreg_interface. Call clear_hw_breakpoint.
5523 (get_trigger_type): Change to...
5524 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5525 comment.
5526 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5527 use m_dreg_interface. Call register_hw_breakpoint.
5528 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5529 use m_dreg_interface. Call clear_hw_breakpoint.
5530 (can_use_watchpoint_cond_accel): Change to...
5531 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5532 method. Update comment, use m_dreg_interface and
5533 m_process_info.
5534 (calculate_dvc): Change to...
5535 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5536 m_dreg_interface.
5537 (num_memory_accesses): Change to...
5538 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5539 (check_condition): Change to...
5540 (ppc_linux_nat_target::check_condition): ...this method.
5541 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5542 comment, use m_dreg_interface.
5543 (create_watchpoint_request): Change to...
5544 (ppc_linux_nat_target::create_watchpoint_request): ...this
5545 method. Use m_dreg_interface.
5546 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5547 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5548 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5549 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5550 (ppc_linux_nat_target::low_forget_process)
5551 (ppc_linux_nat_target::low_new_fork)
5552 (ppc_linux_nat_target::low_new_clone)
5553 (ppc_linux_nat_target::low_delete_thread)
5554 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5555 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5556 only call mark_thread_stale.
5557 (ppc_linux_thread_exit): Remove.
5558 (ppc_linux_nat_target::stopped_data_address): Change to...
5559 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5560 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5561 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5562 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5563 comment. Call low_stopped_data_address.
5564 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5565 m_dreg_interface.
5566 (ppc_linux_nat_target::masked_watch_num_registers): Use
5567 m_dreg_interface.
5568 (ppc_linux_nat_target::copy_thread_dreg_state)
5569 (ppc_linux_nat_target::mark_thread_stale)
5570 (ppc_linux_nat_target::mark_debug_registers_changed)
5571 (ppc_linux_nat_target::register_hw_breakpoint)
5572 (ppc_linux_nat_target::clear_hw_breakpoint)
5573 (ppc_linux_nat_target::register_wp)
5574 (ppc_linux_nat_target::clear_wp)
5575 (ppc_linux_nat_target::init_arch_lwp_info)
5576 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5577 (_initialize_ppc_linux_nat): Remove observer callback.
5578
4db10d8f
PFC
55792020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5580
5581 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5582 (ppc_linux_nat_target::auxv_parse)
5583 (ppc_linux_nat_target::read_description)
5584 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5585 Move up.
5586
1310c1b0
PFC
55872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5588
5589 * linux-nat.h (low_new_clone): New method.
5590 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5591
69b037c3
SM
55922020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5593
5594 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5595 (dbx_expand_psymtab): ... this.
5596 (start_psymtab): Update.
5597 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5598 (mdebug_expand_psymtab): ... this.
5599 (parse_partial_symbols): Update.
5600 (new_psymtab): Update.
5601 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5602 (xcoff_expand_psymtab): ... this.
5603 (xcoff_start_psymtab): Update.
5604
48993951
SM
56052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5606
5607 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5608 <expand_dependencies>: ... this.
5609 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5610 (partial_symtab::expand_dependencies): ... this.
5611 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5612 Update.
5613 (dwarf2_psymtab::expand_psymtab): Update.
5614 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5615 * mdebugread.c (psymtab_to_symtab_1): Update.
5616 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5617
3ad83046
SM
56182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5619
5620 * psympriv.h (discard_psymtab): Remove.
5621 * dbxread.c (dbx_end_psymtab): Update.
5622 * xcoffread.c (xcoff_end_psymtab): Update.
5623
4d1b9ab6
TT
56242020-03-28 Tom Tromey <tom@tromey.com>
5625
5626 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5627 comment.
5628
f1749218
TT
56292020-03-28 Tom Tromey <tom@tromey.com>
5630
5631 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5632
ebea7626
HD
56332020-03-27 Hannes Domani <ssbssa@yahoo.de>
5634
5635 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5636
a879b4d5
JB
56372020-03-26 John Baldwin <jhb@FreeBSD.org>
5638
5639 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5640
0826b30a
TT
56412020-03-26 Tom Tromey <tom@tromey.com>
5642
5643 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5644 (mark_common_block_symbol_computed, read_tag_string_type)
5645 (attr_to_dynamic_prop, read_subrange_type): Update.
5646 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5647 to be methods on struct attribute.
5648 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5649 (read_call_site_scope, partial_die_info::read)
5650 (partial_die_info::read, lookup_die_type, follow_die_ref):
5651 Update.
5652 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5653 from dwarf2_get_ref_die_offset.
5654 (attribute::constant_value): New method, from
5655 dwarf2_get_attr_constant_value.
5656 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5657 Declare method.
5658 <constant_value>: New method.
5659
2b2558bf
TT
56602020-03-26 Tom Tromey <tom@tromey.com>
5661
5662 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5663 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5664 (dwarf_type_encoding_name): Move to stringify.c.
5665 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5666 * dwarf2/stringify.c: New file.
5667 * dwarf2/stringify.h: New file.
5668
eeb64781
TT
56692020-03-26 Tom Tromey <tom@tromey.com>
5670
5671 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5672 Rewrite.
5673
a39fdb41
TT
56742020-03-26 Tom Tromey <tom@tromey.com>
5675
5676 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5677 methods.
5678 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5679 (lookup_ranges_base): Likewise.
5680 (read_cutu_die_from_dwo, read_full_die_1): Update.
5681
436c571c
TT
56822020-03-26 Tom Tromey <tom@tromey.com>
5683
5684 * dwarf2/read.c (read_import_statement, read_file_scope)
5685 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5686 (read_lexical_block_scope, read_call_site_scope)
5687 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5688 (handle_struct_member_die, process_structure_scope)
5689 (update_enumeration_type_from_children)
5690 (process_enumeration_scope, read_array_type, read_common_block)
5691 (read_namespace, read_module, read_subroutine_type): Update.
5692 (sibling_die): Remove.
5693
052c8bb8
TT
56942020-03-26 Tom Tromey <tom@tromey.com>
5695
5696 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5697 (build_type_psymtabs_reader, read_structure_type)
5698 (read_enumeration_type, read_full_die_1): Update.
5699 (dwarf2_attr_no_follow): Move to die.h.
5700 * dwarf2/die.h (struct die_info) <attr>: New method.
5701
2b24b6e4
TT
57022020-03-26 Tom Tromey <tom@tromey.com>
5703
5704 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5705 <base_address>: Now an optional.
5706 (dwarf2_find_base_address, dwarf2_rnglists_process)
5707 (dwarf2_ranges_process, fill_in_loclist_baton)
5708 (dwarf2_symbol_mark_computed): Update.
5709
c2d50fd0
TT
57102020-03-26 Tom Tromey <tom@tromey.com>
5711
5712 * dwarf2/read.c (struct die_info): Move to die.h.
5713 * dwarf2/die.h: New file.
5714
0df7ad3a
TT
57152020-03-26 Tom Tromey <tom@tromey.com>
5716
5717 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5718 * dwarf2/read.c
5719 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5720 Move to line-header.c.
5721 (read_checked_initial_length_and_offset, read_formatted_entries):
5722 Likewise.
5723 (dwarf_decode_line_header): Split into two.
5724 * dwarf2/line-header.c
5725 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5726 Move from read.c.
5727 (read_checked_initial_length_and_offset, read_formatted_entries):
5728 Likewise.
5729 (dwarf_decode_line_header): New function, split from read.c.
5730
86c0bb4c
TT
57312020-03-26 Tom Tromey <tom@tromey.com>
5732
5733 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5734 Declare method.
5735 * dwarf2/read.c (read_attribute_value): Update.
5736 (dwarf2_per_objfile::read_line_string): Rename from
5737 read_indirect_line_string.
5738 (read_formatted_entries): Update.
5739
2ef46c2f
TT
57402020-03-26 Tom Tromey <tom@tromey.com>
5741
5742 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5743 variable.
5744
4f9c1eda
TT
57452020-03-26 Tom Tromey <tom@tromey.com>
5746
5747 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5748 const.
5749 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5750 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5751 parameter const.
5752
5a0e026f
TT
57532020-03-26 Tom Tromey <tom@tromey.com>
5754
5755 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5756 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5757 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5758 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5759
8844c11b
TT
57602020-03-26 Tom Tromey <tom@tromey.com>
5761
5762 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5763 file_names_size, file_full_name, file_file_name>: Use const.
5764 <file_name_at, file_names>: Add const overload.
5765 * dwarf2/line-header.c (line_header::file_file_name)
5766 (line_header::file_full_name): Update.
5767
c90ec28a
TT
57682020-03-26 Tom Tromey <tom@tromey.com>
5769
5770 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5771 (macro_start_file, consume_improper_spaces)
5772 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5773 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5774 (dwarf_decode_macros): Move to macro.c.
5775 * dwarf2/macro.c: New file.
5776 * dwarf2/macro.h: New file.
5777 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5778
4f44ae6c
TT
57792020-03-26 Tom Tromey <tom@tromey.com>
5780
5781 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5782 method.
5783 * dwarf2/section.c: New method. From
5784 read_indirect_string_at_offset_from.
5785 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5786 (read_indirect_string_at_offset_from): Move to section.c.
5787 (read_indirect_string_at_offset): Rewrite.
5788 (read_indirect_line_string_at_offset): Remove.
5789 (read_indirect_string, read_indirect_line_string)
5790 (dwarf_decode_macro_bytes): Update.
5791
a0194fa8
TT
57922020-03-26 Tom Tromey <tom@tromey.com>
5793
5794 * dwarf2/section.h (struct dwarf2_section_info)
5795 <overload_complaint>: Declare.
5796 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5797 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5798 Rename from dwarf2_section_buffer_overflow_complaint.
5799 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5800 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5801
3d27bbdb
TT
58022020-03-26 Tom Tromey <tom@tromey.com>
5803
5804 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5805 Declare.
5806 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5807 Move from read.c.
5808 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5809 to section.c.
5810
9eac9650
TT
58112020-03-26 Tom Tromey <tom@tromey.com>
5812
5813 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5814
bf80d710
TT
58152020-03-26 Tom Tromey <tom@tromey.com>
5816
5817 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5818 "builder".
5819 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5820 parameter.
5821 (dwarf_decode_macros): Update.
5822
0314b390
TT
58232020-03-26 Tom Tromey <tom@tromey.com>
5824
5825 * dwarf2/read.c (read_attribute_value): Update.
5826 (read_indirect_string_from_dwz): Move to dwz.c; change into
5827 method.
5828 (dwarf_decode_macro_bytes): Update.
5829 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5830 * dwarf2/dwz.c: New file.
5831 * Makefile.in (COMMON_SFILES): Add dwz.c.
5832
9fda78b6
TT
58332020-03-26 Tom Tromey <tom@tromey.com>
5834
5835 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5836 * dwarf2/read.c: Add include.
5837 * dwarf2/index-write.c: Add include.
5838 * dwarf2/index-cache.c: Add include.
5839 * dwarf2/dwz.h: New file.
5840
33aa3c10
TT
58412020-03-25 Tom Tromey <tom@tromey.com>
5842
5843 * compile/compile-object-load.c (get_out_value_type): Mention
5844 correct symbol name in error message.
5845
d503b685
HD
58462020-03-25 Hannes Domani <ssbssa@yahoo.de>
5847
5848 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5849
7b1eff95
TV
58502020-03-25 Tom de Vries <tdevries@suse.de>
5851
5852 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5853 * symmisc.c (dump_symtab_1): Print user and includes fields.
5854 (maintenance_info_symtabs): Same.
5855
dd895392
AB
58562020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5857
5858 PR gdb/25534
5859 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5860 (riscv_regcache_cooked_write): New function.
5861 (riscv_push_dummy_call): Use new function.
5862 (riscv_return_value): Likewise.
5863
5ab2fbf1
SM
58642020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5867 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5868 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5869 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5870 * infrun.c (follow_fork): Likewise.
5871 (follow_fork_inferior): Likewise.
5872 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5873 * linux-nat.h (class linux_nat_target): Likewise.
5874 * remote.c (class remote_target) <follow_fork>: Likewise.
5875 (remote_target::follow_fork): Likewise.
5876 * target-delegates.c: Re-generate.
5877 * target.c (default_follow_fork): Likewise.
5878 (target_follow_fork): Likewise.
5879 * target.h (struct target_ops) <follow_fork>: Likewise.
5880 (target_follow_fork): Likewise.
5881
a64fafb5
TV
58822020-03-24 Tom de Vries <tdevries@suse.de>
5883
5884 * psymtab.c (maintenance_info_psymtabs): Print user field.
5885
fe26d3a3
TT
58862020-03-20 Tom Tromey <tromey@adacore.com>
5887
5888 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5889 const.
5890 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5891 const.
5892
c884cc46
SM
58932020-03-20 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * ptrace.m4: Don't check for ptrace declaration.
5896 * config.in: Re-generate.
5897 * configure: Re-generate.
5898 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5899 not defined.
5900
1ff700c2
KR
59012020-03-20 Kamil Rytarowski <n54@gmx.com>
5902
5903 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5904 `PTRACE_TYPE_RET'.
5905 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5906 * sparc-nat.c (gdb_ptrace): Likewise.
5907 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5908
f7d4f0b1
TT
59092020-03-20 Tom Tromey <tromey@adacore.com>
5910
5911 * c-exp.y (lex_one_token): Fix assert.
5912
f67210ff
TT
59132020-03-20 Tom Tromey <tromey@adacore.com>
5914
5915 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5916 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5917 strncpy call.
5918
1773be9e
TT
59192020-03-20 Tom Tromey <tromey@adacore.com>
5920
5921 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5922
70304be9
TT
59232020-03-20 Tom Tromey <tromey@adacore.com>
5924
5925 * ada-valprint.c (print_variant_part): Remove parameters; switch
5926 to value-based API.
5927 (print_field_values): Likewise.
5928 (ada_val_print_struct_union): Likewise.
5929 (ada_value_print_1): Update.
5930
9faa006d
KR
59312020-03-20 Kamil Rytarowski <n54@gmx.com>
5932
5933 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5934 nbsd_nat_target instead of inf_ptrace_target.
5935 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5936 nbsd_nat_target.
5937
4a90f062
KR
59382020-03-20 Kamil Rytarowski <n54@gmx.com>
5939
5940 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5941 it to the ptrace call.
5942 * (store_registers): Likewise.
5943
59442020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5945
5946 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5947 it to the ptrace call.
5948 * (store_registers): Likewise.
5949
2d07da27
LM
59502020-03-19 Luis Machado <luis.machado@linaro.org>
5951
5952 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5953 valid, fetch vg value from ptrace.
5954
f09db380
KR
59552020-03-19 Kamil Rytarowski <n54@gmx.com>
5956 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5957 * inf-ptrace.c: Likewise.
5958 * (gdb_ptrace): Add.
5959 * (inf_ptrace_target::resume): Update.
5960 * (inf_ptrace_target::xfer_partial): Likewise.
5961 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5962 * (inf_ptrace_peek_poke): Update.
5963
fcc7376e
KR
59642020-03-19 Kamil Rytarowski <n54@gmx.com>
5965
5966 * x86-bsd-nat.c (gdb_ptrace): New.
5967 * (x86bsd_dr_set): Add new argument `ptid'.
5968 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5969 x86bsd_dr_set_addr): Update.
5970
cada5fc9
AB
59712020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5972
5973 * remote.c (remote_target::process_stop_reply): Handle events for
5974 all threads differently.
5975
19a2740f
AB
59762020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5977
5978 * completer.c (completion_tracker::remove_completion): Define new
5979 function.
5980 * completer.h (completion_tracker::remove_completion): Declare new
5981 function.
5982 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5983 when adding a C++ function symbol.
5984
724fd9ba
AB
59852020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5986
5987 * completer.c (completion_tracker::completion_hash_entry): Define
5988 new class.
5989 (advance_to_filename_complete_word_point): Call
5990 recompute_lowest_common_denominator.
5991 (completion_tracker::completion_tracker): Call discard_completions
5992 to setup the hash table.
5993 (completion_tracker::discard_completions): Allow for being called
5994 from the constructor, pass new equal function, and element deleter
5995 when constructing the hash table. Initialise new class member
5996 variables.
5997 (completion_tracker::maybe_add_completion): Remove use of
5998 m_entries_vec, and store more information into m_entries_hash.
5999 (completion_tracker::recompute_lcd_visitor): New function, most
6000 content taken from...
6001 (completion_tracker::recompute_lowest_common_denominator):
6002 ...here, this now just visits each item in the hash calling the
6003 above visitor.
6004 (completion_tracker::build_completion_result): Remove use of
6005 m_entries_vec, call recompute_lowest_common_denominator.
6006 * completer.h (completion_tracker::have_completions): Remove use
6007 of m_entries_vec.
6008 (completion_tracker::completion_hash_entry): Declare new class.
6009 (completion_tracker::recompute_lowest_common_denominator): Change
6010 function signature.
6011 (completion_tracker::recompute_lcd_visitor): Declare new function.
6012 (completion_tracker::m_entries_vec): Delete.
6013 (completion_tracker::m_entries_hash): Initialize to NULL.
6014 (completion_tracker::m_lowest_common_denominator_valid): New
6015 member variable.
6016 (completion_tracker::m_lowest_common_denominator_max_length): New
6017 member variable.
6018
5a82b8a1
KR
60192020-03-17 Kamil Rytarowski <n54@gmx.com>
6020
6021 * regformats/regdef.h: Put reg in gdb namespace.
6022
fb516a69
KR
60232020-03-17 Kamil Rytarowski <n54@gmx.com>
6024
6025 * i386-bsd-nat.c (gdb_ptrace): New.
6026 * (i386bsd_fetch_inferior_registers,
6027 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6028 * (i386bsd_fetch_inferior_registers,
6029 i386bsd_store_inferior_registers) Use gdb_ptrace.
6030
1c0aa1fb
KR
60312020-03-17 Kamil Rytarowski <n54@gmx.com>
6032
6033 * amd64-bsd-nat.c (gdb_ptrace): New.
6034 * (amd64bsd_fetch_inferior_registers,
6035 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6036 * (amd64bsd_fetch_inferior_registers,
6037 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6038
5ccd2fb7
KR
60392020-03-17 Kamil Rytarowski <n54@gmx.com>
6040
6041 * user-regs.c (user_reg::read): Rename to...
6042 (user_reg::xread): ...this.
6043 * (append_user_reg): Rename argument `read' to `xread'.
6044 * (user_reg_add_builtin): Likewise.
6045 * (user_reg_add): Likewise.
6046 * (value_of_user_reg): Likewise.
6047
2108a63a
KR
60482020-03-17 Kamil Rytarowski <n54@gmx.com>
6049
6050 * sparc-nat.c (gdb_ptrace): New.
6051 * sparc-nat.c (sparc_fetch_inferior_registers)
6052 (sparc_store_inferior_registers) Remove obsolete comment.
6053 * sparc-nat.c (sparc_fetch_inferior_registers)
6054 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6055 * sparc-nat.c (sparc_fetch_inferior_registers)
6056 (sparc_store_inferior_registers) Use gdb_ptrace.
6057
a225c9a8
KR
60582020-03-17 Kamil Rytarowski <n54@gmx.com>
6059
6060 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6061 it to the ptrace call.
6062 * sh-nbsd-nat.c (store_registers): Likewise.
6063
98097623
KR
60642020-03-17 Kamil Rytarowski <n54@gmx.com>
6065
6066 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6067 nbsd_nat_target instead of inf_ptrace_target.
6068 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6069 nbsd_nat_target.
6070
9e38d619
KR
60712020-03-17 Kamil Rytarowski <n54@gmx.com>
6072
6073 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6074
a2ecbe9f
KR
60752020-03-17 Kamil Rytarowski <n54@gmx.com>
6076
6077 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6078 <sys/sysctl.h>.
6079 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6080
58990295
TV
60812020-03-17 Tom de Vries <tdevries@suse.de>
6082
6083 PR gdb/23710
6084 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6085 fields.
6086 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6087 fields.
6088 (process_imported_unit_die): Skip import of c++ CUs.
6089
771dd3a8
TT
60902020-03-16 Tom Tromey <tom@tromey.com>
6091
6092 * p-valprint.c (pascal_object_print_value): Initialize
6093 base_value.
6094
817a7585
AK
60952020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6096 Shahab Vahedi <shahab@synopsys.com>
6097
6098 * Makefile.in: Add arch/arc.o
6099 * configure.tgt: Likewise.
6100 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6101 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6102 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6103 * arc-tdep.h (arc_read_description): Add proto type.
6104 * arch/arc.c: New file.
6105 * arch/arc.h: Likewise.
6106 * features/Makefile: Replace old target descriptions with new.
6107 * features/arc-arcompact.c: Remove.
6108 * features/arc-arcompact.xml: Likewise.
6109 * features/arc-v2.c: Likewise
6110 * features/arc-v2.xml: Likewise
6111 * features/arc/aux-arcompact.xml: New file.
6112 * features/arc/aux-v2.xml: Likewise.
6113 * features/arc/core-arcompact.xml: Likewise.
6114 * features/arc/core-v2.xml: Likewise.
6115 * features/arc/aux-arcompact.c: Generate.
6116 * features/arc/aux-v2.c: Likewise.
6117 * features/arc/core-arcompact.c: Likewise.
6118 * features/arc/core-v2.c: Likewise.
6119 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6120
67430cd0
TT
61212020-03-16 Tom Tromey <tromey@adacore.com>
6122
6123 PR gdb/25663:
6124 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6125 putting value into bcache.
6126
30efb6c7
SM
61272020-03-16 Simon Marchi <simon.marchi@efficios.com>
6128
6129 PR gdb/21500
6130 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6131 to...
6132 (amd64_windows_init_abi_common): ... this. Don't set size of
6133 long type.
6134 (amd64_windows_init_abi): New function.
6135 (amd64_cygwin_init_abi): New function.
6136 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6137 the Cygwin OS ABI.
6138 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6139 comment.
6140
8db52437
SM
61412020-03-16 Simon Marchi <simon.marchi@efficios.com>
6142
6143 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6144 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6145 (pe_import_directory_entry): New struct type.
6146 (is_linked_with_cygwin_dll): New function.
6147 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6148 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6149 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6150
5982a56a
SM
61512020-03-16 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6154 i386_cygwin_core_osabi_sniffer.
6155
7a1998df
SM
61562020-03-16 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * i386-cygwin-tdep.c: Rename to...
6159 * i386-windows-tdep.c: ... this.
6160 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6161 i386-windows-tdep.c.
6162 * configure.tgt: Likewise.
6163
053205cc
SM
61642020-03-16 Simon Marchi <simon.marchi@efficios.com>
6165
6166 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6167 * osabi.c (gdb_osabi_names): Add "Windows".
6168 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6169 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6170 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6171 i386_cygwin_osabi_sniffer.
6172 (_initialize_i386_cygwin_tdep): Register OS ABI
6173 GDB_OSABI_WINDOWS for i386.
6174 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6175 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6176 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6177 for x86-64.
6178 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6179 when the target matches '*-*-mingw*'.
6180
fe4b2ee6
SM
61812020-03-16 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * defs.h (enum gdb_osabi): Move to...
6184 * osabi.h (enum gdb_osabi): ... here.
6185 * gdbarch.sh: Include osabi.h in gdbarch.h.
6186 * gdbarch.h: Re-generate.
6187
cb9b645d
SM
61882020-03-16 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6191 function.
6192 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6193
3293bbaf
TT
61942020-03-14 Tom Tromey <tom@tromey.com>
6195
6196 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6197 for C++.
6198 (c_type_print_modifier): Likewise. Add "language" parameter.
6199 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6200 (c_type_print_base_1): Update.
6201 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6202 constants.
6203 * type-stack.c (type_stack::insert): Handle tp_atomic and
6204 tp_restrict.
6205 (type_stack::follow_type_instance_flags): Likewise.
6206 (type_stack::follow_types): Likewise. Merge type-following code.
6207 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6208 (space_identifier, cv_with_space_id)
6209 (const_or_volatile_or_space_identifier_noopt)
6210 (const_or_volatile_or_space_identifier): Remove.
6211 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6212 rules.
6213 (ptr_operator, typebase): Update.
6214 (enum token_flag) <FLAG_C>: New constant.
6215 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6216 "_Atomic".
6217 (lex_one_token): Handle FLAG_C.
6218
154151a6
KR
62192020-03-14 Kamil Rytarowski <n54@gmx.com>
6220
6221 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6222 it to the ptrace call.
6223 * m68k-bsd-nat.c (store_registers): Likewise.
6224
bc107784
KR
62252020-03-14 Kamil Rytarowski <n54@gmx.com>
6226
6227 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6228 gdb_byte *.
6229 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6230 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6231 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6232
01a80117
KR
62332020-03-14 Kamil Rytarowski <n54@gmx.com>
6234
6235 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6236 nbsd_nat_target instead of inf_ptrace_target.
6237 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6238 nbsd_nat_target.
6239
f90280ca
KR
62402020-03-14 Kamil Rytarowski <n54@gmx.com>
6241
6242 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6243 register_t.
6244
6def66f1
KR
62452020-03-14 Kamil Rytarowski <n54@gmx.com>
6246
6247 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6248 it to the ptrace call.
6249 * alpha-bsd-nat.c (store_registers): Likewise.
6250
66eaca97
KR
62512020-03-14 Kamil Rytarowski <n54@gmx.com>
6252
6253 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6254 includes.
6255 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6256 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6257 fill_fpregset): Likewise.
6258
4fed520b
KR
62592020-03-14 Kamil Rytarowski <n54@gmx.com>
6260
6261 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6262 nbsd_nat_target instead of inf_ptrace_target.
6263 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6264 nbsd_nat_target.
6265
2190cf06
KR
62662020-03-14 Kamil Rytarowski <n54@gmx.com>
6267
6268 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6269 register_t.
6270
75c56d3d
KR
62712020-03-14 Kamil Rytarowski <n54@gmx.com>
6272
6273 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6274 it to the ptrace call.
6275 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6276 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6277 * arm-nbsd-nat.c (store_register): Likewise.
6278 * arm-nbsd-nat.c (store_regs): Likewise.
6279 * arm-nbsd-nat.c (store_fp_register): Likewise.
6280 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6281
6018d381
KR
62822020-03-14 Kamil Rytarowski <n54@gmx.com>
6283
6284 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6285 nbsd_nat_target instead of inf_ptrace_target.
6286 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6287 nbsd_nat_target.
6288
013f99f0
KR
62892020-03-14 Kamil Rytarowski <n54@gmx.com>
6290
6291 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6292 it to the ptrace call.
6293 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6294
12753073
KR
62952020-03-14 Kamil Rytarowski <n54@gmx.com>
6296
6227b330
KR
6297 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6298 it to the ptrace call.
6299 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6300
63012020-03-14 Kamil Rytarowski <n54@gmx.com>
6302
6303 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6304 gdb_byte *.
12753073
KR
6305 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6306
d5be5fa4
KR
63072020-03-14 Kamil Rytarowski <n54@gmx.com>
6308
6309 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6310 instead of inf_ptrace_target.
6311 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6312 nbsd_nat_target.
6313
8110f842
KR
63142020-03-14 Kamil Rytarowski <n54@gmx.com>
6315
6316 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6317 register_t.
6318
52feded7
KR
63192020-03-14 Kamil Rytarowski <n54@gmx.com>
6320
6321 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6322 register_t.
6323
25567eee
KR
63242020-03-14 Kamil Rytarowski <n54@gmx.com>
6325
6326 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6327 register_t.
6328
426a9c18
TT
63292020-03-13 Tom Tromey <tom@tromey.com>
6330
6331 * value.h (val_print): Don't declare.
6332 * valprint.h (val_print_array_elements)
6333 (val_print_scalar_formatted, generic_val_print): Don't declare.
6334 * valprint.c (generic_val_print_array): Take a struct value.
6335 (generic_val_print_ptr, generic_val_print_memberptr)
6336 (generic_val_print_bool, generic_val_print_int)
6337 (generic_val_print_char, generic_val_print_complex)
6338 (generic_val_print): Remove.
6339 (generic_value_print): Update.
6340 (do_val_print): Remove unused parameters. Don't call
6341 la_val_print.
6342 (val_print): Remove.
6343 (common_val_print): Update. Don't call value_check_printable.
6344 (val_print_scalar_formatted, val_print_array_elements): Remove.
6345 * rust-lang.c (rust_val_print): Remove.
6346 (rust_language_defn): Update.
6347 * p-valprint.c (pascal_val_print): Remove.
6348 (pascal_value_print_inner): Update.
6349 (pascal_object_print_val_fields, pascal_object_print_val):
6350 Remove.
6351 (pascal_object_print_static_field): Update.
6352 * p-lang.h (pascal_val_print): Don't declare.
6353 * p-lang.c (pascal_language_defn): Update.
6354 * opencl-lang.c (opencl_language_defn): Update.
6355 * objc-lang.c (objc_language_defn): Update.
6356 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6357 * m2-lang.h (m2_val_print): Don't declare.
6358 * m2-lang.c (m2_language_defn): Update.
6359 * language.h (struct language_defn) <la_val_print>: Remove.
6360 * language.c (unk_lang_value_print_inner): Rename. Change
6361 argument types.
6362 (unknown_language_defn, auto_language_defn): Update.
6363 * go-valprint.c (go_val_print): Remove.
6364 * go-lang.h (go_val_print): Don't declare.
6365 * go-lang.c (go_language_defn): Update.
6366 * f-valprint.c (f_val_print): Remove.
6367 * f-lang.h (f_value_print): Don't declare.
6368 * f-lang.c (f_language_defn): Update.
6369 * d-valprint.c (d_val_print): Remove.
6370 * d-lang.h (d_value_print): Don't declare.
6371 * d-lang.c (d_language_defn): Update.
6372 * cp-valprint.c (cp_print_value_fields)
6373 (cp_print_value_fields_rtti, cp_print_value): Remove.
6374 (cp_print_static_field): Update.
6375 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6376 (c_val_print_struct, c_val_print_union, c_val_print_int)
6377 (c_val_print_memberptr, c_val_print): Remove.
6378 * c-lang.h (c_val_print_array, cp_print_value_fields)
6379 (cp_print_value_fields_rtti): Don't declare.
6380 * c-lang.c (c_language_defn, cplus_language_defn)
6381 (asm_language_defn, minimal_language_defn): Update.
6382 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6383 (ada_val_print_enum): Take a struct value.
6384 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6385 (ada_val_print): Remove.
6386 (ada_value_print_1): Update.
6387 (printable_val_type): Remove.
6388 * ada-lang.h (ada_val_print): Don't declare.
6389 * ada-lang.c (ada_language_defn): Update.
6390
42331a1e
TT
63912020-03-13 Tom Tromey <tom@tromey.com>
6392
6393 * valprint.c (do_val_print): Update.
6394 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6395 a struct value.
6396 (value_to_value_object_no_release): Declare.
6397 * python/py-value.c (value_to_value_object_no_release): New
6398 function.
6399 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6400 struct value.
6401 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6402 function.
6403 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6404 a struct value.
6405 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6406 Declare.
6407 (gdbscm_apply_val_pretty_printer): Take a struct value.
6408 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6409 value.
6410 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6411 value.
6412 * extension-priv.h (struct extension_language_ops)
6413 <apply_val_pretty_printer>: Take a struct value.
6414 * cp-valprint.c (cp_print_value): Create a struct value.
6415 (cp_print_value): Update.
6416
3a916a97
TT
64172020-03-13 Tom Tromey <tom@tromey.com>
6418
6419 * ada-valprint.c (print_field_values): Call common_val_print.
6420
b59eac37
TT
64212020-03-13 Tom Tromey <tom@tromey.com>
6422
6423 * ada-valprint.c (val_print_packed_array_elements): Remove
6424 bitoffset and val parameters. Call common_val_print.
6425 (ada_val_print_string): Remove offset, address, and original_value
6426 parameters.
6427 (ada_val_print_array): Update.
6428 (ada_value_print_array): New function.
6429 (ada_value_print_1): Call it.
6430
03371129
TT
64312020-03-13 Tom Tromey <tom@tromey.com>
6432
6433 * ada-valprint.c (ada_value_print): Use common_val_print.
6434
2e088f8b
TT
64352020-03-13 Tom Tromey <tom@tromey.com>
6436
6437 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6438
39ef85a8
TT
64392020-03-13 Tom Tromey <tom@tromey.com>
6440
6441 * ada-valprint.c (ada_value_print_num): New function.
6442 (ada_value_print_1): Use it.
6443
b9fa6e07
TT
64442020-03-13 Tom Tromey <tom@tromey.com>
6445
6446 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6447
416595d6
TT
64482020-03-13 Tom Tromey <tom@tromey.com>
6449
6450 * ada-valprint.c (ada_value_print_ptr): New function.
6451 (ada_value_print_1): Use it.
6452
5b5e15ec
TT
64532020-03-13 Tom Tromey <tom@tromey.com>
6454
6455 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6456 call common_val_print.
6457 (ada_val_print_1): Update.
6458 (ada_value_print_1): New function.
6459 (ada_value_print_inner): Rewrite.
6460
fbf54e75
TT
64612020-03-13 Tom Tromey <tom@tromey.com>
6462
6463 * cp-valprint.c (cp_print_value_fields): Update.
6464 (cp_print_value): New function.
6465
64b653ca
TT
64662020-03-13 Tom Tromey <tom@tromey.com>
6467
6468 * m2-valprint.c (m2_value_print_inner): Use
6469 cp_print_value_fields.
6470 * cp-valprint.c (cp_print_value_fields): New function.
6471 * c-valprint.c (c_value_print_struct): New function.
6472 (c_value_print_inner): Use c_value_print_struct.
6473 * c-lang.h (cp_print_value_fields): Declare.
6474
6999f067
TT
64752020-03-13 Tom Tromey <tom@tromey.com>
6476
6477 * c-valprint.c (c_value_print_array): New function.
6478 (c_value_print_inner): Use it.
6479
ce80b8bd
TT
64802020-03-13 Tom Tromey <tom@tromey.com>
6481
6482 * c-valprint.c (c_value_print_memberptr): New function.
6483 (c_value_print_inner): Use it.
6484
2faac269
TT
64852020-03-13 Tom Tromey <tom@tromey.com>
6486
6487 * c-valprint.c (c_value_print_int): New function.
6488 (c_value_print_inner): Use it.
6489
da3e2c29
TT
64902020-03-13 Tom Tromey <tom@tromey.com>
6491
6492 * c-valprint.c (c_value_print_ptr): New function.
6493 (c_value_print_inner): Use it.
6494
50836231
TT
64952020-03-13 Tom Tromey <tom@tromey.com>
6496
6497 * c-valprint.c (c_value_print_inner): Rewrite.
6498
4f412b6e
TT
64992020-03-13 Tom Tromey <tom@tromey.com>
6500
6501 * valprint.c (generic_value_print_complex): New function.
6502 (generic_value_print): Use it.
6503
f5354008
TT
65042020-03-13 Tom Tromey <tom@tromey.com>
6505
6506 * valprint.c (generic_val_print_float): Don't call
6507 val_print_scalar_formatted.
6508 (generic_val_print, generic_value_print): Update.
6509
3eec3b05
TT
65102020-03-13 Tom Tromey <tom@tromey.com>
6511
6512 * valprint.c (generic_value_print_char): New function
6513 (generic_value_print): Use it.
6514
fdddfccb
TT
65152020-03-13 Tom Tromey <tom@tromey.com>
6516
6517 * valprint.c (generic_value_print_int): New function.
6518 (generic_value_print): Use it.
6519
6dde7521
TT
65202020-03-13 Tom Tromey <tom@tromey.com>
6521
6522 * valprint.c (generic_value_print_bool): New function.
6523 (generic_value_print): Use it.
6524
4112d2e6
TT
65252020-03-13 Tom Tromey <tom@tromey.com>
6526
6527 * valprint.c (generic_val_print_func): Simplify.
6528 (generic_val_print, generic_value_print): Update.
6529
65786af6
TT
65302020-03-13 Tom Tromey <tom@tromey.com>
6531
6532 * valprint.c (generic_val_print_flags): Remove.
6533 (generic_val_print, generic_value_print): Update.
6534 (val_print_type_code_flags): Add original_value parameter.
6535
40f3ce18
TT
65362020-03-13 Tom Tromey <tom@tromey.com>
6537
6538 * valprint.c (generic_val_print): Update.
6539 (generic_value_print): Update.
6540 * valprint.c (generic_val_print_enum): Don't call
6541 val_print_scalar_formatted.
6542
2a5b130b
TT
65432020-03-13 Tom Tromey <tom@tromey.com>
6544
6545 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6546 * valprint.c (generic_value_print_ptr): New function.
6547
abc66ce9
TT
65482020-03-13 Tom Tromey <tom@tromey.com>
6549
6550 * valprint.c (generic_value_print): Rewrite.
6551
07a32858
TT
65522020-03-13 Tom Tromey <tom@tromey.com>
6553
6554 * p-valprint.c (pascal_object_print_value_fields)
6555 (pascal_object_print_value): New functions.
6556
64d64d3a
TT
65572020-03-13 Tom Tromey <tom@tromey.com>
6558
6559 * p-valprint.c (pascal_value_print_inner): Rewrite.
6560
6a95a1f5
TT
65612020-03-13 Tom Tromey <tom@tromey.com>
6562
6563 * f-valprint.c (f_value_print_innner): Rewrite.
6564
59fcdac6
TT
65652020-03-13 Tom Tromey <tom@tromey.com>
6566
6567 * m2-valprint.c (m2_print_unbounded_array): New overload.
6568 (m2_print_unbounded_array): Update.
6569 (m2_print_array_contents): Take a struct value.
6570 (m2_value_print_inner): Rewrite.
6571
d133c3e1
TT
65722020-03-13 Tom Tromey <tom@tromey.com>
6573
6574 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6575 (d_value_print_inner): New function.
6576 * d-lang.h (d_value_print_inner): Declare.
6577 * d-lang.c (d_language_defn): Use d_value_print_inner.
6578
23b0f06b
TT
65792020-03-13 Tom Tromey <tom@tromey.com>
6580
6581 * go-valprint.c (go_value_print_inner): New function.
6582 * go-lang.h (go_value_print_inner): Declare.
6583 * go-lang.c (go_language_defn): Use go_value_print_inner.
6584
5f56f7cb
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6588 API.
6589 (rust_val_print): Rewrite.
6590 (rust_value_print_inner): New function, from rust_val_print.
6591 (rust_language_defn): Use rust_value_print_inner.
6592
26792ee0
TT
65932020-03-13 Tom Tromey <tom@tromey.com>
6594
6595 * ada-valprint.c (ada_value_print_inner): New function.
6596 * ada-lang.h (ada_value_print_inner): Declare.
6597 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6598
24051bbe
TT
65992020-03-13 Tom Tromey <tom@tromey.com>
6600
6601 * f-valprint.c (f_value_print_innner): New function.
6602 * f-lang.h (f_value_print_innner): Declare.
6603 * f-lang.c (f_language_defn): Use f_value_print_innner.
6604
c0941be6
TT
66052020-03-13 Tom Tromey <tom@tromey.com>
6606
6607 * p-valprint.c (pascal_value_print_inner): New function.
6608 * p-lang.h (pascal_value_print_inner): Declare.
6609 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6610
62c4663d
TT
66112020-03-13 Tom Tromey <tom@tromey.com>
6612
6613 * m2-valprint.c (m2_value_print_inner): New function.
6614 * m2-lang.h (m2_value_print_inner): Declare.
6615 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6616
62182190
TT
66172020-03-13 Tom Tromey <tom@tromey.com>
6618
6619 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6620 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6621 * c-valprint.c (c_value_print_inner): New function.
6622 * c-lang.h (c_value_print_inner): Declare.
6623 * c-lang.c (c_language_defn, cplus_language_defn)
6624 (asm_language_defn, minimal_language_defn): Use
6625 c_value_print_inner.
6626
1e592a8a
TT
66272020-03-13 Tom Tromey <tom@tromey.com>
6628
6629 * p-valprint.c (pascal_object_print_value_fields): Now static.
6630 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6631
7fe471e9
TT
66322020-03-13 Tom Tromey <tom@tromey.com>
6633
6634 * c-valprint.c (c_val_print_array): Simplify.
6635
d121c6ce
TT
66362020-03-13 Tom Tromey <tom@tromey.com>
6637
6638 * valprint.c (value_print_array_elements): New function.
6639 * valprint.h (value_print_array_elements): Declare.
6640
4dba70ee
TT
66412020-03-13 Tom Tromey <tom@tromey.com>
6642
6643 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6644 * mips-tdep.c (mips_print_register): Use
6645 value_print_scalar_formatted.
6646
4f9ae810
TT
66472020-03-13 Tom Tromey <tom@tromey.com>
6648
6649 * valprint.h (value_print_scalar_formatted): Declare.
6650 * valprint.c (value_print_scalar_formatted): New function.
6651
156bfec9
TT
66522020-03-13 Tom Tromey <tom@tromey.com>
6653
6654 * valprint.h (generic_value_print): Declare.
6655 * valprint.c (generic_value_print): New function.
6656
2b4e573d
TT
66572020-03-13 Tom Tromey <tom@tromey.com>
6658
6659 * valprint.c (do_val_print): Call la_value_print_inner, if
6660 available.
6661 * rust-lang.c (rust_language_defn): Update.
6662 * p-lang.c (pascal_language_defn): Update.
6663 * opencl-lang.c (opencl_language_defn): Update.
6664 * objc-lang.c (objc_language_defn): Update.
6665 * m2-lang.c (m2_language_defn): Update.
6666 * language.h (struct language_defn) <la_value_print_inner>: New
6667 member.
6668 * language.c (unknown_language_defn, auto_language_defn): Update.
6669 * go-lang.c (go_language_defn): Update.
6670 * f-lang.c (f_language_defn): Update.
6671 * d-lang.c (d_language_defn): Update.
6672 * c-lang.c (c_language_defn, cplus_language_defn)
6673 (asm_language_defn, minimal_language_defn): Update.
6674 * ada-lang.c (ada_language_defn): Update.
6675
a1f6a07c
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * c-valprint.c (c_value_print): Use common_val_print.
6679
410cf315
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6683
72a45c93
TT
66842020-03-13 Tom Tromey <tom@tromey.com>
6685
6686 * f-valprint.c (f77_print_array_1, f_val_print): Use
6687 common_val_print.
6688
040f66bd
TT
66892020-03-13 Tom Tromey <tom@tromey.com>
6690
6691 * riscv-tdep.c (riscv_print_one_register_info): Use
6692 common_val_print.
6693
a6e05a6c
TT
66942020-03-13 Tom Tromey <tom@tromey.com>
6695
6696 * mi/mi-main.c (output_register): Use common_val_print.
6697
3444c526
TT
66982020-03-13 Tom Tromey <tom@tromey.com>
6699
6700 * infcmd.c (default_print_one_register_info): Use
6701 common_val_print.
6702
c2a44efe
TT
67032020-03-13 Tom Tromey <tom@tromey.com>
6704
6705 * valprint.h (common_val_print_checked): Declare.
6706 * valprint.c (common_val_print_checked): New function.
6707 * stack.c (print_frame_arg): Use common_val_print_checked.
6708
b0c26e99
TT
67092020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * valprint.c (do_val_print): New function, from val_print.
6712 (val_print): Use do_val_print.
6713 (common_val_print): Use do_val_print.
6714
ce3acbe9
TT
67152020-03-13 Tom Tromey <tom@tromey.com>
6716
6717 * valprint.c (value_print): Use scoped_value_mark.
6718
96c7f873
TV
67192020-03-13 Tom de Vries <tdevries@suse.de>
6720
6721 PR symtab/25646
6722 * psymtab.c (partial_symtab::partial_symtab): Don't set
6723 globals_offset and statics_offset. Push element onto
6724 current_global_psymbols and current_static_psymbols stacks.
6725 (concat): New function.
6726 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6727 element from current_global_psymbols and current_static_psymbols
6728 stacks. Concat popped elements to global_psymbols and
6729 static_symbols.
6730 (add_psymbol_to_list): Use current_global_psymbols and
6731 current_static_psymbols stacks.
6732 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6733 current_static_psymbols fields.
6734
6ba0a321
CB
67352020-03-12 Christian Biesinger <cbiesinger@google.com>
6736
6737 * corelow.c (sniff_core_bfd): Remove.
6738 (class core_target) <m_core_vec>: Remove.
6739 (core_target::core_target): Update.
6740 (core_file_fns): Remove.
6741 (deprecated_add_core_fns): Remove.
6742 (default_core_sniffer): Remove.
6743 (sniff_core_bfd): Remove.
6744 (default_check_format): Remove.
6745 (gdb_check_format): Remove.
6746 (core_target_open): Update.
6747 (core_target::get_core_register_section): Update.
6748 (get_core_registers_cb): Update.
6749 (core_target::fetch_registers): Update.
6750 * gdbcore.h (struct core_fns): Remove.
6751 (deprecated_add_core_fns): Remove.
6752 (default_core_sniffer): Remove.
6753 (default_check_format): Remove.
6754
227031b2
TT
67552020-03-12 Tom Tromey <tom@tromey.com>
6756
6757 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6758 CORE_ADDR.
6759 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6760
53807e9f
TT
67612020-03-12 Tom Tromey <tom@tromey.com>
6762
6763 * remote.c (remote_target::download_tracepoint)
6764 (remote_target::enable_tracepoint)
6765 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6766 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6767 sprintf_vma.
6768
64f25102
TT
67692020-03-12 Tom Tromey <tom@tromey.com>
6770
6771 * symfile-mem.c: Update CORE_ADDR size assert.
6772
272cd5a3
SM
67732020-03-12 Simon Marchi <simon.marchi@efficios.com>
6774
6775 * selftest.m4: Move to gdbsupport/.
6776 * acinclude.m4: Update path to selftest.m4.
6777
74cd3f9d
SM
67782020-03-12 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6781 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6782 gdbarch-selfselftests.c and selftest-arch.c.
6783 (SUBDIR_UNITTESTS_OBS): Rename to...
6784 (SELFTESTS_OBS): ... this.
6785 (COMMON_SFILES): Remove disasm-selftests.c and
6786 gdbarch-selftests.c.
6787 * configure.ac: Don't add selftest-arch.{c,o} to
6788 CONFIG_{SRCS,OBS}.
6789 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6790 preprocessor conditions.
6791
db6878ac
SM
67922020-03-12 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * configure.ac: Don't source bfd/development.sh.
6795 * selftest.m4: Modify comment.
6796 * configure: Re-generate.
6797
4d696a5c
SM
67982020-03-12 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6801 not "true" or "false".
6802 * configure: Re-generate.
6803
8dd8e1c7
CB
68042020-03-12 Christian Biesinger <cbiesinger@google.com>
6805
6806 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6807 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6808 renamed to arm_nbsd_supply_gregset.
6809 (fetch_register): Update to call arm_nbsd_supply_gregset.
6810 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6811 (arm_netbsd_nat_target::fetch_registers): Update.
6812 (fetch_elfcore_registers): Removed.
6813 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6814 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6815 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6816 not require NetBSD system headers.
6817 (arm_nbsd_regset): New struct.
6818 (arm_nbsd_iterate_over_regset_sections): New function.
6819 (arm_netbsd_init_abi_common): Updated to call
6820 set_gdbarch_iterate_over_regset_sections.
6821 * arm-nbsd-tdep.h: New file.
6822
dd69bf7a
KB
68232020-03-11 Kevin Buettner <kevinb@redhat.com>
6824
6825 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6826 recursion.
6827
a0761e34
SM
68282020-03-11 Simon Marchi <simon.marchi@efficios.com>
6829
6830 * configure: Re-generate.
6831
e7a82140
TT
68322020-03-11 Tom Tromey <tromey@adacore.com>
6833
6834 * ada-typeprint.c (print_choices): Fix comment.
6835
dcc050c8
AB
68362020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6837
6838 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6839 previous item in the list, when the list has no items.
6840
1c33af77
TV
68412020-03-11 Tom de Vries <tdevries@suse.de>
6842
6843 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6844 PROP_LOCLIST handling code.
6845
8c95582d
AB
68462020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6847
6848 * buildsym-legacy.c (record_line): Pass extra parameter to
6849 record_line.
6850 * buildsym.c (buildsym_compunit::record_line): Take an extra
6851 parameter, reduce duplication in the line table, and record the
6852 is_stmt flag in the line table.
6853 * buildsym.h (buildsym_compunit::record_line): Add extra
6854 parameter.
6855 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6856 non-statement lines.
6857 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6858 this to the symtab builder.
6859 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6860 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6861 through to dwarf_record_line_1.
6862 * infrun.c (process_event_stop_test): When stepping, don't stop at
6863 a non-statement instruction, and only refresh the step info when
6864 we land in the middle of a line's range. Also add an extra
6865 comment.
6866 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6867 field.
6868 * record-btrace.c (btrace_find_line_range): Only record lines
6869 marked as is-statement.
6870 * stack.c (frame_show_address): Show the frame address if we are
6871 in a non-statement sal.
6872 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6873 (maintenance_print_one_line_table): Print a header for the is_stmt
6874 column, and include is_stmt information in the output.
6875 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6876 preference to non-statements.
6877 (find_pcs_for_symtab_line): Prefer is-statement entries.
6878 (find_line_common): Likewise.
6879 * symtab.h (struct linetable_entry): Add is_stmt field.
6880 (struct symtab_and_line): Likewise.
6881 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6882 arranging the line table.
6883
e4003a34
TV
68842020-03-07 Tom de Vries <tdevries@suse.de>
6885
6886 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6887 DIE.
6888
e8932576
TT
68892020-03-07 Tom Tromey <tom@tromey.com>
6890
6891 * valops.c (value_literal_complex): Remove obsolete comment.
6892 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6893 comment.
6894
29734269
SM
68952020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6896
6897 * infrun.h: Forward-declare thread_info.
6898 (set_step_info): Add thread_info parameter, add doc.
6899 * infrun.c (set_step_info): Add thread_info parameter, move doc
6900 to header.
6901 * infrun.c (process_event_stop_test): Pass thread to
6902 set_step_info call.
6903 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6904 set_step_info.
6905 (prepare_one_step): Add thread_info parameter, pass it to
6906 set_step_frame and prepare_one_step (recursive) call.
6907 (step_1): Pass thread to prepare_one_step call.
6908 (step_command_fsm::should_stop): Pass thread to
6909 prepare_one_step.
6910 (until_next_fsm): Pass thread to set_step_frame call.
6911 (finish_command): Pass thread to set_step_info call.
6912
b7d64b29
HD
69132020-03-06 Hannes Domani <ssbssa@yahoo.de>
6914
6915 * windows-tdep.c (windows_solib_create_inferior_hook):
6916 Check if inferior is running.
6917
09f2921c
TV
69182020-03-06 Tom de Vries <tdevries@suse.de>
6919
6920 * NEWS: Fix "the the".
6921 * ctfread.c: Same.
6922
fd760e79
TV
69232020-03-06 Tom de Vries <tdevries@suse.de>
6924
6925 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6926
20ea4a60
AB
69272020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6928
6929 * .dir-locals.el: Add a comment referencing the other copies of
6930 this file.
6931
0afbabf0
JB
69322020-03-05 John Baldwin <jhb@FreeBSD.org>
6933
6934 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6935 psargs.
6936
842806cb
TBA
69372020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6938
6939 * .gitattributes: New file.
6940
be1e3d3e
TT
69412020-03-04 Tom Tromey <tom@tromey.com>
6942
6943 * symmisc.c (print_symbol_bcache_statistics)
6944 (print_objfile_statistics): Update.
6945 * symfile.c (allocate_symtab): Use intern.
6946 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6947 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6948 macro_cache>: Remove.
6949 <string_cache>: New member.
6950 (struct objfile) <intern>: New methods.
6951 * elfread.c (elf_symtab_read): Use intern.
6952 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6953 (dwarf2_compute_name, dwarf2_physname)
6954 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6955 names.
6956 (guess_partial_die_structure_name): Update.
6957 (partial_die_info::fixup): Intern name.
6958 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6959 name.
6960 (dwarf2_name): Intern name. Update.
6961 * buildsym.c (buildsym_compunit::get_macro_table): Use
6962 string_cache.
6963
4e7625fd
TT
69642020-03-04 Tom Tromey <tom@tromey.com>
6965
6966 * jit.c (bfd_open_from_target_memory): Make "target" const.
6967 * corefile.c (gnutarget): Now const.
6968 * gdbcore.h (gnutarget): Now const.
6969
46f9f931
HD
69702020-03-04 Hannes Domani <ssbssa@yahoo.de>
6971
6972 * NEWS: Mention support for WOW64 processes.
6973 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6974 (amd64_windows_segment_register_p): Remove static.
6975 (_initialize_amd64_windows_nat): Update.
6976 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6977 * i386-windows-nat.c (context_offset): Update.
6978 (i386_mappings): Rename and remove static.
6979 (i386_windows_segment_register_p): Remove static.
6980 (_initialize_i386_windows_nat): Update.
6981 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6982 (STATUS_WX86_SINGLE_STEP): New macro.
6983 (EnumProcessModulesEx): New macro.
6984 (Wow64SuspendThread): New macro.
6985 (Wow64GetThreadContext): New macro.
6986 (Wow64SetThreadContext): New macro.
6987 (Wow64GetThreadSelectorEntry): New macro.
6988 (windows_set_context_register_offsets): Add static.
6989 (windows_set_segment_register_p): Likewise.
6990 (windows_add_thread): Adapt for WOW64 processes.
6991 (windows_fetch_one_register): Likewise.
6992 (windows_nat_target::fetch_registers): Likewise.
6993 (windows_store_one_register): Likewise.
6994 (display_selector): Likewise.
6995 (display_selectors): Likewise.
6996 (handle_exception): Likewise.
6997 (windows_continue): Likewise.
6998 (windows_nat_target::resume): Likewise.
6999 (windows_add_all_dlls): Likewise.
7000 (do_initial_windows_stuff): Likewise.
7001 (windows_nat_target::attach): Likewise.
7002 (windows_get_exec_module_filename): Likewise.
7003 (windows_nat_target::create_inferior): Likewise.
7004 (windows_xfer_siginfo): Likewise.
7005 (_initialize_loadable): Initialize Wow64SuspendThread,
7006 Wow64GetThreadContext, Wow64SetThreadContext,
7007 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7008 * windows-nat.h (windows_set_context_register_offsets):
7009 Remove declaration.
7010 (windows_set_segment_register_p): Likewise.
7011 (i386_windows_segment_register_p): Add declaration.
7012 (amd64_windows_segment_register_p): Likewise.
7013
440cf44e
LM
70142020-03-04 Luis Machado <luis.machado@linaro.org>
7015
7016 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7017 in "info registers" for AArch64/ARM.
7018
7019 The change caused "info registers" to not print GPR's.
7020
7021 gdb/ChangeLog:
7022
7023 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7024
7025 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7026 when reg->group is empty and reggroup is not.
7027
1009d92f
TT
70282020-03-03 Tom Tromey <tromey@adacore.com>
7029
7030 * dwarf2/frame.c (struct dwarf2_frame_cache)
7031 <checked_tailcall_bottom, entry_cfa_sp_offset,
7032 entry_cfa_sp_offset_p>: Remove members.
7033 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7034 (dwarf2_frame_prev_register): Don't call
7035 dwarf2_tailcall_sniffer_first.
7036 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7037 * frame-unwind.c (add_unwinder): New fuction.
7038 (frame_unwind_init): Use it. Add tailcall unwinder.
7039
5e5d66b6
AB
70402020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7041 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7042
7043 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7044 value should be printed as true.
7045
584cf46d
HD
70462020-03-03 Hannes Domani <ssbssa@yahoo.de>
7047
7048 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7049 (windows_init_abi): Set and use windows_so_ops.
7050
7b973adc
SDJ
70512020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7052
7053 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7054 when verifying if dealing with a convenience variable.
7055
bb7b70ab
LM
70562020-03-03 Luis Machado <luis.machado@linaro.org>
7057
7058 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7059
9822cb57
SM
70602020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7061
7062 * infrun.c (gdbarch_supports_displaced_stepping): New.
7063 (use_displaced_stepping): Break up conditions in smaller pieces.
7064 Use gdbarch_supports_displaced_stepping.
7065 (displaced_step_prepare_throw): Use
7066 gdbarch_supports_displaced_stepping.
7067
63e163f2
AB
70682020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7069
7070 * NEWS: Mention new behaviour of the history filename.
7071 * top.c (write_history_p): Add comment.
7072 (show_write_history_p): Add header comment, give a different
7073 message when history writing is on, but the history filename is
7074 empty.
7075 (history_filename): Add comment.
7076 (history_filename_empty): New function.
7077 (show_history_filename): Add header comment, give a different
7078 message when the filename is empty.
7079 (init_history): Compare history_filename against nullptr, and only
7080 read history if the filename is not empty.
7081 (set_history_filename): Add header comment, and only make
7082 non-empty filenames absolute.
7083 (init_main): Make the filename argument to 'set history filename'
7084 optional.
7085
81b86b97
CB
70862020-03-02 Christian Biesinger <cbiesinger@google.com>
7087
7088 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7089 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7090 (fetch_fp_register): Update.
7091 (fetch_fp_regs): Update.
7092 (store_fp_register): Update.
7093 (store_fp_regs): Update.
7094 (arm_netbsd_nat_target::read_description): New function.
7095 (fetch_elfcore_registers): Update.
7096
24ed6739
AB
70972020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7100 general_thread if the stop reply is missing a thread-id.
7101 (remote_target::process_stop_reply): Use the first non-exited
7102 thread if the target didn't pass a thread-id.
7103 * infrun.c (do_target_wait): Move call to
7104 switch_to_inferior_no_thread to ....
7105 (do_target_wait_1): ... here.
7106
a84bb2a0
JT
71072020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7108
7109 * debuginfod-support.c: Include defs.h first.
7110
658dadf0
TV
71112020-02-28 Tom de Vries <tdevries@suse.de>
7112
7113 * symfile.c (set_initial_language): Use default language for lookup.
7114
4ebe4877
SM
71152020-02-28 Simon Marchi <simon.marchi@efficios.com>
7116
7117 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7118 reader variable, pass `this` to read_cutu_die_from_dwo.
7119
e5da1139
AM
71202020-02-27 Aaron Merey <amerey@redhat.com>
7121
7122 * source.c (open_source_file): Check for nullptr when computing
7123 srcpath.
7124
317f7127
TT
71252020-02-27 Tom Tromey <tromey@adacore.com>
7126
7127 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7128 member.
7129 (dwarf2_add_field): Don't update nfields.
7130 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7131
3104d9ee
AB
71322020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7133
7134 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7135 abs.
7136
b83470bf
TT
71372020-02-26 Tom Tromey <tom@tromey.com>
7138
7139 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7140 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7141 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7142 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7143 per_cu_data.
7144
edfe0a0c
TT
71452020-02-26 Tom Tromey <tom@tromey.com>
7146
7147 * dwarf2/index-write.c (psym_index_map): Change type.
7148 (add_address_entry_worker, write_one_signatured_type)
7149 (recursively_count_psymbols, recursively_write_psymbols)
7150 (class debug_names, psyms_seen_size, write_gdbindex)
7151 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7152
0d79cdc4
AM
71532020-02-26 Aaron Merey <amerey@redhat.com>
7154
7155 * Makefile.in: Handle optional debuginfod support.
7156 * NEWS: Update.
7157 * README: Add --with-debuginfod summary.
7158 * config.in: Regenerate.
7159 * configure: Regenerate.
7160 * configure.ac: Handle optional debuginfod support.
7161 * debuginfod-support.c: debuginfod helper functions.
7162 * debuginfod-support.h: Ditto.
7163 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7164 summary.
7165 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7166 when a dwz file cannot be found.
7167 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7168 debuginfo file cannot be found.
7169 * source.c (open_source_file): Query debuginfod servers when a
7170 source file cannot be found.
7171 * top.c (print_gdb_configuration): Include
7172 --{with,without}-debuginfod in the output.
7173
b65ce565
JG
71742020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7175
7176 * thread.c (thr_try_catch_cmd): Print thread name.
7177
d4c9a4f8
SM
71782020-02-26 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7181 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7182 dwarf2_fetch_die_type_sect_off): Move to...
7183 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7184 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7185 dwarf2_fetch_die_type_sect_off): ... here.
7186 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7187 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7188 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7189
0dce4280
TV
71902020-02-26 Tom de Vries <tdevries@suse.de>
7191
7192 PR gdb/25603
7193 * symfile.c (set_initial_language): Exit-early if
7194 language_mode == language_mode_manual.
7195
450a1bfc
SM
71962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7199 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7200 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7201
9e80cfa1
AB
72022020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7203
7204 * gdbtypes.c (create_array_type_with_stride): Handle negative
7205 array strides.
7206 * valarith.c (value_subscripted_rvalue): Likewise.
7207
09624f1f
LM
72082020-02-25 Luis Machado <luis.machado@linaro.org>
7209
7210 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7211
8cb5117c
SM
72122020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7213
7214 * loc.h (dwarf2_get_die_type): Move to...
7215 * read.h (dwarf2_get_die_type): ... here.
7216 * read.c (dwarf2_get_die_type): Move doc to header.
7217
c325c44e
JB
72182020-02-25 Joel Brobecker <brobecker@adacore.com>
7219
7220 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7221 'gnulib/Makefile.in' to the list.
7222
4ac93832
TT
72232020-02-24 Tom Tromey <tom@tromey.com>
7224
7225 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7226 Remove.
7227 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7228 XOBNEWVEC.
7229
197400e8
TT
72302020-02-24 Tom Tromey <tom@tromey.com>
7231
7232 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7233 New method.
7234 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7235 (dw2_do_instantiate_symtab, dw2_get_file_names)
7236 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7237
76935768
TT
72382020-02-24 Tom Tromey <tom@tromey.com>
7239
7240 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7241 make_scoped_restore.
7242 (dwarf2_psymtab::read_symtab): Don't clear
7243 reading_partial_symbols.
7244
a88ef40d
TV
72452020-02-24 Tom de Vries <tdevries@suse.de>
7246
7247 PR gdb/25592
7248 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7249
c9af6521
TV
72502020-02-24 Tom de Vries <tdevries@suse.de>
7251
7252 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7253 commands layout next/prev/regs.
7254
5707a07a
TT
72552020-02-22 Tom Tromey <tom@tromey.com>
7256
7257 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7258 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7259
3b0fb49e
TT
72602020-02-22 Tom Tromey <tom@tromey.com>
7261
7262 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7263
283be8bf
TT
72642020-02-22 Tom Tromey <tom@tromey.com>
7265
7266 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7267 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7268 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7269 * tui/tui.c (_initialize_tui): Add usage text.
7270
ca793b96
TT
72712020-02-22 Tom Tromey <tom@tromey.com>
7272
7273 * tui/tui-win.c (tui_set_focus_command)
7274 (tui_set_win_height_command): Use error_no_arg.
7275 (_initialize_tui_win): Update help text.
7276 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7277
432b5c40
TT
72782020-02-22 Tom Tromey <tom@tromey.com>
7279
7280 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7281 * tui/tui-disasm.h (struct tui_disasm_window)
7282 <display_start_addr>: Declare.
7283 * tui/tui-source.h (struct tui_source_window)
7284 <display_start_addr>: Declare.
7285 * tui/tui-winsource.h (struct tui_source_window_base)
7286 <show_source_line, display_start_addr>: New methods.
7287 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7288 Rename and move to protected section.
7289 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7290 (tui_source_window_base::do_erase_source_content): Update.
7291 (tui_source_window_base::show_source_line): Now a method.
7292 (tui_source_window_base::show_source_content)
7293 (tui_source_window_base::tui_source_window_base)
7294 (tui_source_window_base::rerender)
7295 (tui_source_window_base::refill)
7296 (tui_source_window_base::do_scroll_horizontal)
7297 (tui_source_window_base::set_is_exec_point_at)
7298 (tui_source_window_base::update_breakpoint_info)
7299 (tui_source_window_base::update_exec_info): Update.
7300 * tui/tui-source.c (tui_source_window::set_contents)
7301 (tui_source_window::showing_source_p)
7302 (tui_source_window::do_scroll_vertical)
7303 (tui_source_window::location_matches_p)
7304 (tui_source_window::line_is_displayed): Update.
7305 (tui_source_window::display_start_addr): New method.
7306 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7307 (tui_disasm_window::do_scroll_vertical)
7308 (tui_disasm_window::location_matches_p): Update.
7309 (tui_disasm_window::display_start_addr): New method.
7310
01b1af32
TT
73112020-02-22 Tom Tromey <tom@tromey.com>
7312
7313 * NEWS: Add entry for gdb.register_window_type.
7314 * tui/tui-layout.h (window_factory): New typedef.
7315 (tui_register_window): Declare.
7316 * tui/tui-layout.c (saved_tui_windows): New global.
7317 (tui_apply_current_layout): Use it.
7318 (tui_register_window): New function.
7319 * python/python.c (do_start_initialization): Call
7320 gdbpy_initialize_tui.
7321 (python_GdbMethods): Add "register_window_type" function.
7322 * python/python-internal.h (gdbpy_register_tui_window)
7323 (gdbpy_initialize_tui): Declare.
7324 * python/py-tui.c: New file.
7325 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7326
fc96d20b
TT
73272020-02-22 Tom Tromey <tom@tromey.com>
7328
7329 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7330
935c78c0
TT
73312020-02-22 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7334 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7335 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7336 (tui_set_win_focus_to): Move from tui-win.c.
7337
0240c8f1
TT
73382020-02-22 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7341 functions.
7342 (known_window_types): New global.
7343 (tui_get_window_by_name): Reimplement.
7344 (initialize_known_windows): New function.
7345 (validate_window_name): Rewrite.
7346 (_initialize_tui_layout): Call initialize_known_windows.
7347
fdb01f0c
TT
73482020-02-22 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7351 Remove constants.
7352 * tui/tui-winsource.h (struct tui_source_window_base)
7353 <tui_source_window_base>: Remove parameter.
7354 * tui/tui-winsource.c
7355 (tui_source_window_base::tui_source_window_base): Remove
7356 parameter.
7357 (tui_source_window_base::refill): Update.
7358 * tui/tui-stack.h (struct tui_locator_window)
7359 <tui_locator_window>: Update.
7360 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7361 Default the constructor.
7362 * tui/tui-regs.h (struct tui_data_item_window)
7363 <tui_data_item_window>: Default the constructor.
7364 (struct tui_data_window) <tui_data_window>: Likewise.
7365 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7366 Default the constructor.
7367 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7368 Default the constructor.
7369 <type>: Remove.
7370 (struct tui_win_info) <tui_win_info>: Default the constructor.
7371 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7372 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7373 Default the constructor.
7374
865a5aec
TT
73752020-02-22 Tom Tromey <tom@tromey.com>
7376
7377 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7378 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7379 * tui/tui-win.c (tui_resize_all): Don't call
7380 tui_delete_invisible_windows.
7381 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7382 done.
7383 (tui_set_layout): Update.
7384 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7385 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7386 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7387
e098d18c
TT
73882020-02-22 Tom Tromey <tom@tromey.com>
7389
7390 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7391 correctly.
7392
eb9c8874
TT
73932020-02-22 Tom Tromey <tom@tromey.com>
7394
7395 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7396
7eed1a8e
TT
73972020-02-22 Tom Tromey <tom@tromey.com>
7398
7399 * tui/tui-winsource.h (struct tui_source_window_iterator)
7400 <inner_iterator>: New etytypedef.
7401 <tui_source_window_iterator>: Take "end" parameter.
7402 <tui_source_window_iterator>: Take iterator.
7403 <operator*, advance>: Update.
7404 <m_iter>: Change type.
7405 <m_end>: New field.
7406 (struct tui_source_windows) <begin, end>: Update.
7407 * tui/tui-layout.c (tui_windows): New global.
7408 (tui_apply_current_layout): Clear tui_windows.
7409 (tui_layout_window::apply): Update tui_windows.
7410 * tui/tui-data.h (tui_windows): Declare.
7411 (all_tui_windows): Now inline function.
7412 (class tui_window_iterator, struct all_tui_windows): Remove.
7413
7c043ba6
TT
74142020-02-22 Tom Tromey <tom@tromey.com>
7415
7416 PR tui/17850:
7417 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7418 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7419 "height" argument.
7420 (class tui_layout_window) <get_sizes>: Likewise.
7421 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7422 argument.
7423 <get_sizes>: Add "height" argument.
7424 <m_vertical>: New field.
7425 * tui/tui-layout.c (tui_layout_split::clone): Update.
7426 (tui_layout_split::get_sizes): Add "height" argument.
7427 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7428 (tui_new_layout_command): Parse "-horizontal".
7429 (_initialize_tui_layout): Update help string.
7430 (tui_layout_split::specification): Add "-horizontal" when needed.
7431 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7432 argument.
7433 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7434 New methods.
7435
6bc56648
TT
74362020-02-22 Tom Tromey <tom@tromey.com>
7437
7438 * tui/tui-layout.h (enum tui_adjust_result): New.
7439 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7440 (class tui_layout_window) <adjust_size>: Return
7441 tui_adjust_result. Rewrite.
7442 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7443 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7444
c22fef7e
TT
74452020-02-22 Tom Tromey <tom@tromey.com>
7446
7447 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7448 parameter and return types.
7449 (class tui_layout_base) <specification>: Add "depth".
7450 (class tui_layout_window) <specification>: Add "depth".
7451 (class tui_layout_split) <specification>: Add "depth".
7452 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7453 and return types.
7454 (tui_new_layout_command): Parse sub-layouts.
7455 (_initialize_tui_layout): Update help string.
7456 (tui_layout_window::specification): Add "depth".
7457 (add_layout_command): Update.
7458
ee325b61
TT
74592020-02-22 Tom Tromey <tom@tromey.com>
7460
7461 * NEWS: Add "tui new-layout" item.
7462 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7463 Add new-layout command to help text.
7464 (validate_window_name): New function.
7465 (tui_new_layout_command): New function.
7466 (_initialize_tui_layout): Register "new-layout".
7467 (tui_layout_window::specification): New method.
7468 (tui_layout_window::specification): New method.
7469 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7470 method.
7471 (class tui_layout_window) <specification>: New method.
7472 (class tui_layout_split) <specification>: New method.
7473
416eb92d
TT
74742020-02-22 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7477 * tui/tui-win.c (window_name_completer): Update comment.
7478 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7479 Declare method.
7480 (class tui_layout_window) <replace_window>: Likewise.
7481 (class tui_layout_split) <replace_window>: Likewise.
7482 (tui_set_layout): Don't declare.
7483 (tui_set_initial_layout): Declare function.
7484 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7485 (asm_regs_layout): New globals.
7486 (tui_current_layout, show_layout): Remove.
7487 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7488 (find_layout, tui_apply_layout): New function.
7489 (layout_completer): Remove.
7490 (tui_next_layout): Reimplement.
7491 (tui_next_layout_command): New function.
7492 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7493 (tui_regs_layout): Reimplement.
7494 (tui_regs_layout_command): New function.
7495 (extract_display_start_addr): Rewrite.
7496 (next_layout, prev_layout): Remove.
7497 (tui_layout_window::replace_window): New method.
7498 (tui_layout_split::replace_window): New method.
7499 (destroy_layout): New function.
7500 (layout_list): New global.
7501 (add_layout_command): New function.
7502 (initialize_layouts): Update.
7503 (tui_layout_command): New function.
7504 (_initialize_tui_layout): Install "layout" commands.
7505 * tui/tui-data.h (enum tui_layout_type): Remove.
7506 (tui_current_layout): Don't declare.
7507
0dbc2fc7
TT
75082020-02-22 Tom Tromey <tom@tromey.com>
7509
7510 * tui/tui-regs.c (tui_reg_layout): Remove.
7511 (tui_reg_command): Use tui_regs_layout.
7512 * tui/tui-layout.h (tui_reg_command): Declare.
7513 * tui/tui-layout.c (tui_reg_command): New function.
7514
5afe342e
TT
75152020-02-22 Tom Tromey <tom@tromey.com>
7516
7517 * tui/tui.c (tui_rl_delete_other_windows): Call
7518 tui_remove_some_windows.
7519 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7520 Declare method.
7521 (class tui_layout_window) <remove_windows>: New method.
7522 (class tui_layout_split) <remove_windows>: Declare.
7523 (tui_remove_some_windows): Declare.
7524 * tui/tui-layout.c (tui_remove_some_windows): New function.
7525 (tui_layout_split::remove_windows): New method.
7526
427326a8
TT
75272020-02-22 Tom Tromey <tom@tromey.com>
7528
7529 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7530 * tui/tui-layout.h (tui_next_layout): Declare.
7531 * tui/tui-layout.c (tui_next_layout): New function.
7532
3fe12b6d
TT
75332020-02-22 Tom Tromey <tom@tromey.com>
7534
7535 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7536 correct coordinates.
7537
59b8b5d2
TT
75382020-02-22 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7541 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7542 DATA_WIN case.
7543
2a3d458b
TT
75442020-02-22 Tom Tromey <tom@tromey.com>
7545
7546 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7547 TUI_DISASM_WIN, not tui_win_list.
7548
3f0cbb04
TT
75492020-02-22 Tom Tromey <tom@tromey.com>
7550
7551 * valprint.c (generic_val_print_enum_1)
7552 (val_print_type_code_flags): Style member names.
7553 * rust-lang.c (val_print_struct, rust_print_enum)
7554 (rust_print_struct_def, rust_internal_print_type): Style member
7555 names.
7556 * p-valprint.c (pascal_object_print_value_fields): Style member
7557 names. Only call fprintf_symbol_filtered for static members.
7558 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7559 * f-valprint.c (f_val_print): Style member names.
7560 * f-typeprint.c (f_type_print_base): Style member names.
7561 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7562 call fprintf_symbol_filtered for static members.
7563 (cp_print_class_member): Style member names.
7564 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7565 member names.
7566 * ada-valprint.c (ada_print_scalar): Style enum names.
7567 (ada_val_print_enum): Likewise.
7568 * ada-typeprint.c (print_enum_type): Style enum names.
7569
d4d947ae
TT
75702020-02-21 Tom Tromey <tom@tromey.com>
7571
7572 * psympriv.h (struct partial_symtab): Update comment.
7573
e94e944b
TT
75742020-02-21 Tom Tromey <tromey@adacore.com>
7575
7576 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7577 type is CORE_ADDR.
7578
1eb73179
TV
75792020-02-21 Tom de Vries <tdevries@suse.de>
7580
7581 PR gdb/25534
7582 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7583 if dependencies[i]->user != NULL.
7584
4f180d53
AT
75852020-02-21 Ali Tamur <tamur@google.com>
7586
7587 * dwarf2/read.c (dwarf2_name): Add null check.
7588
22b6cd70
TT
75892020-02-20 Tom Tromey <tom@tromey.com>
7590
7591 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7592 ">=", in binary search.
7593 (dwarf2_find_containing_comp_unit): New overload.
7594 (run_test): New self-test.
7595 (_initialize_dwarf2_read): Register new test.
7596
bd0cf5a6
NC
75972020-02-20 Nelson Chu <nelson.chu@sifive.com>
7598
7599 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7600 * riscv-tdep.h: Likewise.
7601 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7602 rv32-only CSR.
7603 * features/riscv/64bit-csr.xml: Regenerated.
7604
3f702acd
SDJ
76052020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7606 Tom Tromey <tom@tromey.com>
7607
7608 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7609 of 'fputc_unfiltered'.
7610 (putchar_unfiltered): Call 'fputc_unfiltered'.
7611 (fputc_unfiltered): Call 'fputs_unfiltered'.
7612
d13c7322
AB
76132020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7614
7615 * config.in: Regenerate.
7616 * configure: Regenerate.
7617 * configure.ac: Add --with-python-libdir option.
7618 * main.c: Use WITH_PYTHON_LIBDIR.
7619
869d8950
TT
76202020-02-19 Tom Tromey <tom@tromey.com>
7621
7622 * symtab.c (general_symbol_info::compute_and_set_names): Use
7623 obstack_strndup. Simplify call to symbol_set_demangled_name.
7624
298e9637
SM
76252020-02-19 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * dwarf2/read.c (allocate_signatured_type_table,
7628 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7629 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7630 Remove objfile parameter, update all callers.
7631
08410482
DE
76322020-02-19 Doug Evans <dje@google.com>
7633
7634 PR rust/25535
7635 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7636 rust_enum_variant calculation.
7637
dfdeeca1
TT
76382020-02-19 Tom Tromey <tromey@adacore.com>
7639
7640 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7641
2ef5453b
TT
76422020-02-19 Tom Tromey <tromey@adacore.com>
7643
7644 * ada-lang.c (cache_symbol): Use obstack_strdup.
7645
9f1528a1
AB
76462020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 * configure: Regenerate.
7649
d3c22fa8
TT
76502020-02-19 Tom Tromey <tromey@adacore.com>
7651
7652 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7653 NULL check.
7654
bf84f706
MR
76552020-02-19 Maciej W. Rozycki <macro@wdc.com>
7656
7657 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7658
d1c9b20f
AB
76592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7660
7661 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7662 if GDBSERVER is not defined.
7663 (riscv_tdesc_cache): Likewise, also store const target_desc.
7664 (STATIC_IN_GDB): Define.
7665 (riscv_create_target_description): Update declaration with
7666 STATIC_IN_GDB.
7667 (riscv_lookup_target_description): New function, only define if
7668 GDBSERVER is not defined.
7669 * arch/riscv.h (riscv_create_target_description): Declare only
7670 when GDBSERVER is defined.
7671 (riscv_lookup_target_description): New declaration when GDBSERVER
7672 is not defined.
7673 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7674 (riscv_linux_read_features): ...this, and return
7675 riscv_gdbarch_features instead of target_desc.
7676 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7677 (riscv_linux_read_description): Rename to...
7678 (riscv_linux_read_features): ...this.
7679 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7680 Update to use riscv_gdbarch_features and
7681 riscv_lookup_target_description.
7682 * riscv-tdep.c (riscv_find_default_target_description): Use
7683 riscv_lookup_target_description instead of
7684 riscv_create_target_description.
7685
373d7ac0
SM
76862020-02-18 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * valprint.c (generic_val_print_enum_1): When printing a flag
7689 enum with value 0 and there is no enumerator with value 0, print
7690 just "0" instead of "(unknown: 0x0)".
7691
b29a2df0
SM
76922020-02-18 Simon Marchi <simon.marchi@efficios.com>
7693
7694 * valprint.c (generic_val_print_enum_1): Print unknown part of
7695 flag enum in hex.
7696
6740f0cc
SM
76972020-02-18 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7700 flag enums to contain duplicate enumerators.
7701 * valprint.c (generic_val_print_enum_1): Update comment.
7702
edd45eb0
SM
77032020-02-18 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * dwarf2/read.c: Include "count-one-bits.h".
7706 (update_enumeration_type_from_children): If an enumerator has
7707 multiple bits set, don't treat the enumeration as a "flag enum".
7708 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7709 of flag enums have 0 or 1 bit set.
7710
6d0cf446
BE
77112020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7712
7713 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7714 conversion.
7715 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7716 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7717 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7718 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7719 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7720
7001c1b7
SM
77212020-02-18 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7724
fdb61c6c
SM
77252020-02-14 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7728 displaced_step_closure_up.
7729 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7730 (struct displaced_step_closure_up):
7731 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7732 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7733 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7734 Likewise.
7735 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7736 * gdbarch.c, gdbarch.h: Re-generate.
7737 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7738 displaced_step_closure_up.
7739 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7740 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7741 * infrun.h (displaced_step_closure_up): New type alias.
7742 (struct displaced_step_inferior_state) <step_closure>: Change
7743 type to displaced_step_closure_up.
7744 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7745 displaced_step_closure_up.
7746 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7747
a4a38eb4
TT
77482020-02-14 Tom Tromey <tom@tromey.com>
7749
7750 * minidebug.c (gnu_debug_key): New global.
7751 (find_separate_debug_file_in_section): Use it.
7752
e8217e61
SM
77532020-02-14 Simon Marchi <simon.marchi@efficios.com>
7754
7755 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7756 std::unique_ptr.
7757 * gdbarch.c: Re-generate.
7758 * gdbarch.h: Re-generate.
7759 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7760 change.
7761 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7762 type to std::unique_ptr.
7763 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7764 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7765 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7766 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7767 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7768 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7769 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7770 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7771 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7772
d8d83535
SM
77732020-02-14 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7776 std::unique_ptr.
7777 (displaced_step_clear): Rename to...
7778 (displaced_step_reset): ... this. Just call displaced->reset ().
7779 (displaced_step_clear_cleanup): Rename to...
7780 (displaced_step_reset_cleanup): ... this.
7781 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7782 (displaced_step_fixup): Likewise.
7783 (resume_1): Likewise.
7784 (handle_inferior_event): Restore child's memory before calling
7785 displaced_step_fixup on the parent.
7786 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7787 to std::unique_ptr.
7788 <step_closure>: Change type to std::unique_ptr.
7789
5f661e03
SM
77902020-02-14 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * arm-tdep.c: Include count-one-bits.h.
7793 (cleanup_block_store_pc): Use count_one_bits.
7794 (cleanup_block_load_pc): Use count_one_bits.
7795 (arm_copy_block_xfer): Use count_one_bits.
7796 (thumb2_copy_block_xfer): Use count_one_bits.
7797 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7798 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7799 (thumb_get_next_pcs_raw): Use count_one_bits.
7800 (arm_get_next_pcs_raw): Use count_one_bits_l.
7801 * arch/arm.c (bitcount): Remove.
7802 * arch/arm.h (bitcount): Remove.
7803
8084e579
TT
78042020-02-14 Tom Tromey <tromey@adacore.com>
7805
7806 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7807 Update.
7808 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7809 * dwarf2/loc.c (call_site_find_chain_1): Return
7810 unique_xmalloc_ptr.
7811 (call_site_find_chain): Likewise.
7812
258bf0ee
RB
78132020-02-14 Richard Biener <rguenther@suse.de>
7814
7815 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7816 on expression with division operators.
7817
f98a8458
AKS
78182020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7819
7820 * MAINTAINERS (Write After Approval): Adding myself.
7821
d1437c0e
TT
78222020-02-12 Tom Tromey <tom@tromey.com>
7823
7824 * event-loop.c (event_data, gdb_event, event_handler_func):
7825 Remove.
7826
3d4560f7
TT
78272020-02-12 Tom Tromey <tom@tromey.com>
7828
7829 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7830 (dwarf2_frame_objfile_data): Add comment.
7831 (find_comp_unit, set_comp_unit): New functions.
7832 (dwarf2_frame_find_fde): Use find_comp_unit.
7833 (dwarf2_build_frame_info): Use set_comp_unit.
7834
21982304
TT
78352020-02-12 Tom Tromey <tom@tromey.com>
7836
7837 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7838 (comp_unit): Don't initialize objfile.
7839 (execute_cfa_program): Add text_offset parameter.
7840 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7841 (dwarf2_frame_cache): Update.
7842 (dwarf2_build_frame_info): Don't set "objfile" member.
7843
4debb237
TT
78442020-02-12 Tom Tromey <tom@tromey.com>
7845
7846 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7847 (decode_frame_entry): Likewise.
7848 (dwarf2_build_frame_info): Update.
7849
0d404d44
TT
78502020-02-12 Tom Tromey <tom@tromey.com>
7851
7852 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7853 (decode_frame_entry_1): Use the comp_unit obstack.
7854
a7a3ae5c
TT
78552020-02-12 Tom Tromey <tom@tromey.com>
7856
7857 * dwarf2/frame.c (struct comp_unit): Add initializers and
7858 constructor.
7859 (dwarf2_frame_objfile_data): Store a comp_unit.
7860 (dwarf2_frame_find_fde): Update.
7861 (dwarf2_build_frame_info): Use "new".
7862
a9d65418
TT
78632020-02-12 Tom Tromey <tom@tromey.com>
7864
7865 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7866 (dwarf2_fde_table): Typedef for std::vector.
7867 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7868 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7869 (decode_frame_entry): Update.
7870 (dwarf2_build_frame_info): Use "new".
7871
7559c217
CB
78722020-02-12 Christian Biesinger <cbiesinger@google.com>
7873
7874 * arm-tdep.c (arm_gdbarch_init): Update.
7875 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7876 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7877 have_neon, is_m>: Change to bool.
7878
aeefc73c
CB
78792020-02-12 Christian Biesinger <cbiesinger@google.com>
7880
7881 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7882
d27b8e5f
TT
78832020-02-12 Tom Tromey <tom@tromey.com>
7884
7885 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7886
cd5900f3
HD
78872020-02-12 Hannes Domani <ssbssa@yahoo.de>
7888
7889 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7890 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7891
f056b22b
TT
78922020-02-11 Tom Tromey <tom@tromey.com>
7893
7894 * psymtab.h: Update comment.
7895
f92ff6b5
TT
78962020-02-11 Tom Tromey <tom@tromey.com>
7897
7898 * gdb_obstack.h (struct auto_obstack): Use
7899 DISABLE_COPY_AND_ASSIGN.
7900
3fd6912b
TT
79012020-02-11 Tom Tromey <tom@tromey.com>
7902
7903 * dwarf2/frame.h (struct objfile): Don't forward declare.
7904
69ed9b74
CB
79052020-02-11 Christian Biesinger <cbiesinger@google.com>
7906
7907 * cris-tdep.c (cris_supply_gregset): Change signature to match
7908 what struct regset expects.
7909 (cris_regset): New struct.
7910 (fetch_core_registers): Remove.
7911 (cris_iterate_over_regset_sections): New function.
7912 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7913 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7914
bda874f6
CB
79152020-02-11 Christian Biesinger <cbiesinger@google.com>
7916
7917 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7918 registers.
7919
754e1564
CB
79202020-02-11 Christian Biesinger <cbiesinger@google.com>
7921
7922 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7923
8ddd8e0e
SM
79242020-02-11 Simon Marchi <simon.marchi@efficios.com>
7925
7926 * configure: Re-generate.
7927
898e7f60
SM
79282020-02-11 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * configure: Re-generate.
7931
58df732b
SM
79322020-02-11 Simon Marchi <simon.marchi@efficios.com>
7933
7934 * acinclude: Update warning.m4 path.
7935 * warning.m4: Move to gdbsupport.
7936
da5bd37e
TT
79372020-02-11 Tom Tromey <tromey@adacore.com>
7938
7939 * remote.c (remote_console_output): Update.
7940 * printcmd.c (printf_command): Update.
7941 * event-loop.c (gdb_wait_for_event): Update.
7942 * linux-nat.c (sigchld_handler): Update.
7943 * remote-sim.c (gdb_os_write_stdout): Update.
7944 (gdb_os_flush_stdout): Update.
7945 (gdb_os_flush_stderr): Update.
7946 (gdb_os_write_stderr): Update.
7947 * exceptions.c (print_exception): Update.
7948 * remote-fileio.c (remote_fileio_func_read): Update.
7949 (remote_fileio_func_write): Update.
7950 * tui/tui.c (tui_enable): Update.
7951 * tui/tui-interp.c (tui_interp::init): Update.
7952 * utils.c (init_page_info): Update.
7953 (putchar_unfiltered, fputc_unfiltered): Update.
7954 (gdb_flush): Update.
7955 (emit_style_escape): Update.
7956 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7957 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7958 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7959 (stderr_file::write): Update.
7960 (stderr_file::puts): Update.
7961 * ui-file.h (ui_file_isatty, ui_file_write)
7962 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7963 (ui_file_puts): Don't declare.
7964
85f0dd3c
TV
79652020-02-10 Tom de Vries <tdevries@suse.de>
7966
7967 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7968 sentinel to char *.
7969
2e927613
TV
79702020-02-09 Tom de Vries <tdevries@suse.de>
7971
7972 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7973 filename if it matches "<artificial>".
7974
6bafc845
HD
79752020-02-09 Hannes Domani <ssbssa@yahoo.de>
7976
7977 * windows-tdep.c (struct enum_value_name): New struct.
7978 (create_enum): New function.
7979 (windows_get_siginfo_type): Create and use enum types.
7980
7928d571
HD
79812020-02-09 Hannes Domani <ssbssa@yahoo.de>
7982
7983 * NEWS: Mention $_siginfo support for Windows.
7984 * windows-nat.c (handle_exception): Set siginfo_er.
7985 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7986 (windows_xfer_siginfo): New function.
7987 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7988 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7989 (init_windows_gdbarch_data): New function.
7990 (get_windows_gdbarch_data): New function.
7991 (windows_get_siginfo_type): New function.
7992 (windows_init_abi): Register windows_get_siginfo_type.
7993 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7994
6751ebae
TT
79952020-02-08 Tom Tromey <tom@tromey.com>
7996
7997 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7998 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7999 <keep>: Declare method.
8000 <m_keep>: Remove member.
8001 <~cutu_reader>: Remove.
8002 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8003 (cutu_reader::cutu_reader): Update.
8004 (cutu_reader::keep): Rename from ~cutu_reader.
8005 (process_psymtab_comp_unit, build_type_psymtabs_1)
8006 (process_skeletonless_type_unit, load_partial_comp_unit)
8007 (load_full_comp_unit, dwarf2_read_addr_index)
8008 (read_signatured_type): Update.
8009
135f5437
TT
80102020-02-08 Tom Tromey <tom@tromey.com>
8011
8012 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8013 "want_partial_unit" parameter.
8014 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8015 Inline check for DW_TAG_partial_unit.
8016 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8017
9f66ff1c
TT
80182020-02-08 Tom Tromey <tom@tromey.com>
8019
8020 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8021 read.c.
8022 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8023 read.c.
8024
c8a7a66f
TT
80252020-02-08 Tom Tromey <tom@tromey.com>
8026
8027 * dwarf2/read.c (read_address): Move to comp-unit.c.
8028 (dwarf2_rnglists_process, dwarf2_ranges_process)
8029 (read_attribute_value, dwarf_decode_lines_1)
8030 (var_decode_location, decode_locdesc): Update.
8031 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8032 read.c. Remove "cu" parameter.
8033 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8034 method.
8035
8266302d
TT
80362020-02-08 Tom Tromey <tom@tromey.com>
8037
8038 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8039 (read_indirect_line_string): Update.
8040 * dwarf2/comp-unit.c (read_offset): Remove.
8041 (read_comp_unit_head): Update.
8042 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8043 method.
8044 (read_offset): Don't declare.
8045
4057dfde
TT
80462020-02-08 Tom Tromey <tom@tromey.com>
8047
8048 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8049 * dwarf2/read.c (struct comp_unit_head): Move to
8050 dwarf2/comp-unit.h.
8051 (enum class rcuh_kind): Move to comp-unit.h.
8052 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8053 (read_comp_unit_head, error_check_comp_unit_head)
8054 (read_and_check_comp_unit_head): Move to comp-unit.c.
8055 (read_offset, dwarf_unit_type_name): Likewise.
8056 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8057 (cutu_reader::cutu_reader, read_call_site_scope)
8058 (find_partial_die, follow_die_offset): Update.
8059 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8060
24aa364d
TT
80612020-02-08 Tom Tromey <tom@tromey.com>
8062
8063 * dwarf2/read.c (read_offset_1): Move to leb.c.
8064 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8065 (dwarf_decode_macro_bytes): Update.
8066 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8067 * dwarf2/leb.h (read_offset): Declare.
8068
2c7d5afc
TT
80692020-02-08 Tom Tromey <tom@tromey.com>
8070
8071 * dwarf2/read.c (dwarf2_section_size): Remove.
8072 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8073 Update.
8074 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8075
4075cb26
TT
80762020-02-08 Tom Tromey <tom@tromey.com>
8077
8078 * dwarf2/read.c (read_initial_length): Move to leb.c.
8079 * dwarf2/leb.h (read_initial_length): Declare.
8080 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8081 handle_nonstd parameter.
8082 * dwarf2/frame.c (read_initial_length): Remove.
8083 (decode_frame_entry_1): Update.
8084
09ba997f
TT
80852020-02-08 Tom Tromey <tom@tromey.com>
8086
8087 * dwarf2/loc.c (dwarf2_find_location_expression)
8088 (dwarf_evaluate_loc_desc::get_tls_address)
8089 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8090 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8091 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8092 (dwarf2_compile_property_to_c)
8093 (dwarf2_loc_desc_get_symbol_read_needs)
8094 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8095 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8096 (loclist_describe_location, loclist_tracepoint_var_ref)
8097 (loclist_generate_c_location): Update.
8098 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8099 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8100 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8101 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8102 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8103 (dwarf2_per_cu_data::addr_size)
8104 (dwarf2_per_cu_data::ref_addr_size)
8105 (dwarf2_per_cu_data::text_offset)
8106 (dwarf2_per_cu_data::addr_type): Now methods.
8107 (per_cu_header_read_in): Make per_cu "const".
8108 (dwarf2_version): Remove.
8109 (dwarf2_per_cu_data::int_type): Now a method.
8110 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8111 (set_die_type, read_array_type, read_subrange_index_type)
8112 (read_tag_string_type, read_subrange_type): Update.
8113 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8114 offset_size, ref_addr_size, text_offset, addr_type, version,
8115 objfile, int_type, addr_sized_int_type>: Declare methods.
8116
96c738c0
TT
81172020-02-08 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8120 Move earlier.
8121
8fdd972c
TT
81222020-02-08 Tom Tromey <tom@tromey.com>
8123
8124 * dwarf2/read.h (dwarf_line_debug): Declare.
8125 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8126 * dwarf2/read.c: Move line_header code to new files.
8127 (dwarf_line_debug): No longer static.
8128 * dwarf2/line-header.c: New file.
8129 * dwarf2/line-header.h: New file.
8130
03075812
TT
81312020-02-08 Tom Tromey <tom@tromey.com>
8132
8133 * dwarf2/read.c (struct line_header) <file_full_name,
8134 file_file_name>: Return unique_xmalloc_ptr.
8135 (line_header::file_file_name): Update.
8136 (line_header::file_full_name): Update.
8137 (dw2_get_file_names_reader): Update.
8138 (macro_start_file): Update.
8139
bb822404
TT
81402020-02-08 Tom Tromey <tom@tromey.com>
8141
8142 * dwarf2/read.c (struct line_header) <file_full_name,
8143 file_file_name>: Declare methods.
8144 (dw2_get_file_names_reader): Update.
8145 (file_file_name): Now a method.
8146 (file_full_name): Likewise.
8147 (macro_start_file): Update.
8148
009b64fc
TT
81492020-02-08 Tom Tromey <tom@tromey.com>
8150
8151 * dwarf2/read.c (dwarf_always_disassemble)
8152 (show_dwarf_always_disassemble): Move to loc.c.
8153 (_initialize_dwarf2_read): Move "always-disassemble" registration
8154 to loc.c.
8155 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8156 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8157 static.
8158 (show_dwarf_always_disassemble): Move from read.c.
8159 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8160
5895093f
TT
81612020-02-08 Tom Tromey <tom@tromey.com>
8162
8163 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8164 (create_quick_file_names_table): Return htab_up.
8165 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8166 Update.
8167 * dwarf2/read.h (struct dwarf2_per_objfile)
8168 <quick_file_names_table>: Now htab_up.
8169
b3b32279
TT
81702020-02-08 Tom Tromey <tom@tromey.com>
8171
8172 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8173
1d33d811
TT
81742020-02-08 Tom Tromey <tom@tromey.com>
8175
8176 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8177 Rewrite.
8178 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8179 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8180 (abbrev_table::abbrev_table): No longer inline.
8181 (ABBREV_HASH_SIZE): Remove.
8182 (abbrev_table::m_abbrevs): Now an htab_up.
8183
86de1d91
TT
81842020-02-08 Tom Tromey <tom@tromey.com>
8185
8186 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8187 (cutu_reader): Update.
8188 (build_type_psymtabs_1): Update.
8189 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8190 (abbrev_table::alloc_abbrev): Update.
8191 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8192 (abbrev_table::read): New static method, renamed from
8193 abbrev_table_read_table.
8194 (abbrev_table::alloc_abbrev)
8195 (abbrev_table::add_abbrev): Now private.
8196 (abbrev_table::abbrev_table): Now private.
8197 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8198
0335378b
TT
81992020-02-08 Tom Tromey <tom@tromey.com>
8200
8201 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8202 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8203 htab_up.
8204
48b490f2
TT
82052020-02-08 Tom Tromey <tom@tromey.com>
8206
8207 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8208 htab_up.
8209 (lookup_dwo_unit_in_dwp): Update.
8210 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8211 on obstack.
8212
bc68fb19
TT
82132020-02-08 Tom Tromey <tom@tromey.com>
8214
8215 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8216 obstack.
8217
d15acc42
TT
82182020-02-08 Tom Tromey <tom@tromey.com>
8219
8220 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8221 line_header_hash.
8222 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8223 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8224 Change type to htab_up.
8225
eaa5fa8b
TT
82262020-02-08 Tom Tromey <tom@tromey.com>
8227
8228 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8229 htab_up. Don't allocate on obstack.
8230 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8231 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8232 Change type to htab_up.
8233
b0b6a987
TT
82342020-02-08 Tom Tromey <tom@tromey.com>
8235
8236 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8237 Change type to htab_up.
8238 * dwarf2/read.c (create_signatured_type_table_from_index)
8239 (create_signatured_type_table_from_debug_names)
8240 (create_all_type_units, add_type_unit)
8241 (lookup_dwo_signatured_type, lookup_signatured_type)
8242 (process_skeletonless_type_unit): Update.
8243 (create_debug_type_hash_table, create_debug_types_hash_table):
8244 Change type of types_htab.
8245 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8246 htab_up. Don't allocate on obstack.
8247 (create_cus_hash_table): Change type of cus_htab parameter.
8248 (struct dwo_file) <cus, tus>: Now htab_up.
8249 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8250 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8251 (queue_and_load_all_dwo_tus): Update.
8252 * dwarf2/index-write.c (write_gdbindex): Update.
8253 (write_debug_names): Update.
8254
39856def
TT
82552020-02-08 Tom Tromey <tom@tromey.com>
8256
8257 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8258 dwarf2/read.c. Remove "next" member. Add constructor ntad
8259 destructor.
8260 (struct dwarf2_per_objfile) <queue>: New member.
8261 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8262 dwarf2/read.h.
8263 (dwarf2_queue, dwarf2_queue_tail): Remove.
8264 (class dwarf2_queue_guard): Add parameter to constructor. Use
8265 DISABLE_COPY_AND_ASSIGN.
8266 <m_per_objfile>: New member.
8267 <~dwarf2_queue_guard>: Rewrite.
8268 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8269 Update.
8270 (~dwarf2_queue_item): New.
8271
3e225074
TT
82722020-02-08 Tom Tromey <tom@tromey.com>
8273
8274 * dwarf2/read.c (struct die_info) <has_children>: New member.
8275 (dw2_get_file_names_reader): Remove has_children.
8276 (dw2_get_file_names): Update.
8277 (read_cutu_die_from_dwo): Remove has_children.
8278 (cutu_reader::init_tu_and_read_dwo_dies)
8279 (cutu_reader::cutu_reader): Update.
8280 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8281 Remove has_children.
8282 (build_type_psymtabs_1, process_skeletonless_type_unit)
8283 (load_partial_comp_unit, load_full_comp_unit): Update.
8284 (create_dwo_cu_reader): Remove has_children.
8285 (create_cus_hash_table, read_die_and_children): Update.
8286 (read_full_die_1,read_full_die): Remove has_children.
8287 (read_signatured_type): Update.
8288 (class cutu_reader) <has_children>: Remove.
8289
82ca8957
TT
82902020-02-08 Tom Tromey <tom@tromey.com>
8291
8292 * dwarf2/expr.c: Rename from dwarf2expr.c.
8293 * dwarf2/expr.h: Rename from dwarf2expr.h.
8294 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8295 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8296 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8297 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8298 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8299 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8300 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8301 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8302 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8303 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8304 * dwarf2/loc.c: Rename from dwarf2loc.c.
8305 * dwarf2/loc.h: Rename from dwarf2loc.h.
8306 * dwarf2/read.c: Rename from dwarf2read.c.
8307 * dwarf2/read.h: Rename from dwarf2read.h.
8308 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8309 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8310 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8311 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8312 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8313 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8314 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8315 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8316 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8317 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8318 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8319 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8320 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8321 Update.
8322 * Makefile.in (COMMON_SFILES): Update.
8323 (HFILES_NO_SRCDIR): Update.
8324
9e35d499
TT
83252020-02-08 Tom Tromey <tom@tromey.com>
8326
8327 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8328 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8329
1eba2311
TT
83302020-02-08 Tom Tromey <tom@tromey.com>
8331
8332 * dwarf2read.h (struct die_info): Don't declare.
8333
e41c2da2
TT
83342020-02-08 Tom Tromey <tom@tromey.com>
8335
8336 * dwarf2read.h (die_info_ptr): Remove typedef.
8337
4fc6c0d5
TT
83382020-02-08 Tom Tromey <tom@tromey.com>
8339
8340 * dwarf2read.c (read_call_site_scope)
8341 (handle_data_member_location, dwarf2_add_member_fn)
8342 (mark_common_block_symbol_computed, read_common_block)
8343 (attr_to_dynamic_prop, partial_die_info::read)
8344 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8345 (dwarf2_symbol_mark_computed, set_die_type): Update.
8346 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8347 method.
8348 (attr_form_is_block): Don't declare.
8349 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8350
cd6c91b4
TT
83512020-02-08 Tom Tromey <tom@tromey.com>
8352
8353 * dwarf2read.c (dwarf2_find_base_address, )
8354 (read_call_site_scope, rust_containing_type)
8355 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8356 (handle_data_member_location, dwarf2_add_member_fn)
8357 (get_alignment, read_structure_type, process_structure_scope)
8358 (mark_common_block_symbol_computed, read_common_block)
8359 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8360 (partial_die_info::read, read_attribute_value, new_symbol)
8361 (lookup_die_type, dwarf2_get_ref_die_offset)
8362 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8363 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8364 (dwarf2_symbol_mark_computed): Update.
8365 * dwarf2/attribute.h (struct attribute) <value_as_address,
8366 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8367 methods.
8368 (value_as_address, attr_form_is_section_offset)
8369 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8370 * dwarf2/attribute.c (attribute::value_as_address)
8371 (attribute::form_is_section_offset, attribute::form_is_constant)
8372 (attribute::form_is_ref): Now methods.
8373
162dce55
TT
83742020-02-08 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2read.c (struct attribute, DW_STRING)
8377 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8378 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8379 (attr_form_is_block, attr_form_is_section_offset)
8380 (attr_form_is_constant, attr_form_is_ref): Move.
8381 * dwarf2/attribute.h: New file.
8382 * dwarf2/attribute.c: New file, from dwarf2read.c.
8383 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8384
3054dd54
TT
83852020-02-08 Tom Tromey <tom@tromey.com>
8386
8387 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8388 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8389 Move.
8390 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8391 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8392 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8393 abbrev.c.
8394 * dwarf2/abbrev.h: New file.
8395 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8396 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8397
96b79293
TT
83982020-02-08 Tom Tromey <tom@tromey.com>
8399
8400 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8401 (dwarf2_section_size, dwarf2_get_section_info)
8402 (create_signatured_type_table_from_debug_names)
8403 (create_addrmap_from_aranges, read_debug_names_from_section)
8404 (get_gdb_index_contents_from_section, read_comp_unit_head)
8405 (error_check_comp_unit_head, read_abbrev_offset)
8406 (create_debug_type_hash_table, init_cu_die_reader)
8407 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8408 (read_comp_units_from_section, create_cus_hash_table)
8409 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8410 (create_dwp_v2_section, dwarf2_rnglists_process)
8411 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8412 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8413 (read_indirect_string_from_dwz, read_addr_index_1)
8414 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8415 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8416 (fill_in_loclist_baton): Update.
8417 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8418 get_containing_section, get_bfd_owner, get_bfd_section,
8419 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8420 (dwarf2_read_section, get_section_name, get_section_file_name)
8421 (get_containing_section, get_section_bfd_owner)
8422 (get_section_bfd_section, get_section_name, get_section_file_name)
8423 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8424 declare.
8425 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8426 (dwarf2_section_info::get_bfd_owner)
8427 (dwarf2_section_info::get_bfd_section)
8428 (dwarf2_section_info::get_name)
8429 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8430 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8431 (dwarf2_section_info::read): Now methods.
8432 * dwarf-index-write.c (class debug_names): Update.
8433
2c86cff9
TT
84342020-02-08 Tom Tromey <tom@tromey.com>
8435
8436 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8437 Move to dwarf2/section.h.
8438 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8439 (get_section_bfd_section, get_section_name)
8440 (get_section_file_name, get_section_id, get_section_flags)
8441 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8442 dwarf2/section.c.
8443 * dwarf2/section.h: New file.
8444 * dwarf2/section.c: New file, from dwarf2read.c.
8445 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8446
f4382c45
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8450 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8451 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8452 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8453 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8454 * dwarf2/leb.h: New file, from dwarf2read.c.
8455 * dwarf2/leb.c: New file, from dwarf2read.c.
8456 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8457 Remove.
8458 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8459 (COMMON_SFILES): Add dwarf2/leb.c.
8460
01840b7a
JB
84612020-02-08 Joel Brobecker <brobecker@adacore.com>
8462
8463 GDB 9.1 released.
8464
dfcb27e4
IB
84652020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8466
8467 PR gdb/25190:
aac66a4c
SM
8468 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8469 * gdb/remote.c (remote_console_output): Update.
8470 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8471 (ui_file_puts): ...this.
8472 * gdb/ui-file.h (ui_file_puts): Add declaration.
8473 * gdb/utils.c (emit_style_escape): Update.
8474 (flush_wrap_buffer): Update.
8475 (fputs_maybe_filtered): Update.
8476 (fputs_unfiltered): Add function.
dfcb27e4 8477
faa17681
IB
84782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8479
aac66a4c
SM
8480 * gdb/event-loop.c (gdb_wait_for_event): Update.
8481 * gdb/printcmd.c (printf_command): Update.
8482 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8483 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8484 (gdb_os_flush_stderr): Update.
8485 * gdb/remote.c (remote_console_output): Update.
8486 * gdb/ui-file.c (gdb_flush): Rename to...
8487 (ui_file_flush): ...this.
8488 (stderr_file::write): Update.
8489 (stderr_file::puts): Update.
8490 * gdb/ui-file.h (gdb_flush): Rename to...
8491 (ui_file_flush): ...this.
8492 * gdb/utils.c (gdb_flush): Add function.
8493 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8494
5abbbe1d
TT
84952020-02-07 Tom Tromey <tromey@adacore.com>
8496
8497 PR breakpoints/24915:
8498 * source.c (find_and_open_source): Do not check basenames_may_differ.
8499
919adfe8
TT
85002020-02-07 Tom Tromey <tom@tromey.com>
8501
8502 * README: Update gdbserver documentation.
8503 * gdbserver: Move to top level.
8504 * configure.tgt (build_gdbserver): Remove.
8505 * configure.ac: Remove --enable-gdbserver.
8506 * configure: Rebuild.
8507 * Makefile.in (distclean): Don't mention gdbserver.
8508
1d5d29e7
SV
85092020-02-06 Shahab Vahedi <shahab@synopsys.com>
8510
8511 * source-cache.c (source_cache::ensure): Surround
8512 get_plain_source_lines with a try/catch.
8513 (source_cache::get_line_charpos): Get rid of try/catch
8514 and only check for the return value of "ensure".
8515 * tui/tui-source.c (tui_source_window::set_contents):
8516 Simplify "nlines" calculation.
8517
6eb1129c
SV
85182020-02-06 Shahab Vahedi <shahab@synopsys.com>
8519
8520 * MAINTAINERS (Write After Approval): Add myself.
8521
c6a42d11
CB
85222020-02-05 Christian Biesinger <cbiesinger@google.com>
8523
8524 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8525 function call.
8526
c8ecdda6
CB
85272020-02-05 Christian Biesinger <cbiesinger@google.com>
8528
8529 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8530
f6480e70
MR
85312020-02-05 Maciej W. Rozycki <macro@wdc.com>
8532
8533 * nat/riscv-linux-tdesc.h: New file.
8534 * nat/riscv-linux-tdesc.c: New file, taking code from...
8535 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8536 ... here.
8537 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8538 NATDEPFILES.
8539
dcc9fbc6
AB
85402020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8541
8542 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8543 we don't set the fake simulator ptid to the null_ptid.
8544
719546c4
SM
85452020-02-03 Simon Marchi <simon.marchi@efficios.com>
8546
8547 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8548 * gdbthread.h (class thread_info) <resumed>: Likewise.
8549 * infrun.c (resume_1): Likewise.
8550 (proceed): Likewise.
8551 (infrun_thread_stop_requested): Likewise.
8552 (stop_all_threads): Likewise.
8553 (handle_inferior_event): Likewise.
8554 (restart_threads): Likewise.
8555 (finish_step_over): Likewise.
8556 (keep_going_stepped_thread): Likewise.
8557 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8558 (linux_handle_extended_wait): Likewise.
8559 * record-btrace.c (get_thread_current_frame_id): Likewise.
8560 * record-full.c (record_full_wait_1): Likewise.
8561 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8562 * target.c (target_resume): Likewise.
8563 * thread.c (set_running_thread): Likewise.
8564
e409c542
AKS
85652020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8566
8567 * f-valprint.c (f77_print_array_1): Changed datatype of index
8568 variable to LONGEST from int to enable it to contain bound
8569 values correctly.
8570
ee98c0da
MR
85712020-02-03 Maciej W. Rozycki <macro@wdc.com>
8572
8573 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8574 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8575 offsets according to FLEN determined.
8576 (riscv_linux_nat_target::read_description): Determine FLEN
8577 dynamically.
8578 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8579 according to FLEN determined.
8580 (riscv_linux_nat_target::store_registers): Likewise.
8581
aa66aac4
SV
85822020-02-01 Shahab Vahedi <shahab@synopsys.com>
8583
8584 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8585 when reg->group is empty and reggroup is not.
8586
fd9faca8
TT
85872020-01-31 Tom Tromey <tromey@adacore.com>
8588
8589 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8590 Call beneath target's mourn_inferior after unpushing.
8591
42330a68
AB
85922020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8593
8594 PR tui/9765
8595 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8596 have enough lines to fill the screen, still return the lowest
8597 address we found.
8598
7a27a45b
AB
85992020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8600
8601 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8602 '-', '<', and '>' commands.
8603
c47f70e2
PA
86042020-01-29 Pedro Alves <palves@redhat.com>
8605 Sergio Durigan Junior <sergiodj@redhat.com>
8606
8607 * infcmd.c (construct_inferior_arguments): Assert that
8608 'argc' is greater than 0.
8609
5133a315
LM
86102020-01-29 Luis Machado <luis.machado@linaro.org>
8611
8612 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8613 (BRK_INSN_MASK): Define to 0xd4200000.
8614 (aarch64_program_breakpoint_here_p): New function.
8615 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8616 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8617 breakpoint.c.
8618 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8619 breakpoint.h
8620 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8621 call gdbarch_program_breakpoint_here_p.
8622 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8623 default_program_breakpoint_here_p, changed return type to bool and
8624 simplified.
8625 * breakpoint.h (program_breakpoint_here): Moved prototype to
8626 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8627 return type to bool.
8628 * gdbarch.c: Regenerate.
8629 * gdbarch.h: Regenerate.
8630 * gdbarch.sh (program_breakpoint_here_p): New method.
8631 * infrun.c (handle_signal_stop): Call
8632 gdbarch_program_breakpoint_here_p.
8633
168f8c6b
TT
86342020-01-26 Tom Tromey <tom@tromey.com>
8635
8636 * ctfread.c (struct ctf_fp_info): Reindent.
8637 (_initialize_ctfread): Remove.
8638
128a391f
TT
86392020-01-26 Tom Tromey <tom@tromey.com>
8640
8641 * psymtab.c (partial_map_expand_apply)
8642 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8643 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8644 (psym_print_stats, psym_expand_symtabs_for_function)
8645 (psym_map_symbol_filenames, psym_map_matching_symbols)
8646 (psym_expand_symtabs_matching)
8647 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8648 (maintenance_check_psymtabs): Use new methods.
8649 * psympriv.h (struct partial_symtab) <readin_p,
8650 get_compunit_symtab>: New methods.
8651 <readin, compunit_symtab>: Remove members.
8652 (struct standard_psymtab): New.
8653 (struct legacy_psymtab): Derive from standard_psymtab.
8654 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8655 standard_psymtab.
8656 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8657
0494dbec
TT
86582020-01-26 Tom Tromey <tom@tromey.com>
8659
8660 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8661 read_dependencies. Add assert.
8662 * psymtab.c (partial_symtab::read_dependencies): New method.
8663 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8664 method.
8665 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8666 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8667 read_dependencies.
8668 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8669 Add assert.
8670
8566b89b
TT
86712020-01-26 Tom Tromey <tom@tromey.com>
8672
8673 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8674 Call expand_psymtab.
8675 (xcoff_read_symtab): Call expand_psymtab.
8676 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8677 legacy_expand_psymtab.
8678 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8679 method.
8680 (struct legacy_psymtab) <expand_psymtab>: Implement.
8681 <legacy_expand_psymtab>: New member.
8682 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8683 (parse_partial_symbols): Set legacy_expand_psymtab.
8684 (psymtab_to_symtab_1): Change argument order. Call
8685 expand_psymtab.
8686 (new_psymtab): Set legacy_expand_psymtab.
8687 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8688 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8689 expand_psymtab.
8690 (dwarf2_psymtab::expand_psymtab): Rename from
8691 psymtab_to_symtab_1. Call expand_psymtab.
8692 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8693 (dbx_end_psymtab): Likewise.
8694 (dbx_psymtab_to_symtab_1): Change argument order. Call
8695 expand_psymtab.
8696 (dbx_read_symtab): Call expand_psymtab.
8697 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8698 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8699 (ctf_psymtab::read_symtab): Call expand_psymtab.
8700
077cbab2
TT
87012020-01-26 Tom Tromey <tom@tromey.com>
8702
8703 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8704 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8705 messages.
8706 * mdebugread.c (mdebug_read_symtab): Remove prints.
8707 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8708 assert.
8709 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8710
891813be
TT
87112020-01-26 Tom Tromey <tom@tromey.com>
8712
8713 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8714 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8715 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8716 legacy_symtab.
8717 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8718 * psymtab.c (psymtab_to_symtab): Call method.
8719 (dump_psymtab): Update.
8720 * psympriv.h (struct partial_symtab): Add virtual destructor.
8721 <read_symtab>: New method.
8722 (struct legacy_symtab): New.
8723 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8724 (struct pst_map) <pst>: Now a legacy_psymtab.
8725 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8726 (new_psymtab): Use legacy_psymtab.
8727 * dwarf2read.h (struct dwarf2_psymtab): New.
8728 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8729 * dwarf2read.c (dwarf2_create_include_psymtab)
8730 (dwarf2_build_include_psymtabs, create_type_unit_group)
8731 (create_partial_symtab, process_psymtab_comp_unit_reader)
8732 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8733 (set_partial_user): Use dwarf2_psymtab.
8734 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8735 (psymtab_to_symtab_1, process_full_comp_unit)
8736 (process_full_type_unit, dwarf2_ranges_read)
8737 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8738 (dwarf_decode_lines): Use dwarf2_psymtab.
8739 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8740 (add_address_entry_worker, write_one_signatured_type)
8741 (recursively_count_psymbols, recursively_write_psymbols)
8742 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8743 (write_debug_names): Likewise.
8744 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8745 <pst>: Now a legacy_psymtab.
8746 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8747 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8748 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8749 * ctfread.c (struct ctf_psymtab): New.
8750 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8751 ctf_psymtab.
8752 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8753 (create_partial_symtab): Return a ctf_psymtab.
8754 (scan_partial_symbols): Update.
8755
c3693a1d
TT
87562020-01-26 Tom Tromey <tom@tromey.com>
8757
8758 * xcoffread.c (xcoff_start_psymtab): Use new.
8759 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8760 renamed from start_psymtab_common.
8761 * psympriv.h (struct partial_symtab): Add new constructor.
8762 (start_psymtab_common): Don't declare.
8763 * mdebugread.c (parse_partial_symbols): Use new.
8764 * dwarf2read.c (create_partial_symtab): Use new.
8765 * dbxread.c (start_psymtab): Use new.
8766 * ctfread.c (create_partial_symtab): Use new.
8767
32caafd0
TT
87682020-01-26 Tom Tromey <tom@tromey.com>
8769
8770 * xcoffread.c (xcoff_end_psymtab): Use new.
8771 * psymtab.c (start_psymtab_common): Use new.
8772 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8773 Update.
8774 * psympriv.h (struct partial_symtab): Add parameters to
8775 constructor. Don't inline.
8776 (allocate_psymtab): Don't declare.
8777 * mdebugread.c (new_psymtab): Use new.
8778 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8779 * dbxread.c (dbx_end_psymtab): Use new.
8780
abaa2f23
TT
87812020-01-26 Tom Tromey <tom@tromey.com>
8782
8783 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8784 allocate_psymtab. Update documentation.
8785 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8786 allocate_psymtab. Do not use new.
8787 (allocate_psymtab): Use new. Update.
8788
6d94535f
TT
87892020-01-26 Tom Tromey <tom@tromey.com>
8790
8791 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8792 * psymtab.c (psym_print_stats): Update.
8793 * psympriv.h (struct partial_symtab) <readin,
8794 psymtabs_addrmap_supported, anonymous>: Now bool.
8795 * mdebugread.c (psymtab_to_symtab_1): Update.
8796 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8797 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8798 (process_full_comp_unit, process_full_type_unit): Update.
8799 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8800 * ctfread.c (psymtab_to_symtab): Update.
8801
6f17252b
TT
88022020-01-26 Tom Tromey <tom@tromey.com>
8803
8804 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8805 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8806 * psymtab.c (psymtab_storage): Delete psymtabs.
8807 (psymtab_storage::allocate_psymtab): Use new.
8808 (psymtab_storage::discard_psymtab): Use delete.
8809 * psympriv.h (struct partial_symtab): Add constructor and
8810 initializers.
8811
f6f1cebc
TT
88122020-01-26 Tom Tromey <tom@tromey.com>
8813
8814 * machoread.c: Do not include psympriv.h.
8815
e47e48f6
PW
88162020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8817
8818 * NEWS: Mention the new option and the set/show commands.
8819
a2fedca9
PW
88202020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8821
8822 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8823 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8824 (validate_exec_file): New variables, enums, functions.
8825 (exec_file_locate_attach, print_section_info): Style the filenames.
8826 (_initialize_exec): Install show_exec_file_mismatch_command and
8827 set_exec_file_mismatch_command.
8828 * gdbcore.h (validate_exec_file): Declare.
8829 * infcmd.c (attach_command): Call validate_exec_file.
8830 * remote.c ( remote_target::remote_add_inferior): Likewise.
8831
7ffa82e1
AB
88322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8833
8834 * frame.c (find_frame_sal): Move call to get_next_frame into more
8835 inner scope.
8836 * inline-frame.c (inilne_state) <inline_state>: Update argument
8837 types.
8838 (inilne_state) <skipped_symbol>: Rename to...
8839 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8840 (skip_inline_frames): Build vector of skipped symbols and use this
8841 to reate the inline_state.
8842 (inline_skipped_symbol): Add a comment and some assertions, fetch
8843 skipped symbol from the list.
8844
3d92a3e3
AB
88452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8846
8847 * buildsym.c (lte_is_less_than): Delete.
8848 (buildsym_compunit::end_symtab_with_blockvector): Create local
8849 lambda function to sort line table entries, and use
8850 std::stable_sort instead of std::sort.
8851 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8852 markers when looking for a previous line.
8853
94a72be7
AB
88542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8855
8856 * dwarf2read.c (lnp_state_machine::record_line): Include
8857 end_sequence parameter in debug print out. Record the line if we
8858 are at an end_sequence marker even if it's not the start of a
8859 statement.
8860 * symmisc.c (maintenance_print_one_line_table): Print end of
8861 sequence markers with 'END' not '0'.
8862
53af73bf
PA
88632020-01-24 Pedro Alves <palves@redhat.com>
8864
8865 PR gdb/25410
8866 * thread.c (scoped_restore_current_thread::restore): Use
8867 switch_to_inferior_no_thread.
8868 * exec.c: Include "progspace-and-thread.h".
8869 (add_target_sections, remove_target_sections):
8870 scoped_restore_current_pspace_and_thread instead of
8871 scoped_restore_current_thread.
8872 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8873 and aspace to the inferior before calling clone_program_space.
8874 Remove stale comment.
8875
3050c6f4
CB
88762020-01-24 Christian Biesinger <cbiesinger@google.com>
8877
8878 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8879 (arm_netbsd_nat_target::fetch_registers): ...this.
8880 (arm_nbsd_nat_target::store_registers): Rename to...
8881 (arm_netbsd_nat_target::store_registers): ...this.
8882
73685c7e
CB
88832020-01-24 Christian Biesinger <cbiesinger@google.com>
8884
8885 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8886 register_t.
8887
89203d40
CB
88882020-01-24 Christian Biesinger <cbiesinger@google.com>
8889
8890 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8891 Update comment.
8892 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8893 Likewise.
8894 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8895 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8896 the correct replacement (iterate_over_regset_sections).
8897 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8898 Update comment.
8899
1ba1ac88
AB
89002020-01-24 Graham Markall <graham.markall@embecosm.com>
8901
8902 PR gdb/23718
8903 * gdb/python/python.c (execute_gdb_command): Call
8904 async_enable_stdin in catch block.
8905
f3364a6d
AB
89062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8907
8908 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8909 SWITCH_THRU_ALL_UIS.
8910
733d0a67
AB
89112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8912
8913 PR tui/9765
8914 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8915 comment, add extra parameter, and update to store previous symbol
8916 when appropriate.
8917 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8918 add extra parameter.
8919 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8920 remove unneeded parameter, add try/catch around gdb_print_insn,
8921 rewrite to add items to asm_lines vector.
8922 (tui_find_backward_disassembly_start_address): New function.
8923 (tui_find_disassembly_address): Updated throughout.
8924 (tui_disasm_window::set_contents): Update for changes to
8925 tui_disassemble.
8926 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8927 number of lines to scroll.
8928
b3b3bada
SM
89292020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8930
8931 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8932 (SECT_OFF_DATA): Likewise.
8933 (SECT_OFF_RODATA): Likewise.
8934 (SECT_OFF_TEXT): Likewise.
8935 (SECT_OFF_BSS): Likewise.
8936 (struct objfile) <text_section_offset, data_section_offset>: New
8937 methods.
8938 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8939 objfile::text_section_offset.
8940 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8941 * coffread.c (coff_symtab_read): Likewise.
8942 (enter_linenos): Likewise.
8943 (process_coff_symbol): Likewise.
8944 * ctfread.c (get_objfile_text_range): Likewise.
8945 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8946 Use objfile::data_section_offset.
8947 * dwarf2-frame.c (execute_cfa_program): Use
8948 objfile::text_section_offset.
8949 (dwarf2_frame_find_fde): Likewise.
8950 * dwarf2read.c (create_addrmap_from_index): Likewise.
8951 (create_addrmap_from_aranges): Likewise.
8952 (dw2_find_pc_sect_compunit_symtab): Likewise.
8953 (process_psymtab_comp_unit_reader): Likewise.
8954 (add_partial_symbol): Likewise.
8955 (add_partial_subprogram): Likewise.
8956 (process_full_comp_unit): Likewise.
8957 (read_file_scope): Likewise.
8958 (read_func_scope): Likewise.
8959 (read_lexical_block_scope): Likewise.
8960 (read_call_site_scope): Likewise.
8961 (dwarf2_rnglists_process): Likewise.
8962 (dwarf2_ranges_process): Likewise.
8963 (dwarf2_ranges_read): Likewise.
8964 (dwarf_decode_lines_1): Likewise.
8965 (new_symbol): Likewise.
8966 (dwarf2_fetch_die_loc_sect_off): Likewise.
8967 (dwarf2_per_cu_text_offset): Likewise.
8968 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8969 * hppa-tdep.c (read_unwind_info): Likewise.
8970 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8971 * psympriv.h (struct partial_symtab): Likewise.
8972 * psymtab.c (find_pc_sect_psymtab): Likewise.
8973 * solib-svr4.c (enable_break): Likewise.
8974 * stap-probe.c (relocate_address): Use
8975 objfile::data_section_offset.
8976 * xcoffread.c (enter_line_range): Use
8977 objfile::text_section_offset.
8978 (read_xcoff_symtab): Likewise.
8979
ab53f382
SM
89802020-01-23 Simon Marchi <simon.marchi@efficios.com>
8981
8982 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8983 declaration to narrower scopes.
8984
e7eee665
SM
89852020-01-23 Simon Marchi <simon.marchi@efficios.com>
8986
8987 * darwin-nat.h (struct darwin_exception_msg, enum
8988 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8989 Move up.
8990 (class darwin_nat_target) <wait_1, check_new_threads,
8991 decode_exception_message, decode_message, stop_inferior,
8992 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8993 * darwin-nat.c (darwin_check_new_threads): Rename to...
8994 (darwin_nat_target::check_new_threads): ... this.
8995 (darwin_suspend_inferior_it): Remove.
8996 (darwin_decode_exception_message): Rename to...
8997 (darwin_nat_target::decode_exception_message): ... this.
8998 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8999 (darwin_decode_message): Rename to...
9000 (darwin_nat_target::decode_message): ... this.
9001 (cancel_breakpoint): Rename to...
9002 (darwin_nat_target::cancel_breakpoint): ... this.
9003 (darwin_wait): Rename to...
9004 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9005 instead of iterate_over_inferiors.
9006 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9007 (darwin_stop_inferior): Rename to...
9008 (darwin_nat_target::stop_inferior): ... this.
9009 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9010 (darwin_init_thread_list): Rename to...
9011 (darwin_nat_target::init_thread_list): ... this.
9012 (darwin_ptrace_him): Rename to...
9013 (darwin_nat_target::ptrace_him): ... this.
9014 (darwin_nat_target::create_inferior): Pass lambda function to
9015 fork_inferior.
9016 (darwin_nat_target::detach): Call stop_inferior instead of
9017 darwin_stop_inferior.
9018 * fork-inferior.h (fork_inferior): Change init_trace_fun
9019 parameter to gdb::function_view.
9020 * fork-inferior.c (fork_inferior): Likewise.
9021
c162ed3e
HD
90222020-01-23 Hannes Domani <ssbssa@yahoo.de>
9023
9024 * i386-cygwin-tdep.c (core_process_module_section): Update.
9025 * windows-nat.c (struct lm_info_windows): Add text_offset.
9026 (windows_xfer_shared_libraries): Update.
9027 * windows-tdep.c (windows_xfer_shared_library):
9028 Add text_offset_cached argument.
9029 * windows-tdep.h (windows_xfer_shared_library): Update.
9030
a1237872
SM
90312020-01-21 Simon Marchi <simon.marchi@efficios.com>
9032
9033 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9034
b3ee6dd9
SM
90352020-01-21 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9038 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9039 replace with range-based for.
9040 (gdbsim_interrupt_inferior): Remove.
9041 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9042 with a range-based for. Inline code from
9043 gdbsim_interrupt_inferior.
9044
f9fac3c8
SM
90452020-01-21 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * infrun.c (proceed): Fix indentation.
9048
f6474de9
TT
90492020-01-21 Tom Tromey <tromey@adacore.com>
9050
9051 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9052 * python/python.c (python_extension_ops): Update.
9053 (gdbpy_colorize): New function.
9054 * python/lib/gdb/__init__.py (colorize): New function.
9055 * extension.h (ext_lang_colorize): Declare.
9056 * extension.c (ext_lang_colorize): New function.
9057 * extension-priv.h (struct extension_language_ops) <colorize>: New
9058 member.
9059 * cli/cli-style.c (_initialize_cli_style): Update help text.
9060
f0c702d4
LM
90612020-01-21 Luis Machado <luis.machado@linaro.org>
9062
9063 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9064 <cond>: Change type to bool.
9065 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9066 (aarch64_displaced_step_cb): Likewise.
9067 (aarch64_displaced_step_tb): Likewise.
9068
1ab139e5
LM
90692020-01-21 Luis Machado <luis.machado@linaro.org>
9070
9071 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9072 output.
9073
0c271889
LM
90742020-01-21 Luis Machado <luis.machado@linaro.org>
9075
9076 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9077 <pc_adjust>: Adjust the documentation.
9078 (aarch64_displaced_step_fixup): Check if PC really moved before
9079 adjusting it.
9080
4d89c1c7
TT
90812020-01-19 Tom Tromey <tom@tromey.com>
9082
9083 * disasm.c (~gdb_disassembler): New destructor.
9084 (gdb_buffered_insn_length): Call disassemble_free_target.
9085 * disasm.h (class gdb_disassembler): Declare destructor. Use
9086 DISABLE_COPY_AND_ASSIGN.
9087
c0ab21c2
TT
90882020-01-19 Tom Tromey <tom@tromey.com>
9089
9090 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9091 (die_reader_func_ftype): Remove.
9092 (cutu_reader): New class.
9093 (dw2_get_file_names_reader): Remove "data" parameter.
9094 (dw2_get_file_names): Use cutu_reader.
9095 (create_debug_type_hash_table): Update.
9096 (read_cutu_die_from_dwo): Update comment.
9097 (lookup_dwo_unit): Add dwo_name parameter.
9098 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9099 die_reader_func_ftype and data parameters.
9100 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9101 Remove die_reader_func_ftype and data parameters.
9102 (~cutu_reader): New; from init_cutu_and_read_dies.
9103 (cutu_reader::cutu_reader): Rename from
9104 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9105 and data parameters.
9106 (init_cutu_and_read_dies_simple): Remove.
9107 (struct process_psymtab_comp_unit_data): Remove.
9108 (process_psymtab_comp_unit_reader): Remove data parameter; add
9109 want_partial_unit and pretend_language parameters.
9110 (process_psymtab_comp_unit): Use cutu_reader.
9111 (build_type_psymtabs_reader): Remove data parameter.
9112 (build_type_psymtabs_1): Use cutu_reader.
9113 (process_skeletonless_type_unit): Likewise.
9114 (load_partial_comp_unit_reader): Remove.
9115 (load_partial_comp_unit): Use cutu_reader.
9116 (load_full_comp_unit_reader): Remove.
9117 (load_full_comp_unit): Use cutu_reader.
9118 (struct create_dwo_cu_data): Remove.
9119 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9120 dwo_unit parameters.
9121 (create_cus_hash_table): Use cutu_reader.
9122 (struct dwarf2_read_addr_index_data): Remove.
9123 (dwarf2_read_addr_index_reader): Remove.
9124 (dwarf2_read_addr_index): Use cutu_reader.
9125 (read_signatured_type_reader): Remove.
9126 (read_signatured_type): Use cutu_reader.
9127
45bbae5c
TT
91282020-01-19 Tom Tromey <tom@tromey.com>
9129
9130 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9131 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9132 (tui_wrefresh): Declare.
9133 * tui/tui-wingeneral.c (suppress_output): New global.
9134 (tui_suppress_output, ~tui_suppress_output): New constructor and
9135 destructor.
9136 (tui_wrefresh): New function.
9137 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9138 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9139 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9140 method.
9141 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9142 tui_wrefresh.
9143 (tui_data_window::no_refresh): New method.
9144 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9145 (tui_reg_command): Use tui_suppress_output
9146 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9147 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9148 method.
9149 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9150
4f13c1c0
TT
91512020-01-19 Tom Tromey <tom@tromey.com>
9152
9153 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9154 Handle case where symtab is null.
9155
fa47e446
SM
91562020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9157
9158 * linux-fork.c (one_fork_p): Simplify.
9159
26f42329
SM
91602020-01-17 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * top.c (struct qt_args): Remove.
9163 (kill_or_detach): Change return type to void, replace `void *`
9164 parameter with a proper one.
9165 (print_inferior_quit_action): Likewise.
9166 (quit_confirm): Use range-based for loop to iterate over inferiors.
9167 (quit_force): Likewise.
9168
a9ac81b1
SM
91692020-01-17 Simon Marchi <simon.marchi@efficios.com>
9170
9171 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9172 `void *` parameter with proper parameters.
9173 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9174 (print_one_inferior): Change return type to void, replace `void *`
9175 parameter with proper parameters.
9176 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9177 inferiors.
9178 (get_other_inferior): Remove.
9179 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9180 inferiors.
9181
788eca49
SM
91822020-01-17 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * mi/mi-interp.c (report_initial_inferior): Remove.
9185 (mi_interp::init): Use range-based for to iterate over inferiors.
9186
d9bc85b6
SM
91872020-01-17 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * python/py-inferior.c (build_inferior_list): Remove.
9190 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9191
40c94099
CB
91922020-01-16 Christian Biesinger <cbiesinger@google.com>
9193
9194 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9195 (btrace_stitch_trace): Likewise.
9196 * charset.c (intermediate_encoding): Likewise (vaild).
9197 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9198 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9199 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9200
e0cdfe3c
HD
92012020-01-16 Hannes Domani <ssbssa@yahoo.de>
9202
9203 * windows-tdep.c (windows_get_tlb_type):
9204 Add rtl_user_process_parameters type.
9205
790f1718 92062020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9207 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9208
9209 PR build/24805
9210 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9211 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9212 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9213 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9214 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9215 (ps_plog): Redeclare exported functions with default visibility.
9216
3112ed97
NA
92172020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9218
9219 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9220 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9221
8dc3273e
SM
92222020-01-15 Simon Marchi <simon.marchi@efficios.com>
9223
9224 * infcmd.c (post_create_inferior): Use get_thread_regcache
9225 instead of get_current_regcache.
9226
ff47f4f0
TT
92272020-01-14 Tom Tromey <tom@tromey.com>
9228
9229 PR symtab/12535:
9230 * python/python.c (gdbpy_decode_line): Treat empty string the same
9231 as no argument.
9232
975f45b7
TT
92332020-01-14 Tom Tromey <tom@tromey.com>
9234
9235 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9236
25e57356
TT
92372020-01-14 Tom Tromey <tom@tromey.com>
9238
9239 * nat/linux-btrace.c: Don't include <config.h>.
9240 * nat/linux-ptrace.c: Don't include <config.h>.
9241 * nat/x86-linux-dregs.c: Don't include <config.h>.
9242
05ea2a05
TT
92432020-01-14 Tom Tromey <tom@tromey.com>
9244
9245 * configure: Rebuild.
9246 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9247
01027315
TT
92482020-01-14 Tom Tromey <tom@tromey.com>
9249
9250 * nat/x86-linux-dregs.c: Include configh.h.
9251 * nat/linux-ptrace.c: Include configh.h.
9252 * nat/linux-btrace.c: Include configh.h.
9253 * defs.h: Include config.h, bfd.h.
9254 * configure.ac: Don't source common.host.
9255 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9256 * configure: Rebuild.
9257 * acinclude.m4: Update path.
9258 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9259 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9260 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9261 (CLIBS): Add LIBSUPPORT.
9262 (CDEPS): Likewise.
9263 (COMMON_SFILES): Remove gdbsupport files.
9264 (HFILES_NO_SRCDIR): Likewise.
9265 (stamp-version): Update path to create-version.sh.
9266 (ALLDEPFILES): Remove gdbsupport files.
9267
b2ceabe8
TT
92682020-01-14 Tom Tromey <tom@tromey.com>
9269
9270 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9271 USE_WIN32API when needed.
9272 * configure.ac (USE_WIN32API): Don't define.
9273 (WIN32LIBS): Use WIN32APILIBS.
9274 * configure: Rebuild.
9275
25c51f71
TT
92762020-01-14 Tom Tromey <tom@tromey.com>
9277
9278 * configure: Rebuild.
9279 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9280
717c684d
BE
92812020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9282
9283 * skip.c (skip_function_command): Make skip w/o arguments use the
9284 name of the inlined function if pc is inside any inlined function.
9285
7da6a5b9
LM
92862020-01-14 Luis Machado <luis.machado@linaro.org>
9287
9288 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9289 * infrun.c (resume_1): Likewise.
9290 (handle_inferior_event): Remove stale comment.
9291 * linux-nat.c (linux_nat_target::resume): Update comments.
9292 (save_stop_reason): Likewise.
9293 (linux_nat_filter_event): Likewise.
9294 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9295
44e4c775
AB
92962020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9297
9298 * elfread.c (record_minimal_symbol): Set section index to 0 for
9299 non-allocatable sections.
9300
18a8505e
AT
9301
93022020-01-13 Ali Tamur <tamur@google.com>
9303
9304 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9305 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9306 to gdb::optional. Update comments.
9307 (dwo_file): Update comments.
9308 (read_attribute): Update API to take an additional out parameter,
9309 need_reprocess. This is used to mark attributes that need other
9310 attributes (e.g. str_offsets_base) for correct computation which may not
9311 have been read yet.
9312 (read_attribute_reprocess): New function declaration.
9313 (read_addr_index): Likewise.
9314 (read_dwo_str_index): Likewise.
9315 (read_stub_str_index): Likewise.
9316 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9317 (lookup_addr_base): New function definition.
9318 (lookup_ranges_base): Likewise.
9319 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9320 lookup_ranges_base.
9321 (init_cutu_and_read_dies): Update comments.
9322 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9323 unit. This is used to inherit parent's str_offsets_base and addr_base.
9324 Update comments.
9325 (init_cutu_and_read_dies_simple): Reflect API changes.
9326 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9327 (create_cus_hash_table): Change API to take parent compile unit.
9328 Reflect API changes.
9329 (open_and_init_dwo_file): Reflect API changes.
9330 (dwarf2_get_pc_bounds): Update comments.
9331 (dwarf2_record_block_ranges): Likewise.
9332 (read_full_die_1): Change implementation to reprocess attributes that
9333 need str_offsets_base and addr_base.
9334 (partial_die_info::read): Likewise.
9335 (read_attribute_reprocess): New function definition.
9336 (read_attribute_value): Change API to take an additional out parameter,
9337 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9338 when a non-dwo compile unit has index based attributes.
9339 (read_attribute): Reflect API changes.
9340 (read_addr_index_1): Reflect API changes. Update comments.
9341 (dwarf2_read_addr_index_data): Reflect API changes.
9342 (dwarf2_read_addr_index): Likewise.
9343 (read_str_index): Change API and implementation. This becomes a helper
9344 to be used by the new string index related methods. Update error
9345 message and comments.
9346 (read_dwo_str_index): New function definition.
9347 (read_stub_str_index): Likewise.
9348 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9349 * symfile.h (dwarf2_debug_sections): Likewise.
9350 * xcoffread.c (dwarf2_debug_sections): Likewise.
9351
0cac9354
SM
93522020-01-13 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9355 core_reg_sect type to gdb_byte *.
9356 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9357 * cris-tdep.c (fetch_core_registers): Likewise.
9358 * corelow.c (core_target::get_core_register_section): Change
9359 type of `contents` to gdb::byte_vector.
9360
9a6d629c
AB
93612020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 * tui/tui-wingeneral.c (box_win): Position the title in the center
9364 of the border.
9365
d8b2f9e3
SM
93662020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9367
9368 * corelow.c (core_target::get_core_register_section): Use
9369 std::vector instead of alloca.
9370
bb564c58
SM
93712020-01-13 Simon Marchi <simon.marchi@efficios.com>
9372
9373 * warning.m4: Add -Wmissing-declarations to build_warnings.
9374 * configure: Re-generate.
9375
6b366111
SM
93762020-01-13 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * python/python.c (init__gdb_module): Add declaration.
9379
6c265988
SM
93802020-01-13 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9383 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9384 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9385 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9386 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9387 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9388 * ada-exp.y (_initialize_ada_exp): Add declaration.
9389 * ada-lang.c (_initialize_ada_language): Add declaration.
9390 * ada-tasks.c (_initialize_tasks): Add declaration.
9391 * agent.c (_initialize_agent): Add declaration.
9392 * aix-thread.c (_initialize_aix_thread): Add declaration.
9393 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9394 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9395 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9396 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9397 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9398 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9399 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9400 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9401 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9402 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9403 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9404 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9405 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9406 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9407 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9408 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9409 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9410 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9411 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9412 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9413 * annotate.c (_initialize_annotate): Add declaration.
9414 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9415 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9416 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9417 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9418 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9419 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9420 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9421 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9422 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9423 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9424 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9425 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9426 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9427 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9428 * auto-load.c (_initialize_auto_load): Add declaration.
9429 * auxv.c (_initialize_auxv): Add declaration.
9430 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9431 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9432 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9433 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9434 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9435 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9436 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9437 * breakpoint.c (_initialize_breakpoint): Add declaration.
9438 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9439 * btrace.c (_initialize_btrace): Add declaration.
9440 * charset.c (_initialize_charset): Add declaration.
9441 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9442 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9443 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9444 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9445 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9446 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9447 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9448 * coffread.c (_initialize_coffread): Add declaration.
9449 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9450 * compile/compile.c (_initialize_compile): Add declaration.
9451 * complaints.c (_initialize_complaints): Add declaration.
9452 * completer.c (_initialize_completer): Add declaration.
9453 * copying.c (_initialize_copying): Add declaration.
9454 * corefile.c (_initialize_core): Add declaration.
9455 * corelow.c (_initialize_corelow): Add declaration.
9456 * cp-abi.c (_initialize_cp_abi): Add declaration.
9457 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9458 * cp-support.c (_initialize_cp_support): Add declaration.
9459 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9460 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9461 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9462 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9463 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9464 * ctfread.c (_initialize_ctfread): Add declaration.
9465 * d-lang.c (_initialize_d_language): Add declaration.
9466 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9467 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9468 * dbxread.c (_initialize_dbxread): Add declaration.
9469 * dcache.c (_initialize_dcache): Add declaration.
9470 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9471 * disasm.c (_initialize_disasm): Add declaration.
9472 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9473 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9474 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9475 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9476 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9477 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9478 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9479 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9480 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9481 * elfread.c (_initialize_elfread): Add declaration.
9482 * exec.c (_initialize_exec): Add declaration.
9483 * extension.c (_initialize_extension): Add declaration.
9484 * f-lang.c (_initialize_f_language): Add declaration.
9485 * f-valprint.c (_initialize_f_valprint): Add declaration.
9486 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9487 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9488 * filesystem.c (_initialize_filesystem): Add declaration.
9489 * findcmd.c (_initialize_mem_search): Add declaration.
9490 * findvar.c (_initialize_findvar): Add declaration.
9491 * fork-child.c (_initialize_fork_child): Add declaration.
9492 * frame-base.c (_initialize_frame_base): Add declaration.
9493 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9494 * frame.c (_initialize_frame): Add declaration.
9495 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9496 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9497 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9498 * gcore.c (_initialize_gcore): Add declaration.
9499 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9500 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9501 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9502 * gdbarch.c (_initialize_gdbarch): Add declaration.
9503 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9504 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9505 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9506 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9507 * go-lang.c (_initialize_go_language): Add declaration.
9508 * go32-nat.c (_initialize_go32_nat): Add declaration.
9509 * guile/guile.c (_initialize_guile): Add declaration.
9510 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9511 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9512 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9513 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9514 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9515 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9516 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9517 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9518 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9519 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9520 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9521 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9522 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9523 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9524 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9525 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9526 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9527 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9528 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9529 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9530 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9531 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9532 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9533 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9534 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9535 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9536 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9537 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9538 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9539 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9540 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9541 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9542 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9543 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9544 * infcall.c (_initialize_infcall): Add declaration.
9545 * infcmd.c (_initialize_infcmd): Add declaration.
9546 * inflow.c (_initialize_inflow): Add declaration.
9547 * infrun.c (_initialize_infrun): Add declaration.
9548 * interps.c (_initialize_interpreter): Add declaration.
9549 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9550 * jit.c (_initialize_jit): Add declaration.
9551 * language.c (_initialize_language): Add declaration.
9552 * linux-fork.c (_initialize_linux_fork): Add declaration.
9553 * linux-nat.c (_initialize_linux_nat): Add declaration.
9554 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9555 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9556 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9557 * m2-lang.c (_initialize_m2_language): Add declaration.
9558 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9559 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9560 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9561 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9562 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9563 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9564 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9565 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9566 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9567 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9568 * machoread.c (_initialize_machoread): Add declaration.
9569 * macrocmd.c (_initialize_macrocmd): Add declaration.
9570 * macroscope.c (_initialize_macroscope): Add declaration.
9571 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9572 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9573 * maint.c (_initialize_maint_cmds): Add declaration.
9574 * mdebugread.c (_initialize_mdebugread): Add declaration.
9575 * memattr.c (_initialize_mem): Add declaration.
9576 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9577 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9578 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9579 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9580 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9581 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9582 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9583 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9584 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9585 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9586 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9587 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9588 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9589 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9590 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9591 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9592 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9593 * mipsread.c (_initialize_mipsread): Add declaration.
9594 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9595 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9596 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9597 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9598 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9599 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9600 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9601 * nto-procfs.c (_initialize_procfs): Add declaration.
9602 * objc-lang.c (_initialize_objc_language): Add declaration.
9603 * observable.c (_initialize_observer): Add declaration.
9604 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9605 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9606 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9607 * osabi.c (_initialize_gdb_osabi): Add declaration.
9608 * osdata.c (_initialize_osdata): Add declaration.
9609 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9610 * parse.c (_initialize_parse): Add declaration.
9611 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9612 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9613 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9614 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9615 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9616 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9617 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9618 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9619 * printcmd.c (_initialize_printcmd): Add declaration.
9620 * probe.c (_initialize_probe): Add declaration.
9621 * proc-api.c (_initialize_proc_api): Add declaration.
9622 * proc-events.c (_initialize_proc_events): Add declaration.
9623 * proc-service.c (_initialize_proc_service): Add declaration.
9624 * procfs.c (_initialize_procfs): Add declaration.
9625 * producer.c (_initialize_producer): Add declaration.
9626 * psymtab.c (_initialize_psymtab): Add declaration.
9627 * python/python.c (_initialize_python): Add declaration.
9628 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9629 * record-btrace.c (_initialize_record_btrace): Add declaration.
9630 * record-full.c (_initialize_record_full): Add declaration.
9631 * record.c (_initialize_record): Add declaration.
9632 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9633 * regcache.c (_initialize_regcache): Add declaration.
9634 * reggroups.c (_initialize_reggroup): Add declaration.
9635 * remote-notif.c (_initialize_notif): Add declaration.
9636 * remote-sim.c (_initialize_remote_sim): Add declaration.
9637 * remote.c (_initialize_remote): Add declaration.
9638 * reverse.c (_initialize_reverse): Add declaration.
9639 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9640 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9641 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9642 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9643 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9644 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9645 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9646 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9647 Add declaration.
9648 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9649 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9650 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9651 * rust-exp.y (_initialize_rust_exp): Add declaration.
9652 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9653 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9654 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9655 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9656 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9657 * score-tdep.c (_initialize_score_tdep): Add declaration.
9658 * ser-go32.c (_initialize_ser_dos): Add declaration.
9659 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9660 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9661 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9662 * ser-uds.c (_initialize_ser_socket): Add declaration.
9663 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9664 * serial.c (_initialize_serial): Add declaration.
9665 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9666 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9667 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9668 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9669 * skip.c (_initialize_step_skip): Add declaration.
9670 * sol-thread.c (_initialize_sol_thread): Add declaration.
9671 * solib-aix.c (_initialize_solib_aix): Add declaration.
9672 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9673 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9674 * solib-frv.c (_initialize_frv_solib): Add declaration.
9675 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9676 * solib-target.c (_initialize_solib_target): Add declaration.
9677 * solib.c (_initialize_solib): Add declaration.
9678 * source-cache.c (_initialize_source_cache): Add declaration.
9679 * source.c (_initialize_source): Add declaration.
9680 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9681 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9682 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9683 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9684 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9685 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9686 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9687 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9688 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9689 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9690 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9691 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9692 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9693 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9694 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9695 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9696 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9697 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9698 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9699 * stabsread.c (_initialize_stabsread): Add declaration.
9700 * stack.c (_initialize_stack): Add declaration.
9701 * stap-probe.c (_initialize_stap_probe): Add declaration.
9702 * std-regs.c (_initialize_frame_reg): Add declaration.
9703 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9704 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9705 * symfile.c (_initialize_symfile): Add declaration.
9706 * symmisc.c (_initialize_symmisc): Add declaration.
9707 * symtab.c (_initialize_symtab): Add declaration.
9708 * target.c (_initialize_target): Add declaration.
9709 * target-connection.c (_initialize_target_connection): Add
9710 declaration.
9711 * target-dcache.c (_initialize_target_dcache): Add declaration.
9712 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9713 * thread.c (_initialize_thread): Add declaration.
9714 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9715 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9716 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9717 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9718 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9719 * tracectf.c (_initialize_ctf): Add declaration.
9720 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9721 * tracefile.c (_initialize_tracefile): Add declaration.
9722 * tracepoint.c (_initialize_tracepoint): Add declaration.
9723 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9724 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9725 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9726 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9727 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9728 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9729 * tui/tui.c (_initialize_tui): Add declaration.
9730 * typeprint.c (_initialize_typeprint): Add declaration.
9731 * ui-style.c (_initialize_ui_style): Add declaration.
9732 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9733 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9734 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9735 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9736 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9737 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9738 * unittests/filtered_iterator-selftests.c
9739 (_initialize_filtered_iterator_selftests): Add declaration.
9740 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9741 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9742 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9743 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9744 * unittests/main-thread-selftests.c
9745 (_initialize_main_thread_selftests): Add declaration.
9746 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9747 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9748 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9749 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9750 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9751 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9752 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9753 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9754 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9755 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9756 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9757 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9758 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9759 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9760 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9761 declaration.
9762 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9763 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9764 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9765 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9766 * user-regs.c (_initialize_user_regs): Add declaration.
9767 * utils.c (_initialize_utils): Add declaration.
9768 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9769 * valops.c (_initialize_valops): Add declaration.
9770 * valprint.c (_initialize_valprint): Add declaration.
9771 * value.c (_initialize_values): Add declaration.
9772 * varobj.c (_initialize_varobj): Add declaration.
9773 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9774 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9775 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9776 * windows-nat.c (_initialize_windows_nat): Add declaration.
9777 (_initialize_check_for_gdb_ini): Add declaration.
9778 (_initialize_loadable): Add declaration.
9779 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9780 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9781 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9782 * xcoffread.c (_initialize_xcoffread): Add declaration.
9783 * xml-support.c (_initialize_xml_support): Add declaration.
9784 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9785 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9786 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9787 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9788
e2de1eec
SM
97892020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9790
9791 * regformats/regdat.sh: Generate declaration for init function.
9792
e0037b4c
SM
97932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9794
9795 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9796 up.
9797 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9798 close_one_inferior>: New methods.
9799 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9800 pass down target to find_inferior_pid.
9801 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9802 Pass down target to find_inferior_ptid.
9803 (gdbsim_target::create_inferior): Pass down target to
9804 add_thread_silent.
9805 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9806 target down to find_inferior_ptid and switch_to_thread.
9807 (gdbsim_target::close): Update to call close_one_inferior.
9808 (struct resume_data): Remove.
9809 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9810 directly, rather than through a void pointer.
9811 (gdbsim_target::resume): Update to call resume_one_inferior.
9812
58920b5b
SM
98132020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9814
9815 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9816
4ec89149
PA
98172020-01-12 Pedro Alves <palves@redhat.com>
9818
9819 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9820 directly for the current inferior instead of
9821 discard_all_inferiors.
9822 (discard_all_inferiors): Delete.
9823
7c392d1d
TT
98242020-01-11 Tom Tromey <tom@tromey.com>
9825
9826 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9827 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9828 deprecated_safe_get_selected_frame.
9829
d9ebdab7
TBA
98302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9831
9832 * inferior.c (print_inferior): Switch inferior before printing it.
9833
f3c469b9
PA
98342020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9835 Pedro Alves <palves@redhat.com>
9836
9837 * progspace-and-thread.c (switch_to_program_space_and_thread):
9838 Assert there's an inferior for PSPACE. Use
9839 switch_to_inferior_no_thread to switch the inferior too.
9840 * progspace.c (program_space::~program_space): Call
9841 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9842 (program_space::free_all_objfiles): Don't call clear_symtab_users
9843 here.
9844 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9845
65c574f6
PA
98462020-01-10 Pedro Alves <palves@redhat.com>
9847
9848 * NEWS: Mention multi-target debugging, "info connections", and
9849 "add-inferior -no-connection".
9850
2f4fcf00
PA
98512020-01-10 Pedro Alves <palves@redhat.com>
9852
9853 * infrun.c: Include "target-connection.h".
9854 (check_multi_target_resumption): New.
9855 (proceed): Call it.
9856 * target-connection.c (make_target_connection_string): Make
9857 extern.
9858 * target-connection.h (make_target_connection_string): Declare.
9859
121b3efd
PA
98602020-01-10 Pedro Alves <palves@redhat.com>
9861
9862 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9863 * inferior.c (uiout_field_connection): New function.
9864 (print_inferior): Add new "connection-id" column.
9865 (add_inferior_command): Show connection number/string of added
9866 inferior.
9867 * process-stratum-target.h
9868 (process_stratum_target::connection_string): New virtual method.
9869 (process_stratum_target::connection_number): New field.
9870 * remote.c (remote_target::connection_string): New override.
9871 * target-connection.c: New file.
9872 * target-connection.h: New file.
9873 * target.c (decref_target): Remove process_stratum targets from
9874 the connection list.
9875 (target_stack::push): Add process_stratum targets to the
9876 connection list.
9877
4f837581
PA
98782020-01-10 Pedro Alves <palves@redhat.com>
9879
9880 Revert:
9881 2016-04-12 Pedro Alves <palves@redhat.com>
9882 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9883 Remove references to name.
9884 * serial.h (struct serial) <name>: Delete.
9885
f4ec508e
PA
98862020-01-10 Pedro Alves <palves@redhat.com>
9887
9888 * gdbarch-selftests.c (register_to_value_test): Remove "target
9889 already pushed" check.
9890
5b6d1e4f
PA
98912020-01-10 Pedro Alves <palves@redhat.com>
9892 John Baldwin <jhb@FreeBSD.org>
9893
9894 * aarch64-linux-nat.c
9895 (aarch64_linux_nat_target::thread_architecture): Adjust.
9896 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9897 (task_command_1): Likewise.
9898 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9899 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9900 (aix_thread_target::store_registers)
9901 (aix_thread_target::thread_alive): Adjust.
9902 * amd64-fbsd-tdep.c: Include "inferior.h".
9903 (amd64fbsd_get_thread_local_address): Pass down target.
9904 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9905 thread's gdbarch instead of target_gdbarch.
9906 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9907 get_last_target_status.
9908 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9909 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9910 inferiors.
9911 (update_inserted_breakpoint_locations): Skip if inferiors with no
9912 execution.
9913 (update_global_location_list): When handling moribund locations,
9914 find representative inferior for location's pspace, and use thread
9915 count of its process_stratum target.
9916 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9917 * bsd-uthread.c (bsd_uthread_target::wait): Use
9918 as_process_stratum_target and adjust thread_change_ptid and
9919 add_thread calls.
9920 (bsd_uthread_target::update_thread_list): Use
9921 as_process_stratum_target and adjust find_thread_ptid,
9922 thread_change_ptid and add_thread calls.
9923 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9924 find_thread_ptid call.
9925 * corelow.c (add_to_thread_list): Adjust add_thread call.
9926 (core_target_open): Adjust add_thread_silent and thread_count
9927 calls.
9928 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9929 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9930 * event-top.c (async_disconnect): Pop targets from all inferiors.
9931 * exec.c (add_target_sections): Push exec target on all inferiors
9932 sharing the program space.
9933 (remove_target_sections): Remove the exec target from all
9934 inferiors sharing the program space.
9935 (exec_on_vfork): New.
9936 * exec.h (exec_on_vfork): Declare.
9937 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9938 Pass it down.
9939 (fbsd_nat_target::update_thread_list): Adjust.
9940 (fbsd_nat_target::resume): Adjust.
9941 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9942 down.
9943 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9944 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9945 get_thread_arch_regcache call.
9946 * fork-child.c (gdb_startup_inferior): Pass target down to
9947 startup_inferior and set_executing.
9948 * gdbthread.h (struct process_stratum_target): Forward declare.
9949 (add_thread, add_thread_silent, add_thread_with_info)
9950 (in_thread_list): Add process_stratum_target parameter.
9951 (find_thread_ptid(inferior*, ptid_t)): New overload.
9952 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9953 parameter.
9954 (all_threads()): Delete overload.
9955 (all_threads, all_non_exited_threads): Add process_stratum_target
9956 parameter.
9957 (all_threads_safe): Use brace initialization.
9958 (thread_count): Add process_stratum_target parameter.
9959 (set_resumed, set_running, set_stop_requested, set_executing)
9960 (threads_are_executing, finish_thread_state): Add
9961 process_stratum_target parameter.
9962 (switch_to_thread): Use is_current_thread.
9963 * i386-fbsd-tdep.c: Include "inferior.h".
9964 (i386fbsd_get_thread_local_address): Pass down target.
9965 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9966 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9967 have_inferiors check.
9968 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9969 (inf_ptrace_target::attach): Adjust.
9970 * infcall.c (run_inferior_call): Adjust.
9971 * infcmd.c (run_command_1): Pass target to
9972 scoped_finish_thread_state.
9973 (proceed_thread_callback): Skip inferiors with no execution.
9974 (continue_command): Rename 'all_threads' local to avoid hiding
9975 'all_threads' function. Adjust get_last_target_status call.
9976 (prepare_one_step): Adjust set_running call.
9977 (signal_command): Use user_visible_resume_target. Compare thread
9978 pointers instead of inferior_ptid.
9979 (info_program_command): Adjust to pass down target.
9980 (attach_command): Mark target's 'thread_executing' flag.
9981 (stop_current_target_threads_ns): New, factored out from ...
9982 (interrupt_target_1): ... this. Switch inferior before making
9983 target calls.
9984 * inferior-iter.h
9985 (struct all_inferiors_iterator, struct all_inferiors_range)
9986 (struct all_inferiors_safe_range)
9987 (struct all_non_exited_inferiors_range): Filter on
9988 process_stratum_target too. Remove explicit.
9989 * inferior.c (inferior::inferior): Push dummy target on target
9990 stack.
9991 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9992 Add process_stratum_target parameter, and pass it down.
9993 (have_live_inferiors): Adjust.
9994 (switch_to_inferior_and_push_target): New.
9995 (add_inferior_command, clone_inferior_command): Handle
9996 "-no-connection" parameter. Use
9997 switch_to_inferior_and_push_target.
9998 (_initialize_inferior): Mention "-no-connection" option in
9999 the help of "add-inferior" and "clone-inferior" commands.
10000 * inferior.h: Include "process-stratum-target.h".
10001 (interrupt_target_1): Use bool.
10002 (struct inferior) <push_target, unpush_target, target_is_pushed,
10003 find_target_beneath, top_target, process_target, target_at,
10004 m_stack>: New.
10005 (discard_all_inferiors): Delete.
10006 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10007 (all_inferiors, all_non_exited_inferiors): Add
10008 process_stratum_target parameter.
10009 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10010 (target_last_proc_target): New global.
10011 (follow_fork_inferior): Push target on new inferior. Pass target
10012 to add_thread_silent. Call exec_on_vfork. Handle target's
10013 reference count.
10014 (follow_fork): Adjust get_last_target_status call. Also consider
10015 target.
10016 (follow_exec): Push target on new inferior.
10017 (struct execution_control_state) <target>: New field.
10018 (user_visible_resume_target): New.
10019 (do_target_resume): Call target_async.
10020 (resume_1): Set target's threads_executing flag. Consider resume
10021 target.
10022 (commit_resume_all_targets): New.
10023 (proceed): Also consider resume target. Skip threads of inferiors
10024 with no execution. Commit resumtion in all targets.
10025 (start_remote): Pass current inferior to wait_for_inferior.
10026 (infrun_thread_stop_requested): Consider target as well. Pass
10027 thread_info pointer to clear_inline_frame_state instead of ptid.
10028 (infrun_thread_thread_exit): Consider target as well.
10029 (random_pending_event_thread): New inferior parameter. Use it.
10030 (do_target_wait): Rename to ...
10031 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10032 down.
10033 (threads_are_resumed_pending_p, do_target_wait): New.
10034 (prepare_for_detach): Adjust calls.
10035 (wait_for_inferior): New inferior parameter. Handle it. Use
10036 do_target_wait_1 instead of do_target_wait.
10037 (fetch_inferior_event): Adjust. Switch to representative
10038 inferior. Pass target down.
10039 (set_last_target_status): Add process_stratum_target parameter.
10040 Save target in global.
10041 (get_last_target_status): Add process_stratum_target parameter and
10042 handle it.
10043 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10044 (context_switch): Check inferior_ptid == null_ptid before calling
10045 inferior_thread().
10046 (get_inferior_stop_soon): Pass down target.
10047 (wait_one): Rename to ...
10048 (poll_one_curr_target): ... this.
10049 (struct wait_one_event): New.
10050 (wait_one): New.
10051 (stop_all_threads): Adjust.
10052 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10053 event's target.
10054 (switch_back_to_stepped_thread): Also consider target.
10055 (print_stop_event): Update.
10056 (normal_stop): Update. Also consider the resume target.
10057 * infrun.h (wait_for_inferior): Remove declaration.
10058 (user_visible_resume_target): New declaration.
10059 (get_last_target_status, set_last_target_status): New
10060 process_stratum_target parameter.
10061 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10062 process_stratum_target parameter, and use it.
10063 (clear_inline_frame_state (thread_info*)): New.
10064 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10065 process_stratum_target parameter.
10066 (clear_inline_frame_state (thread_info*)): Declare.
10067 * linux-fork.c (delete_checkpoint_command): Pass target down to
10068 find_thread_ptid.
10069 (checkpoint_command): Adjust.
10070 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10071 instead of just tweaking inferior_ptid.
10072 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10073 (exit_lwp): Pass target down to find_thread_ptid.
10074 (attach_proc_task_lwp_callback): Pass target down to
10075 add_thread/set_running/set_executing.
10076 (linux_nat_target::attach): Pass target down to
10077 thread_change_ptid.
10078 (get_detach_signal): Pass target down to find_thread_ptid.
10079 Consider last target status's target.
10080 (linux_resume_one_lwp_throw, resume_lwp)
10081 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10082 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10083 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10084 (linux_nat_target::async_wait_fd): New.
10085 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10086 target down.
10087 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10088 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10089 * linux-thread-db.c (struct thread_db_info::process_target): New
10090 field.
10091 (add_thread_db_info): Save target.
10092 (get_thread_db_info): New process_stratum_target parameter. Also
10093 match target.
10094 (delete_thread_db_info): New process_stratum_target parameter.
10095 Also match target.
10096 (thread_from_lwp): Adjust to pass down target.
10097 (thread_db_notice_clone): Pass down target.
10098 (check_thread_db_callback): Pass down target.
10099 (try_thread_db_load_1): Always push the thread_db target.
10100 (try_thread_db_load, record_thread): Pass target down.
10101 (thread_db_target::detach): Pass target down. Always unpush the
10102 thread_db target.
10103 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10104 target down. Always unpush the thread_db target.
10105 (find_new_threads_callback, thread_db_find_new_threads_2)
10106 (thread_db_target::update_thread_list): Pass target down.
10107 (thread_db_target::pid_to_str): Pass current inferior down.
10108 (thread_db_target::get_thread_local_address): Pass target down.
10109 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10110 target down.
10111 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10112 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10113 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10114 (procfs_init_inferior): Rename to ...
10115 (procfs_target::procfs_init_inferior): ... this and adjust.
10116 (procfs_target::create_inferior, procfs_notice_thread)
10117 (procfs_do_thread_registers): Adjust.
10118 * ppc-fbsd-tdep.c: Include "inferior.h".
10119 (ppcfbsd_get_thread_local_address): Pass down target.
10120 * proc-service.c (ps_xfer_memory): Switch current inferior and
10121 program space as well.
10122 (get_ps_regcache): Pass target down.
10123 * process-stratum-target.c
10124 (process_stratum_target::thread_address_space)
10125 (process_stratum_target::thread_architecture): Pass target down.
10126 * process-stratum-target.h
10127 (process_stratum_target::threads_executing): New field.
10128 (as_process_stratum_target): New.
10129 * ravenscar-thread.c
10130 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10131 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10132 down.
10133 * record-btrace.c (record_btrace_target::info_record): Adjust.
10134 (record_btrace_target::record_method)
10135 (record_btrace_target::record_is_replaying)
10136 (record_btrace_target::fetch_registers)
10137 (get_thread_current_frame_id, record_btrace_target::resume)
10138 (record_btrace_target::wait, record_btrace_target::stop): Pass
10139 target down.
10140 * record-full.c (record_full_wait_1): Switch to event thread.
10141 Pass target down.
10142 * regcache.c (regcache::regcache)
10143 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10144 process_stratum_target parameter and handle it.
10145 (current_thread_target): New global.
10146 (get_thread_regcache): Add process_stratum_target parameter and
10147 handle it. Switch inferior before calling target method.
10148 (get_thread_regcache): Pass target down.
10149 (get_thread_regcache_for_ptid): Pass target down.
10150 (registers_changed_ptid): Add process_stratum_target parameter and
10151 handle it.
10152 (registers_changed_thread, registers_changed): Pass target down.
10153 (test_get_thread_arch_aspace_regcache): New.
10154 (current_regcache_test): Define a couple local test_target_ops
10155 instances and use them for testing.
10156 (readwrite_regcache): Pass process_stratum_target parameter.
10157 (cooked_read_test, cooked_write_test): Pass mock_target down.
10158 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10159 (get_thread_arch_aspace_regcache): Add process_stratum_target
10160 parameter.
10161 (regcache::target): New method.
10162 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10163 (regcache::registers_changed_ptid): Add process_stratum_target
10164 parameter.
10165 (regcache::m_target): New field.
10166 (registers_changed_ptid): Add process_stratum_target parameter.
10167 * remote.c (remote_state::supports_vCont_probed): New field.
10168 (remote_target::async_wait_fd): New method.
10169 (remote_unpush_and_throw): Add remote_target parameter.
10170 (get_current_remote_target): Adjust.
10171 (remote_target::remote_add_inferior): Push target.
10172 (remote_target::remote_add_thread)
10173 (remote_target::remote_notice_new_inferior)
10174 (get_remote_thread_info): Pass target down.
10175 (remote_target::update_thread_list): Skip threads of inferiors
10176 bound to other targets. (remote_target::close): Don't discard
10177 inferiors. (remote_target::add_current_inferior_and_thread)
10178 (remote_target::process_initial_stop_replies)
10179 (remote_target::start_remote)
10180 (remote_target::remote_serial_quit_handler): Pass down target.
10181 (remote_target::remote_unpush_target): New remote_target
10182 parameter. Unpush the target from all inferiors.
10183 (remote_target::remote_unpush_and_throw): New remote_target
10184 parameter. Pass it down.
10185 (remote_target::open_1): Check whether the current inferior has
10186 execution instead of checking whether any inferior is live. Pass
10187 target down.
10188 (remote_target::remote_detach_1): Pass down target. Use
10189 remote_unpush_target.
10190 (extended_remote_target::attach): Pass down target.
10191 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10192 (remote_target::append_resumption): Pass down target.
10193 (remote_target::append_pending_thread_resumptions)
10194 (remote_target::remote_resume_with_hc, remote_target::resume)
10195 (remote_target::commit_resume): Pass down target.
10196 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10197 (remote_target::interrupt_query)
10198 (remote_target::remove_new_fork_children)
10199 (remote_target::check_pending_events_prevent_wildcard_vcont)
10200 (remote_target::remote_parse_stop_reply)
10201 (remote_target::process_stop_reply): Pass down target.
10202 (first_remote_resumed_thread): New remote_target parameter. Pass
10203 it down.
10204 (remote_target::wait_as): Pass down target.
10205 (unpush_and_perror): New remote_target parameter. Pass it down.
10206 (remote_target::readchar, remote_target::remote_serial_write)
10207 (remote_target::getpkt_or_notif_sane_1)
10208 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10209 down target.
10210 (remote_target::mourn_inferior): Pass down target. Use
10211 remote_unpush_target.
10212 (remote_target::core_of_thread)
10213 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10214 (remote_target::pid_to_exec_file)
10215 (remote_target::thread_handle_to_thread_info): Pass down target.
10216 (remote_target::async_wait_fd): New.
10217 * riscv-fbsd-tdep.c: Include "inferior.h".
10218 (riscv_fbsd_get_thread_local_address): Pass down target.
10219 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10220 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10221 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10222 Adjust.
10223 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10224 * solib-svr4.c (enable_break): Pass down target.
10225 * spu-multiarch.c (parse_spufs_run): Pass down target.
10226 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10227 * target-delegates.c: Regenerate.
10228 * target.c (g_target_stack): Delete.
10229 (current_top_target): Return the current inferior's top target.
10230 (target_has_execution_1): Refer to the passed-in inferior's top
10231 target.
10232 (target_supports_terminal_ours): Check whether the initial
10233 inferior was already created.
10234 (decref_target): New.
10235 (target_stack::push): Incref/decref the target.
10236 (push_target, push_target, unpush_target): Adjust.
10237 (target_stack::unpush): Defref target.
10238 (target_is_pushed): Return bool. Adjust to refer to the current
10239 inferior's target stack.
10240 (dispose_inferior): Delete, and inline parts ...
10241 (target_preopen): ... here. Only dispose of the current inferior.
10242 (target_detach): Hold strong target reference while detaching.
10243 Pass target down.
10244 (target_thread_name): Add assertion.
10245 (target_resume): Pass down target.
10246 (target_ops::beneath, find_target_at): Adjust to refer to the
10247 current inferior's target stack.
10248 (get_dummy_target): New.
10249 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10250 has a thread running.
10251 (initialize_targets): Rename to ...
10252 (_initialize_target): ... this.
10253 * target.h: Include "gdbsupport/refcounted-object.h".
10254 (struct target_ops): Inherit refcounted_object.
10255 (target_ops::shortname, target_ops::longname): Make const.
10256 (target_ops::async_wait_fd): New method.
10257 (decref_target): Declare.
10258 (struct target_ops_ref_policy): New.
10259 (target_ops_ref): New typedef.
10260 (get_dummy_target): Declare function.
10261 (target_is_pushed): Return bool.
10262 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10263 (all_matching_threads_iterator::all_matching_threads_iterator):
10264 Handle filter target.
10265 * thread-iter.h (struct all_matching_threads_iterator, struct
10266 all_matching_threads_range, class all_non_exited_threads_range):
10267 Filter by target too. Remove explicit.
10268 * thread.c (threads_executing): Delete.
10269 (inferior_thread): Pass down current inferior.
10270 (clear_thread_inferior_resources): Pass down thread pointer
10271 instead of ptid_t.
10272 (add_thread_silent, add_thread_with_info, add_thread): Add
10273 process_stratum_target parameter. Use it for thread and inferior
10274 searches.
10275 (is_current_thread): New.
10276 (thread_info::deletable): Use it.
10277 (find_thread_ptid, thread_count, in_thread_list)
10278 (thread_change_ptid, set_resumed, set_running): New
10279 process_stratum_target parameter. Pass it down.
10280 (set_executing): New process_stratum_target parameter. Pass it
10281 down. Adjust reference to 'threads_executing'.
10282 (threads_are_executing): New process_stratum_target parameter.
10283 Adjust reference to 'threads_executing'.
10284 (set_stop_requested, finish_thread_state): New
10285 process_stratum_target parameter. Pass it down.
10286 (switch_to_thread): Also match inferior.
10287 (switch_to_thread): New process_stratum_target parameter. Pass it
10288 down.
10289 (update_threads_executing): Reimplement.
10290 * top.c (quit_force): Pop targets from all inferior.
10291 (gdb_init): Don't call initialize_targets.
10292 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10293 Declare.
10294 (windows_add_thread, windows_delete_thread): Adjust.
10295 (get_windows_debug_event): Rename to ...
10296 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10297 * tracefile-tfile.c (tfile_target_open): Pass down target.
10298 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10299 Forward declare.
10300 (switch_to_thread): Add process_stratum_target parameter.
10301 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10302 parameter. Use it.
10303 (mi_on_resume): Pass target down.
10304 * nat/fork-inferior.c (startup_inferior): Add
10305 process_stratum_target parameter. Pass it down.
10306 * nat/fork-inferior.h (startup_inferior): Add
10307 process_stratum_target parameter.
10308 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10309
75c6c844
PA
103102020-01-10 Pedro Alves <palves@redhat.com>
10311
10312 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10313 directly. Instead find the first thread in the thread list and
10314 use switch_to_thread.
10315
78f2c40a
PA
103162020-01-10 Pedro Alves <palves@redhat.com>
10317
10318 * remote.c (remote_target::remote_add_inferior): Don't bind a
10319 process to the current inferior if the current inferior is already
10320 bound to a process.
10321
e7af6c70
TBA
103222020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10323 Pedro Alves <palves@redhat.com>
10324
10325 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10326 If no process is specified, return null_ptid instead of
10327 inferior_ptid.
10328 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10329 TARGET_WAITKIND_SIGNALLED with no pid.
10330
31ba933e
PA
103312020-01-10 Pedro Alves <palves@redhat.com>
10332
10333 * remote.c (first_remote_resumed_thread): New.
10334 (remote_target::wait_as): Use it as default event_ptid instead of
10335 inferior_ptid.
10336
735fc2ca
PA
103372020-01-10 Pedro Alves <palves@redhat.com>
10338
10339 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10340
c17e02e1
PA
103412020-01-10 Pedro Alves <palves@redhat.com>
10342
10343 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10344 not -1.
10345
ab1ddbcf
PA
103462020-01-10 Pedro Alves <palves@redhat.com>
10347
10348 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10349 ptid to get_last_target_status.
10350 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10351 ptid to get_last_target_status.
10352 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10353 get_last_target_status.
10354 (info_program_command): Don't pass a target_waitstatus to
10355 get_last_target_status.
10356 * infrun.c (init_wait_for_inferior): Use
10357 nullify_last_target_wait_ptid.
10358 (get_last_target_status): Handle nullptr arguments.
10359 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10360 (print_stop_event): Don't pass a ptid to get_last_target_status.
10361 (normal_stop): Don't pass a ptid to get_last_target_status.
10362 * infrun.h (get_last_target_status, set_last_target_status): Move
10363 comments here and update.
10364 (nullify_last_target_wait_ptid): Declare.
10365 * linux-fork.c (fork_load_infrun_state): Remove local extern
10366 declaration of nullify_last_target_wait_ptid.
10367 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10368 to get_last_target_status.
10369
f3f8ece4
PA
103702020-01-10 Pedro Alves <palves@redhat.com>
10371
10372 * gdbthread.h (scoped_restore_current_thread)
10373 <dont_restore, restore, m_dont_restore>: Declare.
10374 * thread.c (thread_alive): Add assertion. Return bool.
10375 (switch_to_thread_if_alive): New.
10376 (prune_threads): Switch inferior/thread.
10377 (print_thread_info_1): Switch thread before calling target methods.
10378 (scoped_restore_current_thread::restore): New, factored out from
10379 ...
10380 (scoped_restore_current_thread::~scoped_restore_current_thread):
10381 ... this.
10382 (scoped_restore_current_thread::scoped_restore_current_thread):
10383 Add assertion.
10384 (thread_apply_all_command, thread_select): Use
10385 switch_to_thread_if_alive.
10386 * infrun.c (proceed, restart_threads, handle_signal_stop)
10387 (switch_back_to_stepped_thread): Switch current thread before
10388 calling target methods.
10389
db2d40f7
PA
103902020-01-10 Pedro Alves <palves@redhat.com>
10391
10392 * inferior.c (switch_to_inferior_no_thread): New function,
10393 factored out from ...
10394 (inferior_command): ... here.
10395 * inferior.h (switch_to_inferior_no_thread): Declare.
10396 * mi/mi-main.c (run_one_inferior): Use
10397 switch_to_inferior_no_thread.
10398
bd420a2d
PA
103992020-01-10 Pedro Alves <palves@redhat.com>
10400
10401 * infcmd.c (kill_command): Remove dead code.
10402
ddf5db90
PA
104032020-01-10 Pedro Alves <palves@redhat.com>
10404
10405 * remote.c (remote_target::mourn_inferior): No longer check
10406 whether the target is running.
10407
5018ce90
PA
104082020-01-10 Pedro Alves <palves@redhat.com>
10409
10410 * corelow.c (core_target::has_execution): Change parameter type to
10411 inferior pointer.
10412 * inferior.c (number_of_live_inferiors): Use
10413 inferior::has_execution instead of target_has_execution_1.
10414 * inferior.h (inferior::has_execution): New.
10415 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10416 inferior::has_execution instead of target_has_execution_1.
10417 * process-stratum-target.c
10418 (process_stratum_target::has_execution): Change parameter type to
10419 inferior pointer. Check the inferior's PID instead of
10420 inferior_ptid.
10421 * process-stratum-target.h
10422 (process_stratum_target::has_execution): Change parameter type to
10423 inferior pointer.
10424 * record-full.c (record_full_core_target::has_execution): Change
10425 parameter type to inferior pointer.
10426 * target.c (target_has_execution_1): Change parameter type to
10427 inferior pointer.
10428 (target_has_execution_current): Adjust.
10429 * target.h (target_ops::has_execution): Change parameter type to
10430 inferior pointer.
10431 (target_has_execution_1): Change parameter type to inferior
10432 pointer. Change return type to bool.
10433 * tracefile.h (tracefile_target::has_execution): Change parameter
10434 type to inferior pointer.
10435
74375d18
PA
104362020-01-10 Pedro Alves <palves@redhat.com>
10437
10438 * exceptions.c (print_flush): Remove current_top_target() check.
10439
acdf84a6
PA
104402020-01-10 Pedro Alves <palves@redhat.com>
10441
10442 * remote.c (show_remote_exec_file): Show the current inferior's
10443 exec-file instead of the command variable's value.
10444
ec506636
PA
104452020-01-10 Pedro Alves <palves@redhat.com>
10446
10447 * record-full.c (record_full_resume_ptid): New global.
10448 (record_full_target::resume): Set it.
10449 (record_full_wait_1): Use record_full_resume_ptid instead of
10450 inferior_ptid.
10451
873657b9
PA
104522020-01-10 Pedro Alves <palves@redhat.com>
10453
10454 * gdbthread.h (scoped_restore_current_thread)
10455 <dont_restore, restore, m_dont_restore>: Declare.
10456 * thread.c (thread_alive): Add assertion. Return bool.
10457 (switch_to_thread_if_alive): New.
10458 (prune_threads): Switch inferior/thread.
10459 (print_thread_info_1): Switch thread before calling target methods.
10460 (scoped_restore_current_thread::restore): New, factored out from
10461 ...
10462 (scoped_restore_current_thread::~scoped_restore_current_thread):
10463 ... this.
10464 (scoped_restore_current_thread::scoped_restore_current_thread):
10465 Add assertion.
10466 (thread_apply_all_command, thread_select): Use
10467 switch_to_thread_if_alive.
10468
7f0ae84c
GB
104692020-01-10 George Barrett <bob@bob131.so>
10470
10471 * stap-probe.c (stap_modify_semaphore): Don't check for null
10472 semaphores.
10473 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10474 for null semaphores.
10475
f5a7c406
AB
104762020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10477
10478 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10479 all source windows, and maintain horizontal scroll status while
10480 doing so.
10481
9ae6bf64
TT
104822020-01-09 Tom Tromey <tom@tromey.com>
10483
10484 PR tui/18932:
10485 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10486 update_source_window, not print_source_lines.
10487
b2efe70c
AB
104882020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10489
10490 * tui/tui.c (tui_enable): Register tui hooks after calling
10491 tui_display_main.
10492
5f23a082
CB
104932020-01-09 Christian Biesinger <cbiesinger@google.com>
10494
10495 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10496
3061113b
SM
104972020-01-08 Simon Marchi <simon.marchi@efficios.com>
10498
10499 * thread.c (print_thread_info_1): Fix indentation.
10500
57d75002
CB
105012020-01-09 Christian Biesinger <cbiesinger@google.com>
10502
10503 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10504 unique_xmalloc_ptr outside the if to always free the demangled name.
10505
6a053cb1
TT
105062020-01-08 Tom Tromey <tromey@adacore.com>
10507
10508 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10509 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10510 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10511 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10512 Remove.
10513 (section_offsets): New typedef.
10514 * symtab.c (fixup_section, get_msymbol_address): Update.
10515 * symmisc.c (dump_msymbols): Update.
10516 * symfile.h (relative_addr_info_to_section_offsets)
10517 (symfile_map_offsets_to_segments): Update.
10518 * symfile.c (build_section_addr_info_from_objfile)
10519 (init_objfile_sect_indices): Update.
10520 (struct place_section_arg): Change type of "offsets".
10521 (place_section): Update.
10522 (relative_addr_info_to_section_offsets): Change type of
10523 "section_offsets". Remove "num_sections" parameter.
10524 (default_symfile_offsets, syms_from_objfile_1)
10525 (set_objfile_default_section_offset): Update.
10526 (reread_symbols): No need to preserve section offsets by hand.
10527 (symfile_map_offsets_to_segments): Change type of "offsets".
10528 * stap-probe.c (relocate_address): Update.
10529 * stabsread.h (process_one_symbol): Update.
10530 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10531 (solib_target_relocate_section_addresses): Update.
10532 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10533 Update.
10534 * solib-frv.c (frv_relocate_main_executable): Update.
10535 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10536 * solib-aix.c (solib_aix_get_section_offsets): Change return
10537 type.
10538 (solib_aix_solib_create_inferior_hook): Update.
10539 * remote.c (remote_target::get_offsets): Update.
10540 * psymtab.c (find_pc_sect_psymtab): Update.
10541 * psympriv.h (struct partial_symbol) <address, text_low,
10542 text_high>: Update.
10543 * objfiles.h (obj_section_offset): Update.
10544 (struct objfile) <section_offsets>: Change type.
10545 <num_sections>: Remove.
10546 (objfile_relocate): Update.
10547 * objfiles.c (entry_point_address_query): Update
10548 (relocate_one_symbol): Change type of "section_offsets".
10549 (objfile_relocate1, objfile_relocate1): Change type of
10550 "new_offsets".
10551 (objfile_rebase1): Update.
10552 * mipsread.c (mipscoff_symfile_read): Update.
10553 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10554 parameter.
10555 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10556 (parse_external, psymtab_to_symtab_1): Update.
10557 * machoread.c (macho_symfile_offsets): Update.
10558 * ia64-tdep.c (ia64_find_unwind_table): Update.
10559 * hppa-tdep.c (read_unwind_info): Update.
10560 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10561 * dwarf2read.c (create_addrmap_from_index)
10562 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10563 (process_psymtab_comp_unit_reader, add_partial_symbol)
10564 (add_partial_subprogram, process_full_comp_unit)
10565 (read_file_scope, read_func_scope, read_lexical_block_scope)
10566 (read_call_site_scope, dwarf2_rnglists_process)
10567 (dwarf2_ranges_process, dwarf2_ranges_read)
10568 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10569 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10570 Update.
10571 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10572 Update.
10573 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10574 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10575 (process_one_symbol): Change type of "section_offsets".
10576 * ctfread.c (get_objfile_text_range): Update.
10577 * coffread.c (coff_symtab_read, enter_linenos)
10578 (process_coff_symbol): Update.
10579 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10580 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10581
456e800a
TT
105822020-01-08 Tom Tromey <tromey@adacore.com>
10583
10584 * dwarf2read.c (parse_macro_definition): Use std::string.
10585 (parse_macro_definition): Likewise.
10586
6dfa2fc2
TT
105872020-01-08 Tom Tromey <tromey@adacore.com>
10588
10589 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10590 (ATTR_ALLOC_CHUNK): Remove.
10591
421d1616
TT
105922020-01-08 Tom Tromey <tromey@adacore.com>
10593
10594 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10595
43816ebc
TT
105962020-01-08 Tom Tromey <tromey@adacore.com>
10597
10598 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10599 (dwarf2_compute_name, open_dwo_file): Likewise.
10600 (process_enumeration_scope): Use std::vector.
10601 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10602 (partial_die_info::fixup, dwarf2_start_subfile)
10603 (guess_full_die_structure_name, dwarf2_name): Likewise.
10604 (determine_prefix): Update.
10605 (guess_full_die_structure_name): Make return type const.
10606 (partial_die_full_name): Return unique_xmalloc_ptr.
10607 (DW_FIELD_ALLOC_CHUNK): Remove.
10608
4212d509
TT
106092020-01-07 Tom Tromey <tromey@adacore.com>
10610
10611 PR build/24937:
10612 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10613
06a6207a
JT
106142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10615
10616 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10617
153d79c4
AB
106182020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10619
10620 * stack.c (print_frame_info): Move disassemble_next_line code
10621 inside source_print block.
10622
66182876
EZ
106232020-01-06 Eli Zaretskii <eliz@gnu.org>
10624
10625 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10626 gdb/signals.h, as we are now using native signal symbols.
10627
cbfa8581
SV
106282020-01-06 Shahab Vahedi <shahab@synopsys.com>
10629
10630 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10631 overflow by an early check of content vs threshold.
aac66a4c 10632 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10633 Likewise.
10634
3f602821
EZ
106352020-01-06 Eli Zaretskii <eliz@gnu.org>
10636
10637 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10638
a08c904d
JT
106392020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10640
10641 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10642 export table if no section contains it's RVA.
10643
89a65580
EZ
106442020-01-06 Eli Zaretskii <eliz@gnu.org>
10645
10646 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10647
8b7fcda2
HD
106482020-01-06 Hannes Domani <ssbssa@yahoo.de>
10649
10650 * source.c (print_source_lines_base): Set last_line_listed.
10651
a61b4f69
SV
106522020-01-06 Shahab Vahedi <shahab@synopsys.com>
10653
10654 * tui/tui-disasm.c: Remove trailing spaces.
10655
559e7e50
EZ
106562020-01-06 Eli Zaretskii <eliz@gnu.org>
10657 Pedro Alves <palves@redhat.com>
10658
10659 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10660 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10661 (windows_gdb_signal_to_target): New function, uses the above
10662 enumeration to convert GDB internal signal codes to equivalent
10663 Windows codes.
10664 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10665 * windows-nat.c: Include "gdb_wait.h".
10666 (get_windows_debug_event): Extract the fatal exception from the
10667 exit status and convert to the equivalent Posix signal number.
10668 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10669 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10670 * gdbsupport/gdb_wait.c: New file, implements
10671 windows_status_to_termsig.
10672 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10673 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10674
f2302a34
AB
106752020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10676
10677 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10678 show_layout.
10679
6a5206eb
LM
106802020-01-05 Luis Machado <luis.machado@linaro.org>
10681
10682 * aarch64-linux-nat.c
10683 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10684 and bfd_mach_aarch64.
10685
6ec1d75e
PW
106862020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10687
10688 * ui-file.c (stdio_file::can_emit_style_escape)
10689 (tee_file::can_emit_style_escape): Ensure style is used also on
10690 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10691 to gdb_stdout.
10692 * main.c (set_gdb_data_directory): Use file style to output the
10693 warning that the given pathname is not a directory.
10694 * top.c (show_history_filename, gdb_safe_append_history)
10695 (show_gdb_datadir): Use file style.
10696
44f81a76
HD
106972020-01-03 Hannes Domani <ssbssa@yahoo.de>
10698
10699 * solib-target.c (struct lm_info_target):
10700 Change offsets to be a unique_xmalloc_ptr.
10701 (solib_target_relocate_section_addresses): Update.
10702
25057eb0
HD
107032020-01-03 Hannes Domani <ssbssa@yahoo.de>
10704
10705 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10706
6e2118f5
BE
107072020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10708
10709 * MAINTAINERS (Write After Approval): Add myself.
10710
8133c7dc
LM
107112020-01-02 Luis Machado <luis.machado@linaro.org>
10712
10713 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10714 Cell BE architecture.
10715 * target.h (struct target_ops) <thread_architecture>: Likewise.
10716
48189bec
HD
107172020-01-01 Hannes Domani <ssbssa@yahoo.de>
10718
10719 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10720
ead1063b
HD
107212020-01-01 Hannes Domani <ssbssa@yahoo.de>
10722
10723 * MAINTAINERS (Write After Approval): Add myself.
10724
e5d78223
JB
107252020-01-01 Joel Brobecker <brobecker@adacore.com>
10726
10727 * gdbarch.sh: Update copyright year range of generated files.
10728
b811d2c2
JB
107292020-01-01 Joel Brobecker <brobecker@adacore.com>
10730
10731 Update copyright year range in all GDB files.
10732
5f4def5c
JB
107332020-01-01 Joel Brobecker <brobecker@adacore.com>
10734
10735 * copyright.py: Convert to Python 3.
10736
51fd4002
JB
107372020-01-01 Joel Brobecker <brobecker@adacore.com>
10738
10739 * copyright.py: Adapt after move of gnulib directory from gdb
10740 directory to toplevel directory.
10741
5fb651f2
JB
107422020-01-01 Joel Brobecker <brobecker@adacore.com>
10743
10744 * copyright.py (main): Exit if run from the wrong directory.
10745
5dd8bf88
JB
107462020-01-01 Joel Brobecker <brobecker@adacore.com>
10747
10748 * top.c (print_gdb_version): Change copyright year to 2020.
10749
9f71dacb 107502020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10751
9f71dacb 10752 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10753
9f71dacb 10754For older changes see ChangeLog-2019.
c906108c
SS
10755\f
10756Local Variables:
10757mode: change-log
10758left-margin: 8
10759fill-column: 74
10760version-control: never
57da7796 10761coding: utf-8
c906108c 10762End:
This page took 3.250021 seconds and 4 git commands to generate.