Change readelf's display of symbol names (when not in --wide mode) so that if they...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1cdf9e33
TT
12020-07-01 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5
32c1e210
TT
62020-07-01 Tom Tromey <tom@tromey.com>
7
8 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
9 tui_gen_win_info.
10 (tui_win_info::make_window): Merge with
11 tui_gen_win_info::make_window.
12 (tui_win_info::make_visible): Move from tui_gen_win_info.
13 * tui/tui-win.c (tui_win_info::max_width): Move from
14 tui_gen_win_info.
15 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
16 type.
17 <window_factory>: Likewise.
18 * tui/tui-layout.c (tui_win_info::resize): Move from
19 tui_gen_win_info.
20 (make_standard_window): Change return type.
21 (get_locator_window, tui_get_window_by_name): Likewise.
22 (tui_layout_window::apply): Remove a cast.
23 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
24 (struct tui_win_info): Merge with tui_gen_win_info.
25 (struct tui_gen_win_info): Remove.
26
a30cb6da
TT
272020-07-01 Tom Tromey <tom@tromey.com>
28
29 * tui/tui-stack.h (struct tui_locator_window): Derive from
30 tui_win_info.
31 <do_scroll_horizontal, do_scroll_vertical>: New methods.
32 <can_box>: New method.
33
1eb2161f
TT
342020-07-01 Tom Tromey <tom@tromey.com>
35
36 * tui/tui-stack.h (struct tui_locator_window): Remove body.
37
7134f2eb
TT
382020-07-01 Tom Tromey <tom@tromey.com>
39
40 * tui/tui-regs.c (tui_data_window::display_registers_from)
41 (tui_data_window::display_registers_from)
42 (tui_data_window::first_data_item_displayed)
43 (tui_data_window::delete_data_content_windows): Update.
44 (tui_data_window::refresh_window, tui_data_window::no_refresh):
45 Remove.
46 (tui_data_window::check_register_values): Update.
47 (tui_data_item_window::rerender): Add parameters. Update.
48 (tui_data_item_window::refresh_window): Remove.
49 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
50 virtual.
51 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
52 tui_gen_win_info.
53 <refresh_window, max_height, min_height>: Remove.
54 <rerender>: Add parameters.
55 <x, y, visible>: New members.
56 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
57 <m_item_width>: New member.
58
22b7b041
TT
592020-07-01 Tom Tromey <tom@tromey.com>
60
61 * tui/tui-regs.c (tui_data_window::show_register_group)
62 (tui_data_window::check_register_values): Update.
63 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
64 from item_no.
65
c9753adb
TT
662020-07-01 Tom Tromey <tom@tromey.com>
67
68 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
69 useless "if".
70
9ab26b4a
TT
712020-07-01 Tom Tromey <tom@tromey.com>
72
73 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
74 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
75
e555083f
TT
762020-07-01 Tom Tromey <tom@tromey.com>
77
78 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
79 * tui/tui-winsource.h (enum tui_line_or_address_kind)
80 (struct tui_line_or_address): Move from tui-data.h.
81 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
82 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
83 (tui_cmd_window, tui_source_window_base, tui_source_window)
84 (tui_disasm_window): Don't declare.
85 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
86 to tui-winsource.h.
87 (SINGLE_KEY): Move to tui-stack.c.
88
7a02bab7
TT
892020-07-01 Tom Tromey <tom@tromey.com>
90
91 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
92 std::string.
93 * tui/tui-regs.c (class tab_expansion_file): New.
94 (tab_expansion_file::write): New method.
95 (tui_register_format): Change return type. Use
96 tab_expansion_file.
97 (tui_get_register, tui_data_window::display_registers_from)
98 (tui_data_item_window::rerender): Update.
99 * tui/tui-io.h (tui_expand_tabs): Don't declare.
100 * tui/tui-io.c (tui_expand_tabs): Remove.
101
ea68593b
TT
1022020-07-01 Tom Tromey <tom@tromey.com>
103
104 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
105
a8caed5d
FS
1062020-07-01 Fangrui Song <maskray@google.com>
107
108 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
109
9cdf9820
AKS
1102020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
111
112 * dwarf2/read.c (set_die_type): Removed conditions to restrict
113 forms for DW_AT_associated and DW_AT_allocated attributes,
114 which is already checked in function attr_to_dynamic_prop.
115
a1520ad8
TT
1162020-06-30 Tom Tromey <tromey@adacore.com>
117
118 * dwarf2/read.c (quirk_rust_enum): Correctly call
119 alloc_rust_variant for default-less enum.
120
5ac58899
TT
1212020-06-30 Tom Tromey <tromey@adacore.com>
122
123 PR build/26183:
124 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
125 gdb::to_string.
126
19b187a9
SM
1272020-06-29 Simon Marchi <simon.marchi@efficios.com>
128
129 * gdbarch.sh (displaced_step_copy_insn): Update doc.
130 * gdbarch.h: Re-generate.
131
cd4c4c07
TT
1322020-06-28 Tom Tromey <tom@tromey.com>
133
134 * command.h (cmd_types): Remove.
135 (cmd_type): Don't declare.
136 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
137 typedef.
138 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
139 * cli/cli-decode.c (cmd_type): Remove.
140
05779d57
PA
1412020-06-27 Pedro Alves <palves@redhat.com>
142
143 * fork-child.c (prefork_hook): Adjust.
144 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
145 Delete.
146 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
147 * inferior.c (inferior::set_tty, inferior::tty): New methods.
148 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
149 Remove declarations.
150 (struct inferior) <set_tty, tty>: New methods.
151 (struct inferior) <terminal>: Rename to ...
152 (struct inferior) <m_terminal>: ... this and make private.
153 * main.c (captured_main_1): Adjust.
154 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
155 (mi_cmd_inferior_tty_show): Adjust.
156 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
157 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
158
1776e3e5
NA
1592020-06-26 Nick Alcock <nick.alcock@oracle.com>
160
161 * configure.ac: Add --enable-libctf: handle --disable-static
162 properly.
163 * acinclude.m4: sinclude ../config/enable.m4.
164 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
165 (LIBCTF): Substitute in.
166 (CTF_DEPS): New, likewise.
167 (CLIBS): libctf needs symbols from libbfd: move earlier.
168 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
169 flags.
170 * ctfread.c: Surround in ENABLE_LIBCTF.
171 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
172 * configure: Regenerate.
173 * config.in: Likewise.
174
58373b80
SM
1752020-06-25 Simon Marchi <simon.marchi@efficios.com>
176
177 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
178
277474ee
SM
1792020-06-25 Simon Marchi <simon.marchi@efficios.com>
180
181 * inferior.h (struct inferior) <terminal>: Change type to
182 gdb::unique_xmalloc_ptr<char>.
183 * inferior.c (inferior::~inferior): Don't free inf->terminal.
184 * infcmd.c (set_inferior_io_terminal): Don't free terminal
185 field, adjust to unique pointer.
186 (get_inferior_io_terminal): Adjust to unique pointer.
187
6d74da72
AB
1882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * riscv-tdep.c (riscv_print_registers_info): Loop over all
191 registers, not just the known core set of registers.
192
2e52d038
AB
1932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
196 fflags, frm, and fcsr registers.
197 (riscv_register_reggroup_p): Remove unknown CSRs from save and
198 restore groups.
199 (riscv_tdesc_unknown_reg): New function.
200 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
201 tdesc_use_registers.
202 * riscv-tdep.h (struct gdbarch_tdep): Add
203 unknown_csrs_first_regnum, unknown_csrs_count,
204 duplicate_fflags_regnum, duplicate_frm_regnum, and
205 duplicate_fcsr_regnum fields.
206
be64fd07
AB
2072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 * target-descriptions.c (tdesc_use_registers): Add new parameter a
210 callback, use the callback (when not null) to help number unknown
211 registers.
212 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
213 (tdesc_use_registers): Add extra parameter to declaration.
214
3b9fce96
AB
2152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
218 in the file.
219 (class riscv_pending_register_alias): Likewise.
220 (riscv_register_feature::register_info): Change 'required_p' field
221 to 'required', and change its type. Add 'check' member function.
222 (riscv_register_feature::register_info::check): Define new member
223 function.
224 (riscv_xreg_feature): Change initialisation of 'required' field.
225 (riscv_freg_feature): Likewise.
226 (riscv_virtual_feature): Likewise.
227 (riscv_csr_feature): Likewise.
228 (riscv_check_tdesc_feature): Take extra parameter, the csr
229 tdesc_feature, rewrite the function to use the new
230 riscv_register_feature::register_info::check function.
231 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
232
865bad26
AB
2332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * features/Makefile: Remove all references to the deleted files
236 below.
237 * features/riscv/32bit-csr.c: Deleted.
238 * features/riscv/32bit-csr.xml: Deleted.
239 * features/riscv/64bit-csr.c: Deleted.
240 * features/riscv/64bit-csr.xml: Deleted.
241 * features/riscv/rebuild-csr-xml.sh: Deleted.
242
ed69cbc8
AB
2432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
246 whitespace error for declaration of names member variable.
247 (struct riscv_register_feature): Add new prefer_first_name member
248 variable, and fix whitespace error in declaration of registers.
249 (riscv_xreg_feature): Initialize prefer_first_name field.
250 (riscv_freg_feature): Likewise.
251 (riscv_virtual_feature): Likewise.
252 (riscv_csr_feature): Likewise.
253 (riscv_register_name): Expand on comments. Remove register name
254 modifications for CSR and virtual registers.
255
4445e8f5
AB
2562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
259 errors.
260
767a879e
AB
2612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
264 riscv-opc.h.
265 (class riscv_pending_register_alias): New class.
266 (riscv_check_tdesc_feature): Take vector of pending aliases and
267 populate it as appropriate.
268 (riscv_setup_register_aliases): Delete.
269 (riscv_gdbarch_init): Create vector of pending aliases and pass it
270 to riscv_check_tdesc_feature in all cases. Use the vector to
271 create the register aliases.
272
bb6e55f3
RO
2732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
274
275 * sol2-tdep.c (sol2_static_transform_name): Remove.
276 (sol2_init_abi): Don't register it.
277 * gdbarch.sh (static_transform_name): Remove.
278 * gdbarch.c, gdbarch.h: Regenerate.
279
280 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
281 gdbarch_static_transform_name.
282 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
283 * stabsread.c (define_symbol) <'X'>: Remove.
284 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
285 handling.
286 <'V'>: Likewise.
287 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
288 <'S'>: Remove call to gdbarch_static_transform_name.
289
c6d36836
RO
2902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
291
292 * procfs.c (procfs_pre_trace): New function.
293 (procfs_target::create_inferior): Pass it to fork_inferior.
294
a7e6196b
RO
2952020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
296
297 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
298 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
299 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
300 sol2-tdep.o, sparc-sol2-tdep.o.
301 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
302 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
303 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
304 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
305
d412e696
RO
3062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
307
308 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
309 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
310 Call sol2_init_abi.
311 Remove calls to set_gdbarch_skip_solib_resolver,
312 set_gdbarch_core_pid_to_str.
313 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
314 (i386_sol2_static_transform_name): Remove.
315 (i386_sol2_init_abi): Call sol2_init_abi.
316 Remove calls to set_gdbarch_sofun_address_maybe_missing,
317 set_gdbarch_static_transform_name,
318 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
319 Use sol2_sigtramp_p.
320 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
321 (sol2_sigtramp_p): New function.
322 (sol2_static_transform_name): New function.
323 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
324 (sol2_init_abi): New function.
325 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
326 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
327 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
328 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
329 (sparc_sol2_static_transform_name): Remove.
330 (sparc32_sol2_init_abi): Call sol2_init_abi.
331 Remove calls to set_gdbarch_sofun_address_maybe_missing,
332 set_gdbarch_static_transform_name,
333 set_gdbarch_skip_solib_resolver,
334 set_gdbarch_core_pid_to_str.
335 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
336 (sparc_sol2_static_transform_name): Remove
337 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
338 call sol2_sigtramp_p.
339 (sparc64_sol2_init_abi): Call sol2_init_abi.
340 Remove calls to set_gdbarch_sofun_address_maybe_missing,
341 set_gdbarch_static_transform_name,
342 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
343
a8654e7d
PW
3442020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
345
346 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
347 * exec.c (validate_exec_file): If from_tty, set both
348 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
349 * symfile.c (symbol_file_add_with_addrs): if always_confirm
350 and from_tty, unconditionally ask a confirmation.
351
caa7fd04
AB
3522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * target-descriptions.c (tdesc_architecture_name): Protect against
355 NULL pointer dereference.
356 (maint_print_xml_tdesc_cmd): New function.
357 (_initialize_target_descriptions): Register new 'maint print
358 xml-tdesc' command and give it the filename completer.
359 * NEWS: Mention new 'maint print xml-tdesc' command.
360
fbf42f4e
AB
3612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * target-descriptions.c (class tdesc_compatible_info): New class.
364 (struct target_desc): Change type of compatible vector.
365 (tdesc_compatible_p): Update for change in type of
366 target_desc::compatible.
367 (tdesc_compatible_info_list): New function.
368 (tdesc_compatible_info_arch_name): New function.
369 (tdesc_add_compatible): Update for change in type of
370 target_desc::compatible.
371 (print_c_tdesc::visit_pre): Likewise.
372
20821f4e
AB
3732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
376 whitespace to underscore.
377 (maint_print_c_tdesc_cmd): Use fake filename for target
378 descriptions that came from the target.
379 (_initialize_target_descriptions): Add filename command completion
380 for 'maint print c-tdesc'.
381
1fb5ee62
SM
3822020-06-23 Simon Marchi <simon.marchi@efficios.com>
383
384 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
385 lines.
386
fc3ecb3e
SM
3872020-06-23 Simon Marchi <simon.marchi@efficios.com>
388
389 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
390 lines.
391 (dwarf2_find_location_expression): Likewise.
392 (call_site_parameter_matches): Likewise.
393 (dwarf2_compile_expr_to_ax): Likewise.
394 (disassemble_dwarf_expression): Likewise.
395 (loclist_describe_location): Likewise.
396
236ef034
PA
3972020-06-23 Pedro Alves <palves@redhat.com>
398
399 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
400 progspace-and-thread.h. Include scoped-mock-context.h instead.
401 (register_to_value_test): Use scoped_mock_context.
402 * regcache.c: Include "scoped-mock-context.h".
403 (cooked_read_test): Don't error out if a target is already pushed.
404 Use scoped_mock_context. Adjust.
405 * scoped-mock-context.h: New file.
406
39e7ecca
AB
4072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
410 initializer.
411 (ada_language::is_string_type_p): New member function.
412 * c-lang.c (c_language_data): Delete la_is_string_type_p
413 initializer.
414 (cplus_language_data): Likewise.
415 (asm_language_data): Likewise.
416 (minimal_language_data): Likewise.
417 * d-lang.c (d_language_data): Likewise.
418 * f-lang.c (f_is_string_type_p): Delete function, implementation
419 moved to f_language::is_string_type_p.
420 (f_language_data): Delete la_is_string_type_p initializer.
421 (f_language::is_string_type_p): New member function,
422 implementation from f_is_string_type_p.
423 * go-lang.c (go_is_string_type_p): Delete function, implementation
424 moved to go_language::is_string_type_p.
425 (go_language_data): Delete la_is_string_type_p initializer.
426 (go_language::is_string_type_p): New member function,
427 implementation from go_is_string_type_p.
428 * language.c (language_defn::is_string_type_p): Define new member
429 function.
430 (default_is_string_type_p): Make static, add comment copied from
431 header file.
432 (unknown_language_data): Delete la_is_string_type_p initializer.
433 (unknown_language::is_string_type_p): New member function.
434 (auto_language_data): Delete la_is_string_type_p initializer.
435 (auto_language::is_string_type_p): New member function.
436 * language.h (language_data): Delete la_is_string_type_p field.
437 (language_defn::is_string_type_p): Declare new function.
438 (default_is_string_type_p): Delete desclaration, move comment to
439 definition.
440 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
441 moved to m2_language::is_string_type_p.
442 (m2_language_data): Delete la_is_string_type_p initializer.
443 (m2_language::is_string_type_p): New member function,
444 implementation from m2_is_string_type_p.
445 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
446 initializer.
447 * opencl-lang.c (opencl_language_data): Likewise.
448 * p-lang.c (pascal_is_string_type_p): Delete function,
449 implementation moved to pascal_language::is_string_type_p.
450 (pascal_language_data): Delete la_is_string_type_p initializer.
451 (pascal_language::is_string_type_p): New member function,
452 implementation from pascal_is_string_type_p.
453 * rust-lang.c (rust_is_string_type_p): Delete function,
454 implementation moved to rust_language::is_string_type_p.
455 (rust_language_data): Delete la_is_string_type_p initializer.
456 (rust_language::is_string_type_p): New member function,
457 implementation from rust_is_string_type_p.
458 * valprint.c (val_print_scalar_or_string_type_p): Update call to
459 is_string_type_p.
460
4ffc13fb
AB
4612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
462
463 * ada-lang.c (ada_language_data): Delete la_print_typedef
464 initializer.
465 (ada_language::print_typedef): New member function.
466 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
467 (cplus_language_data): Likewise.
468 (asm_language_data): Likewise.
469 (minimal_language_data): Likewise.
470 * d-lang.c (d_language_data): Likewise.
471 * f-lang.c (f_language_data): Likewise.
472 (f_language::print_typedef): New member function.
473 * go-lang.c (go_language_data): Delete la_print_typedef
474 initializer.
475 * language.c (language_defn::print_typedef): Define member
476 function.
477 (unknown_language_data): Delete la_print_typedef initializer.
478 (unknown_language::print_typedef): New member function.
479 (auto_language_data): Delete la_print_typedef initializer.
480 (auto_language::print_typedef): New member function.
481 * language.h (language_data): Delete la_print_typedef field.
482 (language_defn::print_typedef): Declare new member function.
483 (LA_PRINT_TYPEDEF): Update call to print_typedef.
484 (default_print_typedef): Delete declaration.
485 * m2-lang.c (m2_language_data): Delete la_print_typedef
486 initializer.
487 (m2_language::print_typedef): New member function.
488 * objc-lang.c (objc_language_data): Delete la_print_typedef
489 initializer.
490 * opencl-lang.c (opencl_language_data): Likewise.
491 * p-lang.c (pascal_language_data): Likewise.
492 (pascal_language::print_typedef): New member function.
493 * rust-lang.c (rust_print_typedef): Delete function,
494 implementation moved to rust_language::print_typedef.
495 (rust_language): Delete la_print_typedef initializer.
496 (rust_language::print_typedef): New member function,
497 implementation from rust_print_typedef.
498 * typeprint.c (default_print_typedef): Delete.
499
d711ee67
AB
5002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
503 (ada_language::printstr): New member function.
504 * c-lang.c (c_language_data): Delete la_printstr initializer.
505 (cplus_language_data): Likewise.
506 (asm_language_data): Likewise.
507 (minimal_language_data): Likewise.
508 * d-lang.c (d_language_data): Likewise.
509 * f-lang.c (f_printstr): Rename to f_language::printstr.
510 (f_language_data): Delete la_printstr initializer.
511 (f_language::printstr): New member function, implementation from
512 f_printstr.
513 * go-lang.c (go_language_data): Delete la_printstr initializer.
514 * language.c (language_defn::printstr): Define new member
515 function.
516 (unk_lang_printstr): Delete.
517 (unknown_language_data): Delete la_printstr initializer.
518 (unknown_language::printstr): New member function.
519 (auto_language_data): Delete la_printstr initializer.
520 (auto_language::printstr): New member function.
521 * language.h (language_data): Delete la_printstr field.
522 (language_defn::printstr): Declare new member function.
523 (LA_PRINT_STRING): Update call to printstr.
524 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
525 (m2_language_data): Delete la_printstr initializer.
526 (m2_language::printstr): New member function, implementation from
527 m2_printstr.
528 * objc-lang.c (objc_language_data): Delete la_printstr
529 initializer.
530 * opencl-lang.c (opencl_language_data): Likewise.
531 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
532 (pascal_language_data): Delete la_printstr initializer.
533 (pascal_language::printstr): New member function, implementation
534 from pascal_printstr.
535 * p-lang.h (pascal_printstr): Delete declaration.
536 * rust-lang.c (rust_printstr): Update header comment.
537 (rust_language_data): Delete la_printstr initializer.
538 (rust_language::printstr): New member function.
539
52b50f2c
AB
5402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
543 (ada_language::printchar): New member function.
544 * c-lang.c (c_language_data): Delete la_printchar initializer.
545 (cplus_language_data): Likewise.
546 (asm_language_data): Likewise.
547 (minimal_language_data): Likewise.
548 * d-lang.c (d_language_data): Likewise.
549 * f-lang.c (f_printchar): Rename to f_language::printchar.
550 (f_language_data): Delete la_printchar initializer.
551 (f_language::printchar): New member function, implementation from
552 f_printchar.
553 * go-lang.c (go_language_data): Delete la_printchar initializer.
554 * language.c (unk_lang_printchar): Delete.
555 (language_defn::printchar): Define new member function.
556 (unknown_language_data): Delete la_printchar initializer.
557 (unknown_language::printchar): New member function.
558 (auto_language_data): Delete la_printchar initializer.
559 (auto_language::printchar): New member function.
560 * language.h (language_data): Delete la_printchar field.
561 (language_defn::printchar): Declare new member function.
562 (LA_PRINT_CHAR): Update call to printchar.
563 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
564 (m2_language::printchar): New member function.
565 * objc-lang.c (objc_language_data): Delete la_printchar
566 initializer.
567 * opencl-lang.c (opencl_language_data): Likewise.
568 * p-lang.c (pascal_language_data): Delete la_printchar
569 initializer.
570 (pascal_language::printchar): New member function.
571 * rust-lang.c (rust_printchar): Rename to
572 rust_language::printchar.
573 (rust_language_data): Delete la_printchar initializer.
574 (rust_language::printchar): New member function, implementation
575 from rust_printchar.
576
ec8cec5b
AB
5772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
580 (ada_language_data): Delete la_emitchar initializer.
581 (ada_language::emitchar): New member function, implementation from
582 emit_char.
583 * c-lang.c (c_language_data): Delete la_emitchar initializer.
584 (cplus_language_data): Likewise.
585 (asm_language_data): Likewise.
586 (minimal_language_data): Likewise.
587 * d-lang.c (d_language_data): Likewise.
588 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
589 (f_language_data): Delete la_emitchar initializer.
590 (f_language::emitchar): New member function, implementation from
591 f_emit_char.
592 * go-lang.c (go_language_data): Delete la_emitchar initializer.
593 * language.c (unk_lang_emit_char): Delete.
594 (language_defn::emitchar): New member function definition.
595 (unknown_language_data): Delete la_emitchar initializer.
596 (unknown_language::emitchar): New member function.
597 (auto_language_data): Delete la_emitchar initializer.
598 (auto_language::emitchar): New member function.
599 * language.h (language_data): Delete la_emitchar field.
600 (language_defn::emitchar): New member field declaration.
601 (LA_EMIT_CHAR): Update call to emitchar.
602 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
603 (m2_language_data): Delete la_emitchar initializer.
604 (m2_language::emitchar): New member function, implementation from
605 m2_emit_char.
606 * objc-lang.c (objc_language_data): Delete la_emitchar
607 initializer.
608 * opencl-lang.c (opencl_language_data): Likewise.
609 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
610 (pascal_language_data): Delete la_emitchar initializer.
611 (pascal_language::emitchar): New member function, implementation
612 from pascal_emit_char.
613 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
614 (rust_language_data): Delete la_emitchar initializer.
615 (rust_language::emitchar): New member function, implementation
616 from rust_emitchar.
617
1bf9c363
AB
6182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * ada-lang.c (resolve): Rename to ada_language::post_parser.
621 (ada_language_data): Delete la_post_parser initializer.
622 (ada_language::post_parser): New member function.
623 * c-lang.c (c_language_data): Delete la_post_parser initializer.
624 (cplus_language_data): Likewise.
625 (asm_language_data): Likewise.
626 (minimal_language_data): Likewise.
627 * d-lang.c (d_language_data): Likewise.
628 * f-lang.c (f_language_data): Likewise.
629 * go-lang.c (go_language_data): Likewise.
630 * language.c (unknown_language_data): Likewise.
631 (auto_language_data): Likewise.
632 * language.h (language_data): Delete la_post_parser field.
633 (language_defn::post_parser): New member function.
634 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
635 * objc-lang.c (objc_language_data): Likewise.
636 * opencl-lang.c (opencl_language_data): Likewise.
637 * p-lang.c (pascal_language_data): Likewise.
638 * parse.c (parse_exp_in_context): Update call to post_parser.
639 (null_post_parser): Delete definition.
640 * parser-defs.h (null_post_parser): Delete declaration.
641 * rust-lang.c (rust_language_data): Delete la_post_parser
642 initializer.
643
87afa652
AB
6442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 * ada-lang.c (parse): Rename to ada_language::parser.
647 (ada_language_data): Delete la_parser initializer.
648 (ada_language::parser): New member function, implementation from
649 parse.
650 * c-lang.c (c_language_data): Delete la_parser initializer.
651 (cplus_language_data): Likewise.
652 (asm_language_data): Likewise.
653 (minimal_language_data): Likewise.
654 * d-lang.c (d_language_data): Likewise.
655 (d_language::parser): New member function.
656 * f-lang.c (f_language_data): Delete la_parser initializer.
657 (f_language::parser): New member function.
658 * go-lang.c (go_language_data): Delete la_parser initializer.
659 (go_language::parser): New member function.
660 * language.c (unk_lang_parser): Delete.
661 (language_defn::parser): Define new member function.
662 (unknown_language_data): Delete la_parser initializer.
663 (unknown_language::parser): New member function.
664 (auto_language_data): Delete la_parser initializer.
665 (auto_language::parser): New member function.
666 * language.h (language_data): Delete la_parser field.
667 (language_defn::parser): Declare new member function.
668 * m2-lang.c (m2_language_data): Delete la_parser initializer.
669 (m2_language::parser): New member function.
670 * objc-lang.c (objc_language_data): Delete la_parser initializer.
671 * opencl-lang.c (opencl_language_data): Likewise.
672 * p-lang.c (pascal_language_data): Likewise.
673 (pascal_language::parser): New member function.
674 * parse.c (parse_exp_in_context): Update call to parser.
675 * rust-lang.c (rust_language_data): Delete la_parser initializer.
676 (rust_language::parser): New member function.
677
37825800
AB
6782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
679
680 * top.c (print_gdb_configuration): Print --with-python-libdir
681 configuration value.
682
5b860c93
PW
6832020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
684
685 * NEWS: Mention change to the alias command.
686
cf00cd6f
PW
6872020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
688
689 * cli/cli-cmds.c (lookup_cmd_for_default_args)
690 (alias_command_completer)
691 (make_alias_options_def_group): New functions.
692 (alias_opts, alias_option_defs): New struct and array.
693 (alias_usage_error): Update usage.
694 (alias_command): Handles optional DEFAULT-ARGS... arguments.
695 Use option framework.
696 (_initialize_cli_cmds): Update alias command help.
697 Update aliases command help.
698 (show_user):
699 Add NULL for new default_args lookup_cmd argument.
700 (valid_command_p): Rename to validate_aliased_command.
701 Add NULL for new default_args lookup_cmd argument. Verify that the
702 aliased_command has no default args.
703 * cli/cli-decode.c (help_cmd): Show aliases definitions.
704 (lookup_cmd_1, lookup_cmd): New argument default_args.
705 (add_alias_cmd):
706 Add NULL for new default_args lookup_cmd argument.
707 (print_help_for_command): Show default args under the layout
708 alias some_alias = some_aliased_cmd some_alias_default_arg.
709 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
710 xfree default_args in destructor.
711 * cli/cli-script.c (process_next_line, do_define_command):
712 Add NULL for new default_args lookup_cmd argument.
713 * command.h: Declare new default_args argument in lookup_cmd
714 and lookup_cmd_1.
715 * completer.c (complete_line_internal_1):
716 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
717 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
718 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
719 Likewise.
720 * infcmd.c (_initialize_infcmd): Likewise.
721 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
722 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
723 * python/py-param.c (add_setshow_generic): Likewise.
724 * remote.c (_initialize_remote): Likewise.
725 * top.c (execute_command): Prepend default_args if command has some.
726 (set_verbose):
727 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
728 * tracepoint.c (validate_actionline, encode_actions_1):
729 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
730
bd920864
TBA
7312020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
732
733 * jit.c (jit_read_descriptor): Use bool as the return type.
734 (jit_breakpoint_re_set_internal): Use bool as the return type.
735 Invert the return value logic; return true if the jit breakpoint
736 has been successfully initialized.
737 (jit_inferior_init): Update the call to
738 jit_breakpoint_re_set_internal.
739
f8098322
PA
7402020-06-22 Pedro Alves <palves@redhat.com>
741
742 PR gdb/25939
743 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
744 Use the current inferior instead. Don't return
745 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
746 wait again.
747 * sol-thread.c (sol_thread_target::wait): Don't reference
748 inferior_ptid.
749 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
750 (sol_update_thread_list_callback): Use the current inferior's pid
751 instead of inferior_ptid.
752
196535a6
RO
7532020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
754
755 * procfs.c: Cleanup many comments.
756
757 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
758 (AFTER_WATCHFLAG): Replace by value.
759
760 (MAIN_PROC_NAME_FORMAT): Inline ...
761 (create_procinfo): ... here.
762
763 (procfs_debug_inferior): Remove SYS_exec handling.
764 (syscall_is_exec): Likewise.
765 (procfs_set_exec_trap): Likewise.
766
767 (syscall_is_lwp_exit): Inline in callers.
768 (syscall_is_exit): Likewise.
769 (syscall_is_exec): Likewise.
770 (syscall_is_lwp_create): Likewise.
771
772 (invalidate_cache): Remove #if 0 code.
773
774 (make_signal_thread_runnable): Remove.
775 (procfs_target::resume): Remove #if 0 code.
776
cf6f3e86
RO
7772020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
778
779 PR gdb/25939
780 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
781 call ...
782 (procfs_target::create_inferior): ... here.
783
48e9cc84
PW
7842020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
785
786 * exec.c (validate_exec_file): Ensure the build-id is up to
787 date by calling reopen_exec_file (that checks file timestamp
788 to decide to re-read the file).
789
3922b302
PA
7902020-06-18 Pedro Alves <palves@redhat.com>
791
792 PR gdb/25412
793 * gdbthread.h (delete_thread, delete_thread_silent)
794 (find_thread_ptid): Update comments.
795 * thread.c (current_thread_): New global.
796 (is_current_thread): Move higher, and reimplement.
797 (inferior_thread): Reimplement.
798 (set_thread_exited): Use bool. Add assertions.
799 (add_thread_silent): Simplify thread-reuse handling by always
800 calling delete_thread.
801 (delete_thread): Remove intro comment.
802 (find_thread_ptid): Skip exited threads.
803 (switch_to_thread_no_regs): Write to current_thread_.
804 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
805 INFERIOR_PTID. Clear current_thread_.
806
6dbdab44
PA
8072020-06-18 Pedro Alves <palves@redhat.com>
808
809 * aix-thread.c (pd_update): Use switch_to_thread.
810
2da4b788
PA
8112020-06-18 Pedro Alves <palves@redhat.com>
812
813 * ravenscar-thread.c (ravenscar_thread_target): Update.
814 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
815 (ravenscar_thread_target::add_active_thread): ... this. Don't
816 set m_base_ptid here. Update to avoid referencing inferior_ptid.
817 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
818
50838d1b
PA
8192020-06-18 Pedro Alves <palves@redhat.com>
820
821 * nat/windows-nat.c (current_windows_thread): Remove.
822 * nat/windows-nat.h (current_windows_thread): Remove.
823 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
824 Adjust.
825 (display_selectors): Adjust to fetch the current
826 windows_thread_info based on inferior_ptid.
827 (fake_create_process): No longer write to current_windows_thread.
828 (windows_nat_target::get_windows_debug_event):
829 Don't set inferior_ptid or current_windows_thread.
830 (windows_nat_target::wait): Adjust to not rely on
831 current_windows_thread.
832 (do_initial_windows_stuff): Now a method of windows_nat_target.
833 Switch to the last_ptid thread.
834 (windows_nat_target::attach): Adjust.
835 (windows_nat_target::detach): Use switch_to_no_thread instead of
836 writing to inferior_ptid directly.
837 (windows_nat_target::create_inferior): Adjust.
838
31ce04e9
PA
8392020-06-18 Pedro Alves <palves@redhat.com>
840
841 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
842
1ee1a363
PA
8432020-06-18 Pedro Alves <palves@redhat.com>
844
845 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
846 after creating it, instead of writing to inferior_ptid. Don't
847 write to inferior_ptid.
848
6d350754
PA
8492020-06-18 Pedro Alves <palves@redhat.com>
850
851 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
852
5d971d48
PA
8532020-06-18 Pedro Alves <palves@redhat.com>
854
855 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
856 it, instead of writing to inferior_ptid.
857
86e57d1b
PA
8582020-06-18 Pedro Alves <palves@redhat.com>
859
860 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
861 to inferior_ptid.
862
f2e1c129
PA
8632020-06-18 Pedro Alves <palves@redhat.com>
864
865 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
866 instead of writing to inferior_ptid directly.
867
60db1b85
PA
8682020-06-18 Pedro Alves <palves@redhat.com>
869
870 * corelow.c (core_target::close): Use switch_to_no_thread instead
871 of writing to inferior_ptid directly.
872 (add_to_thread_list, core_target_open): Use switch_to_thread
873 instead of writing to inferior_ptid directly.
874
fe7d6a8d
PA
8752020-06-18 Pedro Alves <palves@redhat.com>
876
877 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
878 inferior_ptid.
879 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
880 inferior_ptid.
881 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
882 inferior_ptid directly.
883 (darwin_nat_target::init_thread_list): Switch to thread, instead
884 of writing to inferior_ptid.
885 (darwin_nat_target::attach): Don't write to inferior_ptid.
886 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
887
975f8708
PA
8882020-06-18 Pedro Alves <palves@redhat.com>
889
890 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
891 thread.
892 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
893 Instead use switch_to_thread.
894 (gnu_nat_target::detach): Use switch_to_no_thread
895 instead of writing to inferior_ptid directly. Used passed-in
896 inferior instead of looking up the inferior by pid.
897
1a204730
PA
8982020-06-18 Pedro Alves <palves@redhat.com>
899
900 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
901 inferior_ptid.
902
ebe84f23
PA
9032020-06-18 Pedro Alves <palves@redhat.com>
904
905 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
906 inferior_ptid.
907 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
908 thread.
909 (nto_procfs_target::detach): Avoid referencing
910 inferior_ptid. Use switch_to_no_thread instead of writing to
911 inferior_ptid directly.
912 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
913 instead of writing to inferior_ptid directly.
914 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
915 to thread.
916
191f02e5
PA
9172020-06-18 Pedro Alves <palves@redhat.com>
918
919 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
920 after creating it, instead of writing to inferior_ptid.
921 (gdbsim_target_open): Use switch_to_no_thread instead of writing
922 to inferior_ptid directly.
923 (gdbsim_target::wait): Don't write to inferior_ptid.
924
0ac55310
PA
9252020-06-18 Pedro Alves <palves@redhat.com>
926
927 * remote.c (remote_target::remote_notice_new_inferior): Use
928 switch_to_thread instead of writing to inferior_ptid directly.
929 (remote_target::add_current_inferior_and_thread): Use
930 switch_to_no_thread instead of writing to inferior_ptid directly.
931 (extended_remote_target::attach): Use switch_to_inferior_no_thread
932 and switch_to_thread instead of using set_current_inferior or
933 writing to inferior_ptid directly.
934
5233f39b
PA
9352020-06-18 Pedro Alves <palves@redhat.com>
936
937 * tracectf.c (ctf_target_open): Switch to added thread instead of
938 writing to inferior_ptid directly.
939 (ctf_target::close): Use switch_to_no_thread instead of writing to
940 inferior_ptid directly.
941
087e161b
PA
9422020-06-18 Pedro Alves <palves@redhat.com>
943
944 * tracefile-tfile.c (tfile_target_open): Don't write to
945 inferior_ptid directly, instead switch to added thread.
946 (tfile_target::close): Use switch_to_no_thread instead of writing
947 to inferior_ptid directly.
948
7fb43e53
PA
9492020-06-18 Pedro Alves <palves@redhat.com>
950
951 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
952 (procfs_target::detach): Use switch_to_no_thread
953 instead of writing to inferior_ptid directly.
954 (do_attach): Change return type to void. Switch to the added
955 thread.
956 (procfs_target::create_inferior): Switch to the added thread.
957 (procfs_do_thread_registers): Don't write to inferior_ptid.
958
18493a00
PA
9592020-06-18 Pedro Alves <palves@redhat.com>
960
961 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
962 of writing to inferior_ptid.
963 (scoped_restore_exited_inferior): Delete.
964 (handle_vfork_child_exec_or_exit): Simplify using
965 scoped_restore_current_pspace_and_thread. Use switch_to_thread
966 instead of writing to inferior_ptid.
967 (THREAD_STOPPED_BY): Delete.
968 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
969 (thread_stopped_by_hw_breakpoint): Delete.
970 (save_waitstatus): Use
971 scoped_restore_current_thread+switch_to_thread, and call
972 target_stopped_by_watchpoint instead of
973 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
974 instead of thread_stopped_by_sw_breakpoint, and
975 target_stopped_by_hw_breakpoint instead of
976 thread_stopped_by_hw_breakpoint.
977 (handle_inferior_event)
978 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
979 inferior_ptid directly, nor
980 set_current_inferior/set_current_program_space. Use
981 switch_to_thread / switch_to_inferior_no_thread instead.
982
a0776b13
PA
9832020-06-18 Pedro Alves <palves@redhat.com>
984
985 * target.c (generic_mourn_inferior): Use switch_to_no_thread
986 instead of writing to inferior_ptid.
987
6155c136
PA
9882020-06-18 Pedro Alves <palves@redhat.com>
989
990 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
991 added thread.
992 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
993 to the added thread.
994 (inf_ptrace_target::detach_success): Use switch_to_no_thread
995 instead of writing to inferior_ptid.
996
c5316fc6
PA
9972020-06-18 Pedro Alves <palves@redhat.com>
998
999 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1000 (register_to_value_test): Mock a program_space too. Heap-allocate
1001 the address space. Don't write to inferior_ptid. Use
1002 switch_to_thread instead.
1003
8df01799
PA
10042020-06-18 Pedro Alves <palves@redhat.com>
1005
1006 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1007 Delete.
1008 (find_signalled_thread()): New, factored out from
1009 linux_make_corefile_notes and adjusted to handle exited threads.
1010 (linux_make_corefile_notes): Adjust to use the new
1011 find_signalled_thread.
1012
41792d68
PA
10132020-06-18 Pedro Alves <palves@redhat.com>
1014
1015 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1016 of saving/restoring inferior_ptid.
1017
612f258a
TT
10182020-06-17 Tom Tromey <tom@tromey.com>
1019
1020 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1021 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1022 declare.
1023 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1024
efb763a5
SM
10252020-06-15 Simon Marchi <simon.marchi@efficios.com>
1026
1027 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1028 of partial symtabs.
1029
2951f6c0
SM
10302020-06-17 Simon Marchi <simon.marchi@efficios.com>
1031
1032 * regformats/reg-arm.dat: Remove.
1033 * regformats/reg-bfin.dat: Remove.
1034 * regformats/reg-cris.dat: Remove.
1035 * regformats/reg-crisv32.dat: Remove.
1036 * regformats/reg-m32r.dat: Remove.
1037 * regformats/reg-tilegx.dat: Remove.
1038 * regformats/reg-tilegx32.dat: Remove.
1039
7d458ea5
SM
10402020-06-17 Simon Marchi <simon.marchi@efficios.com>
1041
1042 * features/Makefile (WHICH): Remove arm files.
1043 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1044 * regformats/arm/arm-with-neon.dat: Remove.
1045 * regformats/arm/arm-with-vfpv2.dat: Remove.
1046 * regformats/arm/arm-with-vfpv3.dat: Remove.
1047
3af96c0d
SM
10482020-06-17 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * features/Makefile (XMLTOC): Remove rx.xml.
1051
b25e22fd
PA
10522020-06-17 Pedro Alves <palves@redhat.com>
1053
1054 * gdbthread.h (thread_control_state) <trap_expected> Update
1055 comments.
1056
a78a19b1
AB
10572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1060 ada_language::lookup_symbol_nonlocal.
1061 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1062 (ada_language::lookup_symbol_nonlocal): New member function,
1063 implementation from ada_lookup_symbol_nonlocal.
1064 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1065 initializer.
1066 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1067 initializer.
1068 (cplus_language::lookup_symbol_nonlocal): New member function.
1069 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1070 (minimal_language_data) Likewise.
1071 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1072 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1073 initializer.
1074 (d_language::lookup_symbol_nonlocal): New member function.
1075 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1076 initializer.
1077 (f_language::lookup_symbol_nonlocal): New member function.
1078 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1079 initializer.
1080 * language.c (unknown_language_data): Likewise.
1081 (auto_language_data): Likewise.
1082 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1083 field.
1084 (language_defn::lookup_symbol_nonlocal): New member function.
1085 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1086 initializer.
1087 * objc-lang.c (objc_language_data): Likewise.
1088 * opencl-lang.c (opencl_language_data): Likewise.
1089 * p-lang.c (pascal_language_data): Likewise.
1090 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1091 rust_language::lookup_symbol_nonlocal.
1092 (rust_language_data): Delete la_lookup_symbol_nonlocal
1093 initializer.
1094 (rust_language::lookup_symbol_nonlocal): New member function,
1095 implementation from rust_lookup_symbol_nonlocal.
1096 * symtab.c (lookup_symbol_aux): Update call to
1097 lookup_symbol_nonlocal.
1098 (basic_lookup_symbol_nonlocal): Rename to...
1099 (language_defn::lookup_symbol_nonlocal): ...this, and update
1100 header comment. Remove language_defn parameter, and replace with
1101 uses of `this'.
1102 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1103
ebe2334e
AB
11042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1107 initializer.
1108 (ada_language::value_print_inner): New member function.
1109 * c-lang.c (c_language_data): Delete la_value_print_inner
1110 initializer.
1111 (cplus_language_data): Likewise.
1112 (asm_language_data): Likewise.
1113 (minimal_language_data): Likewise.
1114 * d-lang.c (d_language_data): Likewise.
1115 (d_language::value_print_inner): New member function.
1116 * f-lang.c (f_language_data): Delete la_value_print_inner
1117 initializer.
1118 (f_language::value_print_inner): New member function.
1119 * f-lang.h (f_value_print_innner): Rename to...
1120 (f_value_print_inner): ...this (note spelling of 'inner').
1121 * f-valprint.c (f_value_print_innner): Rename to...
1122 (f_value_print_inner): ...this (note spelling of 'inner').
1123 * go-lang.c (go_language_data): Delete la_value_print_inner
1124 initializer.
1125 (go_language::value_print_inner): New member function.
1126 * language.c (language_defn::value_print_inner): Define new member
1127 function.
1128 (unk_lang_value_print_inner): Delete.
1129 (unknown_language_data): Delete la_value_print_inner initializer.
1130 (unknown_language::value_print_inner): New member function.
1131 (auto_language_data): Delete la_value_print_inner initializer.
1132 (auto_language::value_print_inner): New member function.
1133 * language.h (language_data): Delete la_value_print_inner field.
1134 (language_defn::value_print_inner): Delcare new member function.
1135 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1136 initializer.
1137 (m2_language::value_print_inner): New member function.
1138 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1139 initializer.
1140 * opencl-lang.c (opencl_language_data): Likewise.
1141 * p-lang.c (pascal_language_data): Likewise.
1142 (pascal_language::value_print_inner): New member function.
1143 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1144 initializer.
1145 (rust_language::value_print_inner): New member function.
1146 * valprint.c (do_val_print): Update call to value_print_inner.
1147
a1d1fa3e
AB
11482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * ada-lang.c (ada_language_data): Delete la_value_print
1151 initializer.
1152 (ada_language::value_print): New member function.
1153 * c-lang.c (c_language_data): Delete la_value_print initializer.
1154 (cplus_language_data): Likewise.
1155 (asm_language_data): Likewise.
1156 (minimal_language_data): Likewise.
1157 * d-lang.c (d_language_data): Likewise.
1158 * f-lang.c (f_language_data): Likewise.
1159 * go-lang.c (go_language_data): Likewise.
1160 * language.c (unk_lang_value_print): Delete.
1161 (language_defn::value_print): Define new member function.
1162 (unknown_language_data): Delete la_value_print initializer.
1163 (unknown_language::value_print): New member function.
1164 (auto_language_data): Delete la_value_print initializer.
1165 (auto_language::value_print): New member function.
1166 * language.h (language_data): Delete la_value_print field.
1167 (language_defn::value_print): Declare new member function.
1168 (LA_VALUE_PRINT): Update call to value_print.
1169 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1170 * objc-lang.c (objc_language_data): Likewise.
1171 * opencl-lang.c (opencl_language_data): Likewise.
1172 * p-lang.c (pascal_language_data): Likewise.
1173 (pascal_language::value_print): New member function.
1174 * rust-lang.c (rust_language_data): Delete la_value_print
1175 initializer.
1176
f16a9f57
AB
11772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * ada-lang.c (ada_watch_location_expression): Rename to
1180 ada_language::watch_location_expression.
1181 (ada_language_data): Delete la_watch_location_expression
1182 initializer.
1183 (ada_language::watch_location_expression): New member function,
1184 implementation from ada_watch_location_expression.
1185 * breakpoint.c (watch_command_1): Update call to
1186 watch_location_expression.
1187 * c-lang.c (c_watch_location_expression): Rename to
1188 language_defn::watch_location_expression.
1189 (c_language_data): Delete la_watch_location_expression
1190 initializer.
1191 (cplus_language_data): Likewise.
1192 (asm_language_data): Likewise.
1193 (minimal_language_data): Likewise.
1194 * c-lang.h (c_watch_location_expression): Delete declaration.
1195 * d-lang.c (d_language_data): Delete la_watch_location_expression
1196 initializer.
1197 * f-lang.c (f_language_data): Likewise.
1198 * go-lang.c (go_language_data): Likewise.
1199 * language.c (language_defn::watch_location_expression): Member
1200 function implementation from c_watch_location_expression.
1201 (unknown_language_data): Delete la_watch_location_expression
1202 initializer.
1203 (auto_language_data): Likewise.
1204 * language.h (language_data): Delete la_watch_location_expression
1205 field.
1206 (language_defn::watch_location_expression): Declare new member
1207 function.
1208 * m2-lang.c (m2_language_data): Delete
1209 la_watch_location_expression initializer.
1210 * objc-lang.c (objc_language_data): Likewise.
1211 * opencl-lang.c (opencl_language_data): Likewise.
1212 * p-lang.c (pascal_language_data): Likewise.
1213 * rust-lang.c (rust_watch_location_expression): Rename to
1214 rust_language::watch_location_expression.
1215 (rust_language_data): Delete la_watch_location_expression
1216 initializer.
1217 (rust_language::watch_location_expression): New member function,
1218 implementation from rust_watch_location_expression.
1219
7e56227d
AB
12202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1223 ada_language::collect_symbol_completion_matches.
1224 (ada_language_data): Delete la_collect_symbol_completion_matches
1225 initializer.
1226 (ada_language::collect_symbol_completion_matches): New member
1227 function, implementation from
1228 ada_collect_symbol_completion_matches.
1229 * c-lang.c (c_language_data): Delete
1230 la_collect_symbol_completion_matches initializer.
1231 (cplus_language_data): Likewise.
1232 (asm_language_data): Likewise.
1233 (minimal_language_data): Likewise.
1234 * d-lang.c (d_language_data): Likewise.
1235 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1236 f_language::collect_symbol_completion_matches.
1237 (f_language_data): Delete la_collect_symbol_completion_matches
1238 initializer.
1239 (f_language::collect_symbol_completion_matches) New member
1240 function, implementation from f_collect_symbol_completion_matches.
1241 * go-lang.c (go_language_data): Delete
1242 la_collect_symbol_completion_matches initializer.
1243 * language.c (unknown_language_data): Likewise.
1244 (auto_language_data): Likewise.
1245 * language.h (language_data): Delete
1246 la_collect_symbol_completion_matches field.
1247 (language_defn::collect_symbol_completion_matches): New member
1248 function.
1249 * m2-lang.c (m2_language_data): Delete
1250 la_collect_symbol_completion_matches initializer.
1251 * objc-lang.c (objc_language_data): Likewise.
1252 * opencl-lang.c (opencl_language_data): Likewise.
1253 * p-lang.c (pascal_language_data): Likewise.
1254 * rust-lang.c (rust_language_data): Likewise.
1255 * symtab.c (default_collect_symbol_completion_matches): Delete.
1256 (collect_symbol_completion_matches): Update call to
1257 collect_symbol_completion_matches.
1258 (collect_symbol_completion_matches_type): Likewise.
1259 * symtab.h (default_collect_symbol_completion_matches): Delete
1260 declaration.
1261
53fc67f8
AB
12622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1265 (ada_language_data): Delete la_word_break_characters initializer.
1266 (ada_language::word_break_characters): New member function.
1267 * c-lang.c (c_language_data): Delete la_word_break_characters
1268 initializer.
1269 (cplus_language_data): Likewise.
1270 (asm_language_data): Likewise.
1271 (minimal_language_data): Likewise.
1272 * completer.c: Update global comment.
1273 (advance_to_expression_complete_word_point): Update call to
1274 word_break_characters.
1275 (complete_files_symbols): Likewise.
1276 (complete_line_internal_1): Likewise.
1277 (default_completer_handle_brkchars): Likewise.
1278 (skip_quoted_chars): Likewise.
1279 * d-lang.c (d_language_data): Delete la_word_break_characters
1280 initializer.
1281 * f-lang.c (f_word_break_characters): Delete.
1282 (f_language_data): Delete la_word_break_characters initializer.
1283 (f_language::word_break_characters): New member function.
1284 * go-lang.c (go_language_data): Delete la_word_break_characters
1285 initializer.
1286 * language.c (unknown_language_data): Likewise.
1287 (auto_language_data): Likewise.
1288 * language.h (default_word_break_characters): Move declaration to
1289 earlier in the file.
1290 (language_data): Delete la_word_break_characters field.
1291 (language_defn::word_break_characters): New member function.
1292 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1293 initializer.
1294 * objc-lang.c (objc_language_data): Likewise.
1295 * opencl-lang.c (opencl_language_data): Likewise.
1296 * p-lang.c (pascal_language_data): Likewise.
1297 * rust-lang.c (rust_language_data): Likewise.
1298
c9debfb9
AB
12992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1302 (ada_language_data): Delete la_get_symbol_name_matcher
1303 initializer.
1304 (language_defn::get_symbol_name_matcher_inner): New member
1305 function.
1306 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1307 initializer.
1308 (cplus_language_data): Likewise.
1309 (cplus_language::get_symbol_name_matcher_inner): New member
1310 function.
1311 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1312 (minimal_language_data): Likewise.
1313 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1314 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1315 initializer.
1316 * dictionary.c (iter_match_first_hashed): Update call to
1317 get_symbol_name_matcher.
1318 (iter_match_next_hashed): Likewise.
1319 (iter_match_next_linear): Likewise.
1320 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1321 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1322 initializer.
1323 (f_language::get_symbol_name_matcher_inner): New member function.
1324 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1325 initializer.
1326 * language.c (default_symbol_name_matcher): Update header comment,
1327 make static.
1328 (language_defn::get_symbol_name_matcher): New definition.
1329 (language_defn::get_symbol_name_matcher_inner): Likewise.
1330 (get_symbol_name_matcher): Delete.
1331 (unknown_language_data): Delete la_get_symbol_name_matcher
1332 initializer.
1333 (auto_language_data): Likewise.
1334 * language.h (language_data): Delete la_get_symbol_name_matcher
1335 field.
1336 (language_defn::get_symbol_name_matcher): New member function.
1337 (language_defn::get_symbol_name_matcher_inner): Likewise.
1338 (default_symbol_name_matcher): Delete declaration.
1339 * linespec.c (find_methods): Update call to
1340 get_symbol_name_matcher.
1341 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1342 initializer.
1343 * minsyms.c (lookup_minimal_symbol): Update call to
1344 get_symbol_name_matcher.
1345 (iterate_over_minimal_symbols): Likewise.
1346 * objc-lang.c (objc_language_data): Delete
1347 la_get_symbol_name_matcher initializer.
1348 * opencl-lang.c (opencl_language_data): Likewise.
1349 * p-lang.c (pascal_language_data): Likewise.
1350 * psymtab.c (psymbol_name_matches): Update call to
1351 get_symbol_name_matcher.
1352 * rust-lang.c (rust_language_data): Delete
1353 la_get_symbol_name_matcher initializer.
1354 * symtab.c (symbol_matches_search_name): Update call to
1355 get_symbol_name_matcher.
1356 (compare_symbol_name): Likewise.
1357
9a49ad8c
AB
13582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * ada-lang.c (ada_language_data): Delete la_compute_program
1361 initializer.
1362 * c-lang.c (c_language_data): Likewise.
1363 (c_language::compute_program): New member function.
1364 (cplus_language_data): Delete la_compute_program initializer.
1365 (cplus_language::compute_program): New member function.
1366 (asm_language_data): Delete la_compute_program initializer.
1367 (minimal_language_data): Likewise.
1368 * c-lang.h (c_compute_program): Update comment.
1369 (cplus_compute_program): Likewise.
1370 * compile/compile-c-support.c (c_compute_program): Likewise.
1371 (cplus_compute_program): Likewise.
1372 * compile/compile.c (compile_to_object): Update call to
1373 la_compute_program.
1374 * d-lang.c (d_language_data): Delete la_compute_program
1375 initializer.
1376 * f-lang.c (f_language_data): Likewise.
1377 * go-lang.c (go_language_data): Likewise.
1378 * language.c (unknown_language_data): Likewise.
1379 (auto_language_data): Likewise.
1380 * language.h (language_data): Delete la_compute_program field.
1381 (language_defn::compute_program): New member function.
1382 * m2-lang.c (m2_language_data): Delete la_compute_program
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
eff93b4d
AB
13892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * ada-lang.c (ada_language_data) Delete
1392 la_class_name_from_physname initializer.
1393 * c-lang.c (c_language_data): Likewise.
1394 (cplus_language_data): Likewise.
1395 (cplus_language::class_name_from_physname): New member function.
1396 (asm_language_data): Delete la_class_name_from_physname
1397 initializer.
1398 (minimal_language_data): Likewise.
1399 * d-lang.c (d_language_data): Likewise.
1400 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1401 method on language_defn class.
1402 (guess_full_die_structure_name): Likewise.
1403 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1404 initializer.
1405 * go-lang.c (go_language_data): Likewise.
1406 * language.c (language_class_name_from_physname): Delete.
1407 (unk_lang_class_name): Delete.
1408 (unknown_language_data): Delete la_class_name_from_physname
1409 initializer.
1410 (auto_language_data): Likewise.
1411 * language.h (language_data): Delete la_class_name_from_physname
1412 field.
1413 (language_defn::class_name_from_physname): New function.
1414 (language_class_name_from_physname): Delete declaration.
1415 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1416 initializer.
1417 * objc-lang.c (objc_language_data): Likewise.
1418 * opencl-lang.c (opencl_language_data): Likewise.
1419 * p-lang.c (pascal_language_data): Likewise.
1420 * rust-lang.c (rust_language_data): Likewise.
1421
de543742
TT
14222020-06-16 Tom Tromey <tom@tromey.com>
1423
1424 * tui/tui-data.h (STATUS_NAME): New macro.
1425 * tui/tui-layout.c (tui_remove_some_windows)
1426 (initialize_known_windows, tui_register_window)
1427 (tui_layout_split::remove_windows, initialize_layouts)
1428 (tui_new_layout_command): Don't use hard-coded window names.
1429
a350efd4
TT
14302020-06-16 Tom Tromey <tom@tromey.com>
1431
1432 PR tui/25348:
1433 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1434 tui_initialize_readline. Only run once. Call rl_initialize.
1435 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1436 tui_initialize_readline.
1437 * tui/tui-io.c (tui_setup_io): Call
1438 tui_ensure_readline_initialized.
1439 * tui/tui-interp.c (tui_interp::init): Update.
1440
39ec0490
TT
14412020-06-16 Tom Tromey <tom@tromey.com>
1442
1443 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1444 Also preserve the status window.
1445
d2d1ea20
TT
14462020-06-16 Tom Tromey <tom@tromey.com>
1447
1448 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1449 where m_window==nullptr.
1450
66920317
TT
14512020-06-15 Tom Tromey <tromey@adacore.com>
1452
1453 * windows-nat.c (windows_nat::handle_output_debug_string):
1454 Update.
1455 (windows_nat::handle_ms_vc_exception): Update.
1456 * target.h (target_read_string): Change API.
1457 * target.c (target_read_string): Change API.
1458 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1459 Update.
1460 * solib-frv.c (frv_current_sos): Update.
1461 * solib-dsbt.c (dsbt_current_sos): Update.
1462 * solib-darwin.c (darwin_current_sos): Update.
1463 * linux-thread-db.c (inferior_has_bug): Update.
1464 * expprint.c (print_subexp_standard): Update.
1465 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1466 (ada_exception_message_1): Update.
1467
a5d871dd
TT
14682020-06-15 Tom Tromey <tromey@adacore.com>
1469
1470 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1471
670e35fa
TT
14722020-06-15 Tom Tromey <tromey@adacore.com>
1473
1474 * valprint.c (read_string): Update comment.
1475 * target.c (MIN): Remove.
1476 (target_read_string): Rewrite.
1477
f5272a3b
TT
14782020-06-15 Tom Tromey <tromey@adacore.com>
1479
1480 * corefile.c (read_memory_string): Remove.
1481 * ada-valprint.c (ada_value_print_ptr): Update.
1482 * ada-lang.h (ada_tag_name): Change return type.
1483 * ada-lang.c (type_from_tag): Update.
1484 (ada_tag_name_from_tsd): Change return type. Use
1485 target_read_string.
1486 (ada_tag_name): Likewise.
1487 * gdbcore.h (read_memory_string): Don't declare.
1488
2c074f49
HD
14892020-06-14 Hannes Domani <ssbssa@yahoo.de>
1490
1491 * symtab.c (rbreak_command): Ignore Windows drive colon.
1492
6a17d503
SM
14932020-06-12 Simon Marchi <simon.marchi@efficios.com>
1494
1495 * NEWS: Mention removed GDBserver host support.
1496
453c733f
NC
14972020-06-12 Nelson Chu <nelson.chu@sifive.com>
1498
1499 * features/riscv/rebuild-csr-xml.sh: Updated.
1500
2b4e6a3f
TT
15012020-06-11 Tom Tromey <tom@tromey.com>
1502
1503 PR gdb/18318:
1504 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1505
4412332f
JG
15062020-06-09 Jonny Grant <jg@jguk.org>
15072020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * main.c (captured_main_1): Don't print new line after help.
1510 (print_gdb_help): add mailing list and IRC channel information
1511 to --help. Add new lines between items in the footer. Remove
1512 quotes around bug url.
1513
2f33032a
KS
15142020-06-11 Keith Seitz <keiths@redhat.com>
1515
1516 PR gdb/21356
1517 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1518 Resolve typedefs for type length calculations.
1519
7ab96794
TV
15202020-06-10 Tom de Vries <tdevries@suse.de>
1521
1522 PR ada/24713
1523 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1524 (write_psymbols): Enable .gdb_index for ada.
1525 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1526 ada.
1527
e5f3ece2
TV
15282020-06-10 Tom de Vries <tdevries@suse.de>
1529
1530 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1531 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1532 namei" instead of "const char *name" argument.
1533 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1534 dw2_symtab_iter_init.
1535
940da03e
SM
15362020-06-08 Simon Marchi <simon.marchi@efficios.com>
1537
1538 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1539 to use type::field and field::type instead.
1540
b6cdac4b
SM
15412020-06-08 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1544 to use field::type instead.
1545
5d14b6e5
SM
15462020-06-08 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * gdbtypes.h (struct field) <type, set_type>: New methods.
1549 Rename `type` field to...
1550 <m_type>: ... this. Change references throughout to use type or
1551 set_type methods.
1552 (FIELD_TYPE): Use field::type. Change call sites that modify
1553 the field's type to use field::set_type instead.
1554
3d967001
SM
15552020-06-08 Simon Marchi <simon.marchi@efficios.com>
1556
1557 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1558 to use type::index_type instead.
1559
262abc0d
SM
15602020-06-08 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1563 methods.
1564 (TYPE_INDEX_TYPE): Use type::index_type.
1565 * gdbtypes.c (create_array_type_with_stride): Likewise.
1566
82836c92
TT
15672020-06-07 Tom Tromey <tom@tromey.com>
1568
1569 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1570 parameter.
1571 (generic_value_print): Update.
1572
940dace9
AB
15732020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 Revert commit 982a38f60b0.
1576 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1577
982a38f6
AB
15782020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1581 avoid use after free.
1582
82f06518
TV
15832020-06-05 Tom de Vries <tdevries@suse.de>
1584
1585 * NEWS: Fix typos.
1586
f8c41851
SM
15872020-06-04 Simon Marchi <simon.marchi@efficios.com>
1588
1589 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1590 the per_bfd object.
1591 (dwarf2_read_debug_names): Likewise.
1592 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1593 object when re-using a per_bfd object with an index.
1594
f9b5d5ea
TV
15952020-06-03 Tom de Vries <tdevries@suse.de>
1596
1597 PR symtab/26046
1598 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1599 children for C++.
1600 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1601 DW_TAG_subprogram.
1602
f6eee2d0
AB
16032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * ada-lang.c (ada_language_data): Delete skip_trampoline
1606 initializer.
1607 * c-lang.c (c_language_data): Likewise.
1608 (cplus_language_data): Likewise.
1609 (cplus_language::skip_trampoline): New member function.
1610 (asm_language_data): Delete skip_trampoline initializer.
1611 (minimal_language_data): Likewise.
1612 * d-lang.c (d_language_data): Likewise.
1613 * f-lang.c (f_language_data): Likewise.
1614 * go-lang.c (go_language_data): Likewise.
1615 * language.c (unk_lang_trampoline): Delete function.
1616 (skip_language_trampoline): Update.
1617 (unknown_language_data): Delete skip_trampoline initializer.
1618 (auto_language_data): Likewise.
1619 * language.h (language_data): Delete skip_trampoline field.
1620 (language_defn::skip_trampoline): New function.
1621 * m2-lang.c (m2_language_data): Delete skip_trampoline
1622 initializer.
1623 * objc-lang.c (objc_skip_trampoline): Delete function, move
1624 implementation to objc_language::skip_trampoline.
1625 (objc_language_data): Delete skip_trampoline initializer.
1626 (objc_language::skip_trampoline): New member function with
1627 implementation from objc_skip_trampoline.
1628 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1629 initializer.
1630 * p-lang.c (pascal_language_data): Likewise.
1631 * rust-lang.c (rust_language_data): Likewise.
1632
0a50df5d
AB
16332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1636 (ada_language::demangle): New member function.
1637 * c-lang.c (c_language_data): Delete la_demangle initializer.
1638 (cplus_language_data): Delete la_demangle initializer.
1639 (cplus_language::demangle): New member function.
1640 (asm_language_data): Delete la_demangle initializer.
1641 (minimal_language_data): Delete la_demangle initializer.
1642 * d-lang.c (d_language_data): Delete la_demangle initializer.
1643 (d_language::demangle): New member function.
1644 * f-lang.c (f_language_data): Delete la_demangle initializer.
1645 (f_language::demangle): New member function.
1646 * go-lang.c (go_language_data): Delete la_demangle initializer.
1647 (go_language::demangle): New member function.
1648 * language.c (language_demangle): Update.
1649 (unk_lang_demangle): Delete.
1650 (unknown_language_data): Delete la_demangle initializer.
1651 (unknown_language::demangle): New member function.
1652 (auto_language_data): Delete la_demangle initializer.
1653 (auto_language::demangle): New member function.
1654 * language.h (language_data): Delete la_demangle field.
1655 (language_defn::demangle): New function.
1656 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1657 * objc-lang.c (objc_language_data): Delete la_demangle
1658 initializer.
1659 (objc_language::demangle): New member function.
1660 * opencl-lang.c (opencl_language_data): Delete la_demangle
1661 initializer.
1662 * p-lang.c (pascal_language_data): Likewise.
1663 * rust-lang.c (rust_language_data): Likewise.
1664 (rust_language::demangle): New member function.
1665
fbfb0a46
AB
16662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * ada-lang.c (ada_language_data): Delete la_print_type
1669 initializer.
1670 (ada_language::print_type): New member function.
1671 * c-lang.c (c_language_data): Delete la_print_type initializer.
1672 (c_language::print_type): New member function.
1673 (cplus_language_data): Delete la_print_type initializer.
1674 (cplus_language::print_type): New member function.
1675 (asm_language_data): Delete la_print_type initializer.
1676 (asm_language::print_type): New member function.
1677 (minimal_language_data): Delete la_print_type initializer.
1678 (minimal_language::print_type): New member function.
1679 * d-lang.c (d_language_data): Delete la_print_type initializer.
1680 (d_language::print_type): New member function.
1681 * f-lang.c (f_language_data): Delete la_print_type initializer.
1682 (f_language::print_type): New member function.
1683 * go-lang.c (go_language_data): Delete la_print_type initializer.
1684 (go_language::print_type): New member function.
1685 * language.c (unk_lang_print_type): Delete.
1686 (unknown_language_data): Delete la_print_type initializer.
1687 (unknown_language::print_type): New member function.
1688 (auto_language_data): Delete la_print_type initializer.
1689 (auto_language::print_type): New member function.
1690 * language.h (language_data): Delete la_print_type field.
1691 (language_defn::print_type): New function.
1692 (LA_PRINT_TYPE): Update.
1693 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1694 (m2_language::print_type): New member function.
1695 * objc-lang.c (objc_language_data): Delete la_print_type
1696 initializer.
1697 (objc_language::print_type): New member function.
1698 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1699 to opencl_language::print_type.
1700 (opencl_language_data): Delete la_print_type initializer.
1701 (opencl_language::print_type): New member function, implementation
1702 from opencl_print_type.
1703 * p-lang.c (pascal_language_data): Delete la_print_type
1704 initializer.
1705 (pascal_language::print_type): New member function.
1706 * rust-lang.c (rust_print_type): Delete, implementation moved to
1707 rust_language::print_type.
1708 (rust_language_data): Delete la_print_type initializer.
1709 (rust_language::print_type): New member function, implementation
1710 from rust_print_type.
1711
6f827019
AB
17122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1715 implementation moves to...
1716 (ada_language::sniff_from_mangled_name): ...here. Update return
1717 type.
1718 (ada_language_data): Delete la_sniff_from_mangled_name
1719 initializer.
1720 * c-lang.c (c_language_data): Likewise.
1721 (cplus_language_data): Likewise.
1722 (cplus_language::sniff_from_mangled_name): New member function,
1723 implementation taken from gdb_sniff_from_mangled_name.
1724 (asm_language_data): Delete la_sniff_from_mangled_name
1725 initializer.
1726 (minimal_language_data): Likewise.
1727 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1728 implementation moves to cplus_language::sniff_from_mangled_name.
1729 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1730 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1731 moves to...
1732 (d_language::sniff_from_mangled_name): ...here.
1733 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1734 * f-lang.c (f_language_data): Likewise.
1735 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1736 moves to...
1737 (go_language::sniff_from_mangled_name): ...here.
1738 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1739 * language.c (language_sniff_from_mangled_name): Delete.
1740 (unknown_language_data): Delete la_sniff_from_mangled_name
1741 initializer.
1742 (auto_language_data): Likewise.
1743 * language.h (language_data): Delete la_sniff_from_mangled_name
1744 field.
1745 (language_defn::sniff_from_mangled_name): New function.
1746 (language_sniff_from_mangled_name): Delete declaration.
1747 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1748 field.
1749 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1750 implementation moves to...
1751 (objc_language::sniff_from_mangled_name): ...here.
1752 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1753 * opencl-lang.c (opencl_language_data): Likewise.
1754 * p-lang.c (pascal_language_data): Likewise.
1755 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1756 implementation moves to...
1757 (rust_language::sniff_from_mangled_name): ...here.
1758 (rust_language_data): Delete la_sniff_from_mangled_name
1759 initializer.
1760 * symtab.c (symbol_find_demangled_name): Call
1761 sniff_from_mangled_name member function.
1762
fb8006fd
AB
17632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1764
1765 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1766 initializer.
1767 * c-lang.c (c_language_data): Likewise.
1768 (cplus_language_data): Likewise.
1769 (cplus_language::search_name_hash): New member function.
1770 (asm_language_data): Delete la_search_name_hash initializer.
1771 (minimal_language_data): Likewise.
1772 * d-lang.c (d_language_data): Likewise.
1773 * dictionary.c (default_search_name_hash): Rename to...
1774 (language_defn::search_name_hash): ...this.
1775 * f-lang.c (f_language_data): Likewise.
1776 (f_language::search_name_hash): New member function.
1777 * go-lang.c (go_language_data): Delete la_search_name_hash
1778 initializer.
1779 * language.c (unknown_language_data): Likewise.
1780 (auto_language_data): Likewise.
1781 * language.h (struct language_data): Delete la_search_name_hash
1782 field.
1783 (language_defn::search_name_hash): Declare new member function.
1784 (default_search_name_hash): Delete declaration.
1785 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1786 initializer.
1787 * objc-lang.c (objc_language_data): Likewise.
1788 * opencl-lang.c (opencl_language_data): Likewise.
1789 * p-lang.c (pascal_language_data): Likewise.
1790 * rust-lang.c (rust_language_data): Likewise.
1791 * symtab.c (search_name_hash): Update call.
1792
8e25bafe
AB
17932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1796 initializer.
1797 * c-lang.c (class compile_instance): Declare.
1798 (c_language_data): Delete la_get_compile_instance initializer.
1799 (c_language::get_compile_instance): New member function.
1800 (cplus_language_data): Delete la_get_compile_instance initializer.
1801 (cplus_language::get_compile_instance): New member function.
1802 (asm_language_data): Delete la_get_compile_instance initializer.
1803 (minimal_language_data): Likewise.
1804 * c-lang.h (c_get_compile_context): Update comment.
1805 (cplus_get_compile_context): Update comment.
1806 * compile/compile.c (compile_to_object): Update calls, don't rely
1807 on function pointer being NULL.
1808 * d-lang.c (d_language_data): Delete la_get_compile_instance
1809 initializer.
1810 * f-lang.c (f_language_data): Likewise.
1811 * go-lang.c (go_language_data): Likewise.
1812 * language.c (unknown_language_data): Likewise.
1813 (auto_language_data): Likewise.
1814 * language.h (language_data): Delete la_get_compile_instance field.
1815 (language_defn::get_compile_instance): New member function.
1816 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1817 initializer.
1818 * objc-lang.c (objc_language_data): Likewise.
1819 * opencl-lang.c (opencl_language_data): Likewise.
1820 * p-lang.c (pascal_language_data): Likewise.
1821 * rust-lang.c (rust_language_data): Likewise.
1822
4009ee92
AB
18232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * ada-lang.c (ada_add_all_symbols): Update comment.
1826 (ada_iterate_over_symbols): Delete, move implementation to...
1827 (ada_language::iterate_over_symbols): ...here, a new member
1828 function, rewrite to use range based for loop.
1829 (ada_language_data): Delete la_iterate_over_symbols initializer.
1830 * c-lang.c (c_language_data): Likewise.
1831 (cplus_language_data): Likewise.
1832 (asm_language_data): Likewise.
1833 (minimal_language_data): Likewise.
1834 * d-lang.c (d_language_data): Likewise.
1835 * f-lang.c (f_language_data): Likewise.
1836 * go-lang.c (go_language_data): Likewise.
1837 * language.c (unknown_language_data): Likewise.
1838 (auto_language_data): Likewise.
1839 * language.h (language_data): Delete la_iterate_over_symbols field.
1840 (language_defn::iterate_over_symbols): New member function.
1841 (LA_ITERATE_OVER_SYMBOLS): Update.
1842 * linespec.c (iterate_over_all_matching_symtabs): Update.
1843 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1844 initializer.
1845 * objc-lang.c (objc_language_data): Likewise.
1846 * opencl-lang.c (opencl_language_data): Likewise.
1847 * p-lang.c (pascal_language_data): Likewise.
1848 * rust-lang.c (rust_language_data): Likewise.
1849
54f4ca46
AB
18502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1851
1852 * ada-lang.c (ada_language_data): Delete
1853 la_lookup_transparent_type initializer.
1854 * c-lang.c (c_language_data): Likewise.
1855 (cplus_language_data): Likewise.
1856 (cplus_language::lookup_transparent_type): New member function.
1857 (asm_language_data): Delete la_lookup_transparent_type
1858 initializer.
1859 (minimal_language_data): Likewise.
1860 * d-lang.c (d_language_data): Likewise.
1861 * f-lang.c (f_language_data): Likewise.
1862 * go-lang.c (go_language_data): Likewise.
1863 * language.c (unknown_language_data): Likewise.
1864 (auto_language_data): Likewise.
1865 * language.h (struct language_data): Delete
1866 la_lookup_transparent_type field.
1867 (language_defn::lookup_transparent_type): New member function.
1868 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1869 initializer.
1870 * objc-lang.c (objc_language_data): Likewise.
1871 * opencl-lang.c (opencl_language_data): Likewise.
1872 * p-lang.c (pascal_language_data): Likewise.
1873 * rust-lang.c (rust_language_data): Likewise.
1874 * symtab.c (symbol_matches_domain): Update call.
1875
1fb314aa
AB
18762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * ada-lang.c (ada_language_arch_info): Delete function, move
1879 implementation to...
1880 (ada_language::language_arch_info): ...here, a new member
1881 function.
1882 (ada_language_data): Delete la_language_arch_info.
1883 * c-lang.c (c_language_data): Likewise.
1884 (c_language::language_arch_info): New member function.
1885 (cplus_language_arch_info): Delete function, move
1886 implementation to...
1887 (cplus_language::language_arch_info): ...here, a new member
1888 function.
1889 (cplus_language_data): Delete la_language_arch_info.
1890 (asm_language_data): Likewise.
1891 (asm_language::language_arch_info): New member function.
1892 (minimal_language_data): Delete la_language_arch_info.
1893 (minimal_language::language_arch_info): New member function.
1894 * d-lang.c (d_language_arch_info): Delete function, move
1895 implementation to...
1896 (d_language::language_arch_info): ...here, a new member
1897 function.
1898 (d_language_data): Delete la_language_arch_info.
1899 * f-lang.c (f_language_arch_info): Delete function, move
1900 implementation to...
1901 (f_language::language_arch_info): ...here, a new member
1902 function.
1903 (f_language_data): Delete la_language_arch_info.
1904 * go-lang.c (go_language_arch_info): Delete function, move
1905 implementation to...
1906 (go_language::language_arch_info): ...here, a new member
1907 function.
1908 (go_language_data): Delete la_language_arch_info.
1909 * language.c (unknown_language_data): Likewise.
1910 (unknown_language::language_arch_info): New member function.
1911 (auto_language_data): Delete la_language_arch_info.
1912 (auto_language::language_arch_info): New member function.
1913 (language_gdbarch_post_init): Update call to
1914 la_language_arch_info.
1915 * language.h (language_data): Delete la_language_arch_info
1916 function pointer.
1917 (language_defn::language_arch_info): New function.
1918 * m2-lang.c (m2_language_arch_info): Delete function, move
1919 implementation to...
1920 (m2_language::language_arch_info): ...here, a new member
1921 function.
1922 (m2_language_data): Delete la_language_arch_info.
1923 * objc-lang.c (objc_language_arch_info): Delete function, move
1924 implementation to...
1925 (objc_language::language_arch_info): ...here, a new member
1926 function.
1927 (objc_language_data): Delete la_language_arch_info.
1928 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1929 implementation to...
1930 (opencl_language::language_arch_info): ...here, a new member
1931 function.
1932 (opencl_language_data): Delete la_language_arch_info.
1933 * p-lang.c (pascal_language_arch_info): Delete function, move
1934 implementation to...
1935 (pascal_language::language_arch_info): ...here, a new member
1936 function.
1937 (pascal_language_data): Delete la_language_arch_info.
1938 * rust-lang.c (rust_language_arch_info): Delete function, move
1939 implementation to...
1940 (rust_language::language_arch_info): ...here, a new member
1941 function.
1942 (rust_language_data): Delete la_language_arch_info.
1943
48448202
AB
19442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1947 initializer.
1948 * c-lang.c (c_language_data): Likewise.
1949 (cplus_language_data): Likewise.
1950 (cplus_language::pass_by_reference_info): New method.
1951 (asm_language_data): Delete la_pass_by_reference initializer.
1952 (minimal_language_data): Likewise.
1953 * cp-abi.c (cp_pass_by_reference): Remove use of
1954 default_pass_by_reference.
1955 * d-lang.c (d_language_data): Likewise.
1956 * f-lang.c (f_language_data): Likewise.
1957 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1958 default_pass_by_reference.
1959 * go-lang.c (go_language_data): Likewise.
1960 * language.c (language_pass_by_reference): Update.
1961 (default_pass_by_reference): Delete.
1962 (unknown_language_data): Delete la_pass_by_reference
1963 initializer.
1964 (auto_language_data): Likewise.
1965 * language.h (struct language_data): Delete la_pass_by_reference
1966 field.
1967 (language_defn::pass_by_reference_info): New member function.
1968 (default_pass_by_reference): Delete declaration.
1969 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1970 initializer.
1971 * objc-lang.c (objc_language_data): Likewise.
1972 * opencl-lang.c (opencl_language_data): Likewise.
1973 * p-lang.c (pascal_language_data): Likewise.
1974 * rust-lang.c (rust_language_data): Likewise.
1975
15e5fd35
AB
19762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * ada-lang.c (ada_read_var_value): Delete function, move
1979 implementation to...
1980 (ada_language::read_var_value): ...here.
1981 (ada_language_data): Delete la_read_var_value initializer.
1982 * c-lang.c (c_language_data): Likewise.
1983 (cplus_language_data): Likewise.
1984 (minimal_language_data): Likewise.
1985 * d-lang.c (d_language_data): Likewise.
1986 * f-lang.c (f_language_data): Likewise.
1987 * findvar.c (default_read_var_value): Rename to...
1988 (language_defn::read_var_value): ...this.
1989 * findvar.c (read_var_value): Update header comment, and change to
1990 call member function instead of function pointer.
1991 * go-lang.c (go_language_data): Likewise.
1992 * language.c (unknown_language_data): Delete la_read_var_value
1993 initializer.
1994 (auto_language_data): Likewise.
1995 * language.h (struct language_data): Delete la_read_var_value
1996 field.
1997 (language_defn::read_var_value): New member function.
1998 (default_read_var_value): Delete declaration.
1999 * m2-lang.c (m2_language_data): Delete la_read_var_value
2000 initializer.
2001 * objc-lang.c (objc_language_data): Likewise.
2002 * opencl-lang.c (opencl_language_data): Likewise.
2003 * p-lang.c (pascal_language_data): Likewise.
2004 * rust-lang.c (rust_language_data): Likewise.
2005 * value.h (default_read_var_value): Delete declaration.
2006
5bd40f2a
AB
20072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * ada-lang.c (ada_print_array_index): Delete function, move
2010 implementation to...
2011 (ada_language::print_array_index): ...here.
2012 (ada_language_data): Delete la_print_array_index initializer.
2013 * c-lang.c (c_language_data): Likewise.
2014 (cplus_language_data): Likewise.
2015 (minimal_language_data): Likewise.
2016 * d-lang.c (d_language_data): Likewise.
2017 * f-lang.c (f_language_data): Likewise.
2018 * go-lang.c (go_language_data): Likewise.
2019 * language.c (default_print_array_index): Delete function, move
2020 implementation to...
2021 (language_defn::print_array_index): ...here.
2022 (unknown_language_data): Delete la_print_array_index initializer.
2023 (auto_language_data): Likewise.
2024 * language.h (struct language_data): Delete la_print_array_index
2025 field.
2026 (language_defn::print_array_index): New member function.
2027 (LA_PRINT_ARRAY_INDEX): Update.
2028 (default_print_array_index): Delete declaration.
2029 * m2-lang.c (m2_language_data): Delete la_print_array_index
2030 initializer.
2031 * objc-lang.c (objc_language_data): Likewise.
2032 * opencl-lang.c (opencl_language_data): Likewise.
2033 * p-lang.c (pascal_language_data): Likewise.
2034 * rust-lang.c (rust_language_data): Likewise.
2035
0874fd07
AB
20362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * gdb/ada-lang.c (ada_language_defn): Convert to...
2039 (ada_language_data): ...this.
2040 (class ada_language): New class.
2041 (ada_language_defn): New static global.
2042 * gdb/c-lang.c (c_language_defn): Convert to...
2043 (c_language_data): ...this.
2044 (class c_language): New class.
2045 (c_language_defn): New static global.
2046 (cplus_language_defn): Convert to...
2047 (cplus_language_data): ...this.
2048 (class cplus_language): New class.
2049 (cplus_language_defn): New static global.
2050 (asm_language_defn): Convert to...
2051 (asm_language_data): ...this.
2052 (class asm_language): New class.
2053 (asm_language_defn): New static global.
2054 (minimal_language_defn): Convert to...
2055 (minimal_language_data): ...this.
2056 (class minimal_language): New class.
2057 (minimal_language_defn): New static global.
2058 * gdb/d-lang.c (d_language_defn): Convert to...
2059 (d_language_data): ...this.
2060 (class d_language): New class.
2061 (d_language_defn): New static global.
2062 * gdb/f-lang.c (f_language_defn): Convert to...
2063 (f_language_data): ...this.
2064 (class f_language): New class.
2065 (f_language_defn): New static global.
2066 * gdb/go-lang.c (go_language_defn): Convert to...
2067 (go_language_data): ...this.
2068 (class go_language): New class.
2069 (go_language_defn): New static global.
2070 * gdb/language.c (unknown_language_defn): Remove declaration.
2071 (current_language): Initialize to nullptr, real initialization is
2072 moved to _initialize_language.
2073 (languages): Delete global.
2074 (language_defn::languages): Define.
2075 (set_language_command): Use language_defn::languages.
2076 (set_language): Likewise.
2077 (range_error): Likewise.
2078 (language_enum): Likewise.
2079 (language_def): Likewise.
2080 (add_set_language_command): Use language_def::languages for the
2081 language list, and language_def to lookup language pointers.
2082 (skip_language_trampoline): Use language_defn::languages.
2083 (unknown_language_defn): Convert to...
2084 (unknown_language_data): ...this.
2085 (class unknown_language): New class.
2086 (unknown_language_defn): New static global.
2087 (auto_language_defn): Convert to...
2088 (auto_language_data): ...this.
2089 (class auto_language): New class.
2090 (auto_language_defn): New static global.
2091 (language_gdbarch_post_init): Use language_defn::languages.
2092 (_initialize_language): Initialize current_language.
2093 * gdb/language.h (struct language_defn): Rename to...
2094 (struct language_data): ...this.
2095 (struct language_defn): New.
2096 (auto_language_defn): Delete.
2097 (unknown_language_defn): Delete.
2098 (minimal_language_defn): Delete.
2099 (ada_language_defn): Delete.
2100 (asm_language_defn): Delete.
2101 (c_language_defn): Delete.
2102 (cplus_language_defn): Delete.
2103 (d_language_defn): Delete.
2104 (f_language_defn): Delete.
2105 (go_language_defn): Delete.
2106 (m2_language_defn): Delete.
2107 (objc_language_defn): Delete.
2108 (opencl_language_defn): Delete.
2109 (pascal_language_defn): Delete.
2110 (rust_language_defn): Delete.
2111 * gdb/m2-lang.c (m2_language_defn): Convert to...
2112 (m2_language_data): ...this.
2113 (class m2_language): New class.
2114 (m2_language_defn): New static global.
2115 * gdb/objc-lang.c (objc_language_defn): Convert to...
2116 (objc_language_data): ...this.
2117 (class objc_language): New class.
2118 (objc_language_defn): New static global.
2119 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2120 (opencl_language_data): ...this.
2121 (class opencl_language): New class.
2122 (opencl_language_defn): New static global.
2123 * gdb/p-lang.c (pascal_language_defn): Convert to...
2124 (pascal_language_data): ...this.
2125 (class pascal_language): New class.
2126 (pascal_language_defn): New static global.
2127 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2128 language pointer, update comment format.
2129 * gdb/rust-lang.c (rust_language_defn): Convert to...
2130 (rust_language_data): ...this.
2131 (class rust_language): New class.
2132 (rust_language_defn): New static global.
2133
1313c56e
AB
21342020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2137 member variable.
2138 <m_stmt_at_address>: New member variable.
2139 (lnp_state_machine::record_line): Don't record some lines, update
2140 tracking of is_stmt at the same address.
2141 (lnp_state_machine::lnp_state_machine): Initialise new member
2142 variables.
2143
b7ed9f3d
ST
21442020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2145
2146 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2147 "-include gnu-nat-mig.h".
2148 * gnu-nat-mig.h: New file.
2149 * gnu-nat.c: Include "gnu-nat-mig.h".
2150 (exc_server, msg_reply_server, notify_server,
2151 process_reply_server): Remove declarations.
2152
14a8ad62
ST
21532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2154
2155 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2156 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2157 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2158 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2159 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2160 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2161 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2162 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2163 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2164 to gnu_nat_target class.
2165 * gnu-nat.c: Likewise.
2166 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2167 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2168 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2169 object.
2170 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2171 instead of `gnu_target'.
2172
0af5e106
ST
21732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2174
2175 * i386-gnu-tdep.c: Include "gdbcore.h"
2176 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2177 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2178 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2179 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2180 i386_gnu_sigcontext_addr): New functions
2181 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2182 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2183 tdep.
2184
078f2fc9
ST
21852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2186
2187 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2188 before fork_inferior call. Avoid calling it if target_is_pushed returns
2189 true.
2190
53dff92c
ST
21912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2192
2193 * gnu-nat.h (gnu_target): New variable declaration.
2194 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2195 gnu_target.
2196 * gnu-nat.c (gnu_target): New variable.
2197 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2198 add_thread_silent, and add_thread calls.
2199 (gnu_nat_target::create_inferior): Pass gnu_target to
2200 add_thread_silent, thread_change_ptid call.
2201 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2202 call.
2203
5a8b8627
ST
22042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2205
2206 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2207 (gnu_nat_target::find_memory_regions): Remove unused
2208 `old_address' variable.
2209
366f550a
ST
22102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2211
2212 * gnu-nat.c: Include "gdbarch.h".
2213
f14871bf
ST
22142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2215
2216 * reply_mig_hack.awk (Error return): Cast function through
2217 void *, to bypass compiler function call check.
2218
c6887cfb
ST
22192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2220
2221 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2222 $(srcdir)/reply_mig_hack.awk.
2223
6930bffe
ST
22242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2225
2226 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2227
112c22ed
JG
22282020-05-30 Jonny Grant <jg@jguk.org>
2229
2230 * configure.ac (ACX_BUGURL): change bug URL to https.
2231
f68f85b5
PA
22322020-05-30 Pedro Alves <palves@redhat.com>
2233
2234 * cp-support.c (replace_typedefs_template): New.
2235 (replace_typedefs_qualified_name): Handle
2236 DEMANGLE_COMPONENT_TEMPLATE.
2237
976ca316
SM
22382020-05-29 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2241 dwarf2/index-cache.h, dwarf2/index-write.c,
2242 dwarf2/index-write.h, dwarf2/line-header.c,
2243 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2244 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2245 variables and fields from `dwarf2_per_objfile` to just
2246 `per_objfile` throughout.
2247
989ade05
SM
22482020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2249
2250 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2251 <push_dwarf_reg_entry_value>: Add comment.
2252
c47bae85
KB
22532020-05-28 Kevin Buettner <kevinb@redhat.com>
2254 Keith Seitz <keiths@redhat.com>
2255
2256 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2257 instead of PyEval_ReleaseLock.
2258 (class gdbpy_gil): Move to earlier in file.
2259 (finalize_python): Set gdb_python_initialized.
2260 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2261 when not initialized.
2262
44486dcf
SM
22632020-05-28 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2266 <push_dwarf_reg_entry_value>: Remove assert. Override
2267 per_objfile with caller_per_objfile.
2268
f030440d
TV
22692020-05-28 Tom de Vries <tdevries@suse.de>
2270
2271 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2272 PR gold/15646 workaround to symbol kind "type".
2273
f0fbb768
TT
22742020-05-27 Tom Tromey <tromey@adacore.com>
2275
2276 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2277
af0b2a3e
TT
22782020-05-27 Tom Tromey <tromey@adacore.com>
2279
2280 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2281 Use htab_find_with_hash.
2282 <add_abbrev>: Remove "abbrev_number" parameter.
2283 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2284 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2285 (hash_abbrev): Add comment.
2286 (abbrev_table::lookup_abbrev): Move to header file.
2287 (abbrev_table::read): Update.
2288
7d00ffec
TT
22892020-05-27 Tom Tromey <tromey@adacore.com>
2290
2291 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2292 method.
2293 <canonical_name>: New member.
2294 <raw_name>: Rename from "name".
2295 (partial_die_info): Initialize canonical_name.
2296 (scan_partial_symbols): Check raw_name.
2297 (partial_die_parent_scope, partial_die_full_name)
2298 (add_partial_symbol, add_partial_subprogram)
2299 (add_partial_enumeration, load_partial_dies): Use "name" method.
2300 (partial_die_info::name): New method.
2301 (partial_die_info::read, guess_partial_die_structure_name)
2302 (partial_die_info::fixup): Update.
2303
697bba18
TT
23042020-05-27 Tom Tromey <tromey@adacore.com>
2305
2306 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2307 <get_ref_die_offset>: Inline.
2308 <get_ref_die_offset_complaint>: New method.
2309 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2310 (attribute::get_ref_die_offset_complaint): Rename from
2311 get_ref_die_offset. Just issue complaint.
2312
c17ace43
HD
23132020-05-27 Hannes Domani <ssbssa@yahoo.de>
2314
2315 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2316
96445f0b
HD
23172020-05-27 Hannes Domani <ssbssa@yahoo.de>
2318
2319 * exec.c (exec_file_attach): Use errno value of first openp failure.
2320
ac637ec3
HD
23212020-05-27 Hannes Domani <ssbssa@yahoo.de>
2322
2323 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2324 Don't close thread handle.
2325
17ee85fc
TT
23262020-05-27 Tom Tromey <tom@tromey.com>
2327 Simon Marchi <simon.marchi@efficios.com>
2328
2329 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2330 shared_ptr.
2331 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2332 member.
2333 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2334 dwarf2_per_bfd_objfile_data_key>: New globals.
2335 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2336 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2337 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2338 shared.
2339 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2340 short-circuit when sharing.
2341 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2342 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2343
39b16f87
SM
23442020-05-27 Simon Marchi <simon.marchi@efficios.com>
2345
2346 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2347 to...
2348 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2349 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2350
fcf23d5b
SM
23512020-05-27 Simon Marchi <simon.marchi@efficios.com>
2352
2353 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2354 build_name_components, find_name_components_bounds>:
2355 Add per_objfile parameter.
2356 (struct mapped_index) <symbol_name_at>: Likewise.
2357 (struct mapped_debug_names): Remove constructor.
2358 <dwarf2_per_objfile>: Remove field.
2359 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2360 (mapped_index_base::find_name_components_bounds,
2361 mapped_index_base::build_name_components,
2362 dw2_expand_symtabs_matching_symbol): Likewise.
2363 (class mock_mapped_index) <symbol_name_at>: Likewise.
2364 (check_match): Likewise.
2365 (check_find_bounds_finds): Likewise.
2366 (test_mapped_index_find_name_component_bounds): Update.
2367 (CHECK_MATCH): Update.
2368 (dw2_expand_symtabs_matching): Update.
2369 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2370 per_objfile parameter.
2371 <find_vec_in_debug_names>: Likewise.
2372 <m_per_objfile>: New field.
2373 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2374 parameter.
2375 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2376 (dw2_debug_names_iterator::next): Update.
2377 (dw2_debug_names_lookup_symbol): Update.
2378 (dw2_debug_names_expand_symtabs_for_function): Update.
2379 (dw2_debug_names_map_matching_symbols): Update.
2380 (dw2_debug_names_expand_symtabs_matching): Update.
2381 (dwarf2_read_debug_names): Update.
2382
7188ed02
SM
23832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2386 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2387 move to dwarf2_per_objfile.
2388 <read_in_chain>: Remove.
2389 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2390 remove_all_cus, age_comp_units>: New methods.
2391 <m_dwarf2_cus>: New member.
2392 (struct dwarf2_per_cu_data) <cu>: Remove.
2393 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2394 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2395 moved to methods of dwarf2_per_objfile.
2396 (dwarf2_clear_marks): Remove.
2397 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2398 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2399 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2400 (dwarf2_per_objfile::remove_all_cus): New.
2401 (class free_cached_comp_units) <~free_cached_comp_units>:
2402 Update.
2403 (load_cu): Update.
2404 (dw2_do_instantiate_symtab): Adjust.
2405 (fill_in_sig_entry_from_dwo_entry): Adjust.
2406 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2407 (cutu_reader::cutu_reader): Likewise.
2408 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2409 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2410 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2411 and dwarf2_per_objfile::age_comp_units.
2412 (load_partial_comp_unit): Update.
2413 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2414 (process_queue): Likewise.
2415 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2416 backlink.
2417 (dwarf2_read_addr_index): Likewise.
2418 (follow_die_offset): Likewise.
2419 (dwarf2_fetch_die_loc_sect_off): Likewise.
2420 (dwarf2_fetch_constant_bytes): Likewise.
2421 (dwarf2_fetch_die_type_sect_off): Likewise.
2422 (follow_die_sig_1): Likewise.
2423 (load_full_type_unit): Likewise.
2424 (read_signatured_type): Likewise.
2425 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2426 (dwarf2_cu::~dwarf2_cu): Remove.
2427 (dwarf2_per_objfile::get_cu): New.
2428 (dwarf2_per_objfile::set_cu): New.
2429 (age_cached_comp_units): Rename to...
2430 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2431 to std::unordered_map.
2432 (free_one_cached_comp_unit): Rename to...
2433 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2434 to std::unordered_map.
2435 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2436 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2437 a dwarf2_per_objfile in data.
2438 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2439 (dwarf2_clear_marks): Remove.
2440
2e671100
SM
24412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2442
2443 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2444 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2445 (init_tu_and_read_dwo_dies): Likewise.
2446 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2447 (cutu_reader::cutu_reader): Likewise.
2448 (load_partial_comp_unit): Likewise.
2449 (process_psymtab_comp_unit): Update.
2450 (build_type_psymtabs_1): Update.
2451 (process_skeletonless_type_unit): Update.
2452 (load_full_comp_unit): Update.
2453 (find_partial_die): Update.
2454 (dwarf2_read_addr_index): Update.
2455 (read_signatured_type): Update.
2456
2e6a9f79
SM
24572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2458
2459 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2460 m_header_read_in>: New fields.
2461 <get_header>: New method.
2462 * dwarf2/read.c (per_cu_header_read_in): Remove.
2463 (dwarf2_per_cu_data::get_header): New.
2464 (dwarf2_per_cu_data::addr_size): Update.
2465 (dwarf2_per_cu_data::offset_size): Update.
2466 (dwarf2_per_cu_data::ref_addr_size): Update.
2467
1b555f17
SM
24682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2471 (dw2_do_instantiate_symtab): Update.
2472 (queue_and_load_all_dwo_tus): Change parameter from
2473 dwarf2_per_cu_data to dwarf2_cu.
2474 (dwarf2_fetch_die_loc_sect_off): Update.
2475 (dwarf2_fetch_constant_bytes): Update.
2476 (dwarf2_fetch_die_type_sect_off): Update.
2477
8fc0b21d
SM
24782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2479
2480 * dwarf2/read.c (process_full_comp_unit,
2481 process_full_type_unit): Remove per_cu, per_objfile paramters.
2482 Add dwarf2_cu parameter.
2483 (process_queue): Update.
2484
168c9250
SM
24852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2486
2487 * dwarf2/read.c (create_cu_from_index_list): Replace
2488 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2489 (create_cus_from_index_list): Likewise.
2490 (create_cus_from_index): Likewise.
2491 (create_signatured_type_table_from_index): Likewise.
2492 (create_cus_from_debug_names_list): Likewise.
2493 (create_cus_from_debug_names): Likewise.
2494 (dwarf2_read_gdb_index): Update.
2495 (dwarf2_read_debug_names): Update.
2496
e286671b
TT
24972020-05-27 Tom Tromey <tom@tromey.com>
2498 Simon Marchi <simon.marchi@efficios.com>
2499
2500 * dwarf2/read.h (struct dwarf2_per_objfile)
2501 <get_type_for_signatured_type, set_type_for_signatured_type>:
2502 New methods.
2503 <m_type_map>: New member.
2504 (struct signatured_type) <type>: Remove.
2505 * dwarf2/read.c
2506 (dwarf2_per_objfile::get_type_for_signatured_type,
2507 dwarf2_per_objfile::set_type_for_signatured_type): New.
2508 (get_signatured_type): Use new methods.
2509
8adb8487
TT
25102020-05-27 Tom Tromey <tom@tromey.com>
2511 Simon Marchi <simon.marchi@efficios.com>
2512
2513 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2514 (struct dwarf2_per_objfile) <type_units>: New member.
2515 <get_type_unit_group_unshareable>: New method.
2516 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2517 num_symtabs, symtabs>: Remove; move to
2518 type_unit_group_unshareable.
2519 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2520 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2521 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2522
127bbf4b
SM
25232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2524
2525 * dwarf2/read.h (struct dwarf2_per_cu_data):
2526 <dwarf2_per_objfile>: Remove.
2527 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2528 dwarf2_per_objfile.
2529 (create_signatured_type_table_from_index): Likewise.
2530 (create_signatured_type_table_from_debug_names): Likewise.
2531 (create_debug_type_hash_table): Likewise.
2532 (fill_in_sig_entry_from_dwo_entry): Likewise.
2533 (create_type_unit_group): Likewise.
2534 (read_comp_units_from_section): Likewise.
2535 (create_cus_hash_table): Likewise.
2536
f6e649dd
SM
25372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2538
2539 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2540 dwarf2_per_cu_data::dwarf2_per_objfile.
2541 (compute_compunit_symtab_includes): Likewise.
2542 (dwarf2_cu::start_symtab): Likewise.
2543
aa66c379
SM
25442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2547 parameter.
2548 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2549 (read_namespace_alias): Update.
2550 (lookup_die_type): Update.
2551 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2552 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2553 Update.
2554 (disassemble_dwarf_expression): Update.
2555
120ce1b5
SM
25562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2557
2558 * dwarf2/read.h (struct dwarf2_queue_item): Add
2559 dwarf2_per_objfile parameter, assign new parameter.
2560 <per_objfile>: New field.
2561 * dwarf2/read.c (free_one_cached_comp_unit): Add
2562 dwarf2_per_objfile parameter.
2563 (queue_comp_unit): Likewise.
2564 (dw2_do_instantiate_symtab): Update.
2565 (process_psymtab_comp_unit): Update.
2566 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2567 (process_imported_unit_die): Update.
2568 (queue_and_load_dwo_tu): Update.
2569 (follow_die_offset): Update.
2570 (follow_die_sig_1): Update.
2571
9f47c707
SM
25722020-05-27 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2575 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2576 (read_call_site_scope): Assign per_objfile.
2577 (dwarf2_per_cu_data::objfile): Remove.
2578 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2579 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2580 dwarf2_per_objfile parameter.
2581 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2582 dwarf2_per_objfile parameter.
2583 (dwarf_expr_reg_to_entry_parameter): Add output
2584 dwarf2_per_objfile parameter.
2585 (locexpr_get_frame_base): Update.
2586 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2587 <push_dwarf_reg_entry_value>: Update.
2588 <call_site_to_target_addr>: Update.
2589 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2590 parameter.
2591 (value_of_dwarf_reg_entry): Update.
2592 (rw_pieced_value): Update.
2593 (indirect_synthetic_pointer): Update.
2594 (dwarf2_evaluate_property): Update.
2595 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2596 parameter.
2597 (locexpr_read_variable): Update.
2598 (locexpr_get_symbol_read_needs): Update.
2599 (loclist_read_variable): Update.
2600
14095eb3
SM
26012020-05-27 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2604 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2605 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2606 parameter.
2607 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2608 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2609 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2610 parameter.
2611 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2612 sect_variable_value): Add dwarf2_per_objfile parameter.
2613 (class dwarf_evaluate_loc_desc) <dwarf_call,
2614 dwarf_variable_value>: Update.
2615 (fetch_const_value_from_synthetic_pointer): Add
2616 dwarf2_per_objfile parameter.
2617 (fetch_const_value_from_synthetic_pointer): Update.
2618 (coerced_pieced_ref): Update.
2619 (class symbol_needs_eval_context) <dwarf_call,
2620 dwarf_variable_value>: Update.
2621 (dwarf2_compile_expr_to_ax): Update.
2622
3c3cd3d4
SM
26232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2624
2625 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2626 parameter.
2627 (dwarf2_evaluate_loc_desc_full): Update.
2628
82ca3f51
SM
26292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2632 parameter.
2633 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2634 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2635 dwarf2_per_objfile parameter.
2636 (decode_debug_loc_dwo_addresses): Likewise.
2637 (dwarf2_find_location_expression): Update.
2638 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2639 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2640 parameter.
2641 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2642 parameter.
2643 (locexpr_describe_location_1): Likewise.
2644 (locexpr_describe_location): Update.
2645
4b167ea1
SM
26462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2649 Remove.
2650 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2651 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2652 (dwarf2_compile_property_to_c): Update.
2653 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2654 use text offset from objfile.
2655 (locexpr_tracepoint_var_ref): Update.
2656 (locexpr_generate_c_location): Update.
2657 (loclist_describe_location): Update.
2658 (loclist_tracepoint_var_ref): Update.
2659 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2660 dwarf2_per_objfile parameter.
2661 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2662 use text offset from objfile.
2663 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2664
89b07335
SM
26652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2666
2667 * dwarf2/expr.h (struct dwarf_expr_context)
2668 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2669 <offset>: Remove.
2670 <per_objfile>: New member.
2671 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2672 dwarf2_per_objfile parameter. Don't set offset, set
2673 per_objfile.
2674 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2675 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2676 a dwarf2_per_objfile object instead of an offset.
2677 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2678 constructor.
2679 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2680 to dwarf2_expr_executor constructor. Don't set offset.
2681 (dwarf2_fetch_cfa_info): Update.
2682 (struct dwarf2_frame_cache) <text_offset>: Remove.
2683 <per_objfile>: New field.
2684 (dwarf2_frame_cache): Update.
2685 (dwarf2_frame_prev_register): Update.
2686 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2687 <dwarf_evaluate_loc_desc>: Add constructor.
2688 (dwarf2_evaluate_loc_desc_full): Update.
2689 (dwarf2_locexpr_baton_eval): Update.
2690 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2691 Add constructor.
2692 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2693
293e7e51
SM
26942020-05-27 Simon Marchi <simon.marchi@efficios.com>
2695
2696 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2697 addr_sized_int_type>: Move to dwarf2_cu.
2698 <int_type>: Move to dwarf2_per_objfile.
2699 (struct dwarf2_per_objfile) <int_type>: Move here.
2700 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2701 addr_sized_int_type>: Move here.
2702 (read_func_scope): Update.
2703 (read_array_type): Update.
2704 (read_tag_string_type): Update.
2705 (attr_to_dynamic_prop): Update.
2706 (dwarf2_per_cu_data::int_type): Rename to...
2707 (dwarf2_per_objfile::int_type): ... this.
2708 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2709 (dwarf2_cu::addr_sized_int_type): ... this.
2710 (read_subrange_type): Update.
2711 (dwarf2_per_cu_data::addr_type): Rename to...
2712 (dwarf2_cu::addr_type): ... this.
2713 (set_die_type): Update.
2714
64874a40
SM
27152020-05-27 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2718 data through per_cu->cu.
2719
4ab09049
SM
27202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2723 dwarf2_per_cu_data parameter fo dwarf2_cu.
2724 (lookup_dwo_type_unit): Likewise.
2725 (read_cutu_die_from_dwo): Likewise.
2726 (lookup_dwo_unit): Likewise.
2727 (open_and_init_dwo_file): Likewise.
2728 (lookup_dwo_cutu): Likewise.
2729 (lookup_dwo_comp_unit): Likewise.
2730 (lookup_dwo_type_unit): Likewise.
2731 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2732 (cutu_reader::cutu_reader): Update.
2733
47b14e86
SM
27342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2737 parameter.
2738 (process_full_type_unit): Likewise.
2739 (process_queue): Update.
2740
43182c09
SM
27412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2742
2743 * dwarf2/read.c (recursively_compute_inclusions): Add
2744 dwarf2_per_objfile parameter.
2745 (compute_compunit_symtab_includes): Likewise.
2746 (process_cu_includes): Update.
2747
7aa104c4
SM
27482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2749
2750 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2751 parameter.
2752 (create_type_unit_group): Update.
2753 (process_psymtab_comp_unit_reader): Update.
2754 (build_type_psymtabs_reader): Update.
2755
e3beb21d
SM
27562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2759 object through m_this_cu->cu.
2760
d460f660
SM
27612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2762
2763 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2764 the info parameter.
2765 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2766
ab432490
SM
27672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2768
2769 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2770 per_objfile parameter.
2771 (load_full_type_unit): Add per_objfile parameter.
2772 (read_signatured_type): Likewise.
2773 (load_full_comp_unit): Likewise.
2774 (load_cu): Likewise.
2775 (dw2_do_instantiate_symtab): Likewise.
2776 (dw2_get_file_names): Likewise.
2777 (dw2_map_symtabs_matching_filename): Update.
2778 (dw_expand_symtabs_matching_file_matcher): Update.
2779 (dw2_map_symbol_filenames): Update.
2780 (process_psymtab_comp_unit): Add per_objfile parameter.
2781 (build_type_psymtabs_1): Update.
2782 (process_skeletonless_type_unit): Update.
2783 (dwarf2_build_psymtabs_hard): Update.
2784 (load_partial_comp_unit): Add per_objfile parameter.
2785 (scan_partial_symbols): Update.
2786 (load_full_comp_unit): Add per_objfile parameter.
2787 (process_imported_unit_die): Update.
2788 (create_cus_hash_table): Update.
2789 (find_partial_die): Update.
2790 (dwarf2_read_addr_index): Update.
2791 (follow_die_offset): Update.
2792 (dwarf2_fetch_die_loc_sect_off): Update.
2793 (dwarf2_fetch_constant_bytes): Update.
2794 (dwarf2_fetch_die_type_sect_off): Update.
2795 (follow_die_sig_1): Update.
2796 (load_full_type_unit): Add per_objfile parameter.
2797 (read_signatured_type): Likewise.
2798
313bad1b
SM
27992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2800
2801 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2802 of objfile_name.
2803
c3699833
SM
28042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2805
2806 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2807 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2808 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2809 field.
2810 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2811 (create_cus_from_index): Update.
2812 (dwarf2_read_gdb_index): Update.
2813 (create_cus_from_debug_names): Update.
2814 (dwarf2_read_debug_names): Update.
2815 (get_abbrev_section_for_cu): Update.
2816 (create_all_comp_units): Update.
2817 (read_attribute_value): Update.
2818 (get_debug_line_section): Update.
2819 * dwarf2/index-cache.c (index_cache::store): Update.
2820 * dwarf2/index-write.c (save_gdb_index_command): Update.
2821 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2822
1859c670
SM
28232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2826 member.
2827 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2828 dwarf2_per_cu_data::per_bfd.
2829 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2830 (create_type_unit_group): Likewise.
2831 (queue_comp_unit): Remove reference to
2832 per_cu->dwarf2_per_objfile.
2833 (maybe_queue_comp_unit): Likewise.
2834 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2835 (create_cus_hash_table): Assign new field.
2836
5e22e966
SM
28372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * dwarf2/read.c: Replace
2840 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2841 dwarf2_cu->per_objfile throughout.
2842
97a1449a
SM
28432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2846 parameter, don't use per_cu->dwarf2_per_objfile.
2847 (dw2_instantiate_symtab): Likewise.
2848 (dw2_find_last_source_symtab): Update.
2849 (dw2_map_expand_apply): Update.
2850 (dw2_lookup_symbol): Update.
2851 (dw2_expand_symtabs_for_function): Update.
2852 (dw2_expand_all_symtabs): Update.
2853 (dw2_expand_symtabs_with_fullname): Update.
2854 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2855 don't use per_cu->dwarf2_per_objfile.
2856 (dw2_expand_marked_cus): Update.
2857 (dw2_find_pc_sect_compunit_symtab): Update.
2858 (dw2_debug_names_lookup_symbol): Update.
2859 (dw2_debug_names_expand_symtabs_for_function): Update.
2860 (dw2_debug_names_map_matching_symbols): Update.
2861 (dwarf2_psymtab::expand_psymtab): Update.
2862
9e021579
SM
28632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2866 <per_objfile>: New member.
2867 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2868 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2869 call to dwarf2_cu.
2870 (cutu_reader::cutu_reader): Update.
2871 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2872
ae090bdb
SM
28732020-05-27 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2876 struct dwarf2_per_objfile.
2877 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2878 dwarf2_per_bfd.
2879 * dwarf2/read.c (set_die_type): Update.
2880 (get_die_type_at_offset): Update.
2881
af758d11
SM
28822020-05-27 Tom Tromey <tom@tromey.com>
2883 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2886 method.
2887 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2888 get_symtab, set_symtab>: New methods.
2889 <m_symtabs>: New field.
2890 (struct dwarf2_psymtab): Derive from partial_symtab.
2891 <readin_p, get_compunit_symtab>: Declare methods.
2892 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2893 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2894 New methods.
2895 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2896 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2897 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2898 (dw2_symtab_iter_next, dw2_print_stats)
2899 (dw2_expand_symtabs_with_fullname)
2900 (dw2_expand_symtabs_matching_one)
2901 (dw_expand_symtabs_matching_file_matcher)
2902 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2903 (dw2_debug_names_iterator::next)
2904 (dw2_debug_names_map_matching_symbols)
2905 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2906 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2907 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2908 New methods.
2909 (get_compunit_symtab, process_full_comp_unit)
2910 (process_full_type_unit): Update.
2911 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2912
5989a64e
SM
29132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2914
2915 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2916 then introduce a new dwarf2_per_objfile type.
2917 <read_line_string>: Move to the new dwarf2_per_objfile type.
2918 <objfile>: Likewise.
2919 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2920 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2921 dwarf2_per_objfile->per_bfd.
2922 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2923 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2924 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2925 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2926 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2927 (dwarf2_per_objfile::locate_sections): Rename to...
2928 (dwarf2_per_bfd::locate_sections): ... this.
2929 (dwarf2_per_objfile::get_cutu): Rename to...
2930 (dwarf2_per_bfd::get_cutu): ... this.
2931 (dwarf2_per_objfile::get_cu): Rename to...
2932 (dwarf2_per_bfd::get_cu): ... this.
2933 (dwarf2_per_objfile::get_tu): Rename to...
2934 (dwarf2_per_bfd::get_tu): ... this.
2935 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2936 (dwarf2_per_bfd::allocate_per_cu): ... this.
2937 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2938 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2939 (get_gdb_index_contents_ftype): Change parameter from
2940 dwarf2_per_objfile to dwarf2_per_bfd.
2941 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2942 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2943
a50264ba
TT
29442020-05-27 Tom Tromey <tom@tromey.com>
2945 Simon Marchi <simon.marchi@efficios.com>
2946
2947 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2948 (allocate_piece_closure): Set "per_objfile" member.
2949 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2950 (locexpr_describe_location, loclist_describe_location): Use new
2951 member.
2952 * dwarf2/read.c (read_call_site_scope)
2953 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2954 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2955 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2956 handle_data_member_location): Set per_objfile member.
2957 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2958 member.
2959 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2960
d3473f0c
TT
29612020-05-27 Tom Tromey <tom@tromey.com>
2962
2963 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2964 allocate_signatured_type>: Declare new methods.
2965 <m_num_psymtabs>: New member.
2966 (struct dwarf2_per_cu_data) <index>: New member.
2967 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2968 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2969 (create_cu_from_index_list): Use allocate_per_cu.
2970 (create_signatured_type_table_from_index)
2971 (create_signatured_type_table_from_debug_names)
2972 (create_debug_type_hash_table, add_type_unit)
2973 (read_comp_units_from_section): Use allocate_signatured_type.
2974
5717c425
TT
29752020-05-27 Tom Tromey <tom@tromey.com>
2976
2977 * psymtab.c (partial_map_expand_apply)
2978 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2979 (psym_lookup_global_symbol_language)
2980 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2981 (psym_print_stats, psym_expand_symtabs_for_function)
2982 (psym_map_symbol_filenames, psym_map_matching_symbols)
2983 (psym_expand_symtabs_matching)
2984 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2985 (maintenance_check_psymtabs): Update.
2986 * psympriv.h (struct partial_symtab) <readin_p,
2987 get_compunit_symtab>: Add objfile parameter.
2988 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2989 Likewise.
2990 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2991 get_compunit_symtab>: Likewise.
2992 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2993
45940949
TT
29942020-05-27 Tom Tromey <tom@tromey.com>
2995
2996 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2997 member.
2998 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2999 (create_cu_from_index_list)
3000 (create_signatured_type_table_from_index)
3001 (create_signatured_type_table_from_debug_names)
3002 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3003 (dwarf2_create_include_psymtab)
3004 (create_debug_type_hash_table, add_type_unit)
3005 (create_type_unit_group, read_comp_units_from_section)
3006 (dwarf2_compute_name, create_cus_hash_table)
3007 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3008 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3009 obstack.
3010 (dw2_get_real_path): Likewise. Change argument to
3011 dwarf2_per_objfile.
3012
f8c6d152
LM
30132020-05-27 Luis Machado <luis.machado@linaro.org>
3014
3015 PR tdep/26000
3016 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3017 for ldrd (immediate).
3018
e98d2e6d
PW
30192020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3020
3021 * command.h: Add comment giving the name of class_tui.
3022 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3023 create the fake command for the help for class_tui.
3024
53a47a3e
TT
30252020-05-26 Tom Tromey <tromey@adacore.com>
3026
3027 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3028 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3029 (val_atr): New function.
3030 (value_val_atr): Use it.
3031 * ada-valprint.c (print_optional_low_bound): Change low bound
3032 handling for enums.
3033 (val_print_packed_array_elements): Don't call discrete_position.
3034 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3035 discrete_position for enum types.
3036 * language.c (default_print_array_index): Change type.
3037 * language.h (struct language_defn) <la_print_array_index>: Add
3038 index_type parameter, change type of index_value.
3039 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3040 (default_print_array_index): Update.
3041 * valprint.c (maybe_print_array_index): Don't call
3042 value_from_longest. Update.
3043 (value_print_array_elements): Don't call discrete_position.
3044
0bc2354b
TT
30452020-05-26 Tom Tromey <tromey@adacore.com>
3046
3047 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3048 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3049
1218a4bf
CDA
30502020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3051
3052 PR gdb/13519
3053 * avr-tdep.c (avr_integer_to_address): Return data or code
3054 address accordingly to the second 'type' argument of the
3055 function.
3056
92651b1d
MW
30572020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3058
3059 * infcmd.c, inferior.h: (construct_inferior_arguments):
3060 Moved function from here to gdbsupport/common-inferior.{h,cc}
3061
0a4f5f8c
TT
30622020-05-23 Tom Tromey <tom@tromey.com>
3063
3064 Revert commit eca1f90c:
3065 * NEWS: Remove entry for completion styling.
3066 * completer.c (_rl_completion_prefix_display_length): Move
3067 declaration later.
3068 (gdb_fnprint): Revert.
3069 (gdb_display_match_list_1): Likewise.
3070 * cli/cli-style.c (completion_prefix_style)
3071 (completion_difference_style, completion_suffix_style): Remove.
3072 (_initialize_cli_style): Revert.
3073 * cli/cli-style.h (completion_prefix_style)
3074 (completion_difference_style, completion_suffix_style): Don't
3075 declare.
3076
e08bd6c5
PA
30772020-05-24 Pedro Alves <palves@redhat.com>
3078
3079 * symtab.c (completion_list_add_name): Return boolean indication
3080 of whether the symbol matched.
3081 (completion_list_add_symbol): Don't try to remove C++ aliases if
3082 the symbol didn't match in the first place.
3083 * symtab.h (completion_list_add_name): Return bool.
3084
ceacbf6e
SM
30852020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3086
3087 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3088 type::field.
3089
26f16254
JB
30902020-05-23 Joel Brobecker <brobecker@adacore.com>
3091
3092 GDB 9.2 released.
3093
eca1f90c
TT
30942020-05-23 Tom Tromey <tom@tromey.com>
3095
3096 * NEWS: Add entry for completion styling.
3097 * completer.c (_rl_completion_prefix_display_length): Move
3098 declaration earlier.
3099 (gdb_fnprint): Use completion_style.
3100 (gdb_display_match_list_1): Likewise.
3101 * cli/cli-style.c (completion_prefix_style)
3102 (completion_difference_style, completion_suffix_style): New
3103 globals.
3104 (_initialize_cli_style): Register new globals.
3105 * cli/cli-style.h (completion_prefix_style)
3106 (completion_difference_style, completion_suffix_style): Declare.
3107
51e2cfa2
PA
31082020-05-23 Pedro Alves <palves@redhat.com>
3109
3110 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3111 (parse_escape): Use ISDIGIT instead of isdigit.
3112 (puts_debug): Use gdb_isprint instead of isprint.
3113 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3114 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3115 ISSPACE instead of isspace.
3116 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3117 instead of isspace.
3118 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3119 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3120 instead of isxdigit and ISDIGIT instead of isdigit.
3121
80fc5e77
SM
31222020-05-22 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * gdbtypes.h (struct type) <field>: New method.
3125 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3126 or type::field.
3127
3cabb6b0
SM
31282020-05-22 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3131 (TYPE_FIELDS): Use type::fields. Change all call sites that
3132 modify the propery to use type::set_fields instead.
3133
1f704f76
SM
31342020-05-22 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3137 type::num_fields instead.
3138
5e33d5f4
SM
31392020-05-22 Simon Marchi <simon.marchi@efficios.com>
3140
3141 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3142 methods.
3143 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3144 that modify the number of fields to use type::set_num_fields
3145 instead.
3146
9392ebb3
TT
31472020-05-22 Tom Tromey <tromey@adacore.com>
3148
3149 * compile/compile-object-load.h (munmap_list_free): Don't
3150 declare.
3151
7c13f4e8
AB
31522020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * annotate.c (annotate_source_line): Update return type, add call
3155 to update current symtab and line.
3156 * annotate.h (annotate_source_line): Update return type, and
3157 extend header comment.
3158 * source.c (info_line_command): Check annotation_level before
3159 calling annotate_source_line.
3160 * stack.c (print_frame_info): If calling annotate_source_line
3161 returns true, then don't print any other source line information.
3162
aa370940
SM
31632020-05-21 Simon Marchi <simon.marchi@efficios.com>
3164
3165 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3166
84d53fa9
SM
31672020-05-21 Simon Marchi <simon.marchi@efficios.com>
3168
3169 * coffread.c (patch_type): Remove NULL check before xfree.
3170 * corefile.c (set_gnutarget): Likewise.
3171 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3172 * exec.c (build_section_table): Likewise.
3173 * remote.c (remote_target::pass_signals): Likewise.
3174 * utils.c (n_spaces): Likewise.
3175 * cli/cli-script.c (document_command): Likewise.
3176 * i386-windows-tdep.c (core_process_module_section): Likewise.
3177 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3178
9d428aae
SM
31792020-05-20 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * symfile.c (reread_symbols): Clear objfile's section_offsets
3182 vector and section indices, re-compute them by calling
3183 sym_offsets.
3184
250106a7
TT
31852020-05-20 Tom Tromey <tromey@adacore.com>
3186
3187 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3188 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3189
9a0bacfb
TV
31902020-05-20 Tom de Vries <tdevries@suse.de>
3191
3192 PR symtab/25833
3193 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3194
7b958a48
AM
31952020-05-20 Alan Modra <amodra@gmail.com>
3196
3197 PR 25993
3198 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3199 bfd_set_filename.
3200 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3201 passed to bfd_set_filename.
3202 * symfile-mem.c (add_vsyscall_page): Likewise for string
3203 passed to symbol_file_add_from_memory.
3204 (symbol_file_add_from_memory): Make name param a const char* and
3205 don't strdup.
3206
c7e97679
AM
32072020-05-20 Alan Modra <amodra@gmail.com>
3208
3209 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3210 rather than accessing bfd->filename directly.
3211 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3212 and use bfd_section_name.
3213 * dwarf2/frame.c (decode_frame_entry): Likewise.
3214 * exec.c (exec_set_section_address): Likewise.
3215 * solib-aix.c (solib_aix_bfd_open): Likewise.
3216 * stap-probe.c (get_stap_base_address): Likewise.
3217 * symfile.c (reread_symbols): Likewise.
3218
563c591b
TT
32192020-05-19 Tom Tromey <tromey@adacore.com>
3220
3221 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3222
f408d82c
SM
32232020-05-19 Simon Marchi <simon.marchi@efficios.com>
3224
3225 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3226
98c59b52
PA
32272020-05-19 Pedro Alves <palves@redhat.com>
3228
3229 * NEWS (set exec-file-mismatch): Adjust entry.
3230 * exec.c: Include "build-id.h".
3231 (validate_exec_file): Try to match build IDs instead of filenames.
3232 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3233 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3234 and pass down 'warn_if_slow'.
3235 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3236 gdb_bfd_open_closure to pass it down.
3237 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3238
4111f652
PA
32392020-05-19 Pedro Alves <palves@redhat.com>
3240
3241 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3242 * target.c (target_fileio_open_1): Rename to target_fileio_open
3243 and make extern. Use bool.
3244 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3245 (target_fileio_read_alloc_1): Adjust.
3246 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3247 (target_fileio_open_warn_if_slow): Delete declaration.
3248
ad80db5b
PA
32492020-05-19 Pedro Alves <palves@redhat.com>
3250
3251 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3252 Adjust all callers.
3253
1d6ce4d3
YS
32542020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3255
3256 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3257 whether disp is negative.
3258
9005fbbb
SM
32592020-05-19 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * symfile.h (struct symfile_segment_data)
3262 <~symfile_segment_data>: Remove.
3263 <segment_info>: Change to std::vector.
3264 * symfile.c (default_symfile_segments): Update.
3265 * elfread.c (elf_symfile_segments): Update.
3266
68b888ff
SM
32672020-05-19 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3270 <segments>: New.
3271 <segment_bases, segment_sizes>: Remove.
3272 * symfile.c (default_symfile_segments): Update.
3273 * elfread.c (elf_symfile_segments): Update.
3274 * remote.c (remote_target::get_offsets): Update.
3275 * solib-target.c (solib_target_relocate_section_addresses):
3276 Update.
3277
62982abd
SM
32782020-05-19 Simon Marchi <simon.marchi@efficios.com>
3279
3280 * symfile.h (struct symfile_segment_data): Initialize fields.
3281 <~symfile_segment_data>: Add.
3282 (symfile_segment_data_up): New.
3283 (struct sym_fns) <sym_segments>: Return a
3284 symfile_segment_data_up.
3285 (default_symfile_segments): Return a symfile_segment_data_up.
3286 (free_symfile_segment_data): Remove.
3287 (get_symfile_segment_data): Return a symfile_segment_data_up.
3288 * symfile.c (default_symfile_segments): Likewise.
3289 (get_symfile_segment_data): Likewise.
3290 (free_symfile_segment_data): Remove.
3291 (symfile_find_segment_sections): Update.
3292 * elfread.c (elf_symfile_segments): Return a
3293 symfile_segment_data_up.
3294 * remote.c (remote_target::get_offsets): Update.
3295 * solib-target.c (solib_target_relocate_section_addresses):
3296 Update.
3297 * symfile-debug.c (debug_sym_segments): Return a
3298 symfile_segment_data_up.
3299
7f204339
RO
33002020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3301
e52a0f1b
RO
3302 PR build/25981
3303 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3304 Hardcode register numbers.
3305
7f204339
RO
3306 PR build/25981
3307 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3308 procfs_find_LDT_entry): Remove.
3309 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3310 procfs_find_LDT_entry): Remove.
3311 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3312 Remove.
3313
7f32a4d5
PA
33142020-05-17 Pedro Alves <palves@redhat.com>
3315 Andrew Burgess <andrew.burgess@embecosm.com>
3316 Keno Fischer <keno@juliacomputing.com>
3317
3318 PR gdb/25741
3319 * breakpoint.c (build_target_condition_list): Update comments.
3320 (build_target_command_list): Update comments and skip matching
3321 locations.
3322 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3323 a separate function. Simplify "set breakpoint auto-hw off"
3324 handling.
3325 (insert_breakpoints): Update comment.
3326 (tracepoint_locations_match): New parameter. For breakpoints,
3327 compare location types too, if the caller wants to.
3328 (handle_automatic_hardware_breakpoints): New functions.
3329 (bp_location_is_less_than): Also sort by location type and
3330 hardware breakpoint length.
3331 (update_global_location_list): Handle "set breakpoint auto-hw on"
3332 here.
3333 (update_breakpoint_locations): Ask breakpoint_locations_match to
3334 ignore location types.
3335
7d93a1e0
SM
33362020-05-16 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3339 type::name instead.
3340
d0e39ea2
SM
33412020-05-16 Simon Marchi <simon.marchi@efficios.com>
3342
3343 * gdbtypes.h (struct type) <name, set_name>: New methods.
3344 (TYPE_CODE): Use type::name. Change all call sites used to set
3345 the name to use type::set_name instead.
3346
2dab0c7b
TT
33472020-05-16 Tom Tromey <tom@tromey.com>
3348
3349 * top.c (quit_force): Update.
3350 * infrun.c (handle_no_resumed): Update.
3351 * top.h (all_uis): New function.
3352 (ALL_UIS): Remove.
3353
59f7bd8d
SM
33542020-05-16 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3357
9bf058f0
PA
33582020-05-16 Pedro Alves <palves@redhat.com>
3359
3360 * ia64-linux-nat.c
3361 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3362 Declare method.
3363 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3364
8f86ae1a
SM
33652020-05-15 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3368 (sparc64_adi_info): Likewise.
3369
d6bc0792
TT
33702020-05-15 Tom Tromey <tom@tromey.com>
3371
3372 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3373 block_objfile.
3374 (lookup_objfile_from_block): Remove.
3375 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3376 (lookup_global_symbol): Use block_objfile.
3377 * symtab.h (lookup_objfile_from_block): Don't declare.
3378 * printcmd.c (clear_dangling_display_expressions): Use
3379 block_objfile.
3380 * parse.c (operator_check_standard): Use block_objfile.
3381
8c14c3a3
TT
33822020-05-15 Tom Tromey <tom@tromey.com>
3383
3384 * language.c (language_alloc_type_symbol): Set
3385 SYMBOL_SECTION.
3386 * symtab.c (initialize_objfile_symbol): Remove.
3387 (allocate_symbol): Remove.
3388 (allocate_template_symbol): Remove.
3389 * dwarf2/read.c (fixup_go_packaging): Use "new".
3390 (new_symbol): Use "new".
3391 (read_variable): Don't call initialize_objfile_symbol. Use
3392 "new".
3393 (read_func_scope): Use "new".
3394 * xcoffread.c (process_xcoff_symbol): Don't call
3395 initialize_objfile_symbol.
3396 (SYMBOL_DUP): Remove.
3397 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3398 "new".
3399 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3400 (allocate_template_symbol): Don't declare.
3401 (struct symbol): Add copy constructor. Change defaults.
3402 * jit.c (finalize_symtab): Use "new".
3403 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3404 Use "new".
3405 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3406 (common_block_end): Use "new".
3407 * mdebugread.c (parse_symbol): Use "new".
3408 (new_symbol): Likewise.
3409
5b4a1a8d
PW
34102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3411
3412 * NEWS: Mention changes to help and apropos.
3413
57b4f16e
PW
34142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3415
3416 * command.h (enum command_class): Improve comments, document
3417 that class_alias is for user-defined aliases, give the class
3418 name for each class, remove unused class_xdb.
3419 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3420 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3421 by a precise class.
3422 * infcmd.c (_initialize_infcmd): Likewise.
3423 * reverse.c (_initialize_reverse): Likewise.
3424 * stack.c (_initialize_stack): Likewise.
3425 * symfile.c (_initialize_symfile): Likewise.
3426 * tracepoint.c (_initialize_tracepoint): Likewise.
3427
7c05caf7
PW
34282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3429
3430 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3431 when their aliased command is traversed.
3432 (help_cmd): Add fput_command_names_styled call to
3433 output command name and aliases when command has an alias.
3434
3b3aaacb
PW
34352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3436
3437 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3438 * cli/cli-decode.c (help_cmd_list): Declare as static,
3439 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3440 a command together with the command.
3441 (fput_command_name_styled, fput_command_names_styled): New functions.
3442 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3443 fput_command_name_styled.
3444 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3445 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3446
7aa1b46f
PW
34472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3448
3449 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3450 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3451 * command.h (cmd_show_list): Likewise.
3452 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3453 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3454
89bcba74
PW
34552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3456
3457 * unittests/command-def-selftests.c (traverse_command_structure):
3458 Verify all commands of a list have the same prefix command and
3459 that only the top cmdlist commands have a null prefix.
3460
3f4d92eb
PW
34612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3462
3463 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3464 as prefix, not one of its aliases.
3465 (set_cmd_prefix): Remove.
3466 (do_add_cmd): Centralize the setting of the prefix of a command, when
3467 command is defined after its full chain of prefix commands.
3468 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3469 (add_setshow_cmd_full): Likewise.
3470 (update_prefix_field_of_prefixed_commands): New function.
3471 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3472 update_prefix_field_of_prefixed_commands.
3473 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3474 addresses of remote_set_cmdlist and remote_show_cmdlist given
3475 as argument, not the address of an argument.
3476 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3477 * gdb/remote.c (_initialize_remote): Likewise.
3478
0605465f
PW
34792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3480
3481 * cli/cli-cmds.c (alias_command): Check for an existing alias
3482 using lookup_cmd_composition, as valid_command_p is too strict
3483 and forbids aliases that are the prefix of an existing alias
3484 or command.
3485 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3486 command is properly recognised as a valid command.
3487
58e6ac70
PW
34882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3489
3490 * unittests/help-doc-selftests.c: Rename to
3491 unittests/command-def-selftests.c
3492 * unittests/command-def-selftests.c (help_doc_tests): Update some
3493 comments.
3494 (command_structure_tests, traverse_command_structure): New namespace
3495 and function.
3496 (command_structure_invariants_tests): New function.
3497 (_initialize_command_def_selftests) Renamed from
3498 _initialize_help_doc_selftests, register command_structure_invariants
3499 selftest.
3500
a7b9ceb8
PW
35012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3502
3503 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3504 an alias of 'show'.
3505
b2188a06
JB
35062020-05-15 Joel Brobecker <brobecker@adacore.com>
3507
3508 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3509 ada_is_fixed_point_type. Update all callers.
3510 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3511 all callers.
3512 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3513 Update all callers.
3514 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3515 print_fixed_point_type. Update all callers.
3516 * ada-valprint.c (ada_value_print_num): Replace call to
3517 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3518
a51951c2
KB
35192020-05-14 Kevin Buettner <kevinb@redhat.com>
3520
3521 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3522 processors.
3523 (cpu_supports_bts): Add CV_AMD case.
3524
29d6859f
LM
35252020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3526 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * infrun.c (stop_all_threads): Collect multiple wait events at
3529 each pass.
3530
78134374
SM
35312020-05-14 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3534 type::code instead.
3535
67607e24
SM
35362020-05-14 Simon Marchi <simon.marchi@efficios.com>
3537
3538 * gdbtypes.h (struct type) <code, set_code>: New methods.
3539 (TYPE_CODE): Use type::code. Change all call sites used to set
3540 the code to use type::set_code instead.
3541
a05575d3
TBA
35422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543 Tom de Vries <tdevries@suse.de>
3544 Pedro Alves <palves@redhat.com>
3545
3546 PR threads/25478
3547 * infrun.c (stop_all_threads): Do NOT ignore
3548 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3549 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3550 received.
3551 (handle_no_resumed): Remove code handling a live inferior with no
3552 threads.
3553 * remote.c (has_single_non_exited_thread): New.
3554 (remote_target::update_thread_list): Do not delete a thread if is
3555 the last thread of the process.
3556 * thread.c (thread_select): Call delete_exited_threads instead of
3557 prune_threads.
3558
6ad82919
TBA
35592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3560
3561 * infrun.c (stop_all_threads): Enable/disable thread events of all
3562 targets. Move a debug message denoting the end of the function
3563 into the SCOPED_EXIT block.
3564
d890404b
TBA
35652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3566
3567 * process-stratum-target.h: Include <set>.
3568 (all_non_exited_process_targets, switch_to_target_no_thread): New
3569 function declarations.
3570 * process-stratum-target.c (all_non_exited_process_targets)
3571 (switch_to_target_no_thread): New function implementations.
3572
293b3ebc
TBA
35732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3574
3575 * infrun.c (handle_inferior_event): Extract out a piece of code
3576 into...
3577 (mark_non_executing_threads): ...this new function.
3578
7ca9b62a
TBA
35792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3580
3581 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3582 use.
3583
fc75c28b
TBA
35842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3585
3586 * regcache.c (regcache_read_pc_protected): New function
3587 implementation that returns 0 if the PC cannot read via
3588 'regcache_read_pc'.
3589 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3590 instead of 'regcache_read_pc'.
3591 (keep_going_pass_signal): Ditto.
3592
a89febbd
TT
35932020-05-13 Tom Tromey <tromey@adacore.com>
3594
3595 * ada-lang.c (align_value): Remove.
3596 (ada_template_to_fixed_record_type_1): Use align_up.
3597
f7e23710
TBA
35982020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3599
3600 * async-event.c: Update the copyright year.
3601 * async-event.h: Update the copyright year.
3602
02ff80c2
SM
36032020-05-12 Simon Marchi <simon.marchi@efficios.com>
3604
3605 * objfiles.h (is_addr_in_objfile,
3606 shared_objfile_contains_address_p): Return bool.
3607 * objfile.c (is_addr_in_objfile,
3608 shared_objfile_contains_address_p): Return bool.
3609
4fd6c7e8
TT
36102020-05-11 Tom Tromey <tromey@adacore.com>
3611
3612 * cli/cli-cmds.c (info_command): Restore.
3613 (_initialize_cli_cmds): Use add_prefix_command for "info".
3614 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3615
5eb68a39
TT
36162020-05-11 Tom Tromey <tromey@adacore.com>
3617
3618 * ada-lang.c (ada_value_primitive_field): Now public.
3619 * ada-lang.h (ada_value_primitive_field): Declare.
3620 * ada-valprint.c (print_field_values): Use
3621 ada_value_primitive_field for wrapper fields.
3622
7666722f
TV
36232020-05-11 Tom de Vries <tdevries@suse.de>
3624
3625 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3626 MODULE_DOMAIN.
3627
3ee6bb11
TV
36282020-05-11 Tom de Vries <tdevries@suse.de>
3629
3630 PR symtab/25941
3631 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3632 with length 0, if not gdb-produced.
3633 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3634
43434996
TV
36352020-05-09 Tom de Vries <tdevries@suse.de>
3636
3637 PR gdb/25955
3638 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3639 calculation.
3640
2f78cffc
TT
36412020-05-09 Tom Tromey <tom@tromey.com>
3642
3643 * top.c (server_command): Now bool.
3644 * top.h (server_command): Now bool.
3645
4f7bc5ed
TT
36462020-05-08 Tom Tromey <tromey@adacore.com>
3647
3648 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3649 already being processed.
3650
8be4b118
TT
36512020-05-08 Tom Tromey <tom@tromey.com>
3652
3653 * printcmd.c (struct display) <next>: Remove.
3654 <display>: New constructor.
3655 <exp_string>: Now a std::string.
3656 <enabled_p>: Now a bool.
3657 (display_number): Move definition earlier.
3658 (displays): Rename from display_chain. Now a std::vector.
3659 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3660 (display_command): Update.
3661 (do_one_display, disable_display)
3662 (enable_disable_display_command, do_enable_disable_display):
3663 Update.
3664 (free_display): Remove.
3665 (clear_displays): Rewrite.
3666 (delete_display): Update.
3667 (map_display_numbers): Use function_view. Remove "data"
3668 parameter. Update.
3669 (do_delete_display): Remove.
3670 (undisplay_command): Update.
3671 (do_one_display, do_displays, disable_display)
3672 (info_display_command): Update.
3673 (do_enable_disable_display): Remove.
3674 (enable_disable_display_command)
3675 (clear_dangling_display_expressions): Update.
3676
94c93c35
TT
36772020-05-08 Tom Tromey <tom@tromey.com>
3678
3679 * symtab.c (set_symbol_cache_size)
3680 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3681 (maintenance_print_symbol_cache_statistics): Update.
3682 * symmisc.c (print_symbol_bcache_statistics)
3683 (print_objfile_statistics, maintenance_print_objfiles)
3684 (maintenance_info_symtabs, maintenance_check_symtabs)
3685 (maintenance_expand_symtabs, maintenance_info_line_tables):
3686 Update.
3687 * symfile-debug.c (set_debug_symfile): Update.
3688 * source.c (forget_cached_source_info): Update.
3689 * python/python.c (gdbpy_progspaces): Update.
3690 * psymtab.c (maintenance_info_psymtabs): Update.
3691 * probe.c (parse_probes): Update.
3692 * linespec.c (iterate_over_all_matching_symtabs)
3693 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3694 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3695 * exec.c (exec_target::close): Update.
3696 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3697 * breakpoint.c (print_one_breakpoint_location)
3698 (create_longjmp_master_breakpoint)
3699 (create_std_terminate_master_breakpoint): Update.
3700 * progspace.c (program_spaces): Now a std::vector.
3701 (maybe_new_address_space): Update.
3702 (add_program_space): Remove.
3703 (program_space::program_space): Update.
3704 (remove_program_space): Update.
3705 (number_of_program_spaces): Remove.
3706 (print_program_space, update_address_spaces): Update.
3707 * progspace.h (program_spaces): Change type.
3708 (ALL_PSPACES): Remove.
3709 (number_of_program_spaces): Don't declare.
3710 (struct program_space) <next>: Remove.
3711
a1fd1ac9
TT
37122020-05-08 Tom Tromey <tom@tromey.com>
3713
3714 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3715 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3716 (enable_break): Update.
3717 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3718 (frv_fdpic_find_canonical_descriptor): Update.
3719 (frv_fetch_objfile_link_map): Update.
3720 * progspace.c (program_space::free_all_objfiles): Update.
3721 (program_space::solibs): New method.
3722 * progspace.h (struct program_space) <solibs>: New method.
3723 * solist.h (master_so_list): Don't declare.
3724 (ALL_SO_LIBS): Remove.
3725 * solib.h (so_list_head): Remove.
3726 (update_solib_list): Update comment.
3727 * solib.c (master_so_list): Remove.
3728 (solib_used, update_solib_list, solib_add)
3729 (info_sharedlibrary_command, clear_solib)
3730 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3731
38eae084
TT
37322020-05-08 Tom Tromey <tom@tromey.com>
3733
3734 * extension.c (extension_languages): Now a std::array.
3735 (ALL_EXTENSION_LANGUAGES): Remove.
3736 (get_ext_lang_defn, get_ext_lang_of_file)
3737 (eval_ext_lang_from_control_command): Update.
3738 (finish_ext_lang_initialization)
3739 (auto_load_ext_lang_scripts_for_objfile)
3740 (ext_lang_type_printers::ext_lang_type_printers)
3741 (apply_ext_lang_type_printers)
3742 (ext_lang_type_printers::~ext_lang_type_printers)
3743 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3744 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3745 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3746 (get_matching_xmethod_workers, ext_lang_colorize)
3747 (ext_lang_before_prompt): Update.
3748 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3749
596dc4ad
TT
37502020-05-08 Tom Tromey <tom@tromey.com>
3751
3752 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3753 overload.
3754 <swap_string, m_string>: Remove.
3755 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3756 Update.
3757 * stabsread.c (define_symbol, read_type): Update.
3758 * linespec.c (find_linespec_symbols): Update.
3759 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3760 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3761 * dbxread.c (read_dbx_symtab): Update.
3762 * cp-support.h (cp_canonicalize_string_full)
3763 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3764 Return unique_xmalloc_ptr.
3765 * cp-support.c (inspect_type): Update.
3766 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3767 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3768 Likewise.
3769 * c-typeprint.c (print_name_maybe_canonical): Update.
3770 * break-catch-throw.c (check_status_exception_catchpoint):
3771 Update.
3772
bf4cb9be
TV
37732020-05-08 Tom de Vries <tdevries@suse.de>
3774
3775 * infrun.c (follow_fork): Copy current_line and current_symtab to
3776 child thread.
3777
a1b68f28
SM
37782020-05-07 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * async-event.c (struct async_signal_handler, struct
3781 async_event_handler): Reformat, remove typedef.
3782
98d48915
SM
37832020-05-07 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3786 access thistype->main_type->dyn_prop_list directly.
3787
7aa91313
SM
37882020-05-07 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3791 (remove_dyn_prop): Remove. Update all users to use
3792 type::remove_dyn_prop.
3793 * gdbtypes.c (remove_dyn_prop): Rename to...
3794 (type::remove_dyn_prop): ... this.
3795
5c54719c
SM
37962020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3797
3798 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3799 (add_dyn_prop): Remove. Update all users to use
3800 type::add_dyn_prop.
3801 * gdbtypes.c (add_dyn_prop): Rename to...
3802 (type::add_dyn_prop): ... this.
3803
24e99c6c
SM
38042020-05-07 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3807 (get_dyn_prop): Remove. Update all users to use
3808 type::dyn_prop.
3809 * gdbtypes.c (get_dyn_prop): Rename to...
3810 (type::dyn_prop): ... this.
3811
0d4bf016
SM
38122020-05-06 Simon Marchi <simon.marchi@efficios.com>
3813
3814 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3815
ac4a4f1c
SM
38162020-05-06 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3819 instruction, skip it if it's there.
3820
a3bbacc1
SM
38212020-05-05 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3824
c3236f84
SM
38252020-05-04 Simon Marchi <simon.marchi@efficios.com>
3826
3827 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3828 * gdbtypes.c (recursive_dump_type): Remove use of
3829 TYPE_INCOMPLETE.
3830
3b6acaee
TT
38312020-05-03 Tom Tromey <tom@tromey.com>
3832
3833 * breakpoint.c (catch_command, tcatch_command): Remove.
3834 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3835 add_show_prefix_cmd.
3836 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3837 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3838 Remove.
3839 (add_internal_problem_command): Use add_basic_prefix_cmd,
3840 add_show_prefix_cmd.
3841 * mips-tdep.c (set_mipsfpu_command): Remove.
3842 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3843 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3844 (_initialize_index_cache): Use add_basic_prefix_cmd.
3845 * memattr.c (dummy_cmd): Remove.
3846 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3847 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3848 (_initialize_tui_win): Use add_basic_prefix_cmd,
3849 add_show_prefix_cmd.
3850 * cli/cli-logging.c (set_logging_command): Remove.
3851 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3852 add_show_prefix_cmd.
3853 (show_logging_command): Remove.
3854 * target.c (target_command): Remove.
3855 (add_target): Use add_basic_prefix_cmd.
3856
a51119cd
HD
38572020-05-02 Hannes Domani <ssbssa@yahoo.de>
3858
3859 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3860
652fc23a 38612020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3862
652fc23a
PW
3863 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3864 info_command.
3865
117539e6
KR
38662020-04-30 Kamil Rytarowski <n54@gmx.com>
3867
3868 * nbsd-nat.c (nbsd_enable_proc_events)
3869 (nbsd_nat_target::post_startup_inferior): Add.
3870 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3871 (nbsd_nat_target::update_thread_list): Rewrite.
3872 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3873 "PTRACE_LWP_CREATE".
3874 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3875
102e38eb 38762020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3877
102e38eb
PW
3878 * stack.c (_initialize_stack): Remove duplicated creation
3879 of "frame" command and "f" alias.
3880
ee9d1e5f
HD
38812020-04-30 Hannes Domani <ssbssa@yahoo.de>
3882
3883 PR gdb/18706
3884 * gdbtypes.c (check_typedef): Calculate size of array of
3885 stubbed type.
3886
627c7fb8
HD
38872020-04-30 Hannes Domani <ssbssa@yahoo.de>
3888
3889 PR gdb/15559
3890 * i386-tdep.c (i386_push_dummy_call): Call
3891 i386_thiscall_push_dummy_call.
3892 (i386_thiscall_push_dummy_call): New function.
3893 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3894 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3895 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3896
ffc2844e
SM
38972020-04-29 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * gdbarch.sh (do_read): Add shellcheck disable directive for
3900 warning SC2162.
3901
1207375d
SM
39022020-04-29 Simon Marchi <simon.marchi@efficios.com>
3903
3904 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3905 "referenced but not assigned" warning.
3906
9fdb2916
SM
39072020-04-29 Simon Marchi <simon.marchi@efficios.com>
3908
3909 * gdbarch.sh: Remove code that sets fallbackdefault.
3910
759cea5e
SM
39112020-04-29 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * gdbarch.sh: Use shell operators && and || instead of
3914 -a and -o.
3915
cb02ab24
SM
39162020-04-29 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * gdbarch.sh: Use $(...) instead of `...`.
3919
a6fc5ffc
SM
39202020-04-29 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * gdbarch.sh: Use double quotes around variables.
3923
8d113d13
SM
39242020-04-29 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * gdbarch.sh: Use %s with printf, instead of variables in the
3927 format string.
3928
ed6acedd
TT
39292020-04-29 Tom Tromey <tromey@adacore.com>
3930
3931 PR ada/25875:
3932 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3933 type fields here.
3934 (read_enumeration_type): Call
3935 update_enumeration_type_from_children later. Update comments.
3936 (process_enumeration_scope): Don't create type fields.
3937
b68b1b58
KR
39382020-04-29 Kamil Rytarowski <n54@gmx.com>
3939
3940 * nbsd-tdep.c: Include "xml-syscall.h".
3941 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3942
f94b2e03
KR
39432020-04-29 Kamil Rytarowski <n54@gmx.com>
3944
3945 * nbsd-nat.c: Include "sys/wait.h".
3946 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3947 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3948 (nbsd_nat_target::remove_exec_catchpoint)
3949 (nbsd_nat_target::set_syscall_catchpoint): Add.
3950 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3951 (nbsd_nat_target::insert_exec_catchpoint)
3952 (nbsd_nat_target::remove_exec_catchpoint)
3953 (nbsd_nat_target::set_syscall_catchpoint): Add.
3954 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3955 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3956 `nbsd_get_syscall_number'.
3957
fc49bc72
TT
39582020-04-29 Tom Tromey <tom@tromey.com>
3959
3960 * stack.c (print_block_frame_labels): Remove.
3961
d642b692
HD
39622020-04-29 Hannes Domani <ssbssa@yahoo.de>
3963
3964 PR gdb/17320
3965 * ada-valprint.c (val_print_packed_array_elements): Move array
3966 end bracket to new line.
3967 (ada_val_print_string): Remove extra spaces before first array
3968 element.
3969 * c-valprint.c (c_value_print_array): Likewise.
3970 * m2-valprint.c (m2_print_array_contents): Likewise.
3971 (m2_value_print_inner): Likewise.
3972 * p-valprint.c (pascal_value_print_inner): Likewise.
3973 * valprint.c (generic_val_print_array): Likewise.
3974 (value_print_array_elements): Move first array element and array
3975 end bracket to new line.
3976
ea90f227
TV
39772020-04-29 Tom de Vries <tdevries@suse.de>
3978
3979 PR symtab/25889
3980 * linespec.c (find_method): Fix ix calculation.
3981
4498ef4f
KR
39822020-04-28 Kamil Rytarowski <n54@gmx.com>
3983
3984 * syscalls/update-netbsd.sh: New file.
3985 * syscalls/netbsd.xml: Regenerate.
3986 * data-directory/Makefile.in: Register `netbsd.xml' in
3987 `SYSCALLS_FILES'.
3988
a55e30b5
SM
39892020-04-28 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * syscalls/update-freebsd.sh: Add double quotes.
3992
2b2fbab8
TT
39932020-04-28 Tom Tromey <tom@tromey.com>
3994
3995 * NEWS: Update.
3996 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3997 (cmdpy_init): Allow class_tui.
3998
a65189c9
TV
39992020-04-28 Mark Williams <mark@myosotissp.com>
4000
4001 PR gdb/24480
4002 * dwarf2read.c: Add missing assingments to list_in_scope when
4003 start_symtab was already called.
4004
1b95cdb7
SM
40052020-04-28 Simon Marchi <simon.marchi@efficios.com>
4006
4007 PR gdb/25881
4008 * dwarf2/read.c (offset_map_type): Use
4009 gdb:hash_enum<sect_offset> as hash function.
4010
15cd93d0
TV
40112020-04-28 Tom de Vries <tdevries@suse.de>
4012
4013 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4014 with DW_AT_signature.
4015
1eb39914
SM
40162020-04-27 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * configure.ac: Remove check for fs_base/gs_base in
4019 user_regs_struct.
4020 * configure: Re-generate.
4021 * config.in: Re-generate.
4022 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4023 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4024 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4025
991a3e2e
LM
40262020-04-27 Luis Machado <luis.machado@linaro.org>
4027
4028 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4029 problematic inline frame unwinding situation.
4030 * frame.c (frame_id_computed_p): New function.
4031 * frame.h (frame_id_computed_p): New prototype.
4032
361ba0e8
TT
40332020-04-26 Tom Tromey <tom@tromey.com>
4034
4035 * command.h (enum command_class) <class_pseudo>: Remove.
4036
bc3609fd
PW
40372020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4038
4039 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4040 and whitespace.
4041
b9771db7
KR
40422020-04-25 Kamil Rytarowski <n54@gmx.com>
4043
ec16513e
SM
4044 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4045 `PT_GET_PROCESS_STATE' block.
b9771db7 4046
7151c1af
TT
40472020-04-24 Tom Tromey <tom@tromey.com>
4048
4049 * symtab.h (symbol_get_demangled_name): Don't declare.
4050 * symtab.c (symbol_get_demangled_name): Remove.
4051 (general_symbol_info::natural_name)
4052 (general_symbol_info::demangled_name): Update.
4053
906bb4c5
TT
40542020-04-24 Tom Tromey <tom@tromey.com>
4055
4056 PR rust/25025:
4057 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4058
bcfe6157
TT
40592020-04-24 Tom Tromey <tom@tromey.com>
4060
4061 PR symtab/12707:
4062 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4063 exists.
4064 (new_symbol): Likewise.
4065 * compile/compile-object-load.c (get_out_value_type): Use
4066 symbol_matches_search_name.
4067
f049a313
TT
40682020-04-24 Tom Tromey <tom@tromey.com>
4069
4070 * dwarf2/read.c (add_partial_symbol): Do not call
4071 compute_and_set_names.
4072
76e288d1
TT
40732020-04-24 Tom Tromey <tom@tromey.com>
4074
4075 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4076 overload.
4077
2467f4f6
TT
40782020-04-24 Tom Tromey <tom@tromey.com>
4079
4080 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4081 (add_psymbol_to_list): New overload. Make old overload call new
4082 one.
4083 * psympriv.h (add_psymbol_to_list): New overload.
4084
e61108c9
TT
40852020-04-24 Tom Tromey <tom@tromey.com>
4086
4087 * dwarf2/read.c (partial_die_info::read) <case
4088 DW_AT_linkage_name>: Use value_as_string.
4089 (dwarf2_string_attr): Use value_as_string.
4090 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4091 method.
4092 * dwarf2/attribute.c (attribute::value_as_string): New method.
4093
8c87a452
TT
40942020-04-24 Tom Tromey <tom@tromey.com>
4095
4096 * symtab.c (general_symbol_info::natural_name)
4097 (general_symbol_info::demangled_name): Check for language_rust.
4098
787de330
TT
40992020-04-24 Tom Tromey <tom@tromey.com>
4100
4101 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4102 (dwarf2_physname): ... from here.
4103 (partial_die_info::read): Add Rust "{" hack.
4104
ff985671
TT
41052020-04-24 Tom Tromey <tom@tromey.com>
4106
4107 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4108 method.
4109 (symbol_set_demangled_name): Don't declare.
4110 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4111 symbol_set_demangled_name.
4112 (general_symbol_info::set_language)
4113 (general_symbol_info::compute_and_set_names): Update.
4114 * minsyms.c (minimal_symbol_reader::install): Update.
4115 * dwarf2/read.c (new_symbol): Update.
4116
1acda803
TT
41172020-04-24 Tom Tromey <tromey@adacore.com>
4118
4119 PR python/23662:
4120 * python/py-type.c (convert_field): Handle
4121 FIELD_LOC_KIND_DWARF_BLOCK.
4122 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4123 (typy_get_dynamic): Nw function.
4124 (type_object_getset): Add "dynamic".
4125 * NEWS: Add entry.
4126
d656f129
TT
41272020-04-24 Tom Tromey <tromey@adacore.com>
4128
4129 * ada-typeprint.c (print_choices, print_variant_part)
4130 (print_record_field_types_dynamic): New functions.
4131 (print_record_field_types): Use print_record_field_types_dynamic.
4132
7d79de9a
TT
41332020-04-24 Tom Tromey <tromey@adacore.com>
4134
4135 * dwarf2/read.c (handle_data_member_location): New overload.
4136 (dwarf2_add_field): Use it.
4137 (decode_locdesc): Add "computed" parameter. Update comment.
4138 * gdbtypes.c (is_dynamic_type_internal): Also look for
4139 FIELD_LOC_KIND_DWARF_BLOCK.
4140 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4141 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4142 virtual base classes.
4143 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4144 FIELD_LOC_KIND_DWARF_BLOCK.
4145
f8e89861
TT
41462020-04-24 Tom Tromey <tromey@adacore.com>
4147
4148 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4149 * gdbtypes.c (is_dynamic_type_internal): Check
4150 TYPE_HAS_DYNAMIC_LENGTH.
4151 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4152 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4153 New macros.
4154 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4155 constant.
4156
9c6a1327
TT
41572020-04-24 Tom Tromey <tromey@adacore.com>
4158
4159 * dwarf2/read.c (struct variant_field): Rewrite.
4160 (struct variant_part_builder): New.
4161 (struct nextfield): Remove "variant" field. Add "offset".
4162 (struct field_info): Add "current_variant_part" and
4163 "variant_parts".
4164 (alloc_discriminant_info): Remove.
4165 (alloc_rust_variant): New function.
4166 (quirk_rust_enum): Update.
4167 (dwarf2_add_field): Set "offset" member. Don't handle
4168 DW_TAG_variant_part.
4169 (offset_map_type): New typedef.
4170 (convert_variant_range, create_one_variant)
4171 (create_one_variant_part, create_variant_parts)
4172 (add_variant_property): New functions.
4173 (dwarf2_attach_fields_to_type): Call add_variant_property.
4174 (read_structure_type): Don't handle DW_TAG_variant_part.
4175 (handle_variant_part, handle_variant): New functions.
4176 (handle_struct_member_die): Use them.
4177 (process_structure_scope): Don't handle variant parts.
4178 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4179 (struct discriminant_info): Remove.
4180 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4181 (struct main_type) <flag_discriminated_union>: Remove.
4182 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4183 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4184 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4185 Update.
4186 * valops.c (value_union_variant): Remove.
4187 * value.h (value_union_variant): Don't declare.
4188
b249d2c2
TT
41892020-04-24 Tom Tromey <tromey@adacore.com>
4190
4191 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4192 (ada_value_primitive_packed_val): Update.
4193 * ada-valprint.c (ada_value_print_1): Update.
4194 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4195 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4196 just an address. Use evaluate_for_locexpr_baton.
4197 (dwarf2_evaluate_property): Update.
4198 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4199 array_view.
4200 * findvar.c (default_read_var_value): Update.
4201 * gdbtypes.c (compute_variant_fields_inner)
4202 (resolve_dynamic_type_internal): Update.
4203 (resolve_dynamic_type): Change type of valaddr parameter.
4204 * gdbtypes.h (resolve_dynamic_type): Update.
4205 * valarith.c (value_subscripted_rvalue): Update.
4206 * value.c (value_from_contents_and_address): Update.
4207
61122aa9
TT
42082020-04-24 Tom Tromey <tromey@adacore.com>
4209
4210 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4211 "push_initial_value" parameter.
4212 (dwarf2_evaluate_property): Likewise.
4213 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4214
ef83a141
TT
42152020-04-24 Tom Tromey <tromey@adacore.com>
4216
4217 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4218 (variant::matches, compute_variant_fields_recurse)
4219 (compute_variant_fields_inner, compute_variant_fields): New
4220 functions.
4221 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4222 Use resolved_type after type is made.
4223 (operator==): Add new cases.
4224 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4225 (struct discriminant_range, struct variant, struct variant_part):
4226 New.
4227 (union dynamic_prop_data) <variant_parts, original_type>: New
4228 members.
4229 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4230 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4231 constants.
4232 * value.c (unpack_bits_as_long): Now public.
4233 * value.h (unpack_bits_as_long): Declare.
4234
675127ec
TT
42352020-04-24 Tom Tromey <tromey@adacore.com>
4236
4237 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4238 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4239
9852ceef
HD
42402020-04-24 Hannes Domani <ssbssa@yahoo.de>
4241
4242 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4243
7632c6ce
KR
42442020-04-24 Kamil Rytarowski <n54@gmx.com>
4245
4246 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4247 (remove_fork_catchpoint, post_startup_inferior)
4248 (post_attach): Move...
4249 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4250 (remove_fork_catchpoint, post_startup_inferior)
4251 (post_attach): ...here.
4252 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4253 (remove_fork_catchpoint, post_startup_inferior)
4254 (post_attach): Move...
4255 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4256 (remove_fork_catchpoint, post_startup_inferior)
4257 (post_attach): ...here.
4258
7be2bb4f
TT
42592020-04-24 Tom Tromey <tromey@adacore.com>
4260
4261 * nat/windows-nat.h (struct windows_thread_info)
4262 <pc_adjusted>: New member.
4263 * windows-nat.c (windows_fetch_one_register): Check
4264 pc_adjusted.
4265 (windows_nat_target::get_windows_debug_event)
4266 (windows_nat_target::wait): Set pc_adjusted.
4267
f80cb3b4
TV
42682020-04-24 Tom de Vries <tdevries@suse.de>
4269
4270 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4271 Run gdb-add-index inside temp dir.
4272
29514b87
TT
42732020-04-23 Tom Tromey <tromey@adacore.com>
4274
4275 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4276 in loop.
4277
5939967b
LM
42782020-04-23 Luis Machado <luis.machado@linaro.org>
4279
4280 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4281 get_frame_register instead of gdbarch_unwind_pc.
4282
70bc38f5
TV
42832020-04-23 Tom de Vries <tdevries@suse.de>
4284
4285 * symtab.c (lookup_global_symbol): Prefer def over decl.
4286
de82891c
TV
42872020-04-23 Tom de Vries <tdevries@suse.de>
4288
4289 PR symtab/25807
4290 * block.c (best_symbol, better_symbol): Promote to external.
4291 * block.h (best_symbol, better_symbol): Declare.
4292 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4293 decl.
4294
ecc6c606
TT
42952020-04-23 Tom Tromey <tromey@adacore.com>
4296
4297 PR ada/25837:
4298 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4299 "const char *", not a "const std::string &".
4300 <name_and_matcher::operator==>: Update.
4301 * unittests/lookup_name_info-selftests.c: Change type of
4302 "result".
4303
740480b8
TT
43042020-04-23 Tom Tromey <tom@tromey.com>
4305
4306 * inferior.h (iterate_over_inferiors): Don't declare.
4307 * inferior.c (iterate_over_inferiors): Remove.
4308 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4309 Remove.
4310 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4311 use iterate_over_inferiors.
4312 (darwin_resume_inferior_it)
4313 (struct resume_inferior_threads_param)
4314 (darwin_resume_inferior_threads_it): Remove.
4315 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4316
ae3ab1f0
TV
43172020-04-23 Tom de Vries <tdevries@suse.de>
4318
4319 * blockframe.c (find_pc_partial_function): Use
4320 find_pc_sect_compunit_symtab rather than
4321 objfile->sf->qf->find_pc_sect_compunit_symtab.
4322
317d2668
TV
43232020-04-22 Tom de Vries <tdevries@suse.de>
4324
4325 PR symtab/25764
4326 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4327 in psymtabs.
4328
eea9e357
TV
43292020-04-22 Tom de Vries <tdevries@suse.de>
4330
4331 PR symtab/25801
4332 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4333 symtabs.
4334
3d5afab3
TV
43352020-04-22 Tom de Vries <tdevries@suse.de>
4336
4337 PR symtab/25700
4338 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4339 CU if already created.
4340
d43b7a2d
TBA
43412020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342
4343 * infrun.c (displaced_step_fixup): Switch to the event_thread
4344 before calling displaced_step_restore, not after.
4345
d89edf9b
MM
43462020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4347
4348 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4349 its inferior is not recorded by us.
4350 (record_btrace_target_open): Replace call to
4351 all_non_exited_threads () with call to current_inferior
4352 ()->non_exited_threads ().
4353 (record_btrace_target::stop_recording): Likewise.
4354 (record_btrace_target::close): Likewise.
4355 (record_btrace_target::wait): Likewise.
4356 (record_btrace_target::record_stop_replaying): Likewise.
4357
5897fd49
MM
43582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4359
4360 * btrace.c (btrace_enable): Throw an error on double enables and
4361 when enabling recording fails.
4362 (btrace_disable): Throw an error if the thread is not recorded.
4363
1a476b6d
MM
43642020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4365
4366 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4367 request if we do not have a thread_info.
4368
4778a5f8
TV
43692020-04-21 Tom de Vries <tdevries@suse.de>
4370
4371 PR gdb/25471
4372 * thread.c
4373 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4374 exception in get_frame_id.
4375
0fa7617d
TT
43762020-04-20 Tom Tromey <tromey@adacore.com>
4377
4378 * python/python.c (struct gdbpy_event): Mark move constructor as
4379 noexcept.
4380 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4381 constructor as noexcept.
4382 * completer.h (struct completion_result): Mark move constructor as
4383 noexcept.
4384 * completer.c (completion_result::completion_result): Use
4385 initialization style. Don't call reset_match_list.
4386
ad23bda0
MS
43872020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4388
4389 * MAINTAINERS (Write After Approval): Add myself.
4390
45e1f031
TT
43912020-04-18 Tom Tromey <tom@tromey.com>
4392
4393 * windows-tdep.c (init_w32_command_list)
4394 (w32_prefix_command_valid): Restore.
4395 (_initialize_windows_tdep): Call init_w32_command_list.
4396
08feed99
TT
43972020-04-18 Tom Tromey <tom@tromey.com>
4398
4399 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4400 * value.c (value_fn_field): Update.
4401 * valops.c (find_function_in_inferior)
4402 (value_allocate_space_in_inferior): Update.
4403 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4404 Update.
4405 * tui/tui-source.c (tui_source_window::set_contents): Update.
4406 * symtab.c (lookup_global_or_static_symbol)
4407 (find_function_start_sal_1, skip_prologue_sal)
4408 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4409 * symmisc.c (dump_msymbols, dump_symtab_1)
4410 (maintenance_print_one_line_table): Update.
4411 * symfile.c (init_entry_point_info, section_is_mapped)
4412 (list_overlays_command, simple_read_overlay_table)
4413 (simple_overlay_update_1): Update.
4414 * stap-probe.c (handle_stap_probe): Update.
4415 * stabsread.c (dbx_init_float_type, define_symbol)
4416 (read_one_struct_field, read_enum_type, read_range_type): Update.
4417 * source.c (info_line_command): Update.
4418 * python/python.c (gdbpy_source_objfile_script)
4419 (gdbpy_execute_objfile_script): Update.
4420 * python/py-type.c (save_objfile_types): Update.
4421 * python/py-objfile.c (py_free_objfile): Update.
4422 * python/py-inferior.c (python_new_objfile): Update.
4423 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4424 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4425 (maintenance_check_psymtabs): Update.
4426 * printcmd.c (info_address_command): Update.
4427 * objfiles.h (struct objfile) <arch>: New method, from
4428 get_objfile_arch.
4429 (get_objfile_arch): Don't declare.
4430 * objfiles.c (get_objfile_arch): Remove.
4431 (filter_overlapping_sections): Update.
4432 * minsyms.c (msymbol_is_function): Update.
4433 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4434 (output_nondebug_symbol): Update.
4435 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4436 (mdebug_expand_psymtab): Update.
4437 * machoread.c (macho_add_oso_symfile): Update.
4438 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4439 Update.
4440 * linux-fork.c (checkpoint_command): Update.
4441 * linespec.c (convert_linespec_to_sals): Update.
4442 * jit.c (finalize_symtab): Update.
4443 * infrun.c (insert_exception_resume_from_probe): Update.
4444 * ia64-tdep.c (ia64_find_unwind_table): Update.
4445 * hppa-tdep.c (internalize_unwinds): Update.
4446 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4447 Update.
4448 * gcore.c (call_target_sbrk): Update.
4449 * elfread.c (record_minimal_symbol, elf_symtab_read)
4450 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4451 (elf_gnu_ifunc_resolve_by_got): Update.
4452 * dwarf2/read.c (create_addrmap_from_index)
4453 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4454 (read_debug_names_from_section)
4455 (process_psymtab_comp_unit_reader, add_partial_symbol)
4456 (add_partial_subprogram, process_full_comp_unit)
4457 (read_file_scope, read_func_scope, read_lexical_block_scope)
4458 (read_call_site_scope, dwarf2_ranges_read)
4459 (dwarf2_record_block_ranges, dwarf2_add_field)
4460 (mark_common_block_symbol_computed, read_tag_pointer_type)
4461 (read_tag_string_type, dwarf2_init_float_type)
4462 (dwarf2_init_complex_target_type, read_base_type)
4463 (partial_die_info::read, partial_die_info::read)
4464 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4465 (dwarf2_fetch_die_loc_sect_off): Update.
4466 * dwarf2/loc.c (dwarf2_find_location_expression)
4467 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4468 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4469 (dwarf2_loc_desc_get_symbol_read_needs)
4470 (locexpr_describe_location_piece, locexpr_describe_location_1)
4471 (loclist_describe_location): Update.
4472 * dwarf2/index-write.c (write_debug_names): Update.
4473 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4474 * dtrace-probe.c (dtrace_process_dof): Update.
4475 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4476 (process_one_symbol): Update.
4477 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4478 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4479 (coff_read_enum_type): Update.
4480 * cli/cli-cmds.c (edit_command, list_command): Update.
4481 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4482 * breakpoint.c (create_overlay_event_breakpoint)
4483 (create_longjmp_master_breakpoint)
4484 (create_std_terminate_master_breakpoint)
4485 (create_exception_master_breakpoint, get_sal_arch): Update.
4486 * block.c (block_gdbarch): Update.
4487 * annotate.c (annotate_source_line): Update.
4488
0743fc83
TT
44892020-04-17 Tom Tromey <tromey@adacore.com>
4490
4491 * auto-load.c (show_auto_load_cmd): Remove.
4492 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4493 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4494 (maintenance_print_arc_command): Remove.
4495 * tui/tui-win.c (tui_command): Remove.
4496 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4497 * tui/tui-layout.c (tui_layout_command): Remove.
4498 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4499 * python/python.c (user_set_python, user_show_python): Remove.
4500 (_initialize_python): Use add_basic_prefix_cmd,
4501 add_show_prefix_cmd.
4502 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4503 (install_gdb_commands): Use add_basic_prefix_cmd,
4504 add_show_prefix_cmd.
4505 (info_guile_command): Remove.
4506 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4507 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4508 add_show_prefix_cmd.
4509 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4510 Remove do_set and do_show parameters.
4511 * cli/cli-style.c (set_style, show_style): Remove.
4512 (_initialize_cli_style): Use add_basic_prefix_cmd,
4513 add_show_prefix_cmd.
4514 (cli_style_option::add_setshow_commands): Remove do_set and
4515 do_show parameters.
4516 (cli_style_option::add_setshow_commands): Use
4517 add_basic_prefix_cmd, add_show_prefix_cmd.
4518 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4519 (set_style_name): Remove.
4520 * cli/cli-dump.c (dump_command, append_command): Remove.
4521 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4522 (tekhex_dump_command, binary_dump_command)
4523 (binary_append_command): Remove.
4524 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4525 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4526 (init_w32_command_list): Remove; move into ...
4527 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4528 * valprint.c (set_print, show_print, set_print_raw)
4529 (show_print_raw): Remove.
4530 (_initialize_valprint): Use add_basic_prefix_cmd,
4531 add_show_prefix_cmd.
4532 * typeprint.c (set_print_type, show_print_type): Remove.
4533 (_initialize_typeprint): Use add_basic_prefix_cmd,
4534 add_show_prefix_cmd.
4535 * record.c (set_record_command, show_record_command): Remove.
4536 (_initialize_record): Use add_basic_prefix_cmd,
4537 add_show_prefix_cmd.
4538 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4539 add_show_prefix_cmd.
4540 (info_command, show_command, set_debug, show_debug): Remove.
4541 * top.h (set_history, show_history): Don't declare.
4542 * top.c (set_history, show_history): Remove.
4543 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4544 (unset_tdesc_cmd): Remove.
4545 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4546 add_show_prefix_cmd.
4547 * symtab.c (info_module_command): Remove.
4548 (_initialize_symtab): Use add_basic_prefix_cmd.
4549 * symfile.c (overlay_command): Remove.
4550 (_initialize_symfile): Use add_basic_prefix_cmd.
4551 * sparc64-tdep.c (info_adi_command): Remove.
4552 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4553 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4554 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4555 add_show_prefix_cmd.
4556 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4557 (_initialize_serial): Use add_basic_prefix_cmd,
4558 add_show_prefix_cmd.
4559 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4560 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4561 add_show_prefix_cmd.
4562 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4563 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4564 add_show_prefix_cmd.
4565 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4566 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4567 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4568 add_show_prefix_cmd.
4569 * remote.c (remote_command, set_remote_cmd): Remove.
4570 (_initialize_remote): Use add_basic_prefix_cmd.
4571 * record-full.c (set_record_full_command)
4572 (show_record_full_command): Remove.
4573 (_initialize_record_full): Use add_basic_prefix_cmd,
4574 add_show_prefix_cmd.
4575 * record-btrace.c (cmd_set_record_btrace)
4576 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4577 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4578 (cmd_show_record_btrace_pt): Remove.
4579 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4580 add_show_prefix_cmd.
4581 * ravenscar-thread.c (set_ravenscar_command)
4582 (show_ravenscar_command): Remove.
4583 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4584 add_show_prefix_cmd.
4585 * mips-tdep.c (show_mips_command, set_mips_command)
4586 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4587 add_show_prefix_cmd.
4588 * maint.c (maintenance_command, maintenance_info_command)
4589 (maintenance_check_command, maintenance_print_command)
4590 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4591 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4592 add_show_prefix_cmd.
4593 (show_per_command_cmd): Remove.
4594 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4595 Remove.
4596 (maintenance_show_test_settings_cmd): Remove.
4597 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4598 add_show_prefix_cmd.
4599 * maint-test-options.c (maintenance_test_options_command):
4600 Remove.
4601 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4602 * macrocmd.c (macro_command): Remove
4603 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4604 * language.c (set_check, show_check): Remove.
4605 (_initialize_language): Use add_basic_prefix_cmd,
4606 add_show_prefix_cmd.
4607 * infcmd.c (unset_command): Remove.
4608 (_initialize_infcmd): Use add_basic_prefix_cmd.
4609 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4610 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4611 add_show_prefix_cmd.
4612 * go32-nat.c (go32_info_dos_command): Remove.
4613 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4614 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4615 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4616 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4617 (_initialize_frame): Use add_basic_prefix_cmd,
4618 add_show_prefix_cmd.
4619 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4620 (_initialize_dcache): Use add_basic_prefix_cmd,
4621 add_show_prefix_cmd.
4622 * cp-support.c (maint_cplus_command): Remove.
4623 (_initialize_cp_support): Use add_basic_prefix_cmd.
4624 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4625 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4626 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4627 add_basic_prefix_cmd, add_show_prefix_cmd.
4628 * breakpoint.c (save_command): Remove.
4629 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4630 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4631 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4632 add_show_prefix_cmd.
4633 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4634 (set_ada_command, show_ada_command): Remove.
4635 (_initialize_ada_language): Use add_basic_prefix_cmd,
4636 add_show_prefix_cmd.
4637 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4638
3557f442
KR
46392020-04-16 Kamil Rytarowski <n54@gmx.com>
4640
4641 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4642 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4643
16197208
SM
46442020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4645
4646 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4647 warning messages.
4648
00ac85d3
SM
46492020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4650
4651 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4652 import table is not at beginning of .idata section.
4653
381ce63f
PA
46542020-04-16 Pedro Alves <palves@redhat.com>
4655
4656 * inferior.c (delete_inferior): Use delete operator directly
4657 instead of delete_program_space.
4658 * progspace.c (add_program_space): New, factored out from
4659 program_space::program_space.
4660 (remove_program_space): New, factored out from
4661 delete_program_space.
4662 (program_space::program_space): Remove intro comment. Rewrite.
4663 (program_space::~program_space): Remove intro comment. Call
4664 remove_program_space.
4665 (delete_program_space): Delete.
4666 * progspace.h (program_space::program_space): Make explicit. Move
4667 intro comment here, adjusted.
4668 (program_space::~program_space): Move intro comment here,
4669 adjusted.
4670 (delete_program_space): Remove.
4671
a010605f
TT
46722020-04-16 Tom Tromey <tromey@adacore.com>
4673
4674 * windows-nat.c (windows_nat::handle_access_violation): New
4675 function.
4676 * nat/windows-nat.h (handle_access_violation): Declare.
4677 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4678 windows-nat.c. Call handle_access_violation.
4679
efba5c23
TV
46802020-04-16 Tom de Vries <tdevries@suse.de>
4681
4682 PR symtab/25791
4683 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4684 CUs without psymtab.
4685
97ed802d
KB
46862020-04-16 Kevin Buettner <kevinb@redhat.com>
4687
4688 * python/python.c (do_start_initialization): Don't call
4689 PyEval_InitThreads for Python 3.9 and beyond.
4690
c7d64809
KR
46912020-04-15 Kamil Rytarowski <n54@gmx.com>
4692
4693 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4694 thread functions.
4695 (obsd_nat_target::wait): Likewise.
4696
ce127a96
TT
46972020-04-15 Tom Tromey <tromey@adacore.com>
4698
4699 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4700 (DEBUG_EXCEPT): Use debug_printf.
4701
99f1bc6a
AB
47022020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * completer.c (class completion_tracker::completion_hash_entry)
4705 <hash_name>: New member function.
4706 (completion_tracker::discard_completions): New callback to hash a
4707 completion_hash_entry, pass this to htab_create_alloc.
4708
a0e9b532
JT
47092016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4710
4711 * windows-nat.c (windows_make_so): Warn rather than stopping with
4712 an error if realpath() fails.
4713
06ca5dd4
KR
47142020-04-14 Kamil Rytarowski <n54@gmx.com>
4715
4716 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4717 (nbsd_nat_target::info_proc): Add do_status.
4718
194d088f
TV
47192020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4720 Tom de Vries <tdevries@suse.de>
4721
4722 PR symtab/25718
4723 * psympriv.h (struct partial_symtab::read_symtab)
4724 (struct partial_symtab::expand_psymtab)
4725 (struct partial_symtab::read_dependencies): Update comments.
4726 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4727 read_symtab for includer.
4728 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4729 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4730 (struct dwarf2_include_psymtab::m_readin): Remove.
4731 (struct dwarf2_include_psymtab::includer): New member function.
4732 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4733
c1a66c06
TV
47342020-04-14 Tom de Vries <tdevries@suse.de>
4735
4736 PR symtab/25720
4737 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4738 with NULL symbol_matcher and lookup_name.
4739 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4740 and lookup_name.
4741 * dwarf2/read.c (dw2_expand_symtabs_matching)
4742 (dw2_debug_names_expand_symtabs_matching): Same.
4743 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4744 Make lookup_name a pointer. Update comment.
4745 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4746 lookup_name being a pointer.
4747 * symfile.c (expand_symtabs_matching): Same.
4748 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4749 * linespec.c (iterate_over_all_matching_symtabs): Same.
4750
400b5eca
TT
47512020-04-13 Tom Tromey <tom@tromey.com>
4752
4753 * run-on-main-thread.c: Update include.
4754 * unittests/main-thread-selftests.c: Update include.
4755 * tui/tui-win.c: Update include.
4756 * tui/tui-io.c: Update include.
4757 * tui/tui-interp.c: Update include.
4758 * tui/tui-hooks.c: Update include.
4759 * top.h: Update include.
4760 * top.c: Update include.
4761 * ser-base.c: Update include.
4762 * remote.c: Update include.
4763 * remote-notif.c: Update include.
4764 * remote-fileio.c: Update include.
4765 * record-full.c: Update include.
4766 * record-btrace.c: Update include.
4767 * python/python.c: Update include.
4768 * posix-hdep.c: Update include.
4769 * mingw-hdep.c: Update include.
4770 * mi/mi-main.c: Update include.
4771 * mi/mi-interp.c: Update include.
4772 * main.c: Update include.
4773 * linux-nat.c: Update include.
4774 * interps.c: Update include.
4775 * infrun.c: Update include.
4776 * inf-loop.c: Update include.
4777 * event-top.c: Update include.
4778 * event-loop.c: Move to ../gdbsupport/.
4779 * event-loop.h: Move to ../gdbsupport/.
4780 * async-event.h: Update include.
4781 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4782
93b54c8e
TT
47832020-04-13 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-win.c: Include async-event.h.
4786 * remote.c: Include async-event.h.
4787 * remote-notif.c: Include async-event.h.
4788 * record-full.c: Include async-event.h.
4789 * record-btrace.c: Include async-event.h.
4790 * infrun.c: Include async-event.h.
4791 * event-top.c: Include async-event.h.
4792 * event-loop.h: Move some declarations to async-event.h.
4793 * event-loop.c: Don't include ser-event.h or top.h. Move some
4794 code to async-event.c.
4795 * async-event.h: New file.
4796 * async-event.c: New file.
4797 * Makefile.in (COMMON_SFILES): Add async-event.c.
4798 (HFILES_NO_SRCDIR): Add async-event.h.
4799
c1cd3163
TT
48002020-04-13 Tom Tromey <tom@tromey.com>
4801
4802 * utils.c (flush_streams): New function.
4803 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4804
29f2bf4f
TT
48052020-04-13 Tom Tromey <tom@tromey.com>
4806
4807 * event-loop.c (handle_file_event): Use warning, not
4808 printf_unfiltered.
4809
98029d02
TT
48102020-04-13 Tom Tromey <tom@tromey.com>
4811
4812 * event-loop.c: Include <chrono>.
4813
06cc9596
TT
48142020-04-13 Tom Tromey <tom@tromey.com>
4815
4816 * gdb_select.h: Move to ../gdbsupport/.
4817 * event-loop.c: Update include path.
4818 * top.c: Update include path.
4819 * ser-base.c: Update include path.
4820 * ui-file.c: Update include path.
4821 * ser-tcp.c: Update include path.
4822 * guile/scm-ports.c: Update include path.
4823 * posix-hdep.c: Update include path.
4824 * ser-unix.c: Update include path.
4825 * gdb_usleep.c: Update include path.
4826 * mingw-hdep.c: Update include path.
4827 * inflow.c: Update include path.
4828 * infrun.c: Update include path.
4829 * event-top.c: Update include path.
4830
8ae8e197
TT
48312020-04-13 Tom Tromey <tom@tromey.com>
4832
4833 * configure: Rebuild.
4834 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4835
58cf28e8
TT
48362020-04-13 Tom Tromey <tom@tromey.com>
4837
4838 * event-loop.h (start_event_loop): Don't declare.
4839 * event-loop.c (start_event_loop): Move...
4840 * main.c (start_event_loop): ...here. Now static.
4841
b7f999ae
SDJ
48422020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4843
4844 * MAINTAINERS: Update my email address.
4845
1085dfd4
KR
48462020-04-12 Kamil Rytarowski <n54@gmx.com>
4847
4848 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4849 IP_ALL.
4850
49d1d1f5
KR
48512020-04-12 Kamil Rytarowski <n54@gmx.com>
4852
4853 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4854 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4855
b4848d2a
KR
48562020-04-12 Kamil Rytarowski <n54@gmx.com>
4857
4858 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4859 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4860
51c133d5
KR
48612020-04-12 Kamil Rytarowski <n54@gmx.com>
4862
4863 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4864
54b8cbd0
KR
48652020-04-11 Kamil Rytarowski <n54@gmx.com>
4866
4867 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4868 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4869 (nbsd_nat_target::info_proc): New functions.
4870 * nbsd-nat.c (kinfo_get_vmmap): New function.
4871 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4872 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4873 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4874 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4875 functions.
4876 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4877 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4878 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4879 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4880 (KINFO_VME_FLAG_GROWS_DOWN): New.
4881
cf83625d
AS
48822020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4883
4884 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4885 bit shift.
4886
0c4311ab
TT
48872020-04-10 Tom Tromey <tromey@adacore.com>
4888
4889 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4890
3e65b3e9
TT
48912020-04-10 Tom Tromey <tromey@adacore.com>
4892
4893 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4894 separate debug files.
4895
13302e95
HD
48962020-04-10 Hannes Domani <ssbssa@yahoo.de>
4897
4898 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4899 Move to...
4900 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4901 ... here.
4902 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4903 Check for STATUS_WX86_BREAKPOINT.
4904 (windows_nat_target::wait): Same.
4905
bdfc1e8a
TV
49062020-04-10 Tom de Vries <tdevries@suse.de>
4907
4908 PR cli/25808
4909 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4910
f4460aec
SM
49112020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4912
4913 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4914 (Write After Approval): Remove Tom de Vries.
4915
a25198bb
BE
49162020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4917
4918 revert partially:
4919 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4920
aac66a4c
SM
4921 * buildsym.c (record_line): Fix undefined behavior and preserve
4922 lines at eof.
a25198bb 4923
206c98a6
KR
49242020-04-09 Kamil Rytarowski <n54@gmx.com>
4925
4926 * auxv.h (svr4_auxv_parse): New.
4927 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4928 and generic_auxv_parse.
4929 (svr4_auxv_parse): Add.
4930 * obsd-tdep.c: Include "auxv.h".
4931 (obsd_auxv_parse): Remove.
4932 (obsd_init_abi): Remove comment.
4933 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4934 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4935 * nbsd-tdep.c: Include "auxv.h".
4936 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4937
71fbdbaf
TT
49382020-04-08 Tom Tromey <tromey@adacore.com>
4939
4940 * nat/windows-nat.h (last_wait_event): Don't declare.
4941 (wait_for_debug_event): Update comment.
4942 * nat/windows-nat.c (last_wait_event): Now static.
4943
2c1d95e8
TT
49442020-04-08 Tom Tromey <tromey@adacore.com>
4945
4946 * windows-nat.c (wait_for_debug_event): Move to
4947 nat/windows-nat.c.
4948 * nat/windows-nat.h (wait_for_debug_event): Declare.
4949 * nat/windows-nat.c (wait_for_debug_event): Move from
4950 windows-nat.c. No longer static.
4951
d2977bc4
TT
49522020-04-08 Tom Tromey <tromey@adacore.com>
4953
4954 * windows-nat.c (get_windows_debug_event): Use
4955 fetch_pending_stop.
4956 * nat/windows-nat.h (fetch_pending_stop): Declare.
4957 * nat/windows-nat.c (fetch_pending_stop): New function.
4958
e758e19c
TT
49592020-04-08 Tom Tromey <tromey@adacore.com>
4960
4961 * windows-nat.c (windows_continue): Use matching_pending_stop and
4962 continue_last_debug_event.
4963 * nat/windows-nat.h (matching_pending_stop)
4964 (continue_last_debug_event): Declare.
4965 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4966 (matching_pending_stop, continue_last_debug_event): New
4967 functions.
4968
8d30e395
TT
49692020-04-08 Tom Tromey <tromey@adacore.com>
4970
4971 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4972 (handle_exception_result): Move to nat/windows-nat.h.
4973 (DEBUG_EXCEPTION_SIMPLE): Remove.
4974 (windows_nat::handle_ms_vc_exception): New function.
4975 (handle_exception): Move to nat/windows-nat.c.
4976 (get_windows_debug_event): Update.
4977 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4978 nat/windows-nat.c.
4979 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4980 (handle_exception_result): Move from windows-nat.c.
4981 (handle_exception): Declare.
4982 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4983 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4984 windows-nat.c.
4985
29de418d
TT
49862020-04-08 Tom Tromey <tromey@adacore.com>
4987
4988 * windows-nat.c (exception_count, event_count): Remove.
4989 (handle_exception, get_windows_debug_event)
4990 (do_initial_windows_stuff): Update.
4991
a816ba18
TT
49922020-04-08 Tom Tromey <tromey@adacore.com>
4993
4994 * windows-nat.c (windows_nat::handle_load_dll)
4995 (windows_nat::handle_unload_dll): Rename. No longer static.
4996 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4997 Declare.
4998
a00caa12
TT
49992020-04-08 Tom Tromey <tromey@adacore.com>
5000
5001 * complaints.h (stop_whining): Declare at top-level.
5002 (complaint): Don't declare stop_whining.
5003
d41b524f
TT
50042020-04-08 Tom Tromey <tromey@adacore.com>
5005
5006 * windows-nat.c (windows_nat::handle_output_debug_string):
5007 Rename. No longer static.
5008 * nat/windows-nat.h (handle_output_debug_string): Declare.
5009
3c76026d
TT
50102020-04-08 Tom Tromey <tromey@adacore.com>
5011
5012 * windows-nat.c (current_process_handle, current_process_id)
5013 (main_thread_id, last_sig, current_event, last_wait_event)
5014 (current_windows_thread, desired_stop_thread_id, pending_stops)
5015 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5016 (display_selectors, fake_create_process)
5017 (get_windows_debug_event): Update.
5018 * nat/windows-nat.h (current_process_handle, current_process_id)
5019 (main_thread_id, last_sig, current_event, last_wait_event)
5020 (current_windows_thread, desired_stop_thread_id, pending_stops)
5021 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5022 * nat/windows-nat.c (current_process_handle, current_process_id)
5023 (main_thread_id, last_sig, current_event, last_wait_event)
5024 (current_windows_thread, desired_stop_thread_id, pending_stops)
5025 (siginfo_er): New globals. Move from windows-nat.c.
5026
9d8679cc
TT
50272020-04-08 Tom Tromey <tromey@adacore.com>
5028
5029 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5030 (handle_load_dll): Update.
5031 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5032
28688adf
TT
50332020-04-08 Tom Tromey <tromey@adacore.com>
5034
5035 * windows-nat.c (enum thread_disposition_type): Move to
5036 nat/windows-nat.h.
5037 (windows_nat::thread_rec): Rename from thread_rec. No longer
5038 static.
5039 (windows_add_thread, windows_nat_target::fetch_registers)
5040 (windows_nat_target::store_registers, handle_exception)
5041 (windows_nat_target::resume, get_windows_debug_event)
5042 (windows_nat_target::get_tib_address)
5043 (windows_nat_target::thread_name)
5044 (windows_nat_target::thread_alive): Update.
5045 * nat/windows-nat.h (enum thread_disposition_type): Move from
5046 windows-nat.c.
5047 (thread_rec): Declare.
5048
4834dad0
TT
50492020-04-08 Tom Tromey <tromey@adacore.com>
5050
5051 * windows-nat.c: Add "using namespace".
5052 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5053 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5054
65bafd5b
TT
50552020-04-08 Tom Tromey <tromey@adacore.com>
5056
5057 * nat/windows-nat.h (struct windows_thread_info): Declare
5058 destructor.
5059 * nat/windows-nat.c (~windows_thread_info): New.
5060
0a4afda3
TT
50612020-04-08 Tom Tromey <tromey@adacore.com>
5062
5063 PR gdb/22992
5064 * windows-nat.c (current_event): Update comment.
5065 (last_wait_event, desired_stop_thread_id): New globals.
5066 (struct pending_stop): New.
5067 (pending_stops): New global.
5068 (windows_nat_target) <stopped_by_sw_breakpoint>
5069 <supports_stopped_by_sw_breakpoint>: New methods.
5070 (windows_fetch_one_register): Add assertions. Adjust PC.
5071 (windows_continue): Handle pending stops. Suspend other threads
5072 when stepping. Use last_wait_event
5073 (wait_for_debug_event): New function.
5074 (get_windows_debug_event): Use wait_for_debug_event. Handle
5075 pending stops. Queue spurious stops.
5076 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5077 (windows_nat_target::kill): Use wait_for_debug_event.
5078 * nat/windows-nat.h (struct windows_thread_info)
5079 <stopped_at_software_breakpoint>: New field.
5080 * nat/windows-nat.c (windows_thread_info::resume): Clear
5081 stopped_at_software_breakpoint.
5082
8e61ebec
TT
50832020-04-08 Tom Tromey <tromey@adacore.com>
5084
5085 * windows-nat.c (enum thread_disposition_type): New.
5086 (thread_rec): Replace "get_context" parameter with "disposition";
5087 change type.
5088 (windows_add_thread, windows_nat_target::fetch_registers)
5089 (windows_nat_target::store_registers, handle_exception)
5090 (windows_nat_target::resume, get_windows_debug_event)
5091 (windows_nat_target::get_tib_address)
5092 (windows_nat_target::thread_name)
5093 (windows_nat_target::thread_alive): Update.
5094
98a03287
TT
50952020-04-08 Tom Tromey <tromey@adacore.com>
5096
5097 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5098 (windows_continue): Use windows_continue::resume.
5099 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5100 resume>: Declare new methods.
5101 * nat/windows-nat.c: New file.
5102 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5103
7c7411bc
TT
51042020-04-08 Tom Tromey <tromey@adacore.com>
5105
5106 * windows-nat.c (windows_add_thread, windows_delete_thread)
5107 (windows_nat_target::fetch_registers)
5108 (windows_nat_target::store_registers, fake_create_process)
5109 (windows_nat_target::resume, windows_nat_target::resume)
5110 (get_windows_debug_event, windows_nat_target::wait)
5111 (windows_nat_target::pid_to_str)
5112 (windows_nat_target::get_tib_address)
5113 (windows_nat_target::get_ada_task_ptid)
5114 (windows_nat_target::thread_name)
5115 (windows_nat_target::thread_alive): Use lwp, not tid.
5116
2950fdf7
TT
51172020-04-08 Tom Tromey <tromey@adacore.com>
5118
5119 * windows-nat.c (handle_exception)
5120 (windows_nat_target::thread_name): Update.
5121 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5122 <name>: Now unique_xmalloc_ptr.
5123
62fe396b
TT
51242020-04-08 Tom Tromey <tromey@adacore.com>
5125
5126 * windows-nat.c (thread_rec)
5127 (windows_nat_target::fetch_registers): Update.
5128 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5129 Update comment.
5130 <debug_registers_changed, reload_context>: Now bool.
5131
e9534bd2
TT
51322020-04-08 Tom Tromey <tromey@adacore.com>
5133
5134 * windows-nat.c (windows_add_thread): Use new.
5135 (windows_init_thread_list, windows_delete_thread): Use delete.
5136 (get_windows_debug_event): Update.
5137 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5138 destructor, and initializers.
5139
ae1f8880
TT
51402020-04-08 Tom Tromey <tromey@adacore.com>
5141
5142 * windows-nat.c (struct windows_thread_info): Remove.
5143 * nat/windows-nat.h: New file.
5144
55a1e039
TT
51452020-04-08 Tom Tromey <tromey@adacore.com>
5146
5147 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5148 (thread_rec, windows_add_thread, windows_delete_thread)
5149 (windows_continue): Update.
5150
93366324
TT
51512020-04-08 Tom Tromey <tromey@adacore.com>
5152
5153 * windows-nat.c (struct windows_thread_info): Remove typedef.
5154 (thread_head): Remove.
5155 (thread_list): New global.
5156 (thread_rec, windows_add_thread, windows_init_thread_list)
5157 (windows_delete_thread, windows_continue): Update.
5158
0f2265e2
SM
51592020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5160
5161 * windows-tdep.h (windows_init_abi): Add comment.
5162 (cygwin_init_abi): New declaration.
5163 * windows-tdep.c: Split signal enumeration in two, one for
5164 Windows and one for Cygwin.
5165 (windows_gdb_signal_to_target): Only deal with signal of the
5166 Windows OS ABI.
5167 (cygwin_gdb_signal_to_target): New function.
5168 (windows_init_abi): Rename to windows_init_abi_common, don't set
5169 gdb_signal_to_target gdbarch method. Add new new function with
5170 this name.
5171 (cygwin_init_abi): New function.
5172 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5173 comment. Don't call windows_init_abi.
5174 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5175 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5176 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5177 i386_windows_init_abi_common, don't call windows_init_abi. Add
5178 a new function of this name.
5179 (i386_cygwin_init_abi): New function.
5180 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5181 OS ABI Cygwin.
5182
3810f182
SM
51832020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5184
5185 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5186 parameter.c.
5187 (dwarf2_read_gdb_index): Update.
5188
063f8e80
KR
51892020-04-07 Kamil Rytarowski <n54@gmx.com>
5190
5191 * nbsd-tdep.c: Include "objfiles.h".
5192 (nbsd_skip_solib_resolver): New.
5193 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5194
85a9510c 51952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5196
5197 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5198 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5199 with DW_LLE_base_addressx are being emitted in DWARFv5.
5200 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5201 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5202 unsigned integer.
5203
9fc3eaae 52042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5205
5206 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5207 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5208 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5209 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5210 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5211 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5212 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5213
5214
41144253 52152020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5216
5217 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5218 (read_loclist_index): New function definition.
5219 (lookup_loclist_base): New function definition.
5220 (read_loclist_header): New function definition.
5221 (dwarf2_cu): Add loclist_base and loclist_header field.
5222 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5223 (read_full_die_1): Read the value of DW_AT_loclists_base.
5224 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5225 (read_attribute_value): Handle DW_FORM_loclistx.
5226 (skip_one_die): Handle DW_FORM_loclistx.
5227 (loclist_header): New structure declaration.
5228 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5229
9f4e76a4
SM
52302020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5231
5232 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5233 constructor. Remove `addr` parameter from other constructor and
5234 add `per_cu` parameter.
5235 * dwarf2/read.c (create_partial_symtab): Update.
5236
25c11aca
TV
52372020-04-07 Tom de Vries <tdevries@suse.de>
5238
5239 PR symtab/25796
5240 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5241 (partial_die_info::fixup): Inherit has_const_value.
5242
5707e24b
TV
52432020-04-07 Tom de Vries <tdevries@suse.de>
5244
5245 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5246 symbols without address.
5247
05f00e22
KR
52482020-04-06 Kamil Rytarowski <n54@gmx.com>
5249
5250 * nbsd-nat.h (struct thread_info): Add forward declaration.
5251 (nbsd_nat_target::thread_alive): Add.
5252 (nbsd_nat_target::thread_name): Likewise.
5253 (nbsd_nat_target::update_thread_list): Likewise.
5254 (update_thread_list::post_attach): Likewise.
5255 (post_attach::pid_to_str): Likewise.
5256 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5257 (nbsd_thread_lister): Add.
5258 (nbsd_nat_target::thread_alive): Likewise.
5259 (nbsd_nat_target::thread_name): Likewise.
5260 (nbsd_add_threads): Likewise.
5261 (update_thread_list::post_attach): Likewise.
5262 (nbsd_nat_target::update_thread_list): Likewise.
5263 (post_attach::pid_to_str): Likewise.
5264
6ee448cc
TT
52652020-04-06 Tom Tromey <tromey@adacore.com>
5266
5267 * ada-valprint.c (print_variant_part): Extract the variant field.
5268 (print_field_values): Use the field as the outer value when
5269 recursing.
5270
dea34e8c
TT
52712020-04-06 Tom Tromey <tromey@adacore.com>
5272
5273 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5274 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5275 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5276 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5277 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5278
93689ce9
TT
52792020-04-06 Tom Tromey <tromey@adacore.com>
5280
5281 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5282 TYPE_CODE_ERROR.
5283
79743962
KR
52842020-04-06 Kamil Rytarowski <n54@gmx.com>
5285
5286 * nbsd-tdep.c: Include "gdbarch.h".
5287 Define enum with NetBSD signal numbers.
5288 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5289 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5290 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5291 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5292 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5293 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5294 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5295 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5296 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5297 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5298 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5299 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5300
9e7c9a03
HD
53012020-04-03 Hannes Domani <ssbssa@yahoo.de>
5302
5303 PR gdb/25325
5304 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5305
d9e49b61
TT
53062020-04-03 Tom Tromey <tromey@adacore.com>
5307
5308 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5309 Read constant block.
5310
e0fc5c3f
SM
53112020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5314 (gdb_bfd_get_full_section_contents): New declaration.
5315 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5316 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5317 gdb_bfd_get_full_section_contents.
5318
e2ff18a0
SM
53192020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5320
5321 * exec.c (build_section_table): Replace internal_error with
5322 gdb_assert.
5323 (section_table_xfer_memory_partial): Likewise.
5324 * mdebugread.c (parse_partial_symbols): Likewise.
5325 * psymtab.c (lookup_partial_symbol): Likewise.
5326 * utils.c (wrap_here): Likewise.
5327
0830d301
TT
53282020-04-02 Tom Tromey <tromey@adacore.com>
5329
5330 * f-lang.c (build_fortran_types): Use arch_type to initialize
5331 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5332
e7da7f8f
TT
53332020-04-02 Tom Tromey <tromey@adacore.com>
5334
5335 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5336 of attributes.
5337
c90d28ac
AB
53382020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5339 Bernd Edlinger <bernd.edlinger@hotmail.de>
5340 Tom Tromey <tromey@adacore.com>
5341
5342 * buildsym.c (buildsym_compunit::record_line): Remove
5343 deduplication code.
5344
1aa98955
TV
53452020-04-02 Tom de Vries <tdevries@suse.de>
5346
5347 PR ada/24671
5348 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5349
d3214198
TV
53502020-04-02 Tom de Vries <tdevries@suse.de>
5351
5352 * dwarf2/read.c (dwarf2_gdb_index_functions,
5353 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5354 NULL.
5355 * psymtab.c (psym_lookup_global_symbol_language): New function.
5356 (psym_functions): Init psym_lookup_global_symbol_language with
5357 psym_lookup_global_symbol_language.
5358 * symfile-debug.c (debug_sym_quick_functions): Init
5359 lookup_global_symbol_language with NULL.
5360 * symfile.c (set_initial_language): Remove fixme comment.
5361 * symfile.h (struct quick_symbol_functions): Add
5362 lookup_global_symbol_language.
5363 * symtab.c (find_quick_global_symbol_language): New function.
5364 (find_main_name): Use find_quick_global_symbol_language.
5365
2836752f
SM
53662020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5369
64dc2d4b
BE
53702020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5371
5372 * buildsym.c (record_line): Fix undefined behavior and preserve
5373 lines at eof.
5374
bbe3dc41
BE
53752020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5376
5377 * buildsym.c (record_line): Fix the resizing condition.
5378
6b4a335b
TT
53792020-04-01 Tom Tromey <tom@tromey.com>
5380
5381 * value.h (value_literal_complex): Add comment.
5382 * valops.c (value_literal_complex): Refer to value.h.
5383
3638a098
TT
53842020-04-01 Tom Tromey <tom@tromey.com>
5385
5386 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5387 (scalar_type): New rule, from typebase.
5388 (typebase): Use scalar_type. Recognize complex types.
5389 (field_name): Handle FLOAT_KEYWORD.
5390 (ident_tokens): Add _Complex and __complex__.
5391
c34e8714
TT
53922020-04-01 Tom Tromey <tom@tromey.com>
5393
5394 PR exp/25299:
5395 * valarith.c (promotion_type, complex_binop): New functions.
5396 (scalar_binop): Handle complex numbers. Use promotion_type.
5397 (value_pos, value_neg, value_complement): Handle complex numbers.
5398
fa649bb7
TT
53992020-04-01 Tom Tromey <tom@tromey.com>
5400
5401 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5402 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5403 (parse_number): Handle complex numbers.
5404
981c08ce
TT
54052020-04-01 Tom Tromey <tom@tromey.com>
5406
5407 * c-valprint.c (c_decorations): Change complex suffix to "i".
5408
4c99290d
TT
54092020-04-01 Tom Tromey <tom@tromey.com>
5410
5411 * valprint.c (generic_value_print_complex): Use accessors.
5412 * value.h (value_real_part, value_imaginary_part): Declare.
5413 * valops.c (value_real_part, value_imaginary_part): New
5414 functions.
5415 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5416
5b930b45
TT
54172020-04-01 Tom Tromey <tom@tromey.com>
5418
5419 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5420 (read_range_type): Update.
5421 * mdebugread.c (basic_type): Update.
5422 * go-lang.c (build_go_types): Use init_complex_type.
5423 * gdbtypes.h (struct main_type) <complex_type>: New member.
5424 (init_complex_type): Update.
5425 (arch_complex_type): Don't declare.
5426 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5427 Make name if none given. Use alloc_type_copy. Look for cached
5428 complex type.
5429 (arch_complex_type): Remove.
5430 (gdbtypes_post_init): Use init_complex_type.
5431 * f-lang.c (build_fortran_types): Use init_complex_type.
5432 * dwarf2/read.c (read_base_type): Update.
5433 * d-lang.c (build_d_types): Use init_complex_type.
5434 * ctfread.c (read_base_type): Update.
5435
53cccef1
TBA
54362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5437
5438 * infrun.c (stop_all_threads): Update assertion, plus when
5439 stopping threads, take into account that we might be trying
5440 to stop an all-stop target.
5441 (stop_waiting): Call 'stop_all_threads' if there exists a
5442 non-stop target.
5443
a0714d30
TBA
54442020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5445
5446 * target.h (exists_non_stop_target): New function declaration.
5447 * target.c (exists_non_stop_target): New function.
5448
60e22c1e
HD
54492020-04-01 Hannes Domani <ssbssa@yahoo.de>
5450
5451 PR gdb/24789
5452 * eval.c (is_integral_or_integral_reference): New function.
5453 (evaluate_subexp_standard): Allow integer references in
5454 pointer arithmetic.
5455
e139a727
TBA
54562020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5457
5458 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5459 check for no ptid in the stop reply when the target is non-stop.
5460
e0802d59
TT
54612020-04-01 Tom Tromey <tromey@adacore.com>
5462
5463 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5464 "name" parameter to rvalue reference. Initialize m_name_holder.
5465 <lookup_name_info>: New overloads.
5466 <name>: Return gdb::string_view.
5467 <c_str>: New method.
5468 <make_ignore_params>: Update.
5469 <search_name_hash>: Update.
5470 <language_lookup_name>: Return const char *.
5471 <m_name>: Change type.
5472 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5473 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5474 (lookup_name_info::match_any): Update.
5475 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5476 Update.
5477 * minsyms.c (linkage_name_str): Update.
5478 * language.c (default_symbol_name_matcher): Update.
5479 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5480 Update.
5481 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5482 (ada_lookup_name_info::ada_lookup_name_info): Update.
5483 (literal_symbol_name_matcher): Update.
5484
8c072cb6
TT
54852020-04-01 Tom Tromey <tromey@adacore.com>
5486
5487 * psymtab.c (psymtab_search_name): Remove function.
5488 (psym_lookup_symbol): Create search name and lookup name here.
5489 (lookup_partial_symbol): Remove "name" parameter; add
5490 lookup_name.
5491 (psym_expand_symtabs_for_function): Update.
5492
6f29a534
TT
54932020-03-31 Joel Jones <joelkevinjones@gmail.com>
5494
5495 PR tui/25597:
5496 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5497
af62665e
TT
54982020-03-31 Tom Tromey <tromey@adacore.com>
5499
5500 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5501 memcpy.
5502
d1a89da5
NC
55032020-03-30 Nelson Chu <nelson.chu@sifive.com>
5504
5505 * features/riscv/32bit-csr.xml: Regenerated.
5506 * features/riscv/64bit-csr.xml: Regenerated.
5507
d8af9068
TT
55082020-03-30 Tom Tromey <tromey@adacore.com>
5509
5510 * ada-valprint.c (print_variant_part): Update.
5511 * ada-lang.h (ada_which_variant_applies): Update.
5512 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5513 outer_valaddr parameters; replace with "outer" value parameter.
5514 (to_fixed_variant_branch_type): Update.
5515
227c0bf4
PFC
55162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5517
5518 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5519 <list>. Remove inclusion of observable.h.
5520 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5521 (struct arch_lwp_info): New struct.
5522 (class ppc_linux_dreg_interface): New class.
5523 (struct ppc_linux_process_info): New struct.
5524 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5525 <low_new_clone, low_forget_process, low_prepare_to_resume>
5526 <copy_thread_dreg_state, mark_thread_stale>
5527 <mark_debug_registers_changed, register_hw_breakpoint>
5528 <clear_hw_breakpoint, register_wp, clear_wp>
5529 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5530 <num_memory_accesses, get_trigger_type>
5531 <create_watchpoint_request, hwdebug_point_cmp>
5532 <init_arch_lwp_info, get_arch_lwp_info>
5533 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5534 methods.
5535 <struct ptid_hash>: New inner struct.
5536 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5537 members.
5538 (saved_dabr_value, hwdebug_info, max_slots_number)
5539 (struct hw_break_tuple, struct thread_points, ppc_threads)
5540 (have_ptrace_hwdebug_interface)
5541 (hwdebug_find_thread_points_by_tid)
5542 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5543 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5544 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5545 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5546 use m_dreg_interface.
5547 (hwdebug_point_cmp): Change to...
5548 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5549 reference arguments instead of pointers.
5550 (ppc_linux_nat_target::ranged_break_num_registers): Use
5551 m_dreg_interface.
5552 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5553 m_dreg_interface. Call register_hw_breakpoint.
5554 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5555 m_dreg_interface. Call clear_hw_breakpoint.
5556 (get_trigger_type): Change to...
5557 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5558 comment.
5559 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5560 use m_dreg_interface. Call register_hw_breakpoint.
5561 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5562 use m_dreg_interface. Call clear_hw_breakpoint.
5563 (can_use_watchpoint_cond_accel): Change to...
5564 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5565 method. Update comment, use m_dreg_interface and
5566 m_process_info.
5567 (calculate_dvc): Change to...
5568 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5569 m_dreg_interface.
5570 (num_memory_accesses): Change to...
5571 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5572 (check_condition): Change to...
5573 (ppc_linux_nat_target::check_condition): ...this method.
5574 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5575 comment, use m_dreg_interface.
5576 (create_watchpoint_request): Change to...
5577 (ppc_linux_nat_target::create_watchpoint_request): ...this
5578 method. Use m_dreg_interface.
5579 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5580 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5581 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5582 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5583 (ppc_linux_nat_target::low_forget_process)
5584 (ppc_linux_nat_target::low_new_fork)
5585 (ppc_linux_nat_target::low_new_clone)
5586 (ppc_linux_nat_target::low_delete_thread)
5587 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5588 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5589 only call mark_thread_stale.
5590 (ppc_linux_thread_exit): Remove.
5591 (ppc_linux_nat_target::stopped_data_address): Change to...
5592 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5593 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5594 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5595 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5596 comment. Call low_stopped_data_address.
5597 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5598 m_dreg_interface.
5599 (ppc_linux_nat_target::masked_watch_num_registers): Use
5600 m_dreg_interface.
5601 (ppc_linux_nat_target::copy_thread_dreg_state)
5602 (ppc_linux_nat_target::mark_thread_stale)
5603 (ppc_linux_nat_target::mark_debug_registers_changed)
5604 (ppc_linux_nat_target::register_hw_breakpoint)
5605 (ppc_linux_nat_target::clear_hw_breakpoint)
5606 (ppc_linux_nat_target::register_wp)
5607 (ppc_linux_nat_target::clear_wp)
5608 (ppc_linux_nat_target::init_arch_lwp_info)
5609 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5610 (_initialize_ppc_linux_nat): Remove observer callback.
5611
4db10d8f
PFC
56122020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5613
5614 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5615 (ppc_linux_nat_target::auxv_parse)
5616 (ppc_linux_nat_target::read_description)
5617 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5618 Move up.
5619
1310c1b0
PFC
56202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5621
5622 * linux-nat.h (low_new_clone): New method.
5623 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5624
69b037c3
SM
56252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5626
5627 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5628 (dbx_expand_psymtab): ... this.
5629 (start_psymtab): Update.
5630 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5631 (mdebug_expand_psymtab): ... this.
5632 (parse_partial_symbols): Update.
5633 (new_psymtab): Update.
5634 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5635 (xcoff_expand_psymtab): ... this.
5636 (xcoff_start_psymtab): Update.
5637
48993951
SM
56382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5639
5640 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5641 <expand_dependencies>: ... this.
5642 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5643 (partial_symtab::expand_dependencies): ... this.
5644 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5645 Update.
5646 (dwarf2_psymtab::expand_psymtab): Update.
5647 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5648 * mdebugread.c (psymtab_to_symtab_1): Update.
5649 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5650
3ad83046
SM
56512020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * psympriv.h (discard_psymtab): Remove.
5654 * dbxread.c (dbx_end_psymtab): Update.
5655 * xcoffread.c (xcoff_end_psymtab): Update.
5656
4d1b9ab6
TT
56572020-03-28 Tom Tromey <tom@tromey.com>
5658
5659 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5660 comment.
5661
f1749218
TT
56622020-03-28 Tom Tromey <tom@tromey.com>
5663
5664 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5665
ebea7626
HD
56662020-03-27 Hannes Domani <ssbssa@yahoo.de>
5667
5668 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5669
a879b4d5
JB
56702020-03-26 John Baldwin <jhb@FreeBSD.org>
5671
5672 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5673
0826b30a
TT
56742020-03-26 Tom Tromey <tom@tromey.com>
5675
5676 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5677 (mark_common_block_symbol_computed, read_tag_string_type)
5678 (attr_to_dynamic_prop, read_subrange_type): Update.
5679 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5680 to be methods on struct attribute.
5681 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5682 (read_call_site_scope, partial_die_info::read)
5683 (partial_die_info::read, lookup_die_type, follow_die_ref):
5684 Update.
5685 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5686 from dwarf2_get_ref_die_offset.
5687 (attribute::constant_value): New method, from
5688 dwarf2_get_attr_constant_value.
5689 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5690 Declare method.
5691 <constant_value>: New method.
5692
2b2558bf
TT
56932020-03-26 Tom Tromey <tom@tromey.com>
5694
5695 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5696 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5697 (dwarf_type_encoding_name): Move to stringify.c.
5698 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5699 * dwarf2/stringify.c: New file.
5700 * dwarf2/stringify.h: New file.
5701
eeb64781
TT
57022020-03-26 Tom Tromey <tom@tromey.com>
5703
5704 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5705 Rewrite.
5706
a39fdb41
TT
57072020-03-26 Tom Tromey <tom@tromey.com>
5708
5709 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5710 methods.
5711 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5712 (lookup_ranges_base): Likewise.
5713 (read_cutu_die_from_dwo, read_full_die_1): Update.
5714
436c571c
TT
57152020-03-26 Tom Tromey <tom@tromey.com>
5716
5717 * dwarf2/read.c (read_import_statement, read_file_scope)
5718 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5719 (read_lexical_block_scope, read_call_site_scope)
5720 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5721 (handle_struct_member_die, process_structure_scope)
5722 (update_enumeration_type_from_children)
5723 (process_enumeration_scope, read_array_type, read_common_block)
5724 (read_namespace, read_module, read_subroutine_type): Update.
5725 (sibling_die): Remove.
5726
052c8bb8
TT
57272020-03-26 Tom Tromey <tom@tromey.com>
5728
5729 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5730 (build_type_psymtabs_reader, read_structure_type)
5731 (read_enumeration_type, read_full_die_1): Update.
5732 (dwarf2_attr_no_follow): Move to die.h.
5733 * dwarf2/die.h (struct die_info) <attr>: New method.
5734
2b24b6e4
TT
57352020-03-26 Tom Tromey <tom@tromey.com>
5736
5737 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5738 <base_address>: Now an optional.
5739 (dwarf2_find_base_address, dwarf2_rnglists_process)
5740 (dwarf2_ranges_process, fill_in_loclist_baton)
5741 (dwarf2_symbol_mark_computed): Update.
5742
c2d50fd0
TT
57432020-03-26 Tom Tromey <tom@tromey.com>
5744
5745 * dwarf2/read.c (struct die_info): Move to die.h.
5746 * dwarf2/die.h: New file.
5747
0df7ad3a
TT
57482020-03-26 Tom Tromey <tom@tromey.com>
5749
5750 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5751 * dwarf2/read.c
5752 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5753 Move to line-header.c.
5754 (read_checked_initial_length_and_offset, read_formatted_entries):
5755 Likewise.
5756 (dwarf_decode_line_header): Split into two.
5757 * dwarf2/line-header.c
5758 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5759 Move from read.c.
5760 (read_checked_initial_length_and_offset, read_formatted_entries):
5761 Likewise.
5762 (dwarf_decode_line_header): New function, split from read.c.
5763
86c0bb4c
TT
57642020-03-26 Tom Tromey <tom@tromey.com>
5765
5766 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5767 Declare method.
5768 * dwarf2/read.c (read_attribute_value): Update.
5769 (dwarf2_per_objfile::read_line_string): Rename from
5770 read_indirect_line_string.
5771 (read_formatted_entries): Update.
5772
2ef46c2f
TT
57732020-03-26 Tom Tromey <tom@tromey.com>
5774
5775 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5776 variable.
5777
4f9c1eda
TT
57782020-03-26 Tom Tromey <tom@tromey.com>
5779
5780 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5781 const.
5782 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5783 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5784 parameter const.
5785
5a0e026f
TT
57862020-03-26 Tom Tromey <tom@tromey.com>
5787
5788 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5789 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5790 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5791 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5792
8844c11b
TT
57932020-03-26 Tom Tromey <tom@tromey.com>
5794
5795 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5796 file_names_size, file_full_name, file_file_name>: Use const.
5797 <file_name_at, file_names>: Add const overload.
5798 * dwarf2/line-header.c (line_header::file_file_name)
5799 (line_header::file_full_name): Update.
5800
c90ec28a
TT
58012020-03-26 Tom Tromey <tom@tromey.com>
5802
5803 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5804 (macro_start_file, consume_improper_spaces)
5805 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5806 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5807 (dwarf_decode_macros): Move to macro.c.
5808 * dwarf2/macro.c: New file.
5809 * dwarf2/macro.h: New file.
5810 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5811
4f44ae6c
TT
58122020-03-26 Tom Tromey <tom@tromey.com>
5813
5814 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5815 method.
5816 * dwarf2/section.c: New method. From
5817 read_indirect_string_at_offset_from.
5818 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5819 (read_indirect_string_at_offset_from): Move to section.c.
5820 (read_indirect_string_at_offset): Rewrite.
5821 (read_indirect_line_string_at_offset): Remove.
5822 (read_indirect_string, read_indirect_line_string)
5823 (dwarf_decode_macro_bytes): Update.
5824
a0194fa8
TT
58252020-03-26 Tom Tromey <tom@tromey.com>
5826
5827 * dwarf2/section.h (struct dwarf2_section_info)
5828 <overload_complaint>: Declare.
5829 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5830 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5831 Rename from dwarf2_section_buffer_overflow_complaint.
5832 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5833 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5834
3d27bbdb
TT
58352020-03-26 Tom Tromey <tom@tromey.com>
5836
5837 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5838 Declare.
5839 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5840 Move from read.c.
5841 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5842 to section.c.
5843
9eac9650
TT
58442020-03-26 Tom Tromey <tom@tromey.com>
5845
5846 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5847
bf80d710
TT
58482020-03-26 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5851 "builder".
5852 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5853 parameter.
5854 (dwarf_decode_macros): Update.
5855
0314b390
TT
58562020-03-26 Tom Tromey <tom@tromey.com>
5857
5858 * dwarf2/read.c (read_attribute_value): Update.
5859 (read_indirect_string_from_dwz): Move to dwz.c; change into
5860 method.
5861 (dwarf_decode_macro_bytes): Update.
5862 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5863 * dwarf2/dwz.c: New file.
5864 * Makefile.in (COMMON_SFILES): Add dwz.c.
5865
9fda78b6
TT
58662020-03-26 Tom Tromey <tom@tromey.com>
5867
5868 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5869 * dwarf2/read.c: Add include.
5870 * dwarf2/index-write.c: Add include.
5871 * dwarf2/index-cache.c: Add include.
5872 * dwarf2/dwz.h: New file.
5873
33aa3c10
TT
58742020-03-25 Tom Tromey <tom@tromey.com>
5875
5876 * compile/compile-object-load.c (get_out_value_type): Mention
5877 correct symbol name in error message.
5878
d503b685
HD
58792020-03-25 Hannes Domani <ssbssa@yahoo.de>
5880
5881 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5882
7b1eff95
TV
58832020-03-25 Tom de Vries <tdevries@suse.de>
5884
5885 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5886 * symmisc.c (dump_symtab_1): Print user and includes fields.
5887 (maintenance_info_symtabs): Same.
5888
dd895392
AB
58892020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5890
5891 PR gdb/25534
5892 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5893 (riscv_regcache_cooked_write): New function.
5894 (riscv_push_dummy_call): Use new function.
5895 (riscv_return_value): Likewise.
5896
5ab2fbf1
SM
58972020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5900 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5901 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5902 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5903 * infrun.c (follow_fork): Likewise.
5904 (follow_fork_inferior): Likewise.
5905 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5906 * linux-nat.h (class linux_nat_target): Likewise.
5907 * remote.c (class remote_target) <follow_fork>: Likewise.
5908 (remote_target::follow_fork): Likewise.
5909 * target-delegates.c: Re-generate.
5910 * target.c (default_follow_fork): Likewise.
5911 (target_follow_fork): Likewise.
5912 * target.h (struct target_ops) <follow_fork>: Likewise.
5913 (target_follow_fork): Likewise.
5914
a64fafb5
TV
59152020-03-24 Tom de Vries <tdevries@suse.de>
5916
5917 * psymtab.c (maintenance_info_psymtabs): Print user field.
5918
fe26d3a3
TT
59192020-03-20 Tom Tromey <tromey@adacore.com>
5920
5921 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5922 const.
5923 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5924 const.
5925
c884cc46
SM
59262020-03-20 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * ptrace.m4: Don't check for ptrace declaration.
5929 * config.in: Re-generate.
5930 * configure: Re-generate.
5931 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5932 not defined.
5933
1ff700c2
KR
59342020-03-20 Kamil Rytarowski <n54@gmx.com>
5935
5936 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5937 `PTRACE_TYPE_RET'.
5938 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5939 * sparc-nat.c (gdb_ptrace): Likewise.
5940 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5941
f7d4f0b1
TT
59422020-03-20 Tom Tromey <tromey@adacore.com>
5943
5944 * c-exp.y (lex_one_token): Fix assert.
5945
f67210ff
TT
59462020-03-20 Tom Tromey <tromey@adacore.com>
5947
5948 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5949 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5950 strncpy call.
5951
1773be9e
TT
59522020-03-20 Tom Tromey <tromey@adacore.com>
5953
5954 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5955
70304be9
TT
59562020-03-20 Tom Tromey <tromey@adacore.com>
5957
5958 * ada-valprint.c (print_variant_part): Remove parameters; switch
5959 to value-based API.
5960 (print_field_values): Likewise.
5961 (ada_val_print_struct_union): Likewise.
5962 (ada_value_print_1): Update.
5963
9faa006d
KR
59642020-03-20 Kamil Rytarowski <n54@gmx.com>
5965
5966 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5967 nbsd_nat_target instead of inf_ptrace_target.
5968 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5969 nbsd_nat_target.
5970
4a90f062
KR
59712020-03-20 Kamil Rytarowski <n54@gmx.com>
5972
5973 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5974 it to the ptrace call.
5975 * (store_registers): Likewise.
5976
59772020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5978
5979 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5980 it to the ptrace call.
5981 * (store_registers): Likewise.
5982
2d07da27
LM
59832020-03-19 Luis Machado <luis.machado@linaro.org>
5984
5985 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5986 valid, fetch vg value from ptrace.
5987
f09db380
KR
59882020-03-19 Kamil Rytarowski <n54@gmx.com>
5989 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5990 * inf-ptrace.c: Likewise.
5991 * (gdb_ptrace): Add.
5992 * (inf_ptrace_target::resume): Update.
5993 * (inf_ptrace_target::xfer_partial): Likewise.
5994 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5995 * (inf_ptrace_peek_poke): Update.
5996
fcc7376e
KR
59972020-03-19 Kamil Rytarowski <n54@gmx.com>
5998
5999 * x86-bsd-nat.c (gdb_ptrace): New.
6000 * (x86bsd_dr_set): Add new argument `ptid'.
6001 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6002 x86bsd_dr_set_addr): Update.
6003
cada5fc9
AB
60042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6005
6006 * remote.c (remote_target::process_stop_reply): Handle events for
6007 all threads differently.
6008
19a2740f
AB
60092020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6010
6011 * completer.c (completion_tracker::remove_completion): Define new
6012 function.
6013 * completer.h (completion_tracker::remove_completion): Declare new
6014 function.
6015 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6016 when adding a C++ function symbol.
6017
724fd9ba
AB
60182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6019
6020 * completer.c (completion_tracker::completion_hash_entry): Define
6021 new class.
6022 (advance_to_filename_complete_word_point): Call
6023 recompute_lowest_common_denominator.
6024 (completion_tracker::completion_tracker): Call discard_completions
6025 to setup the hash table.
6026 (completion_tracker::discard_completions): Allow for being called
6027 from the constructor, pass new equal function, and element deleter
6028 when constructing the hash table. Initialise new class member
6029 variables.
6030 (completion_tracker::maybe_add_completion): Remove use of
6031 m_entries_vec, and store more information into m_entries_hash.
6032 (completion_tracker::recompute_lcd_visitor): New function, most
6033 content taken from...
6034 (completion_tracker::recompute_lowest_common_denominator):
6035 ...here, this now just visits each item in the hash calling the
6036 above visitor.
6037 (completion_tracker::build_completion_result): Remove use of
6038 m_entries_vec, call recompute_lowest_common_denominator.
6039 * completer.h (completion_tracker::have_completions): Remove use
6040 of m_entries_vec.
6041 (completion_tracker::completion_hash_entry): Declare new class.
6042 (completion_tracker::recompute_lowest_common_denominator): Change
6043 function signature.
6044 (completion_tracker::recompute_lcd_visitor): Declare new function.
6045 (completion_tracker::m_entries_vec): Delete.
6046 (completion_tracker::m_entries_hash): Initialize to NULL.
6047 (completion_tracker::m_lowest_common_denominator_valid): New
6048 member variable.
6049 (completion_tracker::m_lowest_common_denominator_max_length): New
6050 member variable.
6051
5a82b8a1
KR
60522020-03-17 Kamil Rytarowski <n54@gmx.com>
6053
6054 * regformats/regdef.h: Put reg in gdb namespace.
6055
fb516a69
KR
60562020-03-17 Kamil Rytarowski <n54@gmx.com>
6057
6058 * i386-bsd-nat.c (gdb_ptrace): New.
6059 * (i386bsd_fetch_inferior_registers,
6060 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6061 * (i386bsd_fetch_inferior_registers,
6062 i386bsd_store_inferior_registers) Use gdb_ptrace.
6063
1c0aa1fb
KR
60642020-03-17 Kamil Rytarowski <n54@gmx.com>
6065
6066 * amd64-bsd-nat.c (gdb_ptrace): New.
6067 * (amd64bsd_fetch_inferior_registers,
6068 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6069 * (amd64bsd_fetch_inferior_registers,
6070 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6071
5ccd2fb7
KR
60722020-03-17 Kamil Rytarowski <n54@gmx.com>
6073
6074 * user-regs.c (user_reg::read): Rename to...
6075 (user_reg::xread): ...this.
6076 * (append_user_reg): Rename argument `read' to `xread'.
6077 * (user_reg_add_builtin): Likewise.
6078 * (user_reg_add): Likewise.
6079 * (value_of_user_reg): Likewise.
6080
2108a63a
KR
60812020-03-17 Kamil Rytarowski <n54@gmx.com>
6082
6083 * sparc-nat.c (gdb_ptrace): New.
6084 * sparc-nat.c (sparc_fetch_inferior_registers)
6085 (sparc_store_inferior_registers) Remove obsolete comment.
6086 * sparc-nat.c (sparc_fetch_inferior_registers)
6087 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6088 * sparc-nat.c (sparc_fetch_inferior_registers)
6089 (sparc_store_inferior_registers) Use gdb_ptrace.
6090
a225c9a8
KR
60912020-03-17 Kamil Rytarowski <n54@gmx.com>
6092
6093 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6094 it to the ptrace call.
6095 * sh-nbsd-nat.c (store_registers): Likewise.
6096
98097623
KR
60972020-03-17 Kamil Rytarowski <n54@gmx.com>
6098
6099 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6100 nbsd_nat_target instead of inf_ptrace_target.
6101 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6102 nbsd_nat_target.
6103
9e38d619
KR
61042020-03-17 Kamil Rytarowski <n54@gmx.com>
6105
6106 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6107
a2ecbe9f
KR
61082020-03-17 Kamil Rytarowski <n54@gmx.com>
6109
6110 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6111 <sys/sysctl.h>.
6112 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6113
58990295
TV
61142020-03-17 Tom de Vries <tdevries@suse.de>
6115
6116 PR gdb/23710
6117 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6118 fields.
6119 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6120 fields.
6121 (process_imported_unit_die): Skip import of c++ CUs.
6122
771dd3a8
TT
61232020-03-16 Tom Tromey <tom@tromey.com>
6124
6125 * p-valprint.c (pascal_object_print_value): Initialize
6126 base_value.
6127
817a7585
AK
61282020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6129 Shahab Vahedi <shahab@synopsys.com>
6130
6131 * Makefile.in: Add arch/arc.o
6132 * configure.tgt: Likewise.
6133 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6134 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6135 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6136 * arc-tdep.h (arc_read_description): Add proto type.
6137 * arch/arc.c: New file.
6138 * arch/arc.h: Likewise.
6139 * features/Makefile: Replace old target descriptions with new.
6140 * features/arc-arcompact.c: Remove.
6141 * features/arc-arcompact.xml: Likewise.
6142 * features/arc-v2.c: Likewise
6143 * features/arc-v2.xml: Likewise
6144 * features/arc/aux-arcompact.xml: New file.
6145 * features/arc/aux-v2.xml: Likewise.
6146 * features/arc/core-arcompact.xml: Likewise.
6147 * features/arc/core-v2.xml: Likewise.
6148 * features/arc/aux-arcompact.c: Generate.
6149 * features/arc/aux-v2.c: Likewise.
6150 * features/arc/core-arcompact.c: Likewise.
6151 * features/arc/core-v2.c: Likewise.
6152 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6153
67430cd0
TT
61542020-03-16 Tom Tromey <tromey@adacore.com>
6155
6156 PR gdb/25663:
6157 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6158 putting value into bcache.
6159
30efb6c7
SM
61602020-03-16 Simon Marchi <simon.marchi@efficios.com>
6161
6162 PR gdb/21500
6163 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6164 to...
6165 (amd64_windows_init_abi_common): ... this. Don't set size of
6166 long type.
6167 (amd64_windows_init_abi): New function.
6168 (amd64_cygwin_init_abi): New function.
6169 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6170 the Cygwin OS ABI.
6171 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6172 comment.
6173
8db52437
SM
61742020-03-16 Simon Marchi <simon.marchi@efficios.com>
6175
6176 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6177 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6178 (pe_import_directory_entry): New struct type.
6179 (is_linked_with_cygwin_dll): New function.
6180 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6181 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6182 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6183
5982a56a
SM
61842020-03-16 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6187 i386_cygwin_core_osabi_sniffer.
6188
7a1998df
SM
61892020-03-16 Simon Marchi <simon.marchi@efficios.com>
6190
6191 * i386-cygwin-tdep.c: Rename to...
6192 * i386-windows-tdep.c: ... this.
6193 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6194 i386-windows-tdep.c.
6195 * configure.tgt: Likewise.
6196
053205cc
SM
61972020-03-16 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6200 * osabi.c (gdb_osabi_names): Add "Windows".
6201 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6202 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6203 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6204 i386_cygwin_osabi_sniffer.
6205 (_initialize_i386_cygwin_tdep): Register OS ABI
6206 GDB_OSABI_WINDOWS for i386.
6207 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6208 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6209 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6210 for x86-64.
6211 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6212 when the target matches '*-*-mingw*'.
6213
fe4b2ee6
SM
62142020-03-16 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * defs.h (enum gdb_osabi): Move to...
6217 * osabi.h (enum gdb_osabi): ... here.
6218 * gdbarch.sh: Include osabi.h in gdbarch.h.
6219 * gdbarch.h: Re-generate.
6220
cb9b645d
SM
62212020-03-16 Simon Marchi <simon.marchi@efficios.com>
6222
6223 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6224 function.
6225 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6226
3293bbaf
TT
62272020-03-14 Tom Tromey <tom@tromey.com>
6228
6229 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6230 for C++.
6231 (c_type_print_modifier): Likewise. Add "language" parameter.
6232 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6233 (c_type_print_base_1): Update.
6234 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6235 constants.
6236 * type-stack.c (type_stack::insert): Handle tp_atomic and
6237 tp_restrict.
6238 (type_stack::follow_type_instance_flags): Likewise.
6239 (type_stack::follow_types): Likewise. Merge type-following code.
6240 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6241 (space_identifier, cv_with_space_id)
6242 (const_or_volatile_or_space_identifier_noopt)
6243 (const_or_volatile_or_space_identifier): Remove.
6244 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6245 rules.
6246 (ptr_operator, typebase): Update.
6247 (enum token_flag) <FLAG_C>: New constant.
6248 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6249 "_Atomic".
6250 (lex_one_token): Handle FLAG_C.
6251
154151a6
KR
62522020-03-14 Kamil Rytarowski <n54@gmx.com>
6253
6254 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6255 it to the ptrace call.
6256 * m68k-bsd-nat.c (store_registers): Likewise.
6257
bc107784
KR
62582020-03-14 Kamil Rytarowski <n54@gmx.com>
6259
6260 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6261 gdb_byte *.
6262 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6263 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6264 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6265
01a80117
KR
62662020-03-14 Kamil Rytarowski <n54@gmx.com>
6267
6268 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6269 nbsd_nat_target instead of inf_ptrace_target.
6270 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6271 nbsd_nat_target.
6272
f90280ca
KR
62732020-03-14 Kamil Rytarowski <n54@gmx.com>
6274
6275 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6276 register_t.
6277
6def66f1
KR
62782020-03-14 Kamil Rytarowski <n54@gmx.com>
6279
6280 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6281 it to the ptrace call.
6282 * alpha-bsd-nat.c (store_registers): Likewise.
6283
66eaca97
KR
62842020-03-14 Kamil Rytarowski <n54@gmx.com>
6285
6286 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6287 includes.
6288 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6289 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6290 fill_fpregset): Likewise.
6291
4fed520b
KR
62922020-03-14 Kamil Rytarowski <n54@gmx.com>
6293
6294 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6295 nbsd_nat_target instead of inf_ptrace_target.
6296 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6297 nbsd_nat_target.
6298
2190cf06
KR
62992020-03-14 Kamil Rytarowski <n54@gmx.com>
6300
6301 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6302 register_t.
6303
75c56d3d
KR
63042020-03-14 Kamil Rytarowski <n54@gmx.com>
6305
6306 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6307 it to the ptrace call.
6308 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6309 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6310 * arm-nbsd-nat.c (store_register): Likewise.
6311 * arm-nbsd-nat.c (store_regs): Likewise.
6312 * arm-nbsd-nat.c (store_fp_register): Likewise.
6313 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6314
6018d381
KR
63152020-03-14 Kamil Rytarowski <n54@gmx.com>
6316
6317 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6318 nbsd_nat_target instead of inf_ptrace_target.
6319 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6320 nbsd_nat_target.
6321
013f99f0
KR
63222020-03-14 Kamil Rytarowski <n54@gmx.com>
6323
6324 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6325 it to the ptrace call.
6326 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6327
12753073
KR
63282020-03-14 Kamil Rytarowski <n54@gmx.com>
6329
6227b330
KR
6330 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6331 it to the ptrace call.
6332 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6333
63342020-03-14 Kamil Rytarowski <n54@gmx.com>
6335
6336 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6337 gdb_byte *.
12753073
KR
6338 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6339
d5be5fa4
KR
63402020-03-14 Kamil Rytarowski <n54@gmx.com>
6341
6342 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6343 instead of inf_ptrace_target.
6344 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6345 nbsd_nat_target.
6346
8110f842
KR
63472020-03-14 Kamil Rytarowski <n54@gmx.com>
6348
6349 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6350 register_t.
6351
52feded7
KR
63522020-03-14 Kamil Rytarowski <n54@gmx.com>
6353
6354 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6355 register_t.
6356
25567eee
KR
63572020-03-14 Kamil Rytarowski <n54@gmx.com>
6358
6359 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6360 register_t.
6361
426a9c18
TT
63622020-03-13 Tom Tromey <tom@tromey.com>
6363
6364 * value.h (val_print): Don't declare.
6365 * valprint.h (val_print_array_elements)
6366 (val_print_scalar_formatted, generic_val_print): Don't declare.
6367 * valprint.c (generic_val_print_array): Take a struct value.
6368 (generic_val_print_ptr, generic_val_print_memberptr)
6369 (generic_val_print_bool, generic_val_print_int)
6370 (generic_val_print_char, generic_val_print_complex)
6371 (generic_val_print): Remove.
6372 (generic_value_print): Update.
6373 (do_val_print): Remove unused parameters. Don't call
6374 la_val_print.
6375 (val_print): Remove.
6376 (common_val_print): Update. Don't call value_check_printable.
6377 (val_print_scalar_formatted, val_print_array_elements): Remove.
6378 * rust-lang.c (rust_val_print): Remove.
6379 (rust_language_defn): Update.
6380 * p-valprint.c (pascal_val_print): Remove.
6381 (pascal_value_print_inner): Update.
6382 (pascal_object_print_val_fields, pascal_object_print_val):
6383 Remove.
6384 (pascal_object_print_static_field): Update.
6385 * p-lang.h (pascal_val_print): Don't declare.
6386 * p-lang.c (pascal_language_defn): Update.
6387 * opencl-lang.c (opencl_language_defn): Update.
6388 * objc-lang.c (objc_language_defn): Update.
6389 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6390 * m2-lang.h (m2_val_print): Don't declare.
6391 * m2-lang.c (m2_language_defn): Update.
6392 * language.h (struct language_defn) <la_val_print>: Remove.
6393 * language.c (unk_lang_value_print_inner): Rename. Change
6394 argument types.
6395 (unknown_language_defn, auto_language_defn): Update.
6396 * go-valprint.c (go_val_print): Remove.
6397 * go-lang.h (go_val_print): Don't declare.
6398 * go-lang.c (go_language_defn): Update.
6399 * f-valprint.c (f_val_print): Remove.
6400 * f-lang.h (f_value_print): Don't declare.
6401 * f-lang.c (f_language_defn): Update.
6402 * d-valprint.c (d_val_print): Remove.
6403 * d-lang.h (d_value_print): Don't declare.
6404 * d-lang.c (d_language_defn): Update.
6405 * cp-valprint.c (cp_print_value_fields)
6406 (cp_print_value_fields_rtti, cp_print_value): Remove.
6407 (cp_print_static_field): Update.
6408 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6409 (c_val_print_struct, c_val_print_union, c_val_print_int)
6410 (c_val_print_memberptr, c_val_print): Remove.
6411 * c-lang.h (c_val_print_array, cp_print_value_fields)
6412 (cp_print_value_fields_rtti): Don't declare.
6413 * c-lang.c (c_language_defn, cplus_language_defn)
6414 (asm_language_defn, minimal_language_defn): Update.
6415 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6416 (ada_val_print_enum): Take a struct value.
6417 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6418 (ada_val_print): Remove.
6419 (ada_value_print_1): Update.
6420 (printable_val_type): Remove.
6421 * ada-lang.h (ada_val_print): Don't declare.
6422 * ada-lang.c (ada_language_defn): Update.
6423
42331a1e
TT
64242020-03-13 Tom Tromey <tom@tromey.com>
6425
6426 * valprint.c (do_val_print): Update.
6427 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6428 a struct value.
6429 (value_to_value_object_no_release): Declare.
6430 * python/py-value.c (value_to_value_object_no_release): New
6431 function.
6432 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6433 struct value.
6434 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6435 function.
6436 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6437 a struct value.
6438 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6439 Declare.
6440 (gdbscm_apply_val_pretty_printer): Take a struct value.
6441 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6442 value.
6443 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6444 value.
6445 * extension-priv.h (struct extension_language_ops)
6446 <apply_val_pretty_printer>: Take a struct value.
6447 * cp-valprint.c (cp_print_value): Create a struct value.
6448 (cp_print_value): Update.
6449
3a916a97
TT
64502020-03-13 Tom Tromey <tom@tromey.com>
6451
6452 * ada-valprint.c (print_field_values): Call common_val_print.
6453
b59eac37
TT
64542020-03-13 Tom Tromey <tom@tromey.com>
6455
6456 * ada-valprint.c (val_print_packed_array_elements): Remove
6457 bitoffset and val parameters. Call common_val_print.
6458 (ada_val_print_string): Remove offset, address, and original_value
6459 parameters.
6460 (ada_val_print_array): Update.
6461 (ada_value_print_array): New function.
6462 (ada_value_print_1): Call it.
6463
03371129
TT
64642020-03-13 Tom Tromey <tom@tromey.com>
6465
6466 * ada-valprint.c (ada_value_print): Use common_val_print.
6467
2e088f8b
TT
64682020-03-13 Tom Tromey <tom@tromey.com>
6469
6470 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6471
39ef85a8
TT
64722020-03-13 Tom Tromey <tom@tromey.com>
6473
6474 * ada-valprint.c (ada_value_print_num): New function.
6475 (ada_value_print_1): Use it.
6476
b9fa6e07
TT
64772020-03-13 Tom Tromey <tom@tromey.com>
6478
6479 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6480
416595d6
TT
64812020-03-13 Tom Tromey <tom@tromey.com>
6482
6483 * ada-valprint.c (ada_value_print_ptr): New function.
6484 (ada_value_print_1): Use it.
6485
5b5e15ec
TT
64862020-03-13 Tom Tromey <tom@tromey.com>
6487
6488 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6489 call common_val_print.
6490 (ada_val_print_1): Update.
6491 (ada_value_print_1): New function.
6492 (ada_value_print_inner): Rewrite.
6493
fbf54e75
TT
64942020-03-13 Tom Tromey <tom@tromey.com>
6495
6496 * cp-valprint.c (cp_print_value_fields): Update.
6497 (cp_print_value): New function.
6498
64b653ca
TT
64992020-03-13 Tom Tromey <tom@tromey.com>
6500
6501 * m2-valprint.c (m2_value_print_inner): Use
6502 cp_print_value_fields.
6503 * cp-valprint.c (cp_print_value_fields): New function.
6504 * c-valprint.c (c_value_print_struct): New function.
6505 (c_value_print_inner): Use c_value_print_struct.
6506 * c-lang.h (cp_print_value_fields): Declare.
6507
6999f067
TT
65082020-03-13 Tom Tromey <tom@tromey.com>
6509
6510 * c-valprint.c (c_value_print_array): New function.
6511 (c_value_print_inner): Use it.
6512
ce80b8bd
TT
65132020-03-13 Tom Tromey <tom@tromey.com>
6514
6515 * c-valprint.c (c_value_print_memberptr): New function.
6516 (c_value_print_inner): Use it.
6517
2faac269
TT
65182020-03-13 Tom Tromey <tom@tromey.com>
6519
6520 * c-valprint.c (c_value_print_int): New function.
6521 (c_value_print_inner): Use it.
6522
da3e2c29
TT
65232020-03-13 Tom Tromey <tom@tromey.com>
6524
6525 * c-valprint.c (c_value_print_ptr): New function.
6526 (c_value_print_inner): Use it.
6527
50836231
TT
65282020-03-13 Tom Tromey <tom@tromey.com>
6529
6530 * c-valprint.c (c_value_print_inner): Rewrite.
6531
4f412b6e
TT
65322020-03-13 Tom Tromey <tom@tromey.com>
6533
6534 * valprint.c (generic_value_print_complex): New function.
6535 (generic_value_print): Use it.
6536
f5354008
TT
65372020-03-13 Tom Tromey <tom@tromey.com>
6538
6539 * valprint.c (generic_val_print_float): Don't call
6540 val_print_scalar_formatted.
6541 (generic_val_print, generic_value_print): Update.
6542
3eec3b05
TT
65432020-03-13 Tom Tromey <tom@tromey.com>
6544
6545 * valprint.c (generic_value_print_char): New function
6546 (generic_value_print): Use it.
6547
fdddfccb
TT
65482020-03-13 Tom Tromey <tom@tromey.com>
6549
6550 * valprint.c (generic_value_print_int): New function.
6551 (generic_value_print): Use it.
6552
6dde7521
TT
65532020-03-13 Tom Tromey <tom@tromey.com>
6554
6555 * valprint.c (generic_value_print_bool): New function.
6556 (generic_value_print): Use it.
6557
4112d2e6
TT
65582020-03-13 Tom Tromey <tom@tromey.com>
6559
6560 * valprint.c (generic_val_print_func): Simplify.
6561 (generic_val_print, generic_value_print): Update.
6562
65786af6
TT
65632020-03-13 Tom Tromey <tom@tromey.com>
6564
6565 * valprint.c (generic_val_print_flags): Remove.
6566 (generic_val_print, generic_value_print): Update.
6567 (val_print_type_code_flags): Add original_value parameter.
6568
40f3ce18
TT
65692020-03-13 Tom Tromey <tom@tromey.com>
6570
6571 * valprint.c (generic_val_print): Update.
6572 (generic_value_print): Update.
6573 * valprint.c (generic_val_print_enum): Don't call
6574 val_print_scalar_formatted.
6575
2a5b130b
TT
65762020-03-13 Tom Tromey <tom@tromey.com>
6577
6578 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6579 * valprint.c (generic_value_print_ptr): New function.
6580
abc66ce9
TT
65812020-03-13 Tom Tromey <tom@tromey.com>
6582
6583 * valprint.c (generic_value_print): Rewrite.
6584
07a32858
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * p-valprint.c (pascal_object_print_value_fields)
6588 (pascal_object_print_value): New functions.
6589
64d64d3a
TT
65902020-03-13 Tom Tromey <tom@tromey.com>
6591
6592 * p-valprint.c (pascal_value_print_inner): Rewrite.
6593
6a95a1f5
TT
65942020-03-13 Tom Tromey <tom@tromey.com>
6595
6596 * f-valprint.c (f_value_print_innner): Rewrite.
6597
59fcdac6
TT
65982020-03-13 Tom Tromey <tom@tromey.com>
6599
6600 * m2-valprint.c (m2_print_unbounded_array): New overload.
6601 (m2_print_unbounded_array): Update.
6602 (m2_print_array_contents): Take a struct value.
6603 (m2_value_print_inner): Rewrite.
6604
d133c3e1
TT
66052020-03-13 Tom Tromey <tom@tromey.com>
6606
6607 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6608 (d_value_print_inner): New function.
6609 * d-lang.h (d_value_print_inner): Declare.
6610 * d-lang.c (d_language_defn): Use d_value_print_inner.
6611
23b0f06b
TT
66122020-03-13 Tom Tromey <tom@tromey.com>
6613
6614 * go-valprint.c (go_value_print_inner): New function.
6615 * go-lang.h (go_value_print_inner): Declare.
6616 * go-lang.c (go_language_defn): Use go_value_print_inner.
6617
5f56f7cb
TT
66182020-03-13 Tom Tromey <tom@tromey.com>
6619
6620 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6621 API.
6622 (rust_val_print): Rewrite.
6623 (rust_value_print_inner): New function, from rust_val_print.
6624 (rust_language_defn): Use rust_value_print_inner.
6625
26792ee0
TT
66262020-03-13 Tom Tromey <tom@tromey.com>
6627
6628 * ada-valprint.c (ada_value_print_inner): New function.
6629 * ada-lang.h (ada_value_print_inner): Declare.
6630 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6631
24051bbe
TT
66322020-03-13 Tom Tromey <tom@tromey.com>
6633
6634 * f-valprint.c (f_value_print_innner): New function.
6635 * f-lang.h (f_value_print_innner): Declare.
6636 * f-lang.c (f_language_defn): Use f_value_print_innner.
6637
c0941be6
TT
66382020-03-13 Tom Tromey <tom@tromey.com>
6639
6640 * p-valprint.c (pascal_value_print_inner): New function.
6641 * p-lang.h (pascal_value_print_inner): Declare.
6642 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6643
62c4663d
TT
66442020-03-13 Tom Tromey <tom@tromey.com>
6645
6646 * m2-valprint.c (m2_value_print_inner): New function.
6647 * m2-lang.h (m2_value_print_inner): Declare.
6648 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6649
62182190
TT
66502020-03-13 Tom Tromey <tom@tromey.com>
6651
6652 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6653 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6654 * c-valprint.c (c_value_print_inner): New function.
6655 * c-lang.h (c_value_print_inner): Declare.
6656 * c-lang.c (c_language_defn, cplus_language_defn)
6657 (asm_language_defn, minimal_language_defn): Use
6658 c_value_print_inner.
6659
1e592a8a
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * p-valprint.c (pascal_object_print_value_fields): Now static.
6663 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6664
7fe471e9
TT
66652020-03-13 Tom Tromey <tom@tromey.com>
6666
6667 * c-valprint.c (c_val_print_array): Simplify.
6668
d121c6ce
TT
66692020-03-13 Tom Tromey <tom@tromey.com>
6670
6671 * valprint.c (value_print_array_elements): New function.
6672 * valprint.h (value_print_array_elements): Declare.
6673
4dba70ee
TT
66742020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6677 * mips-tdep.c (mips_print_register): Use
6678 value_print_scalar_formatted.
6679
4f9ae810
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * valprint.h (value_print_scalar_formatted): Declare.
6683 * valprint.c (value_print_scalar_formatted): New function.
6684
156bfec9
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * valprint.h (generic_value_print): Declare.
6688 * valprint.c (generic_value_print): New function.
6689
2b4e573d
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * valprint.c (do_val_print): Call la_value_print_inner, if
6693 available.
6694 * rust-lang.c (rust_language_defn): Update.
6695 * p-lang.c (pascal_language_defn): Update.
6696 * opencl-lang.c (opencl_language_defn): Update.
6697 * objc-lang.c (objc_language_defn): Update.
6698 * m2-lang.c (m2_language_defn): Update.
6699 * language.h (struct language_defn) <la_value_print_inner>: New
6700 member.
6701 * language.c (unknown_language_defn, auto_language_defn): Update.
6702 * go-lang.c (go_language_defn): Update.
6703 * f-lang.c (f_language_defn): Update.
6704 * d-lang.c (d_language_defn): Update.
6705 * c-lang.c (c_language_defn, cplus_language_defn)
6706 (asm_language_defn, minimal_language_defn): Update.
6707 * ada-lang.c (ada_language_defn): Update.
6708
a1f6a07c
TT
67092020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * c-valprint.c (c_value_print): Use common_val_print.
6712
410cf315
TT
67132020-03-13 Tom Tromey <tom@tromey.com>
6714
6715 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6716
72a45c93
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * f-valprint.c (f77_print_array_1, f_val_print): Use
6720 common_val_print.
6721
040f66bd
TT
67222020-03-13 Tom Tromey <tom@tromey.com>
6723
6724 * riscv-tdep.c (riscv_print_one_register_info): Use
6725 common_val_print.
6726
a6e05a6c
TT
67272020-03-13 Tom Tromey <tom@tromey.com>
6728
6729 * mi/mi-main.c (output_register): Use common_val_print.
6730
3444c526
TT
67312020-03-13 Tom Tromey <tom@tromey.com>
6732
6733 * infcmd.c (default_print_one_register_info): Use
6734 common_val_print.
6735
c2a44efe
TT
67362020-03-13 Tom Tromey <tom@tromey.com>
6737
6738 * valprint.h (common_val_print_checked): Declare.
6739 * valprint.c (common_val_print_checked): New function.
6740 * stack.c (print_frame_arg): Use common_val_print_checked.
6741
b0c26e99
TT
67422020-03-13 Tom Tromey <tom@tromey.com>
6743
6744 * valprint.c (do_val_print): New function, from val_print.
6745 (val_print): Use do_val_print.
6746 (common_val_print): Use do_val_print.
6747
ce3acbe9
TT
67482020-03-13 Tom Tromey <tom@tromey.com>
6749
6750 * valprint.c (value_print): Use scoped_value_mark.
6751
96c7f873
TV
67522020-03-13 Tom de Vries <tdevries@suse.de>
6753
6754 PR symtab/25646
6755 * psymtab.c (partial_symtab::partial_symtab): Don't set
6756 globals_offset and statics_offset. Push element onto
6757 current_global_psymbols and current_static_psymbols stacks.
6758 (concat): New function.
6759 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6760 element from current_global_psymbols and current_static_psymbols
6761 stacks. Concat popped elements to global_psymbols and
6762 static_symbols.
6763 (add_psymbol_to_list): Use current_global_psymbols and
6764 current_static_psymbols stacks.
6765 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6766 current_static_psymbols fields.
6767
6ba0a321
CB
67682020-03-12 Christian Biesinger <cbiesinger@google.com>
6769
6770 * corelow.c (sniff_core_bfd): Remove.
6771 (class core_target) <m_core_vec>: Remove.
6772 (core_target::core_target): Update.
6773 (core_file_fns): Remove.
6774 (deprecated_add_core_fns): Remove.
6775 (default_core_sniffer): Remove.
6776 (sniff_core_bfd): Remove.
6777 (default_check_format): Remove.
6778 (gdb_check_format): Remove.
6779 (core_target_open): Update.
6780 (core_target::get_core_register_section): Update.
6781 (get_core_registers_cb): Update.
6782 (core_target::fetch_registers): Update.
6783 * gdbcore.h (struct core_fns): Remove.
6784 (deprecated_add_core_fns): Remove.
6785 (default_core_sniffer): Remove.
6786 (default_check_format): Remove.
6787
227031b2
TT
67882020-03-12 Tom Tromey <tom@tromey.com>
6789
6790 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6791 CORE_ADDR.
6792 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6793
53807e9f
TT
67942020-03-12 Tom Tromey <tom@tromey.com>
6795
6796 * remote.c (remote_target::download_tracepoint)
6797 (remote_target::enable_tracepoint)
6798 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6799 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6800 sprintf_vma.
6801
64f25102
TT
68022020-03-12 Tom Tromey <tom@tromey.com>
6803
6804 * symfile-mem.c: Update CORE_ADDR size assert.
6805
272cd5a3
SM
68062020-03-12 Simon Marchi <simon.marchi@efficios.com>
6807
6808 * selftest.m4: Move to gdbsupport/.
6809 * acinclude.m4: Update path to selftest.m4.
6810
74cd3f9d
SM
68112020-03-12 Simon Marchi <simon.marchi@efficios.com>
6812
6813 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6814 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6815 gdbarch-selfselftests.c and selftest-arch.c.
6816 (SUBDIR_UNITTESTS_OBS): Rename to...
6817 (SELFTESTS_OBS): ... this.
6818 (COMMON_SFILES): Remove disasm-selftests.c and
6819 gdbarch-selftests.c.
6820 * configure.ac: Don't add selftest-arch.{c,o} to
6821 CONFIG_{SRCS,OBS}.
6822 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6823 preprocessor conditions.
6824
db6878ac
SM
68252020-03-12 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * configure.ac: Don't source bfd/development.sh.
6828 * selftest.m4: Modify comment.
6829 * configure: Re-generate.
6830
4d696a5c
SM
68312020-03-12 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6834 not "true" or "false".
6835 * configure: Re-generate.
6836
8dd8e1c7
CB
68372020-03-12 Christian Biesinger <cbiesinger@google.com>
6838
6839 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6840 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6841 renamed to arm_nbsd_supply_gregset.
6842 (fetch_register): Update to call arm_nbsd_supply_gregset.
6843 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6844 (arm_netbsd_nat_target::fetch_registers): Update.
6845 (fetch_elfcore_registers): Removed.
6846 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6847 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6848 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6849 not require NetBSD system headers.
6850 (arm_nbsd_regset): New struct.
6851 (arm_nbsd_iterate_over_regset_sections): New function.
6852 (arm_netbsd_init_abi_common): Updated to call
6853 set_gdbarch_iterate_over_regset_sections.
6854 * arm-nbsd-tdep.h: New file.
6855
dd69bf7a
KB
68562020-03-11 Kevin Buettner <kevinb@redhat.com>
6857
6858 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6859 recursion.
6860
a0761e34
SM
68612020-03-11 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * configure: Re-generate.
6864
e7a82140
TT
68652020-03-11 Tom Tromey <tromey@adacore.com>
6866
6867 * ada-typeprint.c (print_choices): Fix comment.
6868
dcc050c8
AB
68692020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6870
6871 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6872 previous item in the list, when the list has no items.
6873
1c33af77
TV
68742020-03-11 Tom de Vries <tdevries@suse.de>
6875
6876 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6877 PROP_LOCLIST handling code.
6878
8c95582d
AB
68792020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6880
6881 * buildsym-legacy.c (record_line): Pass extra parameter to
6882 record_line.
6883 * buildsym.c (buildsym_compunit::record_line): Take an extra
6884 parameter, reduce duplication in the line table, and record the
6885 is_stmt flag in the line table.
6886 * buildsym.h (buildsym_compunit::record_line): Add extra
6887 parameter.
6888 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6889 non-statement lines.
6890 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6891 this to the symtab builder.
6892 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6893 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6894 through to dwarf_record_line_1.
6895 * infrun.c (process_event_stop_test): When stepping, don't stop at
6896 a non-statement instruction, and only refresh the step info when
6897 we land in the middle of a line's range. Also add an extra
6898 comment.
6899 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6900 field.
6901 * record-btrace.c (btrace_find_line_range): Only record lines
6902 marked as is-statement.
6903 * stack.c (frame_show_address): Show the frame address if we are
6904 in a non-statement sal.
6905 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6906 (maintenance_print_one_line_table): Print a header for the is_stmt
6907 column, and include is_stmt information in the output.
6908 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6909 preference to non-statements.
6910 (find_pcs_for_symtab_line): Prefer is-statement entries.
6911 (find_line_common): Likewise.
6912 * symtab.h (struct linetable_entry): Add is_stmt field.
6913 (struct symtab_and_line): Likewise.
6914 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6915 arranging the line table.
6916
e4003a34
TV
69172020-03-07 Tom de Vries <tdevries@suse.de>
6918
6919 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6920 DIE.
6921
e8932576
TT
69222020-03-07 Tom Tromey <tom@tromey.com>
6923
6924 * valops.c (value_literal_complex): Remove obsolete comment.
6925 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6926 comment.
6927
29734269
SM
69282020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6929
6930 * infrun.h: Forward-declare thread_info.
6931 (set_step_info): Add thread_info parameter, add doc.
6932 * infrun.c (set_step_info): Add thread_info parameter, move doc
6933 to header.
6934 * infrun.c (process_event_stop_test): Pass thread to
6935 set_step_info call.
6936 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6937 set_step_info.
6938 (prepare_one_step): Add thread_info parameter, pass it to
6939 set_step_frame and prepare_one_step (recursive) call.
6940 (step_1): Pass thread to prepare_one_step call.
6941 (step_command_fsm::should_stop): Pass thread to
6942 prepare_one_step.
6943 (until_next_fsm): Pass thread to set_step_frame call.
6944 (finish_command): Pass thread to set_step_info call.
6945
b7d64b29
HD
69462020-03-06 Hannes Domani <ssbssa@yahoo.de>
6947
6948 * windows-tdep.c (windows_solib_create_inferior_hook):
6949 Check if inferior is running.
6950
09f2921c
TV
69512020-03-06 Tom de Vries <tdevries@suse.de>
6952
6953 * NEWS: Fix "the the".
6954 * ctfread.c: Same.
6955
fd760e79
TV
69562020-03-06 Tom de Vries <tdevries@suse.de>
6957
6958 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6959
20ea4a60
AB
69602020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * .dir-locals.el: Add a comment referencing the other copies of
6963 this file.
6964
0afbabf0
JB
69652020-03-05 John Baldwin <jhb@FreeBSD.org>
6966
6967 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6968 psargs.
6969
842806cb
TBA
69702020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6971
6972 * .gitattributes: New file.
6973
be1e3d3e
TT
69742020-03-04 Tom Tromey <tom@tromey.com>
6975
6976 * symmisc.c (print_symbol_bcache_statistics)
6977 (print_objfile_statistics): Update.
6978 * symfile.c (allocate_symtab): Use intern.
6979 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6980 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6981 macro_cache>: Remove.
6982 <string_cache>: New member.
6983 (struct objfile) <intern>: New methods.
6984 * elfread.c (elf_symtab_read): Use intern.
6985 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6986 (dwarf2_compute_name, dwarf2_physname)
6987 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6988 names.
6989 (guess_partial_die_structure_name): Update.
6990 (partial_die_info::fixup): Intern name.
6991 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6992 name.
6993 (dwarf2_name): Intern name. Update.
6994 * buildsym.c (buildsym_compunit::get_macro_table): Use
6995 string_cache.
6996
4e7625fd
TT
69972020-03-04 Tom Tromey <tom@tromey.com>
6998
6999 * jit.c (bfd_open_from_target_memory): Make "target" const.
7000 * corefile.c (gnutarget): Now const.
7001 * gdbcore.h (gnutarget): Now const.
7002
46f9f931
HD
70032020-03-04 Hannes Domani <ssbssa@yahoo.de>
7004
7005 * NEWS: Mention support for WOW64 processes.
7006 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7007 (amd64_windows_segment_register_p): Remove static.
7008 (_initialize_amd64_windows_nat): Update.
7009 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7010 * i386-windows-nat.c (context_offset): Update.
7011 (i386_mappings): Rename and remove static.
7012 (i386_windows_segment_register_p): Remove static.
7013 (_initialize_i386_windows_nat): Update.
7014 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7015 (STATUS_WX86_SINGLE_STEP): New macro.
7016 (EnumProcessModulesEx): New macro.
7017 (Wow64SuspendThread): New macro.
7018 (Wow64GetThreadContext): New macro.
7019 (Wow64SetThreadContext): New macro.
7020 (Wow64GetThreadSelectorEntry): New macro.
7021 (windows_set_context_register_offsets): Add static.
7022 (windows_set_segment_register_p): Likewise.
7023 (windows_add_thread): Adapt for WOW64 processes.
7024 (windows_fetch_one_register): Likewise.
7025 (windows_nat_target::fetch_registers): Likewise.
7026 (windows_store_one_register): Likewise.
7027 (display_selector): Likewise.
7028 (display_selectors): Likewise.
7029 (handle_exception): Likewise.
7030 (windows_continue): Likewise.
7031 (windows_nat_target::resume): Likewise.
7032 (windows_add_all_dlls): Likewise.
7033 (do_initial_windows_stuff): Likewise.
7034 (windows_nat_target::attach): Likewise.
7035 (windows_get_exec_module_filename): Likewise.
7036 (windows_nat_target::create_inferior): Likewise.
7037 (windows_xfer_siginfo): Likewise.
7038 (_initialize_loadable): Initialize Wow64SuspendThread,
7039 Wow64GetThreadContext, Wow64SetThreadContext,
7040 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7041 * windows-nat.h (windows_set_context_register_offsets):
7042 Remove declaration.
7043 (windows_set_segment_register_p): Likewise.
7044 (i386_windows_segment_register_p): Add declaration.
7045 (amd64_windows_segment_register_p): Likewise.
7046
440cf44e
LM
70472020-03-04 Luis Machado <luis.machado@linaro.org>
7048
7049 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7050 in "info registers" for AArch64/ARM.
7051
7052 The change caused "info registers" to not print GPR's.
7053
7054 gdb/ChangeLog:
7055
7056 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7057
7058 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7059 when reg->group is empty and reggroup is not.
7060
1009d92f
TT
70612020-03-03 Tom Tromey <tromey@adacore.com>
7062
7063 * dwarf2/frame.c (struct dwarf2_frame_cache)
7064 <checked_tailcall_bottom, entry_cfa_sp_offset,
7065 entry_cfa_sp_offset_p>: Remove members.
7066 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7067 (dwarf2_frame_prev_register): Don't call
7068 dwarf2_tailcall_sniffer_first.
7069 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7070 * frame-unwind.c (add_unwinder): New fuction.
7071 (frame_unwind_init): Use it. Add tailcall unwinder.
7072
5e5d66b6
AB
70732020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7074 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7075
7076 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7077 value should be printed as true.
7078
584cf46d
HD
70792020-03-03 Hannes Domani <ssbssa@yahoo.de>
7080
7081 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7082 (windows_init_abi): Set and use windows_so_ops.
7083
7b973adc
SDJ
70842020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7085
7086 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7087 when verifying if dealing with a convenience variable.
7088
bb7b70ab
LM
70892020-03-03 Luis Machado <luis.machado@linaro.org>
7090
7091 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7092
9822cb57
SM
70932020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7094
7095 * infrun.c (gdbarch_supports_displaced_stepping): New.
7096 (use_displaced_stepping): Break up conditions in smaller pieces.
7097 Use gdbarch_supports_displaced_stepping.
7098 (displaced_step_prepare_throw): Use
7099 gdbarch_supports_displaced_stepping.
7100
63e163f2
AB
71012020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7102
7103 * NEWS: Mention new behaviour of the history filename.
7104 * top.c (write_history_p): Add comment.
7105 (show_write_history_p): Add header comment, give a different
7106 message when history writing is on, but the history filename is
7107 empty.
7108 (history_filename): Add comment.
7109 (history_filename_empty): New function.
7110 (show_history_filename): Add header comment, give a different
7111 message when the filename is empty.
7112 (init_history): Compare history_filename against nullptr, and only
7113 read history if the filename is not empty.
7114 (set_history_filename): Add header comment, and only make
7115 non-empty filenames absolute.
7116 (init_main): Make the filename argument to 'set history filename'
7117 optional.
7118
81b86b97
CB
71192020-03-02 Christian Biesinger <cbiesinger@google.com>
7120
7121 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7122 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7123 (fetch_fp_register): Update.
7124 (fetch_fp_regs): Update.
7125 (store_fp_register): Update.
7126 (store_fp_regs): Update.
7127 (arm_netbsd_nat_target::read_description): New function.
7128 (fetch_elfcore_registers): Update.
7129
24ed6739
AB
71302020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7131
7132 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7133 general_thread if the stop reply is missing a thread-id.
7134 (remote_target::process_stop_reply): Use the first non-exited
7135 thread if the target didn't pass a thread-id.
7136 * infrun.c (do_target_wait): Move call to
7137 switch_to_inferior_no_thread to ....
7138 (do_target_wait_1): ... here.
7139
a84bb2a0
JT
71402020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7141
7142 * debuginfod-support.c: Include defs.h first.
7143
658dadf0
TV
71442020-02-28 Tom de Vries <tdevries@suse.de>
7145
7146 * symfile.c (set_initial_language): Use default language for lookup.
7147
4ebe4877
SM
71482020-02-28 Simon Marchi <simon.marchi@efficios.com>
7149
7150 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7151 reader variable, pass `this` to read_cutu_die_from_dwo.
7152
e5da1139
AM
71532020-02-27 Aaron Merey <amerey@redhat.com>
7154
7155 * source.c (open_source_file): Check for nullptr when computing
7156 srcpath.
7157
317f7127
TT
71582020-02-27 Tom Tromey <tromey@adacore.com>
7159
7160 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7161 member.
7162 (dwarf2_add_field): Don't update nfields.
7163 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7164
3104d9ee
AB
71652020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7166
7167 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7168 abs.
7169
b83470bf
TT
71702020-02-26 Tom Tromey <tom@tromey.com>
7171
7172 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7173 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7174 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7175 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7176 per_cu_data.
7177
edfe0a0c
TT
71782020-02-26 Tom Tromey <tom@tromey.com>
7179
7180 * dwarf2/index-write.c (psym_index_map): Change type.
7181 (add_address_entry_worker, write_one_signatured_type)
7182 (recursively_count_psymbols, recursively_write_psymbols)
7183 (class debug_names, psyms_seen_size, write_gdbindex)
7184 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7185
0d79cdc4
AM
71862020-02-26 Aaron Merey <amerey@redhat.com>
7187
7188 * Makefile.in: Handle optional debuginfod support.
7189 * NEWS: Update.
7190 * README: Add --with-debuginfod summary.
7191 * config.in: Regenerate.
7192 * configure: Regenerate.
7193 * configure.ac: Handle optional debuginfod support.
7194 * debuginfod-support.c: debuginfod helper functions.
7195 * debuginfod-support.h: Ditto.
7196 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7197 summary.
7198 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7199 when a dwz file cannot be found.
7200 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7201 debuginfo file cannot be found.
7202 * source.c (open_source_file): Query debuginfod servers when a
7203 source file cannot be found.
7204 * top.c (print_gdb_configuration): Include
7205 --{with,without}-debuginfod in the output.
7206
b65ce565
JG
72072020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7208
7209 * thread.c (thr_try_catch_cmd): Print thread name.
7210
d4c9a4f8
SM
72112020-02-26 Simon Marchi <simon.marchi@efficios.com>
7212
7213 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7214 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7215 dwarf2_fetch_die_type_sect_off): Move to...
7216 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7217 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7218 dwarf2_fetch_die_type_sect_off): ... here.
7219 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7220 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7221 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7222
0dce4280
TV
72232020-02-26 Tom de Vries <tdevries@suse.de>
7224
7225 PR gdb/25603
7226 * symfile.c (set_initial_language): Exit-early if
7227 language_mode == language_mode_manual.
7228
450a1bfc
SM
72292020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7230
7231 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7232 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7233 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7234
9e80cfa1
AB
72352020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 * gdbtypes.c (create_array_type_with_stride): Handle negative
7238 array strides.
7239 * valarith.c (value_subscripted_rvalue): Likewise.
7240
09624f1f
LM
72412020-02-25 Luis Machado <luis.machado@linaro.org>
7242
7243 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7244
8cb5117c
SM
72452020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7246
7247 * loc.h (dwarf2_get_die_type): Move to...
7248 * read.h (dwarf2_get_die_type): ... here.
7249 * read.c (dwarf2_get_die_type): Move doc to header.
7250
c325c44e
JB
72512020-02-25 Joel Brobecker <brobecker@adacore.com>
7252
7253 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7254 'gnulib/Makefile.in' to the list.
7255
4ac93832
TT
72562020-02-24 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7259 Remove.
7260 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7261 XOBNEWVEC.
7262
197400e8
TT
72632020-02-24 Tom Tromey <tom@tromey.com>
7264
7265 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7266 New method.
7267 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7268 (dw2_do_instantiate_symtab, dw2_get_file_names)
7269 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7270
76935768
TT
72712020-02-24 Tom Tromey <tom@tromey.com>
7272
7273 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7274 make_scoped_restore.
7275 (dwarf2_psymtab::read_symtab): Don't clear
7276 reading_partial_symbols.
7277
a88ef40d
TV
72782020-02-24 Tom de Vries <tdevries@suse.de>
7279
7280 PR gdb/25592
7281 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7282
c9af6521
TV
72832020-02-24 Tom de Vries <tdevries@suse.de>
7284
7285 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7286 commands layout next/prev/regs.
7287
5707a07a
TT
72882020-02-22 Tom Tromey <tom@tromey.com>
7289
7290 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7291 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7292
3b0fb49e
TT
72932020-02-22 Tom Tromey <tom@tromey.com>
7294
7295 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7296
283be8bf
TT
72972020-02-22 Tom Tromey <tom@tromey.com>
7298
7299 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7300 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7301 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7302 * tui/tui.c (_initialize_tui): Add usage text.
7303
ca793b96
TT
73042020-02-22 Tom Tromey <tom@tromey.com>
7305
7306 * tui/tui-win.c (tui_set_focus_command)
7307 (tui_set_win_height_command): Use error_no_arg.
7308 (_initialize_tui_win): Update help text.
7309 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7310
432b5c40
TT
73112020-02-22 Tom Tromey <tom@tromey.com>
7312
7313 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7314 * tui/tui-disasm.h (struct tui_disasm_window)
7315 <display_start_addr>: Declare.
7316 * tui/tui-source.h (struct tui_source_window)
7317 <display_start_addr>: Declare.
7318 * tui/tui-winsource.h (struct tui_source_window_base)
7319 <show_source_line, display_start_addr>: New methods.
7320 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7321 Rename and move to protected section.
7322 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7323 (tui_source_window_base::do_erase_source_content): Update.
7324 (tui_source_window_base::show_source_line): Now a method.
7325 (tui_source_window_base::show_source_content)
7326 (tui_source_window_base::tui_source_window_base)
7327 (tui_source_window_base::rerender)
7328 (tui_source_window_base::refill)
7329 (tui_source_window_base::do_scroll_horizontal)
7330 (tui_source_window_base::set_is_exec_point_at)
7331 (tui_source_window_base::update_breakpoint_info)
7332 (tui_source_window_base::update_exec_info): Update.
7333 * tui/tui-source.c (tui_source_window::set_contents)
7334 (tui_source_window::showing_source_p)
7335 (tui_source_window::do_scroll_vertical)
7336 (tui_source_window::location_matches_p)
7337 (tui_source_window::line_is_displayed): Update.
7338 (tui_source_window::display_start_addr): New method.
7339 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7340 (tui_disasm_window::do_scroll_vertical)
7341 (tui_disasm_window::location_matches_p): Update.
7342 (tui_disasm_window::display_start_addr): New method.
7343
01b1af32
TT
73442020-02-22 Tom Tromey <tom@tromey.com>
7345
7346 * NEWS: Add entry for gdb.register_window_type.
7347 * tui/tui-layout.h (window_factory): New typedef.
7348 (tui_register_window): Declare.
7349 * tui/tui-layout.c (saved_tui_windows): New global.
7350 (tui_apply_current_layout): Use it.
7351 (tui_register_window): New function.
7352 * python/python.c (do_start_initialization): Call
7353 gdbpy_initialize_tui.
7354 (python_GdbMethods): Add "register_window_type" function.
7355 * python/python-internal.h (gdbpy_register_tui_window)
7356 (gdbpy_initialize_tui): Declare.
7357 * python/py-tui.c: New file.
7358 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7359
fc96d20b
TT
73602020-02-22 Tom Tromey <tom@tromey.com>
7361
7362 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7363
935c78c0
TT
73642020-02-22 Tom Tromey <tom@tromey.com>
7365
7366 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7367 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7368 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7369 (tui_set_win_focus_to): Move from tui-win.c.
7370
0240c8f1
TT
73712020-02-22 Tom Tromey <tom@tromey.com>
7372
7373 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7374 functions.
7375 (known_window_types): New global.
7376 (tui_get_window_by_name): Reimplement.
7377 (initialize_known_windows): New function.
7378 (validate_window_name): Rewrite.
7379 (_initialize_tui_layout): Call initialize_known_windows.
7380
fdb01f0c
TT
73812020-02-22 Tom Tromey <tom@tromey.com>
7382
7383 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7384 Remove constants.
7385 * tui/tui-winsource.h (struct tui_source_window_base)
7386 <tui_source_window_base>: Remove parameter.
7387 * tui/tui-winsource.c
7388 (tui_source_window_base::tui_source_window_base): Remove
7389 parameter.
7390 (tui_source_window_base::refill): Update.
7391 * tui/tui-stack.h (struct tui_locator_window)
7392 <tui_locator_window>: Update.
7393 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7394 Default the constructor.
7395 * tui/tui-regs.h (struct tui_data_item_window)
7396 <tui_data_item_window>: Default the constructor.
7397 (struct tui_data_window) <tui_data_window>: Likewise.
7398 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7399 Default the constructor.
7400 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7401 Default the constructor.
7402 <type>: Remove.
7403 (struct tui_win_info) <tui_win_info>: Default the constructor.
7404 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7405 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7406 Default the constructor.
7407
865a5aec
TT
74082020-02-22 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7411 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7412 * tui/tui-win.c (tui_resize_all): Don't call
7413 tui_delete_invisible_windows.
7414 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7415 done.
7416 (tui_set_layout): Update.
7417 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7418 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7419 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7420
e098d18c
TT
74212020-02-22 Tom Tromey <tom@tromey.com>
7422
7423 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7424 correctly.
7425
eb9c8874
TT
74262020-02-22 Tom Tromey <tom@tromey.com>
7427
7428 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7429
7eed1a8e
TT
74302020-02-22 Tom Tromey <tom@tromey.com>
7431
7432 * tui/tui-winsource.h (struct tui_source_window_iterator)
7433 <inner_iterator>: New etytypedef.
7434 <tui_source_window_iterator>: Take "end" parameter.
7435 <tui_source_window_iterator>: Take iterator.
7436 <operator*, advance>: Update.
7437 <m_iter>: Change type.
7438 <m_end>: New field.
7439 (struct tui_source_windows) <begin, end>: Update.
7440 * tui/tui-layout.c (tui_windows): New global.
7441 (tui_apply_current_layout): Clear tui_windows.
7442 (tui_layout_window::apply): Update tui_windows.
7443 * tui/tui-data.h (tui_windows): Declare.
7444 (all_tui_windows): Now inline function.
7445 (class tui_window_iterator, struct all_tui_windows): Remove.
7446
7c043ba6
TT
74472020-02-22 Tom Tromey <tom@tromey.com>
7448
7449 PR tui/17850:
7450 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7451 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7452 "height" argument.
7453 (class tui_layout_window) <get_sizes>: Likewise.
7454 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7455 argument.
7456 <get_sizes>: Add "height" argument.
7457 <m_vertical>: New field.
7458 * tui/tui-layout.c (tui_layout_split::clone): Update.
7459 (tui_layout_split::get_sizes): Add "height" argument.
7460 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7461 (tui_new_layout_command): Parse "-horizontal".
7462 (_initialize_tui_layout): Update help string.
7463 (tui_layout_split::specification): Add "-horizontal" when needed.
7464 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7465 argument.
7466 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7467 New methods.
7468
6bc56648
TT
74692020-02-22 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-layout.h (enum tui_adjust_result): New.
7472 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7473 (class tui_layout_window) <adjust_size>: Return
7474 tui_adjust_result. Rewrite.
7475 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7476 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7477
c22fef7e
TT
74782020-02-22 Tom Tromey <tom@tromey.com>
7479
7480 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7481 parameter and return types.
7482 (class tui_layout_base) <specification>: Add "depth".
7483 (class tui_layout_window) <specification>: Add "depth".
7484 (class tui_layout_split) <specification>: Add "depth".
7485 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7486 and return types.
7487 (tui_new_layout_command): Parse sub-layouts.
7488 (_initialize_tui_layout): Update help string.
7489 (tui_layout_window::specification): Add "depth".
7490 (add_layout_command): Update.
7491
ee325b61
TT
74922020-02-22 Tom Tromey <tom@tromey.com>
7493
7494 * NEWS: Add "tui new-layout" item.
7495 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7496 Add new-layout command to help text.
7497 (validate_window_name): New function.
7498 (tui_new_layout_command): New function.
7499 (_initialize_tui_layout): Register "new-layout".
7500 (tui_layout_window::specification): New method.
7501 (tui_layout_window::specification): New method.
7502 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7503 method.
7504 (class tui_layout_window) <specification>: New method.
7505 (class tui_layout_split) <specification>: New method.
7506
416eb92d
TT
75072020-02-22 Tom Tromey <tom@tromey.com>
7508
7509 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7510 * tui/tui-win.c (window_name_completer): Update comment.
7511 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7512 Declare method.
7513 (class tui_layout_window) <replace_window>: Likewise.
7514 (class tui_layout_split) <replace_window>: Likewise.
7515 (tui_set_layout): Don't declare.
7516 (tui_set_initial_layout): Declare function.
7517 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7518 (asm_regs_layout): New globals.
7519 (tui_current_layout, show_layout): Remove.
7520 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7521 (find_layout, tui_apply_layout): New function.
7522 (layout_completer): Remove.
7523 (tui_next_layout): Reimplement.
7524 (tui_next_layout_command): New function.
7525 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7526 (tui_regs_layout): Reimplement.
7527 (tui_regs_layout_command): New function.
7528 (extract_display_start_addr): Rewrite.
7529 (next_layout, prev_layout): Remove.
7530 (tui_layout_window::replace_window): New method.
7531 (tui_layout_split::replace_window): New method.
7532 (destroy_layout): New function.
7533 (layout_list): New global.
7534 (add_layout_command): New function.
7535 (initialize_layouts): Update.
7536 (tui_layout_command): New function.
7537 (_initialize_tui_layout): Install "layout" commands.
7538 * tui/tui-data.h (enum tui_layout_type): Remove.
7539 (tui_current_layout): Don't declare.
7540
0dbc2fc7
TT
75412020-02-22 Tom Tromey <tom@tromey.com>
7542
7543 * tui/tui-regs.c (tui_reg_layout): Remove.
7544 (tui_reg_command): Use tui_regs_layout.
7545 * tui/tui-layout.h (tui_reg_command): Declare.
7546 * tui/tui-layout.c (tui_reg_command): New function.
7547
5afe342e
TT
75482020-02-22 Tom Tromey <tom@tromey.com>
7549
7550 * tui/tui.c (tui_rl_delete_other_windows): Call
7551 tui_remove_some_windows.
7552 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7553 Declare method.
7554 (class tui_layout_window) <remove_windows>: New method.
7555 (class tui_layout_split) <remove_windows>: Declare.
7556 (tui_remove_some_windows): Declare.
7557 * tui/tui-layout.c (tui_remove_some_windows): New function.
7558 (tui_layout_split::remove_windows): New method.
7559
427326a8
TT
75602020-02-22 Tom Tromey <tom@tromey.com>
7561
7562 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7563 * tui/tui-layout.h (tui_next_layout): Declare.
7564 * tui/tui-layout.c (tui_next_layout): New function.
7565
3fe12b6d
TT
75662020-02-22 Tom Tromey <tom@tromey.com>
7567
7568 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7569 correct coordinates.
7570
59b8b5d2
TT
75712020-02-22 Tom Tromey <tom@tromey.com>
7572
7573 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7574 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7575 DATA_WIN case.
7576
2a3d458b
TT
75772020-02-22 Tom Tromey <tom@tromey.com>
7578
7579 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7580 TUI_DISASM_WIN, not tui_win_list.
7581
3f0cbb04
TT
75822020-02-22 Tom Tromey <tom@tromey.com>
7583
7584 * valprint.c (generic_val_print_enum_1)
7585 (val_print_type_code_flags): Style member names.
7586 * rust-lang.c (val_print_struct, rust_print_enum)
7587 (rust_print_struct_def, rust_internal_print_type): Style member
7588 names.
7589 * p-valprint.c (pascal_object_print_value_fields): Style member
7590 names. Only call fprintf_symbol_filtered for static members.
7591 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7592 * f-valprint.c (f_val_print): Style member names.
7593 * f-typeprint.c (f_type_print_base): Style member names.
7594 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7595 call fprintf_symbol_filtered for static members.
7596 (cp_print_class_member): Style member names.
7597 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7598 member names.
7599 * ada-valprint.c (ada_print_scalar): Style enum names.
7600 (ada_val_print_enum): Likewise.
7601 * ada-typeprint.c (print_enum_type): Style enum names.
7602
d4d947ae
TT
76032020-02-21 Tom Tromey <tom@tromey.com>
7604
7605 * psympriv.h (struct partial_symtab): Update comment.
7606
e94e944b
TT
76072020-02-21 Tom Tromey <tromey@adacore.com>
7608
7609 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7610 type is CORE_ADDR.
7611
1eb73179
TV
76122020-02-21 Tom de Vries <tdevries@suse.de>
7613
7614 PR gdb/25534
7615 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7616 if dependencies[i]->user != NULL.
7617
4f180d53
AT
76182020-02-21 Ali Tamur <tamur@google.com>
7619
7620 * dwarf2/read.c (dwarf2_name): Add null check.
7621
22b6cd70
TT
76222020-02-20 Tom Tromey <tom@tromey.com>
7623
7624 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7625 ">=", in binary search.
7626 (dwarf2_find_containing_comp_unit): New overload.
7627 (run_test): New self-test.
7628 (_initialize_dwarf2_read): Register new test.
7629
bd0cf5a6
NC
76302020-02-20 Nelson Chu <nelson.chu@sifive.com>
7631
7632 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7633 * riscv-tdep.h: Likewise.
7634 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7635 rv32-only CSR.
7636 * features/riscv/64bit-csr.xml: Regenerated.
7637
3f702acd
SDJ
76382020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7639 Tom Tromey <tom@tromey.com>
7640
7641 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7642 of 'fputc_unfiltered'.
7643 (putchar_unfiltered): Call 'fputc_unfiltered'.
7644 (fputc_unfiltered): Call 'fputs_unfiltered'.
7645
d13c7322
AB
76462020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 * config.in: Regenerate.
7649 * configure: Regenerate.
7650 * configure.ac: Add --with-python-libdir option.
7651 * main.c: Use WITH_PYTHON_LIBDIR.
7652
869d8950
TT
76532020-02-19 Tom Tromey <tom@tromey.com>
7654
7655 * symtab.c (general_symbol_info::compute_and_set_names): Use
7656 obstack_strndup. Simplify call to symbol_set_demangled_name.
7657
298e9637
SM
76582020-02-19 Simon Marchi <simon.marchi@efficios.com>
7659
7660 * dwarf2/read.c (allocate_signatured_type_table,
7661 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7662 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7663 Remove objfile parameter, update all callers.
7664
08410482
DE
76652020-02-19 Doug Evans <dje@google.com>
7666
7667 PR rust/25535
7668 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7669 rust_enum_variant calculation.
7670
dfdeeca1
TT
76712020-02-19 Tom Tromey <tromey@adacore.com>
7672
7673 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7674
2ef5453b
TT
76752020-02-19 Tom Tromey <tromey@adacore.com>
7676
7677 * ada-lang.c (cache_symbol): Use obstack_strdup.
7678
9f1528a1
AB
76792020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7680
7681 * configure: Regenerate.
7682
d3c22fa8
TT
76832020-02-19 Tom Tromey <tromey@adacore.com>
7684
7685 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7686 NULL check.
7687
bf84f706
MR
76882020-02-19 Maciej W. Rozycki <macro@wdc.com>
7689
7690 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7691
d1c9b20f
AB
76922020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7695 if GDBSERVER is not defined.
7696 (riscv_tdesc_cache): Likewise, also store const target_desc.
7697 (STATIC_IN_GDB): Define.
7698 (riscv_create_target_description): Update declaration with
7699 STATIC_IN_GDB.
7700 (riscv_lookup_target_description): New function, only define if
7701 GDBSERVER is not defined.
7702 * arch/riscv.h (riscv_create_target_description): Declare only
7703 when GDBSERVER is defined.
7704 (riscv_lookup_target_description): New declaration when GDBSERVER
7705 is not defined.
7706 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7707 (riscv_linux_read_features): ...this, and return
7708 riscv_gdbarch_features instead of target_desc.
7709 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7710 (riscv_linux_read_description): Rename to...
7711 (riscv_linux_read_features): ...this.
7712 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7713 Update to use riscv_gdbarch_features and
7714 riscv_lookup_target_description.
7715 * riscv-tdep.c (riscv_find_default_target_description): Use
7716 riscv_lookup_target_description instead of
7717 riscv_create_target_description.
7718
373d7ac0
SM
77192020-02-18 Simon Marchi <simon.marchi@efficios.com>
7720
7721 * valprint.c (generic_val_print_enum_1): When printing a flag
7722 enum with value 0 and there is no enumerator with value 0, print
7723 just "0" instead of "(unknown: 0x0)".
7724
b29a2df0
SM
77252020-02-18 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * valprint.c (generic_val_print_enum_1): Print unknown part of
7728 flag enum in hex.
7729
6740f0cc
SM
77302020-02-18 Simon Marchi <simon.marchi@efficios.com>
7731
7732 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7733 flag enums to contain duplicate enumerators.
7734 * valprint.c (generic_val_print_enum_1): Update comment.
7735
edd45eb0
SM
77362020-02-18 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * dwarf2/read.c: Include "count-one-bits.h".
7739 (update_enumeration_type_from_children): If an enumerator has
7740 multiple bits set, don't treat the enumeration as a "flag enum".
7741 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7742 of flag enums have 0 or 1 bit set.
7743
6d0cf446
BE
77442020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7745
7746 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7747 conversion.
7748 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7749 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7750 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7751 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7752 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7753
7001c1b7
SM
77542020-02-18 Simon Marchi <simon.marchi@efficios.com>
7755
7756 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7757
fdb61c6c
SM
77582020-02-14 Simon Marchi <simon.marchi@efficios.com>
7759
7760 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7761 displaced_step_closure_up.
7762 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7763 (struct displaced_step_closure_up):
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):
7767 Likewise.
7768 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7769 * gdbarch.c, gdbarch.h: Re-generate.
7770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7771 displaced_step_closure_up.
7772 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7773 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7774 * infrun.h (displaced_step_closure_up): New type alias.
7775 (struct displaced_step_inferior_state) <step_closure>: Change
7776 type to displaced_step_closure_up.
7777 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7778 displaced_step_closure_up.
7779 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7780
a4a38eb4
TT
77812020-02-14 Tom Tromey <tom@tromey.com>
7782
7783 * minidebug.c (gnu_debug_key): New global.
7784 (find_separate_debug_file_in_section): Use it.
7785
e8217e61
SM
77862020-02-14 Simon Marchi <simon.marchi@efficios.com>
7787
7788 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7789 std::unique_ptr.
7790 * gdbarch.c: Re-generate.
7791 * gdbarch.h: Re-generate.
7792 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7793 change.
7794 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7795 type to std::unique_ptr.
7796 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7797 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7798 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7799 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7800 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7801 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7802 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7803 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7804 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7805
d8d83535
SM
78062020-02-14 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7809 std::unique_ptr.
7810 (displaced_step_clear): Rename to...
7811 (displaced_step_reset): ... this. Just call displaced->reset ().
7812 (displaced_step_clear_cleanup): Rename to...
7813 (displaced_step_reset_cleanup): ... this.
7814 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7815 (displaced_step_fixup): Likewise.
7816 (resume_1): Likewise.
7817 (handle_inferior_event): Restore child's memory before calling
7818 displaced_step_fixup on the parent.
7819 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7820 to std::unique_ptr.
7821 <step_closure>: Change type to std::unique_ptr.
7822
5f661e03
SM
78232020-02-14 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * arm-tdep.c: Include count-one-bits.h.
7826 (cleanup_block_store_pc): Use count_one_bits.
7827 (cleanup_block_load_pc): Use count_one_bits.
7828 (arm_copy_block_xfer): Use count_one_bits.
7829 (thumb2_copy_block_xfer): Use count_one_bits.
7830 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7831 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7832 (thumb_get_next_pcs_raw): Use count_one_bits.
7833 (arm_get_next_pcs_raw): Use count_one_bits_l.
7834 * arch/arm.c (bitcount): Remove.
7835 * arch/arm.h (bitcount): Remove.
7836
8084e579
TT
78372020-02-14 Tom Tromey <tromey@adacore.com>
7838
7839 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7840 Update.
7841 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7842 * dwarf2/loc.c (call_site_find_chain_1): Return
7843 unique_xmalloc_ptr.
7844 (call_site_find_chain): Likewise.
7845
258bf0ee
RB
78462020-02-14 Richard Biener <rguenther@suse.de>
7847
7848 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7849 on expression with division operators.
7850
f98a8458
AKS
78512020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7852
7853 * MAINTAINERS (Write After Approval): Adding myself.
7854
d1437c0e
TT
78552020-02-12 Tom Tromey <tom@tromey.com>
7856
7857 * event-loop.c (event_data, gdb_event, event_handler_func):
7858 Remove.
7859
3d4560f7
TT
78602020-02-12 Tom Tromey <tom@tromey.com>
7861
7862 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7863 (dwarf2_frame_objfile_data): Add comment.
7864 (find_comp_unit, set_comp_unit): New functions.
7865 (dwarf2_frame_find_fde): Use find_comp_unit.
7866 (dwarf2_build_frame_info): Use set_comp_unit.
7867
21982304
TT
78682020-02-12 Tom Tromey <tom@tromey.com>
7869
7870 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7871 (comp_unit): Don't initialize objfile.
7872 (execute_cfa_program): Add text_offset parameter.
7873 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7874 (dwarf2_frame_cache): Update.
7875 (dwarf2_build_frame_info): Don't set "objfile" member.
7876
4debb237
TT
78772020-02-12 Tom Tromey <tom@tromey.com>
7878
7879 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7880 (decode_frame_entry): Likewise.
7881 (dwarf2_build_frame_info): Update.
7882
0d404d44
TT
78832020-02-12 Tom Tromey <tom@tromey.com>
7884
7885 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7886 (decode_frame_entry_1): Use the comp_unit obstack.
7887
a7a3ae5c
TT
78882020-02-12 Tom Tromey <tom@tromey.com>
7889
7890 * dwarf2/frame.c (struct comp_unit): Add initializers and
7891 constructor.
7892 (dwarf2_frame_objfile_data): Store a comp_unit.
7893 (dwarf2_frame_find_fde): Update.
7894 (dwarf2_build_frame_info): Use "new".
7895
a9d65418
TT
78962020-02-12 Tom Tromey <tom@tromey.com>
7897
7898 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7899 (dwarf2_fde_table): Typedef for std::vector.
7900 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7901 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7902 (decode_frame_entry): Update.
7903 (dwarf2_build_frame_info): Use "new".
7904
7559c217
CB
79052020-02-12 Christian Biesinger <cbiesinger@google.com>
7906
7907 * arm-tdep.c (arm_gdbarch_init): Update.
7908 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7909 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7910 have_neon, is_m>: Change to bool.
7911
aeefc73c
CB
79122020-02-12 Christian Biesinger <cbiesinger@google.com>
7913
7914 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7915
d27b8e5f
TT
79162020-02-12 Tom Tromey <tom@tromey.com>
7917
7918 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7919
cd5900f3
HD
79202020-02-12 Hannes Domani <ssbssa@yahoo.de>
7921
7922 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7923 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7924
f056b22b
TT
79252020-02-11 Tom Tromey <tom@tromey.com>
7926
7927 * psymtab.h: Update comment.
7928
f92ff6b5
TT
79292020-02-11 Tom Tromey <tom@tromey.com>
7930
7931 * gdb_obstack.h (struct auto_obstack): Use
7932 DISABLE_COPY_AND_ASSIGN.
7933
3fd6912b
TT
79342020-02-11 Tom Tromey <tom@tromey.com>
7935
7936 * dwarf2/frame.h (struct objfile): Don't forward declare.
7937
69ed9b74
CB
79382020-02-11 Christian Biesinger <cbiesinger@google.com>
7939
7940 * cris-tdep.c (cris_supply_gregset): Change signature to match
7941 what struct regset expects.
7942 (cris_regset): New struct.
7943 (fetch_core_registers): Remove.
7944 (cris_iterate_over_regset_sections): New function.
7945 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7946 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7947
bda874f6
CB
79482020-02-11 Christian Biesinger <cbiesinger@google.com>
7949
7950 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7951 registers.
7952
754e1564
CB
79532020-02-11 Christian Biesinger <cbiesinger@google.com>
7954
7955 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7956
8ddd8e0e
SM
79572020-02-11 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * configure: Re-generate.
7960
898e7f60
SM
79612020-02-11 Simon Marchi <simon.marchi@efficios.com>
7962
7963 * configure: Re-generate.
7964
58df732b
SM
79652020-02-11 Simon Marchi <simon.marchi@efficios.com>
7966
7967 * acinclude: Update warning.m4 path.
7968 * warning.m4: Move to gdbsupport.
7969
da5bd37e
TT
79702020-02-11 Tom Tromey <tromey@adacore.com>
7971
7972 * remote.c (remote_console_output): Update.
7973 * printcmd.c (printf_command): Update.
7974 * event-loop.c (gdb_wait_for_event): Update.
7975 * linux-nat.c (sigchld_handler): Update.
7976 * remote-sim.c (gdb_os_write_stdout): Update.
7977 (gdb_os_flush_stdout): Update.
7978 (gdb_os_flush_stderr): Update.
7979 (gdb_os_write_stderr): Update.
7980 * exceptions.c (print_exception): Update.
7981 * remote-fileio.c (remote_fileio_func_read): Update.
7982 (remote_fileio_func_write): Update.
7983 * tui/tui.c (tui_enable): Update.
7984 * tui/tui-interp.c (tui_interp::init): Update.
7985 * utils.c (init_page_info): Update.
7986 (putchar_unfiltered, fputc_unfiltered): Update.
7987 (gdb_flush): Update.
7988 (emit_style_escape): Update.
7989 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7990 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7991 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7992 (stderr_file::write): Update.
7993 (stderr_file::puts): Update.
7994 * ui-file.h (ui_file_isatty, ui_file_write)
7995 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7996 (ui_file_puts): Don't declare.
7997
85f0dd3c
TV
79982020-02-10 Tom de Vries <tdevries@suse.de>
7999
8000 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8001 sentinel to char *.
8002
2e927613
TV
80032020-02-09 Tom de Vries <tdevries@suse.de>
8004
8005 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8006 filename if it matches "<artificial>".
8007
6bafc845
HD
80082020-02-09 Hannes Domani <ssbssa@yahoo.de>
8009
8010 * windows-tdep.c (struct enum_value_name): New struct.
8011 (create_enum): New function.
8012 (windows_get_siginfo_type): Create and use enum types.
8013
7928d571
HD
80142020-02-09 Hannes Domani <ssbssa@yahoo.de>
8015
8016 * NEWS: Mention $_siginfo support for Windows.
8017 * windows-nat.c (handle_exception): Set siginfo_er.
8018 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8019 (windows_xfer_siginfo): New function.
8020 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8021 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8022 (init_windows_gdbarch_data): New function.
8023 (get_windows_gdbarch_data): New function.
8024 (windows_get_siginfo_type): New function.
8025 (windows_init_abi): Register windows_get_siginfo_type.
8026 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8027
6751ebae
TT
80282020-02-08 Tom Tromey <tom@tromey.com>
8029
8030 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8031 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8032 <keep>: Declare method.
8033 <m_keep>: Remove member.
8034 <~cutu_reader>: Remove.
8035 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8036 (cutu_reader::cutu_reader): Update.
8037 (cutu_reader::keep): Rename from ~cutu_reader.
8038 (process_psymtab_comp_unit, build_type_psymtabs_1)
8039 (process_skeletonless_type_unit, load_partial_comp_unit)
8040 (load_full_comp_unit, dwarf2_read_addr_index)
8041 (read_signatured_type): Update.
8042
135f5437
TT
80432020-02-08 Tom Tromey <tom@tromey.com>
8044
8045 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8046 "want_partial_unit" parameter.
8047 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8048 Inline check for DW_TAG_partial_unit.
8049 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8050
9f66ff1c
TT
80512020-02-08 Tom Tromey <tom@tromey.com>
8052
8053 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8054 read.c.
8055 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8056 read.c.
8057
c8a7a66f
TT
80582020-02-08 Tom Tromey <tom@tromey.com>
8059
8060 * dwarf2/read.c (read_address): Move to comp-unit.c.
8061 (dwarf2_rnglists_process, dwarf2_ranges_process)
8062 (read_attribute_value, dwarf_decode_lines_1)
8063 (var_decode_location, decode_locdesc): Update.
8064 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8065 read.c. Remove "cu" parameter.
8066 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8067 method.
8068
8266302d
TT
80692020-02-08 Tom Tromey <tom@tromey.com>
8070
8071 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8072 (read_indirect_line_string): Update.
8073 * dwarf2/comp-unit.c (read_offset): Remove.
8074 (read_comp_unit_head): Update.
8075 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8076 method.
8077 (read_offset): Don't declare.
8078
4057dfde
TT
80792020-02-08 Tom Tromey <tom@tromey.com>
8080
8081 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8082 * dwarf2/read.c (struct comp_unit_head): Move to
8083 dwarf2/comp-unit.h.
8084 (enum class rcuh_kind): Move to comp-unit.h.
8085 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8086 (read_comp_unit_head, error_check_comp_unit_head)
8087 (read_and_check_comp_unit_head): Move to comp-unit.c.
8088 (read_offset, dwarf_unit_type_name): Likewise.
8089 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8090 (cutu_reader::cutu_reader, read_call_site_scope)
8091 (find_partial_die, follow_die_offset): Update.
8092 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8093
24aa364d
TT
80942020-02-08 Tom Tromey <tom@tromey.com>
8095
8096 * dwarf2/read.c (read_offset_1): Move to leb.c.
8097 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8098 (dwarf_decode_macro_bytes): Update.
8099 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8100 * dwarf2/leb.h (read_offset): Declare.
8101
2c7d5afc
TT
81022020-02-08 Tom Tromey <tom@tromey.com>
8103
8104 * dwarf2/read.c (dwarf2_section_size): Remove.
8105 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8106 Update.
8107 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8108
4075cb26
TT
81092020-02-08 Tom Tromey <tom@tromey.com>
8110
8111 * dwarf2/read.c (read_initial_length): Move to leb.c.
8112 * dwarf2/leb.h (read_initial_length): Declare.
8113 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8114 handle_nonstd parameter.
8115 * dwarf2/frame.c (read_initial_length): Remove.
8116 (decode_frame_entry_1): Update.
8117
09ba997f
TT
81182020-02-08 Tom Tromey <tom@tromey.com>
8119
8120 * dwarf2/loc.c (dwarf2_find_location_expression)
8121 (dwarf_evaluate_loc_desc::get_tls_address)
8122 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8123 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8124 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8125 (dwarf2_compile_property_to_c)
8126 (dwarf2_loc_desc_get_symbol_read_needs)
8127 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8128 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8129 (loclist_describe_location, loclist_tracepoint_var_ref)
8130 (loclist_generate_c_location): Update.
8131 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8132 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8133 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8134 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8135 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8136 (dwarf2_per_cu_data::addr_size)
8137 (dwarf2_per_cu_data::ref_addr_size)
8138 (dwarf2_per_cu_data::text_offset)
8139 (dwarf2_per_cu_data::addr_type): Now methods.
8140 (per_cu_header_read_in): Make per_cu "const".
8141 (dwarf2_version): Remove.
8142 (dwarf2_per_cu_data::int_type): Now a method.
8143 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8144 (set_die_type, read_array_type, read_subrange_index_type)
8145 (read_tag_string_type, read_subrange_type): Update.
8146 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8147 offset_size, ref_addr_size, text_offset, addr_type, version,
8148 objfile, int_type, addr_sized_int_type>: Declare methods.
8149
96c738c0
TT
81502020-02-08 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8153 Move earlier.
8154
8fdd972c
TT
81552020-02-08 Tom Tromey <tom@tromey.com>
8156
8157 * dwarf2/read.h (dwarf_line_debug): Declare.
8158 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8159 * dwarf2/read.c: Move line_header code to new files.
8160 (dwarf_line_debug): No longer static.
8161 * dwarf2/line-header.c: New file.
8162 * dwarf2/line-header.h: New file.
8163
03075812
TT
81642020-02-08 Tom Tromey <tom@tromey.com>
8165
8166 * dwarf2/read.c (struct line_header) <file_full_name,
8167 file_file_name>: Return unique_xmalloc_ptr.
8168 (line_header::file_file_name): Update.
8169 (line_header::file_full_name): Update.
8170 (dw2_get_file_names_reader): Update.
8171 (macro_start_file): Update.
8172
bb822404
TT
81732020-02-08 Tom Tromey <tom@tromey.com>
8174
8175 * dwarf2/read.c (struct line_header) <file_full_name,
8176 file_file_name>: Declare methods.
8177 (dw2_get_file_names_reader): Update.
8178 (file_file_name): Now a method.
8179 (file_full_name): Likewise.
8180 (macro_start_file): Update.
8181
009b64fc
TT
81822020-02-08 Tom Tromey <tom@tromey.com>
8183
8184 * dwarf2/read.c (dwarf_always_disassemble)
8185 (show_dwarf_always_disassemble): Move to loc.c.
8186 (_initialize_dwarf2_read): Move "always-disassemble" registration
8187 to loc.c.
8188 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8189 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8190 static.
8191 (show_dwarf_always_disassemble): Move from read.c.
8192 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8193
5895093f
TT
81942020-02-08 Tom Tromey <tom@tromey.com>
8195
8196 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8197 (create_quick_file_names_table): Return htab_up.
8198 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8199 Update.
8200 * dwarf2/read.h (struct dwarf2_per_objfile)
8201 <quick_file_names_table>: Now htab_up.
8202
b3b32279
TT
82032020-02-08 Tom Tromey <tom@tromey.com>
8204
8205 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8206
1d33d811
TT
82072020-02-08 Tom Tromey <tom@tromey.com>
8208
8209 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8210 Rewrite.
8211 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8212 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8213 (abbrev_table::abbrev_table): No longer inline.
8214 (ABBREV_HASH_SIZE): Remove.
8215 (abbrev_table::m_abbrevs): Now an htab_up.
8216
86de1d91
TT
82172020-02-08 Tom Tromey <tom@tromey.com>
8218
8219 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8220 (cutu_reader): Update.
8221 (build_type_psymtabs_1): Update.
8222 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8223 (abbrev_table::alloc_abbrev): Update.
8224 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8225 (abbrev_table::read): New static method, renamed from
8226 abbrev_table_read_table.
8227 (abbrev_table::alloc_abbrev)
8228 (abbrev_table::add_abbrev): Now private.
8229 (abbrev_table::abbrev_table): Now private.
8230 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8231
0335378b
TT
82322020-02-08 Tom Tromey <tom@tromey.com>
8233
8234 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8235 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8236 htab_up.
8237
48b490f2
TT
82382020-02-08 Tom Tromey <tom@tromey.com>
8239
8240 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8241 htab_up.
8242 (lookup_dwo_unit_in_dwp): Update.
8243 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8244 on obstack.
8245
bc68fb19
TT
82462020-02-08 Tom Tromey <tom@tromey.com>
8247
8248 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8249 obstack.
8250
d15acc42
TT
82512020-02-08 Tom Tromey <tom@tromey.com>
8252
8253 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8254 line_header_hash.
8255 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8256 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8257 Change type to htab_up.
8258
eaa5fa8b
TT
82592020-02-08 Tom Tromey <tom@tromey.com>
8260
8261 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8262 htab_up. Don't allocate on obstack.
8263 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8264 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8265 Change type to htab_up.
8266
b0b6a987
TT
82672020-02-08 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8270 Change type to htab_up.
8271 * dwarf2/read.c (create_signatured_type_table_from_index)
8272 (create_signatured_type_table_from_debug_names)
8273 (create_all_type_units, add_type_unit)
8274 (lookup_dwo_signatured_type, lookup_signatured_type)
8275 (process_skeletonless_type_unit): Update.
8276 (create_debug_type_hash_table, create_debug_types_hash_table):
8277 Change type of types_htab.
8278 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8279 htab_up. Don't allocate on obstack.
8280 (create_cus_hash_table): Change type of cus_htab parameter.
8281 (struct dwo_file) <cus, tus>: Now htab_up.
8282 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8283 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8284 (queue_and_load_all_dwo_tus): Update.
8285 * dwarf2/index-write.c (write_gdbindex): Update.
8286 (write_debug_names): Update.
8287
39856def
TT
82882020-02-08 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8291 dwarf2/read.c. Remove "next" member. Add constructor ntad
8292 destructor.
8293 (struct dwarf2_per_objfile) <queue>: New member.
8294 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8295 dwarf2/read.h.
8296 (dwarf2_queue, dwarf2_queue_tail): Remove.
8297 (class dwarf2_queue_guard): Add parameter to constructor. Use
8298 DISABLE_COPY_AND_ASSIGN.
8299 <m_per_objfile>: New member.
8300 <~dwarf2_queue_guard>: Rewrite.
8301 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8302 Update.
8303 (~dwarf2_queue_item): New.
8304
3e225074
TT
83052020-02-08 Tom Tromey <tom@tromey.com>
8306
8307 * dwarf2/read.c (struct die_info) <has_children>: New member.
8308 (dw2_get_file_names_reader): Remove has_children.
8309 (dw2_get_file_names): Update.
8310 (read_cutu_die_from_dwo): Remove has_children.
8311 (cutu_reader::init_tu_and_read_dwo_dies)
8312 (cutu_reader::cutu_reader): Update.
8313 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8314 Remove has_children.
8315 (build_type_psymtabs_1, process_skeletonless_type_unit)
8316 (load_partial_comp_unit, load_full_comp_unit): Update.
8317 (create_dwo_cu_reader): Remove has_children.
8318 (create_cus_hash_table, read_die_and_children): Update.
8319 (read_full_die_1,read_full_die): Remove has_children.
8320 (read_signatured_type): Update.
8321 (class cutu_reader) <has_children>: Remove.
8322
82ca8957
TT
83232020-02-08 Tom Tromey <tom@tromey.com>
8324
8325 * dwarf2/expr.c: Rename from dwarf2expr.c.
8326 * dwarf2/expr.h: Rename from dwarf2expr.h.
8327 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8328 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8329 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8330 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8331 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8332 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8333 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8334 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8335 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8336 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8337 * dwarf2/loc.c: Rename from dwarf2loc.c.
8338 * dwarf2/loc.h: Rename from dwarf2loc.h.
8339 * dwarf2/read.c: Rename from dwarf2read.c.
8340 * dwarf2/read.h: Rename from dwarf2read.h.
8341 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8342 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8343 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8344 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8345 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8346 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8347 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8348 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8349 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8350 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8351 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8352 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8353 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8354 Update.
8355 * Makefile.in (COMMON_SFILES): Update.
8356 (HFILES_NO_SRCDIR): Update.
8357
9e35d499
TT
83582020-02-08 Tom Tromey <tom@tromey.com>
8359
8360 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8361 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8362
1eba2311
TT
83632020-02-08 Tom Tromey <tom@tromey.com>
8364
8365 * dwarf2read.h (struct die_info): Don't declare.
8366
e41c2da2
TT
83672020-02-08 Tom Tromey <tom@tromey.com>
8368
8369 * dwarf2read.h (die_info_ptr): Remove typedef.
8370
4fc6c0d5
TT
83712020-02-08 Tom Tromey <tom@tromey.com>
8372
8373 * dwarf2read.c (read_call_site_scope)
8374 (handle_data_member_location, dwarf2_add_member_fn)
8375 (mark_common_block_symbol_computed, read_common_block)
8376 (attr_to_dynamic_prop, partial_die_info::read)
8377 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8378 (dwarf2_symbol_mark_computed, set_die_type): Update.
8379 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8380 method.
8381 (attr_form_is_block): Don't declare.
8382 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8383
cd6c91b4
TT
83842020-02-08 Tom Tromey <tom@tromey.com>
8385
8386 * dwarf2read.c (dwarf2_find_base_address, )
8387 (read_call_site_scope, rust_containing_type)
8388 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8389 (handle_data_member_location, dwarf2_add_member_fn)
8390 (get_alignment, read_structure_type, process_structure_scope)
8391 (mark_common_block_symbol_computed, read_common_block)
8392 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8393 (partial_die_info::read, read_attribute_value, new_symbol)
8394 (lookup_die_type, dwarf2_get_ref_die_offset)
8395 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8396 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8397 (dwarf2_symbol_mark_computed): Update.
8398 * dwarf2/attribute.h (struct attribute) <value_as_address,
8399 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8400 methods.
8401 (value_as_address, attr_form_is_section_offset)
8402 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8403 * dwarf2/attribute.c (attribute::value_as_address)
8404 (attribute::form_is_section_offset, attribute::form_is_constant)
8405 (attribute::form_is_ref): Now methods.
8406
162dce55
TT
84072020-02-08 Tom Tromey <tom@tromey.com>
8408
8409 * dwarf2read.c (struct attribute, DW_STRING)
8410 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8411 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8412 (attr_form_is_block, attr_form_is_section_offset)
8413 (attr_form_is_constant, attr_form_is_ref): Move.
8414 * dwarf2/attribute.h: New file.
8415 * dwarf2/attribute.c: New file, from dwarf2read.c.
8416 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8417
3054dd54
TT
84182020-02-08 Tom Tromey <tom@tromey.com>
8419
8420 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8421 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8422 Move.
8423 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8424 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8425 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8426 abbrev.c.
8427 * dwarf2/abbrev.h: New file.
8428 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8429 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8430
96b79293
TT
84312020-02-08 Tom Tromey <tom@tromey.com>
8432
8433 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8434 (dwarf2_section_size, dwarf2_get_section_info)
8435 (create_signatured_type_table_from_debug_names)
8436 (create_addrmap_from_aranges, read_debug_names_from_section)
8437 (get_gdb_index_contents_from_section, read_comp_unit_head)
8438 (error_check_comp_unit_head, read_abbrev_offset)
8439 (create_debug_type_hash_table, init_cu_die_reader)
8440 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8441 (read_comp_units_from_section, create_cus_hash_table)
8442 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8443 (create_dwp_v2_section, dwarf2_rnglists_process)
8444 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8445 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8446 (read_indirect_string_from_dwz, read_addr_index_1)
8447 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8448 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8449 (fill_in_loclist_baton): Update.
8450 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8451 get_containing_section, get_bfd_owner, get_bfd_section,
8452 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8453 (dwarf2_read_section, get_section_name, get_section_file_name)
8454 (get_containing_section, get_section_bfd_owner)
8455 (get_section_bfd_section, get_section_name, get_section_file_name)
8456 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8457 declare.
8458 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8459 (dwarf2_section_info::get_bfd_owner)
8460 (dwarf2_section_info::get_bfd_section)
8461 (dwarf2_section_info::get_name)
8462 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8463 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8464 (dwarf2_section_info::read): Now methods.
8465 * dwarf-index-write.c (class debug_names): Update.
8466
2c86cff9
TT
84672020-02-08 Tom Tromey <tom@tromey.com>
8468
8469 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8470 Move to dwarf2/section.h.
8471 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8472 (get_section_bfd_section, get_section_name)
8473 (get_section_file_name, get_section_id, get_section_flags)
8474 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8475 dwarf2/section.c.
8476 * dwarf2/section.h: New file.
8477 * dwarf2/section.c: New file, from dwarf2read.c.
8478 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8479
f4382c45
TT
84802020-02-08 Tom Tromey <tom@tromey.com>
8481
8482 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8483 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8484 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8485 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8486 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8487 * dwarf2/leb.h: New file, from dwarf2read.c.
8488 * dwarf2/leb.c: New file, from dwarf2read.c.
8489 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8490 Remove.
8491 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8492 (COMMON_SFILES): Add dwarf2/leb.c.
8493
01840b7a
JB
84942020-02-08 Joel Brobecker <brobecker@adacore.com>
8495
8496 GDB 9.1 released.
8497
dfcb27e4
IB
84982020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8499
8500 PR gdb/25190:
aac66a4c
SM
8501 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8502 * gdb/remote.c (remote_console_output): Update.
8503 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8504 (ui_file_puts): ...this.
8505 * gdb/ui-file.h (ui_file_puts): Add declaration.
8506 * gdb/utils.c (emit_style_escape): Update.
8507 (flush_wrap_buffer): Update.
8508 (fputs_maybe_filtered): Update.
8509 (fputs_unfiltered): Add function.
dfcb27e4 8510
faa17681
IB
85112020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8512
aac66a4c
SM
8513 * gdb/event-loop.c (gdb_wait_for_event): Update.
8514 * gdb/printcmd.c (printf_command): Update.
8515 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8516 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8517 (gdb_os_flush_stderr): Update.
8518 * gdb/remote.c (remote_console_output): Update.
8519 * gdb/ui-file.c (gdb_flush): Rename to...
8520 (ui_file_flush): ...this.
8521 (stderr_file::write): Update.
8522 (stderr_file::puts): Update.
8523 * gdb/ui-file.h (gdb_flush): Rename to...
8524 (ui_file_flush): ...this.
8525 * gdb/utils.c (gdb_flush): Add function.
8526 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8527
5abbbe1d
TT
85282020-02-07 Tom Tromey <tromey@adacore.com>
8529
8530 PR breakpoints/24915:
8531 * source.c (find_and_open_source): Do not check basenames_may_differ.
8532
919adfe8
TT
85332020-02-07 Tom Tromey <tom@tromey.com>
8534
8535 * README: Update gdbserver documentation.
8536 * gdbserver: Move to top level.
8537 * configure.tgt (build_gdbserver): Remove.
8538 * configure.ac: Remove --enable-gdbserver.
8539 * configure: Rebuild.
8540 * Makefile.in (distclean): Don't mention gdbserver.
8541
1d5d29e7
SV
85422020-02-06 Shahab Vahedi <shahab@synopsys.com>
8543
8544 * source-cache.c (source_cache::ensure): Surround
8545 get_plain_source_lines with a try/catch.
8546 (source_cache::get_line_charpos): Get rid of try/catch
8547 and only check for the return value of "ensure".
8548 * tui/tui-source.c (tui_source_window::set_contents):
8549 Simplify "nlines" calculation.
8550
6eb1129c
SV
85512020-02-06 Shahab Vahedi <shahab@synopsys.com>
8552
8553 * MAINTAINERS (Write After Approval): Add myself.
8554
c6a42d11
CB
85552020-02-05 Christian Biesinger <cbiesinger@google.com>
8556
8557 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8558 function call.
8559
c8ecdda6
CB
85602020-02-05 Christian Biesinger <cbiesinger@google.com>
8561
8562 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8563
f6480e70
MR
85642020-02-05 Maciej W. Rozycki <macro@wdc.com>
8565
8566 * nat/riscv-linux-tdesc.h: New file.
8567 * nat/riscv-linux-tdesc.c: New file, taking code from...
8568 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8569 ... here.
8570 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8571 NATDEPFILES.
8572
dcc9fbc6
AB
85732020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8574
8575 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8576 we don't set the fake simulator ptid to the null_ptid.
8577
719546c4
SM
85782020-02-03 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8581 * gdbthread.h (class thread_info) <resumed>: Likewise.
8582 * infrun.c (resume_1): Likewise.
8583 (proceed): Likewise.
8584 (infrun_thread_stop_requested): Likewise.
8585 (stop_all_threads): Likewise.
8586 (handle_inferior_event): Likewise.
8587 (restart_threads): Likewise.
8588 (finish_step_over): Likewise.
8589 (keep_going_stepped_thread): Likewise.
8590 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8591 (linux_handle_extended_wait): Likewise.
8592 * record-btrace.c (get_thread_current_frame_id): Likewise.
8593 * record-full.c (record_full_wait_1): Likewise.
8594 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8595 * target.c (target_resume): Likewise.
8596 * thread.c (set_running_thread): Likewise.
8597
e409c542
AKS
85982020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8599
8600 * f-valprint.c (f77_print_array_1): Changed datatype of index
8601 variable to LONGEST from int to enable it to contain bound
8602 values correctly.
8603
ee98c0da
MR
86042020-02-03 Maciej W. Rozycki <macro@wdc.com>
8605
8606 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8607 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8608 offsets according to FLEN determined.
8609 (riscv_linux_nat_target::read_description): Determine FLEN
8610 dynamically.
8611 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8612 according to FLEN determined.
8613 (riscv_linux_nat_target::store_registers): Likewise.
8614
aa66aac4
SV
86152020-02-01 Shahab Vahedi <shahab@synopsys.com>
8616
8617 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8618 when reg->group is empty and reggroup is not.
8619
fd9faca8
TT
86202020-01-31 Tom Tromey <tromey@adacore.com>
8621
8622 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8623 Call beneath target's mourn_inferior after unpushing.
8624
42330a68
AB
86252020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 PR tui/9765
8628 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8629 have enough lines to fill the screen, still return the lowest
8630 address we found.
8631
7a27a45b
AB
86322020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8633
8634 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8635 '-', '<', and '>' commands.
8636
c47f70e2
PA
86372020-01-29 Pedro Alves <palves@redhat.com>
8638 Sergio Durigan Junior <sergiodj@redhat.com>
8639
8640 * infcmd.c (construct_inferior_arguments): Assert that
8641 'argc' is greater than 0.
8642
5133a315
LM
86432020-01-29 Luis Machado <luis.machado@linaro.org>
8644
8645 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8646 (BRK_INSN_MASK): Define to 0xd4200000.
8647 (aarch64_program_breakpoint_here_p): New function.
8648 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8649 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8650 breakpoint.c.
8651 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8652 breakpoint.h
8653 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8654 call gdbarch_program_breakpoint_here_p.
8655 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8656 default_program_breakpoint_here_p, changed return type to bool and
8657 simplified.
8658 * breakpoint.h (program_breakpoint_here): Moved prototype to
8659 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8660 return type to bool.
8661 * gdbarch.c: Regenerate.
8662 * gdbarch.h: Regenerate.
8663 * gdbarch.sh (program_breakpoint_here_p): New method.
8664 * infrun.c (handle_signal_stop): Call
8665 gdbarch_program_breakpoint_here_p.
8666
168f8c6b
TT
86672020-01-26 Tom Tromey <tom@tromey.com>
8668
8669 * ctfread.c (struct ctf_fp_info): Reindent.
8670 (_initialize_ctfread): Remove.
8671
128a391f
TT
86722020-01-26 Tom Tromey <tom@tromey.com>
8673
8674 * psymtab.c (partial_map_expand_apply)
8675 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8676 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8677 (psym_print_stats, psym_expand_symtabs_for_function)
8678 (psym_map_symbol_filenames, psym_map_matching_symbols)
8679 (psym_expand_symtabs_matching)
8680 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8681 (maintenance_check_psymtabs): Use new methods.
8682 * psympriv.h (struct partial_symtab) <readin_p,
8683 get_compunit_symtab>: New methods.
8684 <readin, compunit_symtab>: Remove members.
8685 (struct standard_psymtab): New.
8686 (struct legacy_psymtab): Derive from standard_psymtab.
8687 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8688 standard_psymtab.
8689 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8690
0494dbec
TT
86912020-01-26 Tom Tromey <tom@tromey.com>
8692
8693 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8694 read_dependencies. Add assert.
8695 * psymtab.c (partial_symtab::read_dependencies): New method.
8696 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8697 method.
8698 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8699 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8700 read_dependencies.
8701 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8702 Add assert.
8703
8566b89b
TT
87042020-01-26 Tom Tromey <tom@tromey.com>
8705
8706 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8707 Call expand_psymtab.
8708 (xcoff_read_symtab): Call expand_psymtab.
8709 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8710 legacy_expand_psymtab.
8711 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8712 method.
8713 (struct legacy_psymtab) <expand_psymtab>: Implement.
8714 <legacy_expand_psymtab>: New member.
8715 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8716 (parse_partial_symbols): Set legacy_expand_psymtab.
8717 (psymtab_to_symtab_1): Change argument order. Call
8718 expand_psymtab.
8719 (new_psymtab): Set legacy_expand_psymtab.
8720 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8721 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8722 expand_psymtab.
8723 (dwarf2_psymtab::expand_psymtab): Rename from
8724 psymtab_to_symtab_1. Call expand_psymtab.
8725 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8726 (dbx_end_psymtab): Likewise.
8727 (dbx_psymtab_to_symtab_1): Change argument order. Call
8728 expand_psymtab.
8729 (dbx_read_symtab): Call expand_psymtab.
8730 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8731 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8732 (ctf_psymtab::read_symtab): Call expand_psymtab.
8733
077cbab2
TT
87342020-01-26 Tom Tromey <tom@tromey.com>
8735
8736 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8737 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8738 messages.
8739 * mdebugread.c (mdebug_read_symtab): Remove prints.
8740 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8741 assert.
8742 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8743
891813be
TT
87442020-01-26 Tom Tromey <tom@tromey.com>
8745
8746 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8747 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8748 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8749 legacy_symtab.
8750 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8751 * psymtab.c (psymtab_to_symtab): Call method.
8752 (dump_psymtab): Update.
8753 * psympriv.h (struct partial_symtab): Add virtual destructor.
8754 <read_symtab>: New method.
8755 (struct legacy_symtab): New.
8756 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8757 (struct pst_map) <pst>: Now a legacy_psymtab.
8758 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8759 (new_psymtab): Use legacy_psymtab.
8760 * dwarf2read.h (struct dwarf2_psymtab): New.
8761 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8762 * dwarf2read.c (dwarf2_create_include_psymtab)
8763 (dwarf2_build_include_psymtabs, create_type_unit_group)
8764 (create_partial_symtab, process_psymtab_comp_unit_reader)
8765 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8766 (set_partial_user): Use dwarf2_psymtab.
8767 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8768 (psymtab_to_symtab_1, process_full_comp_unit)
8769 (process_full_type_unit, dwarf2_ranges_read)
8770 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8771 (dwarf_decode_lines): Use dwarf2_psymtab.
8772 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8773 (add_address_entry_worker, write_one_signatured_type)
8774 (recursively_count_psymbols, recursively_write_psymbols)
8775 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8776 (write_debug_names): Likewise.
8777 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8778 <pst>: Now a legacy_psymtab.
8779 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8780 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8781 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8782 * ctfread.c (struct ctf_psymtab): New.
8783 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8784 ctf_psymtab.
8785 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8786 (create_partial_symtab): Return a ctf_psymtab.
8787 (scan_partial_symbols): Update.
8788
c3693a1d
TT
87892020-01-26 Tom Tromey <tom@tromey.com>
8790
8791 * xcoffread.c (xcoff_start_psymtab): Use new.
8792 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8793 renamed from start_psymtab_common.
8794 * psympriv.h (struct partial_symtab): Add new constructor.
8795 (start_psymtab_common): Don't declare.
8796 * mdebugread.c (parse_partial_symbols): Use new.
8797 * dwarf2read.c (create_partial_symtab): Use new.
8798 * dbxread.c (start_psymtab): Use new.
8799 * ctfread.c (create_partial_symtab): Use new.
8800
32caafd0
TT
88012020-01-26 Tom Tromey <tom@tromey.com>
8802
8803 * xcoffread.c (xcoff_end_psymtab): Use new.
8804 * psymtab.c (start_psymtab_common): Use new.
8805 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8806 Update.
8807 * psympriv.h (struct partial_symtab): Add parameters to
8808 constructor. Don't inline.
8809 (allocate_psymtab): Don't declare.
8810 * mdebugread.c (new_psymtab): Use new.
8811 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8812 * dbxread.c (dbx_end_psymtab): Use new.
8813
abaa2f23
TT
88142020-01-26 Tom Tromey <tom@tromey.com>
8815
8816 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8817 allocate_psymtab. Update documentation.
8818 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8819 allocate_psymtab. Do not use new.
8820 (allocate_psymtab): Use new. Update.
8821
6d94535f
TT
88222020-01-26 Tom Tromey <tom@tromey.com>
8823
8824 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8825 * psymtab.c (psym_print_stats): Update.
8826 * psympriv.h (struct partial_symtab) <readin,
8827 psymtabs_addrmap_supported, anonymous>: Now bool.
8828 * mdebugread.c (psymtab_to_symtab_1): Update.
8829 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8830 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8831 (process_full_comp_unit, process_full_type_unit): Update.
8832 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8833 * ctfread.c (psymtab_to_symtab): Update.
8834
6f17252b
TT
88352020-01-26 Tom Tromey <tom@tromey.com>
8836
8837 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8838 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8839 * psymtab.c (psymtab_storage): Delete psymtabs.
8840 (psymtab_storage::allocate_psymtab): Use new.
8841 (psymtab_storage::discard_psymtab): Use delete.
8842 * psympriv.h (struct partial_symtab): Add constructor and
8843 initializers.
8844
f6f1cebc
TT
88452020-01-26 Tom Tromey <tom@tromey.com>
8846
8847 * machoread.c: Do not include psympriv.h.
8848
e47e48f6
PW
88492020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8850
8851 * NEWS: Mention the new option and the set/show commands.
8852
a2fedca9
PW
88532020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8854
8855 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8856 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8857 (validate_exec_file): New variables, enums, functions.
8858 (exec_file_locate_attach, print_section_info): Style the filenames.
8859 (_initialize_exec): Install show_exec_file_mismatch_command and
8860 set_exec_file_mismatch_command.
8861 * gdbcore.h (validate_exec_file): Declare.
8862 * infcmd.c (attach_command): Call validate_exec_file.
8863 * remote.c ( remote_target::remote_add_inferior): Likewise.
8864
7ffa82e1
AB
88652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * frame.c (find_frame_sal): Move call to get_next_frame into more
8868 inner scope.
8869 * inline-frame.c (inilne_state) <inline_state>: Update argument
8870 types.
8871 (inilne_state) <skipped_symbol>: Rename to...
8872 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8873 (skip_inline_frames): Build vector of skipped symbols and use this
8874 to reate the inline_state.
8875 (inline_skipped_symbol): Add a comment and some assertions, fetch
8876 skipped symbol from the list.
8877
3d92a3e3
AB
88782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8879
8880 * buildsym.c (lte_is_less_than): Delete.
8881 (buildsym_compunit::end_symtab_with_blockvector): Create local
8882 lambda function to sort line table entries, and use
8883 std::stable_sort instead of std::sort.
8884 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8885 markers when looking for a previous line.
8886
94a72be7
AB
88872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * dwarf2read.c (lnp_state_machine::record_line): Include
8890 end_sequence parameter in debug print out. Record the line if we
8891 are at an end_sequence marker even if it's not the start of a
8892 statement.
8893 * symmisc.c (maintenance_print_one_line_table): Print end of
8894 sequence markers with 'END' not '0'.
8895
53af73bf
PA
88962020-01-24 Pedro Alves <palves@redhat.com>
8897
8898 PR gdb/25410
8899 * thread.c (scoped_restore_current_thread::restore): Use
8900 switch_to_inferior_no_thread.
8901 * exec.c: Include "progspace-and-thread.h".
8902 (add_target_sections, remove_target_sections):
8903 scoped_restore_current_pspace_and_thread instead of
8904 scoped_restore_current_thread.
8905 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8906 and aspace to the inferior before calling clone_program_space.
8907 Remove stale comment.
8908
3050c6f4
CB
89092020-01-24 Christian Biesinger <cbiesinger@google.com>
8910
8911 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8912 (arm_netbsd_nat_target::fetch_registers): ...this.
8913 (arm_nbsd_nat_target::store_registers): Rename to...
8914 (arm_netbsd_nat_target::store_registers): ...this.
8915
73685c7e
CB
89162020-01-24 Christian Biesinger <cbiesinger@google.com>
8917
8918 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8919 register_t.
8920
89203d40
CB
89212020-01-24 Christian Biesinger <cbiesinger@google.com>
8922
8923 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8924 Update comment.
8925 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8926 Likewise.
8927 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8928 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8929 the correct replacement (iterate_over_regset_sections).
8930 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8931 Update comment.
8932
1ba1ac88
AB
89332020-01-24 Graham Markall <graham.markall@embecosm.com>
8934
8935 PR gdb/23718
8936 * gdb/python/python.c (execute_gdb_command): Call
8937 async_enable_stdin in catch block.
8938
f3364a6d
AB
89392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8940
8941 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8942 SWITCH_THRU_ALL_UIS.
8943
733d0a67
AB
89442020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8945
8946 PR tui/9765
8947 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8948 comment, add extra parameter, and update to store previous symbol
8949 when appropriate.
8950 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8951 add extra parameter.
8952 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8953 remove unneeded parameter, add try/catch around gdb_print_insn,
8954 rewrite to add items to asm_lines vector.
8955 (tui_find_backward_disassembly_start_address): New function.
8956 (tui_find_disassembly_address): Updated throughout.
8957 (tui_disasm_window::set_contents): Update for changes to
8958 tui_disassemble.
8959 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8960 number of lines to scroll.
8961
b3b3bada
SM
89622020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8963
8964 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8965 (SECT_OFF_DATA): Likewise.
8966 (SECT_OFF_RODATA): Likewise.
8967 (SECT_OFF_TEXT): Likewise.
8968 (SECT_OFF_BSS): Likewise.
8969 (struct objfile) <text_section_offset, data_section_offset>: New
8970 methods.
8971 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8972 objfile::text_section_offset.
8973 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8974 * coffread.c (coff_symtab_read): Likewise.
8975 (enter_linenos): Likewise.
8976 (process_coff_symbol): Likewise.
8977 * ctfread.c (get_objfile_text_range): Likewise.
8978 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8979 Use objfile::data_section_offset.
8980 * dwarf2-frame.c (execute_cfa_program): Use
8981 objfile::text_section_offset.
8982 (dwarf2_frame_find_fde): Likewise.
8983 * dwarf2read.c (create_addrmap_from_index): Likewise.
8984 (create_addrmap_from_aranges): Likewise.
8985 (dw2_find_pc_sect_compunit_symtab): Likewise.
8986 (process_psymtab_comp_unit_reader): Likewise.
8987 (add_partial_symbol): Likewise.
8988 (add_partial_subprogram): Likewise.
8989 (process_full_comp_unit): Likewise.
8990 (read_file_scope): Likewise.
8991 (read_func_scope): Likewise.
8992 (read_lexical_block_scope): Likewise.
8993 (read_call_site_scope): Likewise.
8994 (dwarf2_rnglists_process): Likewise.
8995 (dwarf2_ranges_process): Likewise.
8996 (dwarf2_ranges_read): Likewise.
8997 (dwarf_decode_lines_1): Likewise.
8998 (new_symbol): Likewise.
8999 (dwarf2_fetch_die_loc_sect_off): Likewise.
9000 (dwarf2_per_cu_text_offset): Likewise.
9001 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9002 * hppa-tdep.c (read_unwind_info): Likewise.
9003 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9004 * psympriv.h (struct partial_symtab): Likewise.
9005 * psymtab.c (find_pc_sect_psymtab): Likewise.
9006 * solib-svr4.c (enable_break): Likewise.
9007 * stap-probe.c (relocate_address): Use
9008 objfile::data_section_offset.
9009 * xcoffread.c (enter_line_range): Use
9010 objfile::text_section_offset.
9011 (read_xcoff_symtab): Likewise.
9012
ab53f382
SM
90132020-01-23 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9016 declaration to narrower scopes.
9017
e7eee665
SM
90182020-01-23 Simon Marchi <simon.marchi@efficios.com>
9019
9020 * darwin-nat.h (struct darwin_exception_msg, enum
9021 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9022 Move up.
9023 (class darwin_nat_target) <wait_1, check_new_threads,
9024 decode_exception_message, decode_message, stop_inferior,
9025 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9026 * darwin-nat.c (darwin_check_new_threads): Rename to...
9027 (darwin_nat_target::check_new_threads): ... this.
9028 (darwin_suspend_inferior_it): Remove.
9029 (darwin_decode_exception_message): Rename to...
9030 (darwin_nat_target::decode_exception_message): ... this.
9031 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9032 (darwin_decode_message): Rename to...
9033 (darwin_nat_target::decode_message): ... this.
9034 (cancel_breakpoint): Rename to...
9035 (darwin_nat_target::cancel_breakpoint): ... this.
9036 (darwin_wait): Rename to...
9037 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9038 instead of iterate_over_inferiors.
9039 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9040 (darwin_stop_inferior): Rename to...
9041 (darwin_nat_target::stop_inferior): ... this.
9042 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9043 (darwin_init_thread_list): Rename to...
9044 (darwin_nat_target::init_thread_list): ... this.
9045 (darwin_ptrace_him): Rename to...
9046 (darwin_nat_target::ptrace_him): ... this.
9047 (darwin_nat_target::create_inferior): Pass lambda function to
9048 fork_inferior.
9049 (darwin_nat_target::detach): Call stop_inferior instead of
9050 darwin_stop_inferior.
9051 * fork-inferior.h (fork_inferior): Change init_trace_fun
9052 parameter to gdb::function_view.
9053 * fork-inferior.c (fork_inferior): Likewise.
9054
c162ed3e
HD
90552020-01-23 Hannes Domani <ssbssa@yahoo.de>
9056
9057 * i386-cygwin-tdep.c (core_process_module_section): Update.
9058 * windows-nat.c (struct lm_info_windows): Add text_offset.
9059 (windows_xfer_shared_libraries): Update.
9060 * windows-tdep.c (windows_xfer_shared_library):
9061 Add text_offset_cached argument.
9062 * windows-tdep.h (windows_xfer_shared_library): Update.
9063
a1237872
SM
90642020-01-21 Simon Marchi <simon.marchi@efficios.com>
9065
9066 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9067
b3ee6dd9
SM
90682020-01-21 Simon Marchi <simon.marchi@efficios.com>
9069
9070 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9071 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9072 replace with range-based for.
9073 (gdbsim_interrupt_inferior): Remove.
9074 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9075 with a range-based for. Inline code from
9076 gdbsim_interrupt_inferior.
9077
f9fac3c8
SM
90782020-01-21 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * infrun.c (proceed): Fix indentation.
9081
f6474de9
TT
90822020-01-21 Tom Tromey <tromey@adacore.com>
9083
9084 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9085 * python/python.c (python_extension_ops): Update.
9086 (gdbpy_colorize): New function.
9087 * python/lib/gdb/__init__.py (colorize): New function.
9088 * extension.h (ext_lang_colorize): Declare.
9089 * extension.c (ext_lang_colorize): New function.
9090 * extension-priv.h (struct extension_language_ops) <colorize>: New
9091 member.
9092 * cli/cli-style.c (_initialize_cli_style): Update help text.
9093
f0c702d4
LM
90942020-01-21 Luis Machado <luis.machado@linaro.org>
9095
9096 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9097 <cond>: Change type to bool.
9098 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9099 (aarch64_displaced_step_cb): Likewise.
9100 (aarch64_displaced_step_tb): Likewise.
9101
1ab139e5
LM
91022020-01-21 Luis Machado <luis.machado@linaro.org>
9103
9104 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9105 output.
9106
0c271889
LM
91072020-01-21 Luis Machado <luis.machado@linaro.org>
9108
9109 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9110 <pc_adjust>: Adjust the documentation.
9111 (aarch64_displaced_step_fixup): Check if PC really moved before
9112 adjusting it.
9113
4d89c1c7
TT
91142020-01-19 Tom Tromey <tom@tromey.com>
9115
9116 * disasm.c (~gdb_disassembler): New destructor.
9117 (gdb_buffered_insn_length): Call disassemble_free_target.
9118 * disasm.h (class gdb_disassembler): Declare destructor. Use
9119 DISABLE_COPY_AND_ASSIGN.
9120
c0ab21c2
TT
91212020-01-19 Tom Tromey <tom@tromey.com>
9122
9123 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9124 (die_reader_func_ftype): Remove.
9125 (cutu_reader): New class.
9126 (dw2_get_file_names_reader): Remove "data" parameter.
9127 (dw2_get_file_names): Use cutu_reader.
9128 (create_debug_type_hash_table): Update.
9129 (read_cutu_die_from_dwo): Update comment.
9130 (lookup_dwo_unit): Add dwo_name parameter.
9131 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9132 die_reader_func_ftype and data parameters.
9133 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9134 Remove die_reader_func_ftype and data parameters.
9135 (~cutu_reader): New; from init_cutu_and_read_dies.
9136 (cutu_reader::cutu_reader): Rename from
9137 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9138 and data parameters.
9139 (init_cutu_and_read_dies_simple): Remove.
9140 (struct process_psymtab_comp_unit_data): Remove.
9141 (process_psymtab_comp_unit_reader): Remove data parameter; add
9142 want_partial_unit and pretend_language parameters.
9143 (process_psymtab_comp_unit): Use cutu_reader.
9144 (build_type_psymtabs_reader): Remove data parameter.
9145 (build_type_psymtabs_1): Use cutu_reader.
9146 (process_skeletonless_type_unit): Likewise.
9147 (load_partial_comp_unit_reader): Remove.
9148 (load_partial_comp_unit): Use cutu_reader.
9149 (load_full_comp_unit_reader): Remove.
9150 (load_full_comp_unit): Use cutu_reader.
9151 (struct create_dwo_cu_data): Remove.
9152 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9153 dwo_unit parameters.
9154 (create_cus_hash_table): Use cutu_reader.
9155 (struct dwarf2_read_addr_index_data): Remove.
9156 (dwarf2_read_addr_index_reader): Remove.
9157 (dwarf2_read_addr_index): Use cutu_reader.
9158 (read_signatured_type_reader): Remove.
9159 (read_signatured_type): Use cutu_reader.
9160
45bbae5c
TT
91612020-01-19 Tom Tromey <tom@tromey.com>
9162
9163 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9164 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9165 (tui_wrefresh): Declare.
9166 * tui/tui-wingeneral.c (suppress_output): New global.
9167 (tui_suppress_output, ~tui_suppress_output): New constructor and
9168 destructor.
9169 (tui_wrefresh): New function.
9170 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9171 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9172 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9173 method.
9174 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9175 tui_wrefresh.
9176 (tui_data_window::no_refresh): New method.
9177 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9178 (tui_reg_command): Use tui_suppress_output
9179 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9180 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9181 method.
9182 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9183
4f13c1c0
TT
91842020-01-19 Tom Tromey <tom@tromey.com>
9185
9186 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9187 Handle case where symtab is null.
9188
fa47e446
SM
91892020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9190
9191 * linux-fork.c (one_fork_p): Simplify.
9192
26f42329
SM
91932020-01-17 Simon Marchi <simon.marchi@efficios.com>
9194
9195 * top.c (struct qt_args): Remove.
9196 (kill_or_detach): Change return type to void, replace `void *`
9197 parameter with a proper one.
9198 (print_inferior_quit_action): Likewise.
9199 (quit_confirm): Use range-based for loop to iterate over inferiors.
9200 (quit_force): Likewise.
9201
a9ac81b1
SM
92022020-01-17 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9205 `void *` parameter with proper parameters.
9206 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9207 (print_one_inferior): Change return type to void, replace `void *`
9208 parameter with proper parameters.
9209 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9210 inferiors.
9211 (get_other_inferior): Remove.
9212 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9213 inferiors.
9214
788eca49
SM
92152020-01-17 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * mi/mi-interp.c (report_initial_inferior): Remove.
9218 (mi_interp::init): Use range-based for to iterate over inferiors.
9219
d9bc85b6
SM
92202020-01-17 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * python/py-inferior.c (build_inferior_list): Remove.
9223 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9224
40c94099
CB
92252020-01-16 Christian Biesinger <cbiesinger@google.com>
9226
9227 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9228 (btrace_stitch_trace): Likewise.
9229 * charset.c (intermediate_encoding): Likewise (vaild).
9230 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9231 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9232 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9233
e0cdfe3c
HD
92342020-01-16 Hannes Domani <ssbssa@yahoo.de>
9235
9236 * windows-tdep.c (windows_get_tlb_type):
9237 Add rtl_user_process_parameters type.
9238
790f1718 92392020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9240 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9241
9242 PR build/24805
9243 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9244 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9245 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9246 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9247 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9248 (ps_plog): Redeclare exported functions with default visibility.
9249
3112ed97
NA
92502020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9251
9252 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9253 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9254
8dc3273e
SM
92552020-01-15 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * infcmd.c (post_create_inferior): Use get_thread_regcache
9258 instead of get_current_regcache.
9259
ff47f4f0
TT
92602020-01-14 Tom Tromey <tom@tromey.com>
9261
9262 PR symtab/12535:
9263 * python/python.c (gdbpy_decode_line): Treat empty string the same
9264 as no argument.
9265
975f45b7
TT
92662020-01-14 Tom Tromey <tom@tromey.com>
9267
9268 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9269
25e57356
TT
92702020-01-14 Tom Tromey <tom@tromey.com>
9271
9272 * nat/linux-btrace.c: Don't include <config.h>.
9273 * nat/linux-ptrace.c: Don't include <config.h>.
9274 * nat/x86-linux-dregs.c: Don't include <config.h>.
9275
05ea2a05
TT
92762020-01-14 Tom Tromey <tom@tromey.com>
9277
9278 * configure: Rebuild.
9279 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9280
01027315
TT
92812020-01-14 Tom Tromey <tom@tromey.com>
9282
9283 * nat/x86-linux-dregs.c: Include configh.h.
9284 * nat/linux-ptrace.c: Include configh.h.
9285 * nat/linux-btrace.c: Include configh.h.
9286 * defs.h: Include config.h, bfd.h.
9287 * configure.ac: Don't source common.host.
9288 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9289 * configure: Rebuild.
9290 * acinclude.m4: Update path.
9291 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9292 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9293 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9294 (CLIBS): Add LIBSUPPORT.
9295 (CDEPS): Likewise.
9296 (COMMON_SFILES): Remove gdbsupport files.
9297 (HFILES_NO_SRCDIR): Likewise.
9298 (stamp-version): Update path to create-version.sh.
9299 (ALLDEPFILES): Remove gdbsupport files.
9300
b2ceabe8
TT
93012020-01-14 Tom Tromey <tom@tromey.com>
9302
9303 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9304 USE_WIN32API when needed.
9305 * configure.ac (USE_WIN32API): Don't define.
9306 (WIN32LIBS): Use WIN32APILIBS.
9307 * configure: Rebuild.
9308
25c51f71
TT
93092020-01-14 Tom Tromey <tom@tromey.com>
9310
9311 * configure: Rebuild.
9312 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9313
717c684d
BE
93142020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9315
9316 * skip.c (skip_function_command): Make skip w/o arguments use the
9317 name of the inlined function if pc is inside any inlined function.
9318
7da6a5b9
LM
93192020-01-14 Luis Machado <luis.machado@linaro.org>
9320
9321 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9322 * infrun.c (resume_1): Likewise.
9323 (handle_inferior_event): Remove stale comment.
9324 * linux-nat.c (linux_nat_target::resume): Update comments.
9325 (save_stop_reason): Likewise.
9326 (linux_nat_filter_event): Likewise.
9327 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9328
44e4c775
AB
93292020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9330
9331 * elfread.c (record_minimal_symbol): Set section index to 0 for
9332 non-allocatable sections.
9333
18a8505e
AT
9334
93352020-01-13 Ali Tamur <tamur@google.com>
9336
9337 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9338 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9339 to gdb::optional. Update comments.
9340 (dwo_file): Update comments.
9341 (read_attribute): Update API to take an additional out parameter,
9342 need_reprocess. This is used to mark attributes that need other
9343 attributes (e.g. str_offsets_base) for correct computation which may not
9344 have been read yet.
9345 (read_attribute_reprocess): New function declaration.
9346 (read_addr_index): Likewise.
9347 (read_dwo_str_index): Likewise.
9348 (read_stub_str_index): Likewise.
9349 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9350 (lookup_addr_base): New function definition.
9351 (lookup_ranges_base): Likewise.
9352 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9353 lookup_ranges_base.
9354 (init_cutu_and_read_dies): Update comments.
9355 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9356 unit. This is used to inherit parent's str_offsets_base and addr_base.
9357 Update comments.
9358 (init_cutu_and_read_dies_simple): Reflect API changes.
9359 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9360 (create_cus_hash_table): Change API to take parent compile unit.
9361 Reflect API changes.
9362 (open_and_init_dwo_file): Reflect API changes.
9363 (dwarf2_get_pc_bounds): Update comments.
9364 (dwarf2_record_block_ranges): Likewise.
9365 (read_full_die_1): Change implementation to reprocess attributes that
9366 need str_offsets_base and addr_base.
9367 (partial_die_info::read): Likewise.
9368 (read_attribute_reprocess): New function definition.
9369 (read_attribute_value): Change API to take an additional out parameter,
9370 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9371 when a non-dwo compile unit has index based attributes.
9372 (read_attribute): Reflect API changes.
9373 (read_addr_index_1): Reflect API changes. Update comments.
9374 (dwarf2_read_addr_index_data): Reflect API changes.
9375 (dwarf2_read_addr_index): Likewise.
9376 (read_str_index): Change API and implementation. This becomes a helper
9377 to be used by the new string index related methods. Update error
9378 message and comments.
9379 (read_dwo_str_index): New function definition.
9380 (read_stub_str_index): Likewise.
9381 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9382 * symfile.h (dwarf2_debug_sections): Likewise.
9383 * xcoffread.c (dwarf2_debug_sections): Likewise.
9384
0cac9354
SM
93852020-01-13 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9388 core_reg_sect type to gdb_byte *.
9389 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9390 * cris-tdep.c (fetch_core_registers): Likewise.
9391 * corelow.c (core_target::get_core_register_section): Change
9392 type of `contents` to gdb::byte_vector.
9393
9a6d629c
AB
93942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9395
9396 * tui/tui-wingeneral.c (box_win): Position the title in the center
9397 of the border.
9398
d8b2f9e3
SM
93992020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9400
9401 * corelow.c (core_target::get_core_register_section): Use
9402 std::vector instead of alloca.
9403
bb564c58
SM
94042020-01-13 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * warning.m4: Add -Wmissing-declarations to build_warnings.
9407 * configure: Re-generate.
9408
6b366111
SM
94092020-01-13 Simon Marchi <simon.marchi@efficios.com>
9410
9411 * python/python.c (init__gdb_module): Add declaration.
9412
6c265988
SM
94132020-01-13 Simon Marchi <simon.marchi@efficios.com>
9414
9415 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9416 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9417 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9418 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9419 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9420 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9421 * ada-exp.y (_initialize_ada_exp): Add declaration.
9422 * ada-lang.c (_initialize_ada_language): Add declaration.
9423 * ada-tasks.c (_initialize_tasks): Add declaration.
9424 * agent.c (_initialize_agent): Add declaration.
9425 * aix-thread.c (_initialize_aix_thread): Add declaration.
9426 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9427 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9428 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9429 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9430 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9431 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9432 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9433 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9434 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9435 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9436 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9437 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9438 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9439 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9440 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9441 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9442 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9443 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9444 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9445 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9446 * annotate.c (_initialize_annotate): Add declaration.
9447 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9448 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9449 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9450 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9451 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9452 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9453 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9454 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9455 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9456 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9457 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9458 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9459 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9460 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9461 * auto-load.c (_initialize_auto_load): Add declaration.
9462 * auxv.c (_initialize_auxv): Add declaration.
9463 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9464 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9465 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9466 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9467 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9468 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9469 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9470 * breakpoint.c (_initialize_breakpoint): Add declaration.
9471 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9472 * btrace.c (_initialize_btrace): Add declaration.
9473 * charset.c (_initialize_charset): Add declaration.
9474 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9475 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9476 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9477 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9478 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9479 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9480 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9481 * coffread.c (_initialize_coffread): Add declaration.
9482 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9483 * compile/compile.c (_initialize_compile): Add declaration.
9484 * complaints.c (_initialize_complaints): Add declaration.
9485 * completer.c (_initialize_completer): Add declaration.
9486 * copying.c (_initialize_copying): Add declaration.
9487 * corefile.c (_initialize_core): Add declaration.
9488 * corelow.c (_initialize_corelow): Add declaration.
9489 * cp-abi.c (_initialize_cp_abi): Add declaration.
9490 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9491 * cp-support.c (_initialize_cp_support): Add declaration.
9492 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9493 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9494 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9495 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9496 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9497 * ctfread.c (_initialize_ctfread): Add declaration.
9498 * d-lang.c (_initialize_d_language): Add declaration.
9499 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9500 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9501 * dbxread.c (_initialize_dbxread): Add declaration.
9502 * dcache.c (_initialize_dcache): Add declaration.
9503 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9504 * disasm.c (_initialize_disasm): Add declaration.
9505 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9506 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9507 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9508 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9509 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9510 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9511 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9512 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9513 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9514 * elfread.c (_initialize_elfread): Add declaration.
9515 * exec.c (_initialize_exec): Add declaration.
9516 * extension.c (_initialize_extension): Add declaration.
9517 * f-lang.c (_initialize_f_language): Add declaration.
9518 * f-valprint.c (_initialize_f_valprint): Add declaration.
9519 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9520 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9521 * filesystem.c (_initialize_filesystem): Add declaration.
9522 * findcmd.c (_initialize_mem_search): Add declaration.
9523 * findvar.c (_initialize_findvar): Add declaration.
9524 * fork-child.c (_initialize_fork_child): Add declaration.
9525 * frame-base.c (_initialize_frame_base): Add declaration.
9526 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9527 * frame.c (_initialize_frame): Add declaration.
9528 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9529 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9530 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9531 * gcore.c (_initialize_gcore): Add declaration.
9532 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9533 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9534 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9535 * gdbarch.c (_initialize_gdbarch): Add declaration.
9536 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9537 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9538 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9539 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9540 * go-lang.c (_initialize_go_language): Add declaration.
9541 * go32-nat.c (_initialize_go32_nat): Add declaration.
9542 * guile/guile.c (_initialize_guile): Add declaration.
9543 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9544 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9545 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9546 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9547 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9548 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9549 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9550 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9551 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9552 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9553 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9554 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9555 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9556 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9557 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9558 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9559 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9560 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9561 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9562 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9563 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9564 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9565 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9566 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9567 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9568 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9569 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9570 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9571 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9572 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9573 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9574 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9575 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9576 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9577 * infcall.c (_initialize_infcall): Add declaration.
9578 * infcmd.c (_initialize_infcmd): Add declaration.
9579 * inflow.c (_initialize_inflow): Add declaration.
9580 * infrun.c (_initialize_infrun): Add declaration.
9581 * interps.c (_initialize_interpreter): Add declaration.
9582 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9583 * jit.c (_initialize_jit): Add declaration.
9584 * language.c (_initialize_language): Add declaration.
9585 * linux-fork.c (_initialize_linux_fork): Add declaration.
9586 * linux-nat.c (_initialize_linux_nat): Add declaration.
9587 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9588 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9589 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9590 * m2-lang.c (_initialize_m2_language): Add declaration.
9591 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9592 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9593 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9594 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9595 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9596 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9597 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9598 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9599 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9600 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9601 * machoread.c (_initialize_machoread): Add declaration.
9602 * macrocmd.c (_initialize_macrocmd): Add declaration.
9603 * macroscope.c (_initialize_macroscope): Add declaration.
9604 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9605 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9606 * maint.c (_initialize_maint_cmds): Add declaration.
9607 * mdebugread.c (_initialize_mdebugread): Add declaration.
9608 * memattr.c (_initialize_mem): Add declaration.
9609 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9610 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9611 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9612 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9613 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9614 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9615 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9616 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9617 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9618 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9619 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9620 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9621 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9622 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9623 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9624 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9625 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9626 * mipsread.c (_initialize_mipsread): Add declaration.
9627 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9628 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9629 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9630 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9631 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9632 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9633 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9634 * nto-procfs.c (_initialize_procfs): Add declaration.
9635 * objc-lang.c (_initialize_objc_language): Add declaration.
9636 * observable.c (_initialize_observer): Add declaration.
9637 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9638 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9639 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9640 * osabi.c (_initialize_gdb_osabi): Add declaration.
9641 * osdata.c (_initialize_osdata): Add declaration.
9642 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9643 * parse.c (_initialize_parse): Add declaration.
9644 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9645 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9646 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9647 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9648 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9649 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9650 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9651 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9652 * printcmd.c (_initialize_printcmd): Add declaration.
9653 * probe.c (_initialize_probe): Add declaration.
9654 * proc-api.c (_initialize_proc_api): Add declaration.
9655 * proc-events.c (_initialize_proc_events): Add declaration.
9656 * proc-service.c (_initialize_proc_service): Add declaration.
9657 * procfs.c (_initialize_procfs): Add declaration.
9658 * producer.c (_initialize_producer): Add declaration.
9659 * psymtab.c (_initialize_psymtab): Add declaration.
9660 * python/python.c (_initialize_python): Add declaration.
9661 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9662 * record-btrace.c (_initialize_record_btrace): Add declaration.
9663 * record-full.c (_initialize_record_full): Add declaration.
9664 * record.c (_initialize_record): Add declaration.
9665 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9666 * regcache.c (_initialize_regcache): Add declaration.
9667 * reggroups.c (_initialize_reggroup): Add declaration.
9668 * remote-notif.c (_initialize_notif): Add declaration.
9669 * remote-sim.c (_initialize_remote_sim): Add declaration.
9670 * remote.c (_initialize_remote): Add declaration.
9671 * reverse.c (_initialize_reverse): Add declaration.
9672 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9673 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9674 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9675 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9676 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9677 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9678 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9679 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9680 Add declaration.
9681 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9682 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9683 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9684 * rust-exp.y (_initialize_rust_exp): Add declaration.
9685 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9686 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9687 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9688 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9689 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9690 * score-tdep.c (_initialize_score_tdep): Add declaration.
9691 * ser-go32.c (_initialize_ser_dos): Add declaration.
9692 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9693 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9694 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9695 * ser-uds.c (_initialize_ser_socket): Add declaration.
9696 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9697 * serial.c (_initialize_serial): Add declaration.
9698 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9699 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9700 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9701 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9702 * skip.c (_initialize_step_skip): Add declaration.
9703 * sol-thread.c (_initialize_sol_thread): Add declaration.
9704 * solib-aix.c (_initialize_solib_aix): Add declaration.
9705 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9706 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9707 * solib-frv.c (_initialize_frv_solib): Add declaration.
9708 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9709 * solib-target.c (_initialize_solib_target): Add declaration.
9710 * solib.c (_initialize_solib): Add declaration.
9711 * source-cache.c (_initialize_source_cache): Add declaration.
9712 * source.c (_initialize_source): Add declaration.
9713 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9714 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9715 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9716 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9717 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9718 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9719 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9720 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9721 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9722 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9723 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9724 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9725 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9726 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9727 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9728 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9729 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9730 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9731 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9732 * stabsread.c (_initialize_stabsread): Add declaration.
9733 * stack.c (_initialize_stack): Add declaration.
9734 * stap-probe.c (_initialize_stap_probe): Add declaration.
9735 * std-regs.c (_initialize_frame_reg): Add declaration.
9736 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9737 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9738 * symfile.c (_initialize_symfile): Add declaration.
9739 * symmisc.c (_initialize_symmisc): Add declaration.
9740 * symtab.c (_initialize_symtab): Add declaration.
9741 * target.c (_initialize_target): Add declaration.
9742 * target-connection.c (_initialize_target_connection): Add
9743 declaration.
9744 * target-dcache.c (_initialize_target_dcache): Add declaration.
9745 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9746 * thread.c (_initialize_thread): Add declaration.
9747 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9748 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9749 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9750 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9751 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9752 * tracectf.c (_initialize_ctf): Add declaration.
9753 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9754 * tracefile.c (_initialize_tracefile): Add declaration.
9755 * tracepoint.c (_initialize_tracepoint): Add declaration.
9756 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9757 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9758 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9759 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9760 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9761 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9762 * tui/tui.c (_initialize_tui): Add declaration.
9763 * typeprint.c (_initialize_typeprint): Add declaration.
9764 * ui-style.c (_initialize_ui_style): Add declaration.
9765 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9766 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9767 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9768 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9769 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9770 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9771 * unittests/filtered_iterator-selftests.c
9772 (_initialize_filtered_iterator_selftests): Add declaration.
9773 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9774 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9775 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9776 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9777 * unittests/main-thread-selftests.c
9778 (_initialize_main_thread_selftests): Add declaration.
9779 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9780 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9781 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9782 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9783 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9784 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9785 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9786 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9787 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9788 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9789 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9790 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9791 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9792 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9793 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9794 declaration.
9795 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9796 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9797 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9798 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9799 * user-regs.c (_initialize_user_regs): Add declaration.
9800 * utils.c (_initialize_utils): Add declaration.
9801 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9802 * valops.c (_initialize_valops): Add declaration.
9803 * valprint.c (_initialize_valprint): Add declaration.
9804 * value.c (_initialize_values): Add declaration.
9805 * varobj.c (_initialize_varobj): Add declaration.
9806 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9807 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9808 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9809 * windows-nat.c (_initialize_windows_nat): Add declaration.
9810 (_initialize_check_for_gdb_ini): Add declaration.
9811 (_initialize_loadable): Add declaration.
9812 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9813 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9814 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9815 * xcoffread.c (_initialize_xcoffread): Add declaration.
9816 * xml-support.c (_initialize_xml_support): Add declaration.
9817 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9818 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9819 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9820 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9821
e2de1eec
SM
98222020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9823
9824 * regformats/regdat.sh: Generate declaration for init function.
9825
e0037b4c
SM
98262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9827
9828 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9829 up.
9830 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9831 close_one_inferior>: New methods.
9832 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9833 pass down target to find_inferior_pid.
9834 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9835 Pass down target to find_inferior_ptid.
9836 (gdbsim_target::create_inferior): Pass down target to
9837 add_thread_silent.
9838 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9839 target down to find_inferior_ptid and switch_to_thread.
9840 (gdbsim_target::close): Update to call close_one_inferior.
9841 (struct resume_data): Remove.
9842 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9843 directly, rather than through a void pointer.
9844 (gdbsim_target::resume): Update to call resume_one_inferior.
9845
58920b5b
SM
98462020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9847
9848 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9849
4ec89149
PA
98502020-01-12 Pedro Alves <palves@redhat.com>
9851
9852 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9853 directly for the current inferior instead of
9854 discard_all_inferiors.
9855 (discard_all_inferiors): Delete.
9856
7c392d1d
TT
98572020-01-11 Tom Tromey <tom@tromey.com>
9858
9859 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9860 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9861 deprecated_safe_get_selected_frame.
9862
d9ebdab7
TBA
98632020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9864
9865 * inferior.c (print_inferior): Switch inferior before printing it.
9866
f3c469b9
PA
98672020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9868 Pedro Alves <palves@redhat.com>
9869
9870 * progspace-and-thread.c (switch_to_program_space_and_thread):
9871 Assert there's an inferior for PSPACE. Use
9872 switch_to_inferior_no_thread to switch the inferior too.
9873 * progspace.c (program_space::~program_space): Call
9874 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9875 (program_space::free_all_objfiles): Don't call clear_symtab_users
9876 here.
9877 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9878
65c574f6
PA
98792020-01-10 Pedro Alves <palves@redhat.com>
9880
9881 * NEWS: Mention multi-target debugging, "info connections", and
9882 "add-inferior -no-connection".
9883
2f4fcf00
PA
98842020-01-10 Pedro Alves <palves@redhat.com>
9885
9886 * infrun.c: Include "target-connection.h".
9887 (check_multi_target_resumption): New.
9888 (proceed): Call it.
9889 * target-connection.c (make_target_connection_string): Make
9890 extern.
9891 * target-connection.h (make_target_connection_string): Declare.
9892
121b3efd
PA
98932020-01-10 Pedro Alves <palves@redhat.com>
9894
9895 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9896 * inferior.c (uiout_field_connection): New function.
9897 (print_inferior): Add new "connection-id" column.
9898 (add_inferior_command): Show connection number/string of added
9899 inferior.
9900 * process-stratum-target.h
9901 (process_stratum_target::connection_string): New virtual method.
9902 (process_stratum_target::connection_number): New field.
9903 * remote.c (remote_target::connection_string): New override.
9904 * target-connection.c: New file.
9905 * target-connection.h: New file.
9906 * target.c (decref_target): Remove process_stratum targets from
9907 the connection list.
9908 (target_stack::push): Add process_stratum targets to the
9909 connection list.
9910
4f837581
PA
99112020-01-10 Pedro Alves <palves@redhat.com>
9912
9913 Revert:
9914 2016-04-12 Pedro Alves <palves@redhat.com>
9915 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9916 Remove references to name.
9917 * serial.h (struct serial) <name>: Delete.
9918
f4ec508e
PA
99192020-01-10 Pedro Alves <palves@redhat.com>
9920
9921 * gdbarch-selftests.c (register_to_value_test): Remove "target
9922 already pushed" check.
9923
5b6d1e4f
PA
99242020-01-10 Pedro Alves <palves@redhat.com>
9925 John Baldwin <jhb@FreeBSD.org>
9926
9927 * aarch64-linux-nat.c
9928 (aarch64_linux_nat_target::thread_architecture): Adjust.
9929 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9930 (task_command_1): Likewise.
9931 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9932 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9933 (aix_thread_target::store_registers)
9934 (aix_thread_target::thread_alive): Adjust.
9935 * amd64-fbsd-tdep.c: Include "inferior.h".
9936 (amd64fbsd_get_thread_local_address): Pass down target.
9937 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9938 thread's gdbarch instead of target_gdbarch.
9939 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9940 get_last_target_status.
9941 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9942 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9943 inferiors.
9944 (update_inserted_breakpoint_locations): Skip if inferiors with no
9945 execution.
9946 (update_global_location_list): When handling moribund locations,
9947 find representative inferior for location's pspace, and use thread
9948 count of its process_stratum target.
9949 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9950 * bsd-uthread.c (bsd_uthread_target::wait): Use
9951 as_process_stratum_target and adjust thread_change_ptid and
9952 add_thread calls.
9953 (bsd_uthread_target::update_thread_list): Use
9954 as_process_stratum_target and adjust find_thread_ptid,
9955 thread_change_ptid and add_thread calls.
9956 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9957 find_thread_ptid call.
9958 * corelow.c (add_to_thread_list): Adjust add_thread call.
9959 (core_target_open): Adjust add_thread_silent and thread_count
9960 calls.
9961 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9962 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9963 * event-top.c (async_disconnect): Pop targets from all inferiors.
9964 * exec.c (add_target_sections): Push exec target on all inferiors
9965 sharing the program space.
9966 (remove_target_sections): Remove the exec target from all
9967 inferiors sharing the program space.
9968 (exec_on_vfork): New.
9969 * exec.h (exec_on_vfork): Declare.
9970 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9971 Pass it down.
9972 (fbsd_nat_target::update_thread_list): Adjust.
9973 (fbsd_nat_target::resume): Adjust.
9974 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9975 down.
9976 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9977 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9978 get_thread_arch_regcache call.
9979 * fork-child.c (gdb_startup_inferior): Pass target down to
9980 startup_inferior and set_executing.
9981 * gdbthread.h (struct process_stratum_target): Forward declare.
9982 (add_thread, add_thread_silent, add_thread_with_info)
9983 (in_thread_list): Add process_stratum_target parameter.
9984 (find_thread_ptid(inferior*, ptid_t)): New overload.
9985 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9986 parameter.
9987 (all_threads()): Delete overload.
9988 (all_threads, all_non_exited_threads): Add process_stratum_target
9989 parameter.
9990 (all_threads_safe): Use brace initialization.
9991 (thread_count): Add process_stratum_target parameter.
9992 (set_resumed, set_running, set_stop_requested, set_executing)
9993 (threads_are_executing, finish_thread_state): Add
9994 process_stratum_target parameter.
9995 (switch_to_thread): Use is_current_thread.
9996 * i386-fbsd-tdep.c: Include "inferior.h".
9997 (i386fbsd_get_thread_local_address): Pass down target.
9998 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9999 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10000 have_inferiors check.
10001 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10002 (inf_ptrace_target::attach): Adjust.
10003 * infcall.c (run_inferior_call): Adjust.
10004 * infcmd.c (run_command_1): Pass target to
10005 scoped_finish_thread_state.
10006 (proceed_thread_callback): Skip inferiors with no execution.
10007 (continue_command): Rename 'all_threads' local to avoid hiding
10008 'all_threads' function. Adjust get_last_target_status call.
10009 (prepare_one_step): Adjust set_running call.
10010 (signal_command): Use user_visible_resume_target. Compare thread
10011 pointers instead of inferior_ptid.
10012 (info_program_command): Adjust to pass down target.
10013 (attach_command): Mark target's 'thread_executing' flag.
10014 (stop_current_target_threads_ns): New, factored out from ...
10015 (interrupt_target_1): ... this. Switch inferior before making
10016 target calls.
10017 * inferior-iter.h
10018 (struct all_inferiors_iterator, struct all_inferiors_range)
10019 (struct all_inferiors_safe_range)
10020 (struct all_non_exited_inferiors_range): Filter on
10021 process_stratum_target too. Remove explicit.
10022 * inferior.c (inferior::inferior): Push dummy target on target
10023 stack.
10024 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10025 Add process_stratum_target parameter, and pass it down.
10026 (have_live_inferiors): Adjust.
10027 (switch_to_inferior_and_push_target): New.
10028 (add_inferior_command, clone_inferior_command): Handle
10029 "-no-connection" parameter. Use
10030 switch_to_inferior_and_push_target.
10031 (_initialize_inferior): Mention "-no-connection" option in
10032 the help of "add-inferior" and "clone-inferior" commands.
10033 * inferior.h: Include "process-stratum-target.h".
10034 (interrupt_target_1): Use bool.
10035 (struct inferior) <push_target, unpush_target, target_is_pushed,
10036 find_target_beneath, top_target, process_target, target_at,
10037 m_stack>: New.
10038 (discard_all_inferiors): Delete.
10039 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10040 (all_inferiors, all_non_exited_inferiors): Add
10041 process_stratum_target parameter.
10042 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10043 (target_last_proc_target): New global.
10044 (follow_fork_inferior): Push target on new inferior. Pass target
10045 to add_thread_silent. Call exec_on_vfork. Handle target's
10046 reference count.
10047 (follow_fork): Adjust get_last_target_status call. Also consider
10048 target.
10049 (follow_exec): Push target on new inferior.
10050 (struct execution_control_state) <target>: New field.
10051 (user_visible_resume_target): New.
10052 (do_target_resume): Call target_async.
10053 (resume_1): Set target's threads_executing flag. Consider resume
10054 target.
10055 (commit_resume_all_targets): New.
10056 (proceed): Also consider resume target. Skip threads of inferiors
10057 with no execution. Commit resumtion in all targets.
10058 (start_remote): Pass current inferior to wait_for_inferior.
10059 (infrun_thread_stop_requested): Consider target as well. Pass
10060 thread_info pointer to clear_inline_frame_state instead of ptid.
10061 (infrun_thread_thread_exit): Consider target as well.
10062 (random_pending_event_thread): New inferior parameter. Use it.
10063 (do_target_wait): Rename to ...
10064 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10065 down.
10066 (threads_are_resumed_pending_p, do_target_wait): New.
10067 (prepare_for_detach): Adjust calls.
10068 (wait_for_inferior): New inferior parameter. Handle it. Use
10069 do_target_wait_1 instead of do_target_wait.
10070 (fetch_inferior_event): Adjust. Switch to representative
10071 inferior. Pass target down.
10072 (set_last_target_status): Add process_stratum_target parameter.
10073 Save target in global.
10074 (get_last_target_status): Add process_stratum_target parameter and
10075 handle it.
10076 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10077 (context_switch): Check inferior_ptid == null_ptid before calling
10078 inferior_thread().
10079 (get_inferior_stop_soon): Pass down target.
10080 (wait_one): Rename to ...
10081 (poll_one_curr_target): ... this.
10082 (struct wait_one_event): New.
10083 (wait_one): New.
10084 (stop_all_threads): Adjust.
10085 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10086 event's target.
10087 (switch_back_to_stepped_thread): Also consider target.
10088 (print_stop_event): Update.
10089 (normal_stop): Update. Also consider the resume target.
10090 * infrun.h (wait_for_inferior): Remove declaration.
10091 (user_visible_resume_target): New declaration.
10092 (get_last_target_status, set_last_target_status): New
10093 process_stratum_target parameter.
10094 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10095 process_stratum_target parameter, and use it.
10096 (clear_inline_frame_state (thread_info*)): New.
10097 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10098 process_stratum_target parameter.
10099 (clear_inline_frame_state (thread_info*)): Declare.
10100 * linux-fork.c (delete_checkpoint_command): Pass target down to
10101 find_thread_ptid.
10102 (checkpoint_command): Adjust.
10103 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10104 instead of just tweaking inferior_ptid.
10105 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10106 (exit_lwp): Pass target down to find_thread_ptid.
10107 (attach_proc_task_lwp_callback): Pass target down to
10108 add_thread/set_running/set_executing.
10109 (linux_nat_target::attach): Pass target down to
10110 thread_change_ptid.
10111 (get_detach_signal): Pass target down to find_thread_ptid.
10112 Consider last target status's target.
10113 (linux_resume_one_lwp_throw, resume_lwp)
10114 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10115 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10116 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10117 (linux_nat_target::async_wait_fd): New.
10118 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10119 target down.
10120 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10121 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10122 * linux-thread-db.c (struct thread_db_info::process_target): New
10123 field.
10124 (add_thread_db_info): Save target.
10125 (get_thread_db_info): New process_stratum_target parameter. Also
10126 match target.
10127 (delete_thread_db_info): New process_stratum_target parameter.
10128 Also match target.
10129 (thread_from_lwp): Adjust to pass down target.
10130 (thread_db_notice_clone): Pass down target.
10131 (check_thread_db_callback): Pass down target.
10132 (try_thread_db_load_1): Always push the thread_db target.
10133 (try_thread_db_load, record_thread): Pass target down.
10134 (thread_db_target::detach): Pass target down. Always unpush the
10135 thread_db target.
10136 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10137 target down. Always unpush the thread_db target.
10138 (find_new_threads_callback, thread_db_find_new_threads_2)
10139 (thread_db_target::update_thread_list): Pass target down.
10140 (thread_db_target::pid_to_str): Pass current inferior down.
10141 (thread_db_target::get_thread_local_address): Pass target down.
10142 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10143 target down.
10144 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10145 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10146 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10147 (procfs_init_inferior): Rename to ...
10148 (procfs_target::procfs_init_inferior): ... this and adjust.
10149 (procfs_target::create_inferior, procfs_notice_thread)
10150 (procfs_do_thread_registers): Adjust.
10151 * ppc-fbsd-tdep.c: Include "inferior.h".
10152 (ppcfbsd_get_thread_local_address): Pass down target.
10153 * proc-service.c (ps_xfer_memory): Switch current inferior and
10154 program space as well.
10155 (get_ps_regcache): Pass target down.
10156 * process-stratum-target.c
10157 (process_stratum_target::thread_address_space)
10158 (process_stratum_target::thread_architecture): Pass target down.
10159 * process-stratum-target.h
10160 (process_stratum_target::threads_executing): New field.
10161 (as_process_stratum_target): New.
10162 * ravenscar-thread.c
10163 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10164 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10165 down.
10166 * record-btrace.c (record_btrace_target::info_record): Adjust.
10167 (record_btrace_target::record_method)
10168 (record_btrace_target::record_is_replaying)
10169 (record_btrace_target::fetch_registers)
10170 (get_thread_current_frame_id, record_btrace_target::resume)
10171 (record_btrace_target::wait, record_btrace_target::stop): Pass
10172 target down.
10173 * record-full.c (record_full_wait_1): Switch to event thread.
10174 Pass target down.
10175 * regcache.c (regcache::regcache)
10176 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10177 process_stratum_target parameter and handle it.
10178 (current_thread_target): New global.
10179 (get_thread_regcache): Add process_stratum_target parameter and
10180 handle it. Switch inferior before calling target method.
10181 (get_thread_regcache): Pass target down.
10182 (get_thread_regcache_for_ptid): Pass target down.
10183 (registers_changed_ptid): Add process_stratum_target parameter and
10184 handle it.
10185 (registers_changed_thread, registers_changed): Pass target down.
10186 (test_get_thread_arch_aspace_regcache): New.
10187 (current_regcache_test): Define a couple local test_target_ops
10188 instances and use them for testing.
10189 (readwrite_regcache): Pass process_stratum_target parameter.
10190 (cooked_read_test, cooked_write_test): Pass mock_target down.
10191 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10192 (get_thread_arch_aspace_regcache): Add process_stratum_target
10193 parameter.
10194 (regcache::target): New method.
10195 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10196 (regcache::registers_changed_ptid): Add process_stratum_target
10197 parameter.
10198 (regcache::m_target): New field.
10199 (registers_changed_ptid): Add process_stratum_target parameter.
10200 * remote.c (remote_state::supports_vCont_probed): New field.
10201 (remote_target::async_wait_fd): New method.
10202 (remote_unpush_and_throw): Add remote_target parameter.
10203 (get_current_remote_target): Adjust.
10204 (remote_target::remote_add_inferior): Push target.
10205 (remote_target::remote_add_thread)
10206 (remote_target::remote_notice_new_inferior)
10207 (get_remote_thread_info): Pass target down.
10208 (remote_target::update_thread_list): Skip threads of inferiors
10209 bound to other targets. (remote_target::close): Don't discard
10210 inferiors. (remote_target::add_current_inferior_and_thread)
10211 (remote_target::process_initial_stop_replies)
10212 (remote_target::start_remote)
10213 (remote_target::remote_serial_quit_handler): Pass down target.
10214 (remote_target::remote_unpush_target): New remote_target
10215 parameter. Unpush the target from all inferiors.
10216 (remote_target::remote_unpush_and_throw): New remote_target
10217 parameter. Pass it down.
10218 (remote_target::open_1): Check whether the current inferior has
10219 execution instead of checking whether any inferior is live. Pass
10220 target down.
10221 (remote_target::remote_detach_1): Pass down target. Use
10222 remote_unpush_target.
10223 (extended_remote_target::attach): Pass down target.
10224 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10225 (remote_target::append_resumption): Pass down target.
10226 (remote_target::append_pending_thread_resumptions)
10227 (remote_target::remote_resume_with_hc, remote_target::resume)
10228 (remote_target::commit_resume): Pass down target.
10229 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10230 (remote_target::interrupt_query)
10231 (remote_target::remove_new_fork_children)
10232 (remote_target::check_pending_events_prevent_wildcard_vcont)
10233 (remote_target::remote_parse_stop_reply)
10234 (remote_target::process_stop_reply): Pass down target.
10235 (first_remote_resumed_thread): New remote_target parameter. Pass
10236 it down.
10237 (remote_target::wait_as): Pass down target.
10238 (unpush_and_perror): New remote_target parameter. Pass it down.
10239 (remote_target::readchar, remote_target::remote_serial_write)
10240 (remote_target::getpkt_or_notif_sane_1)
10241 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10242 down target.
10243 (remote_target::mourn_inferior): Pass down target. Use
10244 remote_unpush_target.
10245 (remote_target::core_of_thread)
10246 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10247 (remote_target::pid_to_exec_file)
10248 (remote_target::thread_handle_to_thread_info): Pass down target.
10249 (remote_target::async_wait_fd): New.
10250 * riscv-fbsd-tdep.c: Include "inferior.h".
10251 (riscv_fbsd_get_thread_local_address): Pass down target.
10252 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10253 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10254 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10255 Adjust.
10256 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10257 * solib-svr4.c (enable_break): Pass down target.
10258 * spu-multiarch.c (parse_spufs_run): Pass down target.
10259 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10260 * target-delegates.c: Regenerate.
10261 * target.c (g_target_stack): Delete.
10262 (current_top_target): Return the current inferior's top target.
10263 (target_has_execution_1): Refer to the passed-in inferior's top
10264 target.
10265 (target_supports_terminal_ours): Check whether the initial
10266 inferior was already created.
10267 (decref_target): New.
10268 (target_stack::push): Incref/decref the target.
10269 (push_target, push_target, unpush_target): Adjust.
10270 (target_stack::unpush): Defref target.
10271 (target_is_pushed): Return bool. Adjust to refer to the current
10272 inferior's target stack.
10273 (dispose_inferior): Delete, and inline parts ...
10274 (target_preopen): ... here. Only dispose of the current inferior.
10275 (target_detach): Hold strong target reference while detaching.
10276 Pass target down.
10277 (target_thread_name): Add assertion.
10278 (target_resume): Pass down target.
10279 (target_ops::beneath, find_target_at): Adjust to refer to the
10280 current inferior's target stack.
10281 (get_dummy_target): New.
10282 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10283 has a thread running.
10284 (initialize_targets): Rename to ...
10285 (_initialize_target): ... this.
10286 * target.h: Include "gdbsupport/refcounted-object.h".
10287 (struct target_ops): Inherit refcounted_object.
10288 (target_ops::shortname, target_ops::longname): Make const.
10289 (target_ops::async_wait_fd): New method.
10290 (decref_target): Declare.
10291 (struct target_ops_ref_policy): New.
10292 (target_ops_ref): New typedef.
10293 (get_dummy_target): Declare function.
10294 (target_is_pushed): Return bool.
10295 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10296 (all_matching_threads_iterator::all_matching_threads_iterator):
10297 Handle filter target.
10298 * thread-iter.h (struct all_matching_threads_iterator, struct
10299 all_matching_threads_range, class all_non_exited_threads_range):
10300 Filter by target too. Remove explicit.
10301 * thread.c (threads_executing): Delete.
10302 (inferior_thread): Pass down current inferior.
10303 (clear_thread_inferior_resources): Pass down thread pointer
10304 instead of ptid_t.
10305 (add_thread_silent, add_thread_with_info, add_thread): Add
10306 process_stratum_target parameter. Use it for thread and inferior
10307 searches.
10308 (is_current_thread): New.
10309 (thread_info::deletable): Use it.
10310 (find_thread_ptid, thread_count, in_thread_list)
10311 (thread_change_ptid, set_resumed, set_running): New
10312 process_stratum_target parameter. Pass it down.
10313 (set_executing): New process_stratum_target parameter. Pass it
10314 down. Adjust reference to 'threads_executing'.
10315 (threads_are_executing): New process_stratum_target parameter.
10316 Adjust reference to 'threads_executing'.
10317 (set_stop_requested, finish_thread_state): New
10318 process_stratum_target parameter. Pass it down.
10319 (switch_to_thread): Also match inferior.
10320 (switch_to_thread): New process_stratum_target parameter. Pass it
10321 down.
10322 (update_threads_executing): Reimplement.
10323 * top.c (quit_force): Pop targets from all inferior.
10324 (gdb_init): Don't call initialize_targets.
10325 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10326 Declare.
10327 (windows_add_thread, windows_delete_thread): Adjust.
10328 (get_windows_debug_event): Rename to ...
10329 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10330 * tracefile-tfile.c (tfile_target_open): Pass down target.
10331 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10332 Forward declare.
10333 (switch_to_thread): Add process_stratum_target parameter.
10334 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10335 parameter. Use it.
10336 (mi_on_resume): Pass target down.
10337 * nat/fork-inferior.c (startup_inferior): Add
10338 process_stratum_target parameter. Pass it down.
10339 * nat/fork-inferior.h (startup_inferior): Add
10340 process_stratum_target parameter.
10341 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10342
75c6c844
PA
103432020-01-10 Pedro Alves <palves@redhat.com>
10344
10345 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10346 directly. Instead find the first thread in the thread list and
10347 use switch_to_thread.
10348
78f2c40a
PA
103492020-01-10 Pedro Alves <palves@redhat.com>
10350
10351 * remote.c (remote_target::remote_add_inferior): Don't bind a
10352 process to the current inferior if the current inferior is already
10353 bound to a process.
10354
e7af6c70
TBA
103552020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10356 Pedro Alves <palves@redhat.com>
10357
10358 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10359 If no process is specified, return null_ptid instead of
10360 inferior_ptid.
10361 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10362 TARGET_WAITKIND_SIGNALLED with no pid.
10363
31ba933e
PA
103642020-01-10 Pedro Alves <palves@redhat.com>
10365
10366 * remote.c (first_remote_resumed_thread): New.
10367 (remote_target::wait_as): Use it as default event_ptid instead of
10368 inferior_ptid.
10369
735fc2ca
PA
103702020-01-10 Pedro Alves <palves@redhat.com>
10371
10372 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10373
c17e02e1
PA
103742020-01-10 Pedro Alves <palves@redhat.com>
10375
10376 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10377 not -1.
10378
ab1ddbcf
PA
103792020-01-10 Pedro Alves <palves@redhat.com>
10380
10381 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10382 ptid to get_last_target_status.
10383 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10384 ptid to get_last_target_status.
10385 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10386 get_last_target_status.
10387 (info_program_command): Don't pass a target_waitstatus to
10388 get_last_target_status.
10389 * infrun.c (init_wait_for_inferior): Use
10390 nullify_last_target_wait_ptid.
10391 (get_last_target_status): Handle nullptr arguments.
10392 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10393 (print_stop_event): Don't pass a ptid to get_last_target_status.
10394 (normal_stop): Don't pass a ptid to get_last_target_status.
10395 * infrun.h (get_last_target_status, set_last_target_status): Move
10396 comments here and update.
10397 (nullify_last_target_wait_ptid): Declare.
10398 * linux-fork.c (fork_load_infrun_state): Remove local extern
10399 declaration of nullify_last_target_wait_ptid.
10400 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10401 to get_last_target_status.
10402
f3f8ece4
PA
104032020-01-10 Pedro Alves <palves@redhat.com>
10404
10405 * gdbthread.h (scoped_restore_current_thread)
10406 <dont_restore, restore, m_dont_restore>: Declare.
10407 * thread.c (thread_alive): Add assertion. Return bool.
10408 (switch_to_thread_if_alive): New.
10409 (prune_threads): Switch inferior/thread.
10410 (print_thread_info_1): Switch thread before calling target methods.
10411 (scoped_restore_current_thread::restore): New, factored out from
10412 ...
10413 (scoped_restore_current_thread::~scoped_restore_current_thread):
10414 ... this.
10415 (scoped_restore_current_thread::scoped_restore_current_thread):
10416 Add assertion.
10417 (thread_apply_all_command, thread_select): Use
10418 switch_to_thread_if_alive.
10419 * infrun.c (proceed, restart_threads, handle_signal_stop)
10420 (switch_back_to_stepped_thread): Switch current thread before
10421 calling target methods.
10422
db2d40f7
PA
104232020-01-10 Pedro Alves <palves@redhat.com>
10424
10425 * inferior.c (switch_to_inferior_no_thread): New function,
10426 factored out from ...
10427 (inferior_command): ... here.
10428 * inferior.h (switch_to_inferior_no_thread): Declare.
10429 * mi/mi-main.c (run_one_inferior): Use
10430 switch_to_inferior_no_thread.
10431
bd420a2d
PA
104322020-01-10 Pedro Alves <palves@redhat.com>
10433
10434 * infcmd.c (kill_command): Remove dead code.
10435
ddf5db90
PA
104362020-01-10 Pedro Alves <palves@redhat.com>
10437
10438 * remote.c (remote_target::mourn_inferior): No longer check
10439 whether the target is running.
10440
5018ce90
PA
104412020-01-10 Pedro Alves <palves@redhat.com>
10442
10443 * corelow.c (core_target::has_execution): Change parameter type to
10444 inferior pointer.
10445 * inferior.c (number_of_live_inferiors): Use
10446 inferior::has_execution instead of target_has_execution_1.
10447 * inferior.h (inferior::has_execution): New.
10448 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10449 inferior::has_execution instead of target_has_execution_1.
10450 * process-stratum-target.c
10451 (process_stratum_target::has_execution): Change parameter type to
10452 inferior pointer. Check the inferior's PID instead of
10453 inferior_ptid.
10454 * process-stratum-target.h
10455 (process_stratum_target::has_execution): Change parameter type to
10456 inferior pointer.
10457 * record-full.c (record_full_core_target::has_execution): Change
10458 parameter type to inferior pointer.
10459 * target.c (target_has_execution_1): Change parameter type to
10460 inferior pointer.
10461 (target_has_execution_current): Adjust.
10462 * target.h (target_ops::has_execution): Change parameter type to
10463 inferior pointer.
10464 (target_has_execution_1): Change parameter type to inferior
10465 pointer. Change return type to bool.
10466 * tracefile.h (tracefile_target::has_execution): Change parameter
10467 type to inferior pointer.
10468
74375d18
PA
104692020-01-10 Pedro Alves <palves@redhat.com>
10470
10471 * exceptions.c (print_flush): Remove current_top_target() check.
10472
acdf84a6
PA
104732020-01-10 Pedro Alves <palves@redhat.com>
10474
10475 * remote.c (show_remote_exec_file): Show the current inferior's
10476 exec-file instead of the command variable's value.
10477
ec506636
PA
104782020-01-10 Pedro Alves <palves@redhat.com>
10479
10480 * record-full.c (record_full_resume_ptid): New global.
10481 (record_full_target::resume): Set it.
10482 (record_full_wait_1): Use record_full_resume_ptid instead of
10483 inferior_ptid.
10484
873657b9
PA
104852020-01-10 Pedro Alves <palves@redhat.com>
10486
10487 * gdbthread.h (scoped_restore_current_thread)
10488 <dont_restore, restore, m_dont_restore>: Declare.
10489 * thread.c (thread_alive): Add assertion. Return bool.
10490 (switch_to_thread_if_alive): New.
10491 (prune_threads): Switch inferior/thread.
10492 (print_thread_info_1): Switch thread before calling target methods.
10493 (scoped_restore_current_thread::restore): New, factored out from
10494 ...
10495 (scoped_restore_current_thread::~scoped_restore_current_thread):
10496 ... this.
10497 (scoped_restore_current_thread::scoped_restore_current_thread):
10498 Add assertion.
10499 (thread_apply_all_command, thread_select): Use
10500 switch_to_thread_if_alive.
10501
7f0ae84c
GB
105022020-01-10 George Barrett <bob@bob131.so>
10503
10504 * stap-probe.c (stap_modify_semaphore): Don't check for null
10505 semaphores.
10506 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10507 for null semaphores.
10508
f5a7c406
AB
105092020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10510
10511 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10512 all source windows, and maintain horizontal scroll status while
10513 doing so.
10514
9ae6bf64
TT
105152020-01-09 Tom Tromey <tom@tromey.com>
10516
10517 PR tui/18932:
10518 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10519 update_source_window, not print_source_lines.
10520
b2efe70c
AB
105212020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 * tui/tui.c (tui_enable): Register tui hooks after calling
10524 tui_display_main.
10525
5f23a082
CB
105262020-01-09 Christian Biesinger <cbiesinger@google.com>
10527
10528 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10529
3061113b
SM
105302020-01-08 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * thread.c (print_thread_info_1): Fix indentation.
10533
57d75002
CB
105342020-01-09 Christian Biesinger <cbiesinger@google.com>
10535
10536 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10537 unique_xmalloc_ptr outside the if to always free the demangled name.
10538
6a053cb1
TT
105392020-01-08 Tom Tromey <tromey@adacore.com>
10540
10541 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10542 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10543 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10544 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10545 Remove.
10546 (section_offsets): New typedef.
10547 * symtab.c (fixup_section, get_msymbol_address): Update.
10548 * symmisc.c (dump_msymbols): Update.
10549 * symfile.h (relative_addr_info_to_section_offsets)
10550 (symfile_map_offsets_to_segments): Update.
10551 * symfile.c (build_section_addr_info_from_objfile)
10552 (init_objfile_sect_indices): Update.
10553 (struct place_section_arg): Change type of "offsets".
10554 (place_section): Update.
10555 (relative_addr_info_to_section_offsets): Change type of
10556 "section_offsets". Remove "num_sections" parameter.
10557 (default_symfile_offsets, syms_from_objfile_1)
10558 (set_objfile_default_section_offset): Update.
10559 (reread_symbols): No need to preserve section offsets by hand.
10560 (symfile_map_offsets_to_segments): Change type of "offsets".
10561 * stap-probe.c (relocate_address): Update.
10562 * stabsread.h (process_one_symbol): Update.
10563 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10564 (solib_target_relocate_section_addresses): Update.
10565 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10566 Update.
10567 * solib-frv.c (frv_relocate_main_executable): Update.
10568 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10569 * solib-aix.c (solib_aix_get_section_offsets): Change return
10570 type.
10571 (solib_aix_solib_create_inferior_hook): Update.
10572 * remote.c (remote_target::get_offsets): Update.
10573 * psymtab.c (find_pc_sect_psymtab): Update.
10574 * psympriv.h (struct partial_symbol) <address, text_low,
10575 text_high>: Update.
10576 * objfiles.h (obj_section_offset): Update.
10577 (struct objfile) <section_offsets>: Change type.
10578 <num_sections>: Remove.
10579 (objfile_relocate): Update.
10580 * objfiles.c (entry_point_address_query): Update
10581 (relocate_one_symbol): Change type of "section_offsets".
10582 (objfile_relocate1, objfile_relocate1): Change type of
10583 "new_offsets".
10584 (objfile_rebase1): Update.
10585 * mipsread.c (mipscoff_symfile_read): Update.
10586 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10587 parameter.
10588 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10589 (parse_external, psymtab_to_symtab_1): Update.
10590 * machoread.c (macho_symfile_offsets): Update.
10591 * ia64-tdep.c (ia64_find_unwind_table): Update.
10592 * hppa-tdep.c (read_unwind_info): Update.
10593 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10594 * dwarf2read.c (create_addrmap_from_index)
10595 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10596 (process_psymtab_comp_unit_reader, add_partial_symbol)
10597 (add_partial_subprogram, process_full_comp_unit)
10598 (read_file_scope, read_func_scope, read_lexical_block_scope)
10599 (read_call_site_scope, dwarf2_rnglists_process)
10600 (dwarf2_ranges_process, dwarf2_ranges_read)
10601 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10602 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10603 Update.
10604 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10605 Update.
10606 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10607 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10608 (process_one_symbol): Change type of "section_offsets".
10609 * ctfread.c (get_objfile_text_range): Update.
10610 * coffread.c (coff_symtab_read, enter_linenos)
10611 (process_coff_symbol): Update.
10612 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10613 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10614
456e800a
TT
106152020-01-08 Tom Tromey <tromey@adacore.com>
10616
10617 * dwarf2read.c (parse_macro_definition): Use std::string.
10618 (parse_macro_definition): Likewise.
10619
6dfa2fc2
TT
106202020-01-08 Tom Tromey <tromey@adacore.com>
10621
10622 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10623 (ATTR_ALLOC_CHUNK): Remove.
10624
421d1616
TT
106252020-01-08 Tom Tromey <tromey@adacore.com>
10626
10627 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10628
43816ebc
TT
106292020-01-08 Tom Tromey <tromey@adacore.com>
10630
10631 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10632 (dwarf2_compute_name, open_dwo_file): Likewise.
10633 (process_enumeration_scope): Use std::vector.
10634 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10635 (partial_die_info::fixup, dwarf2_start_subfile)
10636 (guess_full_die_structure_name, dwarf2_name): Likewise.
10637 (determine_prefix): Update.
10638 (guess_full_die_structure_name): Make return type const.
10639 (partial_die_full_name): Return unique_xmalloc_ptr.
10640 (DW_FIELD_ALLOC_CHUNK): Remove.
10641
4212d509
TT
106422020-01-07 Tom Tromey <tromey@adacore.com>
10643
10644 PR build/24937:
10645 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10646
06a6207a
JT
106472020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10648
10649 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10650
153d79c4
AB
106512020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10652
10653 * stack.c (print_frame_info): Move disassemble_next_line code
10654 inside source_print block.
10655
66182876
EZ
106562020-01-06 Eli Zaretskii <eliz@gnu.org>
10657
10658 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10659 gdb/signals.h, as we are now using native signal symbols.
10660
cbfa8581
SV
106612020-01-06 Shahab Vahedi <shahab@synopsys.com>
10662
10663 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10664 overflow by an early check of content vs threshold.
aac66a4c 10665 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10666 Likewise.
10667
3f602821
EZ
106682020-01-06 Eli Zaretskii <eliz@gnu.org>
10669
10670 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10671
a08c904d
JT
106722020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10673
10674 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10675 export table if no section contains it's RVA.
10676
89a65580
EZ
106772020-01-06 Eli Zaretskii <eliz@gnu.org>
10678
10679 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10680
8b7fcda2
HD
106812020-01-06 Hannes Domani <ssbssa@yahoo.de>
10682
10683 * source.c (print_source_lines_base): Set last_line_listed.
10684
a61b4f69
SV
106852020-01-06 Shahab Vahedi <shahab@synopsys.com>
10686
10687 * tui/tui-disasm.c: Remove trailing spaces.
10688
559e7e50
EZ
106892020-01-06 Eli Zaretskii <eliz@gnu.org>
10690 Pedro Alves <palves@redhat.com>
10691
10692 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10693 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10694 (windows_gdb_signal_to_target): New function, uses the above
10695 enumeration to convert GDB internal signal codes to equivalent
10696 Windows codes.
10697 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10698 * windows-nat.c: Include "gdb_wait.h".
10699 (get_windows_debug_event): Extract the fatal exception from the
10700 exit status and convert to the equivalent Posix signal number.
10701 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10702 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10703 * gdbsupport/gdb_wait.c: New file, implements
10704 windows_status_to_termsig.
10705 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10706 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10707
f2302a34
AB
107082020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10711 show_layout.
10712
6a5206eb
LM
107132020-01-05 Luis Machado <luis.machado@linaro.org>
10714
10715 * aarch64-linux-nat.c
10716 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10717 and bfd_mach_aarch64.
10718
6ec1d75e
PW
107192020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10720
10721 * ui-file.c (stdio_file::can_emit_style_escape)
10722 (tee_file::can_emit_style_escape): Ensure style is used also on
10723 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10724 to gdb_stdout.
10725 * main.c (set_gdb_data_directory): Use file style to output the
10726 warning that the given pathname is not a directory.
10727 * top.c (show_history_filename, gdb_safe_append_history)
10728 (show_gdb_datadir): Use file style.
10729
44f81a76
HD
107302020-01-03 Hannes Domani <ssbssa@yahoo.de>
10731
10732 * solib-target.c (struct lm_info_target):
10733 Change offsets to be a unique_xmalloc_ptr.
10734 (solib_target_relocate_section_addresses): Update.
10735
25057eb0
HD
107362020-01-03 Hannes Domani <ssbssa@yahoo.de>
10737
10738 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10739
6e2118f5
BE
107402020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10741
10742 * MAINTAINERS (Write After Approval): Add myself.
10743
8133c7dc
LM
107442020-01-02 Luis Machado <luis.machado@linaro.org>
10745
10746 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10747 Cell BE architecture.
10748 * target.h (struct target_ops) <thread_architecture>: Likewise.
10749
48189bec
HD
107502020-01-01 Hannes Domani <ssbssa@yahoo.de>
10751
10752 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10753
ead1063b
HD
107542020-01-01 Hannes Domani <ssbssa@yahoo.de>
10755
10756 * MAINTAINERS (Write After Approval): Add myself.
10757
e5d78223
JB
107582020-01-01 Joel Brobecker <brobecker@adacore.com>
10759
10760 * gdbarch.sh: Update copyright year range of generated files.
10761
b811d2c2
JB
107622020-01-01 Joel Brobecker <brobecker@adacore.com>
10763
10764 Update copyright year range in all GDB files.
10765
5f4def5c
JB
107662020-01-01 Joel Brobecker <brobecker@adacore.com>
10767
10768 * copyright.py: Convert to Python 3.
10769
51fd4002
JB
107702020-01-01 Joel Brobecker <brobecker@adacore.com>
10771
10772 * copyright.py: Adapt after move of gnulib directory from gdb
10773 directory to toplevel directory.
10774
5fb651f2
JB
107752020-01-01 Joel Brobecker <brobecker@adacore.com>
10776
10777 * copyright.py (main): Exit if run from the wrong directory.
10778
5dd8bf88
JB
107792020-01-01 Joel Brobecker <brobecker@adacore.com>
10780
10781 * top.c (print_gdb_version): Change copyright year to 2020.
10782
9f71dacb 107832020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10784
9f71dacb 10785 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10786
9f71dacb 10787For older changes see ChangeLog-2019.
c906108c
SS
10788\f
10789Local Variables:
10790mode: change-log
10791left-margin: 8
10792fill-column: 74
10793version-control: never
57da7796 10794coding: utf-8
c906108c 10795End:
This page took 2.864318 seconds and 4 git commands to generate.