]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: make macro_expand_next return a gdb::unique_xmalloc_ptr<char>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
14d960c8
SM
12020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4 (lex_one_token): Update.
5 * macroexp.c (struct macro_buffer) <release>: Return
6 gdb::unique_xmalloc_ptr<char>.
7 (macro_stringify): Update.
8 (macro_expand): Update.
9 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
10 * macroexp.h (macro_expand_next): Likewise.
11
211d5b1c
SM
122020-07-02 Simon Marchi <simon.marchi@efficios.com>
13
14 * macroexp.h (macro_lookup_ftype): Remove.
15 (macro_expand, macro_expand_once, macro_expand_next): Remove
16 lookup function parameters, add scope parameter.
17 * macroexp.c (scan, substitute_args, expand, maybe_expand,
18 macro_expand, macro_expand_once, macro_expand_next): Likewise.
19 * macroscope.h (standard_macro_lookup): Change parameter type
20 to macro_scope.
21 * macroscope.c (standard_macro_lookup): Likewise.
22 * c-exp.y (lex_one_token): Update.
23 * macrocmd.c (macro_expand_command): Likewise.
24 (macro_expand_once_command): Likewise.
25
b1a35af2
SM
262020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * inf-loop.c (inferior_event_handler): Remove client_data param.
29 * inf-loop.h (inferior_event_handler): Likewise.
30 * infcmd.c (step_1): Adjust.
31 * infrun.c (proceed): Adjust.
32 (fetch_inferior_event): Remove client_data param.
33 (infrun_async_inferior_event_handler): Adjust.
34 * infrun.h (fetch_inferior_event): Remove `void *` param.
35 * linux-nat.c (handle_target_event): Adjust.
36 * record-btrace.c (record_btrace_handle_async_inferior_event):
37 Adjust.
38 * record-full.c (record_full_async_inferior_event_handler):
39 Adjust.
40 * remote.c (remote_async_inferior_event_handler): Adjust.
41
1cdf9e33
TT
422020-07-01 Tom Tromey <tom@tromey.com>
43
44 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
45 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
46
32c1e210
TT
472020-07-01 Tom Tromey <tom@tromey.com>
48
49 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
50 tui_gen_win_info.
51 (tui_win_info::make_window): Merge with
52 tui_gen_win_info::make_window.
53 (tui_win_info::make_visible): Move from tui_gen_win_info.
54 * tui/tui-win.c (tui_win_info::max_width): Move from
55 tui_gen_win_info.
56 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
57 type.
58 <window_factory>: Likewise.
59 * tui/tui-layout.c (tui_win_info::resize): Move from
60 tui_gen_win_info.
61 (make_standard_window): Change return type.
62 (get_locator_window, tui_get_window_by_name): Likewise.
63 (tui_layout_window::apply): Remove a cast.
64 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
65 (struct tui_win_info): Merge with tui_gen_win_info.
66 (struct tui_gen_win_info): Remove.
67
a30cb6da
TT
682020-07-01 Tom Tromey <tom@tromey.com>
69
70 * tui/tui-stack.h (struct tui_locator_window): Derive from
71 tui_win_info.
72 <do_scroll_horizontal, do_scroll_vertical>: New methods.
73 <can_box>: New method.
74
1eb2161f
TT
752020-07-01 Tom Tromey <tom@tromey.com>
76
77 * tui/tui-stack.h (struct tui_locator_window): Remove body.
78
7134f2eb
TT
792020-07-01 Tom Tromey <tom@tromey.com>
80
81 * tui/tui-regs.c (tui_data_window::display_registers_from)
82 (tui_data_window::display_registers_from)
83 (tui_data_window::first_data_item_displayed)
84 (tui_data_window::delete_data_content_windows): Update.
85 (tui_data_window::refresh_window, tui_data_window::no_refresh):
86 Remove.
87 (tui_data_window::check_register_values): Update.
88 (tui_data_item_window::rerender): Add parameters. Update.
89 (tui_data_item_window::refresh_window): Remove.
90 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
91 virtual.
92 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
93 tui_gen_win_info.
94 <refresh_window, max_height, min_height>: Remove.
95 <rerender>: Add parameters.
96 <x, y, visible>: New members.
97 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
98 <m_item_width>: New member.
99
22b7b041
TT
1002020-07-01 Tom Tromey <tom@tromey.com>
101
102 * tui/tui-regs.c (tui_data_window::show_register_group)
103 (tui_data_window::check_register_values): Update.
104 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
105 from item_no.
106
c9753adb
TT
1072020-07-01 Tom Tromey <tom@tromey.com>
108
109 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
110 useless "if".
111
9ab26b4a
TT
1122020-07-01 Tom Tromey <tom@tromey.com>
113
114 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
115 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
116
e555083f
TT
1172020-07-01 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
120 * tui/tui-winsource.h (enum tui_line_or_address_kind)
121 (struct tui_line_or_address): Move from tui-data.h.
122 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
123 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
124 (tui_cmd_window, tui_source_window_base, tui_source_window)
125 (tui_disasm_window): Don't declare.
126 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
127 to tui-winsource.h.
128 (SINGLE_KEY): Move to tui-stack.c.
129
7a02bab7
TT
1302020-07-01 Tom Tromey <tom@tromey.com>
131
132 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
133 std::string.
134 * tui/tui-regs.c (class tab_expansion_file): New.
135 (tab_expansion_file::write): New method.
136 (tui_register_format): Change return type. Use
137 tab_expansion_file.
138 (tui_get_register, tui_data_window::display_registers_from)
139 (tui_data_item_window::rerender): Update.
140 * tui/tui-io.h (tui_expand_tabs): Don't declare.
141 * tui/tui-io.c (tui_expand_tabs): Remove.
142
ea68593b
TT
1432020-07-01 Tom Tromey <tom@tromey.com>
144
145 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
146
a8caed5d
FS
1472020-07-01 Fangrui Song <maskray@google.com>
148
149 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
150
9cdf9820
AKS
1512020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
152
153 * dwarf2/read.c (set_die_type): Removed conditions to restrict
154 forms for DW_AT_associated and DW_AT_allocated attributes,
155 which is already checked in function attr_to_dynamic_prop.
156
a1520ad8
TT
1572020-06-30 Tom Tromey <tromey@adacore.com>
158
159 * dwarf2/read.c (quirk_rust_enum): Correctly call
160 alloc_rust_variant for default-less enum.
161
5ac58899
TT
1622020-06-30 Tom Tromey <tromey@adacore.com>
163
164 PR build/26183:
165 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
166 gdb::to_string.
167
19b187a9
SM
1682020-06-29 Simon Marchi <simon.marchi@efficios.com>
169
170 * gdbarch.sh (displaced_step_copy_insn): Update doc.
171 * gdbarch.h: Re-generate.
172
cd4c4c07
TT
1732020-06-28 Tom Tromey <tom@tromey.com>
174
175 * command.h (cmd_types): Remove.
176 (cmd_type): Don't declare.
177 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
178 typedef.
179 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
180 * cli/cli-decode.c (cmd_type): Remove.
181
05779d57
PA
1822020-06-27 Pedro Alves <palves@redhat.com>
183
184 * fork-child.c (prefork_hook): Adjust.
185 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
186 Delete.
187 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
188 * inferior.c (inferior::set_tty, inferior::tty): New methods.
189 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
190 Remove declarations.
191 (struct inferior) <set_tty, tty>: New methods.
192 (struct inferior) <terminal>: Rename to ...
193 (struct inferior) <m_terminal>: ... this and make private.
194 * main.c (captured_main_1): Adjust.
195 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
196 (mi_cmd_inferior_tty_show): Adjust.
197 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
198 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
199
1776e3e5
NA
2002020-06-26 Nick Alcock <nick.alcock@oracle.com>
201
202 * configure.ac: Add --enable-libctf: handle --disable-static
203 properly.
204 * acinclude.m4: sinclude ../config/enable.m4.
205 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
206 (LIBCTF): Substitute in.
207 (CTF_DEPS): New, likewise.
208 (CLIBS): libctf needs symbols from libbfd: move earlier.
209 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
210 flags.
211 * ctfread.c: Surround in ENABLE_LIBCTF.
212 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
213 * configure: Regenerate.
214 * config.in: Likewise.
215
58373b80
SM
2162020-06-25 Simon Marchi <simon.marchi@efficios.com>
217
218 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
219
277474ee
SM
2202020-06-25 Simon Marchi <simon.marchi@efficios.com>
221
222 * inferior.h (struct inferior) <terminal>: Change type to
223 gdb::unique_xmalloc_ptr<char>.
224 * inferior.c (inferior::~inferior): Don't free inf->terminal.
225 * infcmd.c (set_inferior_io_terminal): Don't free terminal
226 field, adjust to unique pointer.
227 (get_inferior_io_terminal): Adjust to unique pointer.
228
6d74da72
AB
2292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
230
231 * riscv-tdep.c (riscv_print_registers_info): Loop over all
232 registers, not just the known core set of registers.
233
2e52d038
AB
2342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
237 fflags, frm, and fcsr registers.
238 (riscv_register_reggroup_p): Remove unknown CSRs from save and
239 restore groups.
240 (riscv_tdesc_unknown_reg): New function.
241 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
242 tdesc_use_registers.
243 * riscv-tdep.h (struct gdbarch_tdep): Add
244 unknown_csrs_first_regnum, unknown_csrs_count,
245 duplicate_fflags_regnum, duplicate_frm_regnum, and
246 duplicate_fcsr_regnum fields.
247
be64fd07
AB
2482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * target-descriptions.c (tdesc_use_registers): Add new parameter a
251 callback, use the callback (when not null) to help number unknown
252 registers.
253 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
254 (tdesc_use_registers): Add extra parameter to declaration.
255
3b9fce96
AB
2562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
259 in the file.
260 (class riscv_pending_register_alias): Likewise.
261 (riscv_register_feature::register_info): Change 'required_p' field
262 to 'required', and change its type. Add 'check' member function.
263 (riscv_register_feature::register_info::check): Define new member
264 function.
265 (riscv_xreg_feature): Change initialisation of 'required' field.
266 (riscv_freg_feature): Likewise.
267 (riscv_virtual_feature): Likewise.
268 (riscv_csr_feature): Likewise.
269 (riscv_check_tdesc_feature): Take extra parameter, the csr
270 tdesc_feature, rewrite the function to use the new
271 riscv_register_feature::register_info::check function.
272 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
273
865bad26
AB
2742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * features/Makefile: Remove all references to the deleted files
277 below.
278 * features/riscv/32bit-csr.c: Deleted.
279 * features/riscv/32bit-csr.xml: Deleted.
280 * features/riscv/64bit-csr.c: Deleted.
281 * features/riscv/64bit-csr.xml: Deleted.
282 * features/riscv/rebuild-csr-xml.sh: Deleted.
283
ed69cbc8
AB
2842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
287 whitespace error for declaration of names member variable.
288 (struct riscv_register_feature): Add new prefer_first_name member
289 variable, and fix whitespace error in declaration of registers.
290 (riscv_xreg_feature): Initialize prefer_first_name field.
291 (riscv_freg_feature): Likewise.
292 (riscv_virtual_feature): Likewise.
293 (riscv_csr_feature): Likewise.
294 (riscv_register_name): Expand on comments. Remove register name
295 modifications for CSR and virtual registers.
296
4445e8f5
AB
2972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
300 errors.
301
767a879e
AB
3022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
305 riscv-opc.h.
306 (class riscv_pending_register_alias): New class.
307 (riscv_check_tdesc_feature): Take vector of pending aliases and
308 populate it as appropriate.
309 (riscv_setup_register_aliases): Delete.
310 (riscv_gdbarch_init): Create vector of pending aliases and pass it
311 to riscv_check_tdesc_feature in all cases. Use the vector to
312 create the register aliases.
313
bb6e55f3
RO
3142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315
316 * sol2-tdep.c (sol2_static_transform_name): Remove.
317 (sol2_init_abi): Don't register it.
318 * gdbarch.sh (static_transform_name): Remove.
319 * gdbarch.c, gdbarch.h: Regenerate.
320
321 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
322 gdbarch_static_transform_name.
323 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
324 * stabsread.c (define_symbol) <'X'>: Remove.
325 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
326 handling.
327 <'V'>: Likewise.
328 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
329 <'S'>: Remove call to gdbarch_static_transform_name.
330
c6d36836
RO
3312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
332
333 * procfs.c (procfs_pre_trace): New function.
334 (procfs_target::create_inferior): Pass it to fork_inferior.
335
a7e6196b
RO
3362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
337
338 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
339 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
340 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
341 sol2-tdep.o, sparc-sol2-tdep.o.
342 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
343 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
344 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
345 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
346
d412e696
RO
3472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
348
349 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
350 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
351 Call sol2_init_abi.
352 Remove calls to set_gdbarch_skip_solib_resolver,
353 set_gdbarch_core_pid_to_str.
354 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
355 (i386_sol2_static_transform_name): Remove.
356 (i386_sol2_init_abi): Call sol2_init_abi.
357 Remove calls to set_gdbarch_sofun_address_maybe_missing,
358 set_gdbarch_static_transform_name,
359 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
360 Use sol2_sigtramp_p.
361 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
362 (sol2_sigtramp_p): New function.
363 (sol2_static_transform_name): New function.
364 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
365 (sol2_init_abi): New function.
366 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
367 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
368 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
369 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
370 (sparc_sol2_static_transform_name): Remove.
371 (sparc32_sol2_init_abi): Call sol2_init_abi.
372 Remove calls to set_gdbarch_sofun_address_maybe_missing,
373 set_gdbarch_static_transform_name,
374 set_gdbarch_skip_solib_resolver,
375 set_gdbarch_core_pid_to_str.
376 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
377 (sparc_sol2_static_transform_name): Remove
378 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
379 call sol2_sigtramp_p.
380 (sparc64_sol2_init_abi): Call sol2_init_abi.
381 Remove calls to set_gdbarch_sofun_address_maybe_missing,
382 set_gdbarch_static_transform_name,
383 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
384
a8654e7d
PW
3852020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
386
387 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
388 * exec.c (validate_exec_file): If from_tty, set both
389 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
390 * symfile.c (symbol_file_add_with_addrs): if always_confirm
391 and from_tty, unconditionally ask a confirmation.
392
caa7fd04
AB
3932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * target-descriptions.c (tdesc_architecture_name): Protect against
396 NULL pointer dereference.
397 (maint_print_xml_tdesc_cmd): New function.
398 (_initialize_target_descriptions): Register new 'maint print
399 xml-tdesc' command and give it the filename completer.
400 * NEWS: Mention new 'maint print xml-tdesc' command.
401
fbf42f4e
AB
4022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
403
404 * target-descriptions.c (class tdesc_compatible_info): New class.
405 (struct target_desc): Change type of compatible vector.
406 (tdesc_compatible_p): Update for change in type of
407 target_desc::compatible.
408 (tdesc_compatible_info_list): New function.
409 (tdesc_compatible_info_arch_name): New function.
410 (tdesc_add_compatible): Update for change in type of
411 target_desc::compatible.
412 (print_c_tdesc::visit_pre): Likewise.
413
20821f4e
AB
4142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
417 whitespace to underscore.
418 (maint_print_c_tdesc_cmd): Use fake filename for target
419 descriptions that came from the target.
420 (_initialize_target_descriptions): Add filename command completion
421 for 'maint print c-tdesc'.
422
1fb5ee62
SM
4232020-06-23 Simon Marchi <simon.marchi@efficios.com>
424
425 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
426 lines.
427
fc3ecb3e
SM
4282020-06-23 Simon Marchi <simon.marchi@efficios.com>
429
430 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
431 lines.
432 (dwarf2_find_location_expression): Likewise.
433 (call_site_parameter_matches): Likewise.
434 (dwarf2_compile_expr_to_ax): Likewise.
435 (disassemble_dwarf_expression): Likewise.
436 (loclist_describe_location): Likewise.
437
236ef034
PA
4382020-06-23 Pedro Alves <palves@redhat.com>
439
440 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
441 progspace-and-thread.h. Include scoped-mock-context.h instead.
442 (register_to_value_test): Use scoped_mock_context.
443 * regcache.c: Include "scoped-mock-context.h".
444 (cooked_read_test): Don't error out if a target is already pushed.
445 Use scoped_mock_context. Adjust.
446 * scoped-mock-context.h: New file.
447
39e7ecca
AB
4482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
449
450 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
451 initializer.
452 (ada_language::is_string_type_p): New member function.
453 * c-lang.c (c_language_data): Delete la_is_string_type_p
454 initializer.
455 (cplus_language_data): Likewise.
456 (asm_language_data): Likewise.
457 (minimal_language_data): Likewise.
458 * d-lang.c (d_language_data): Likewise.
459 * f-lang.c (f_is_string_type_p): Delete function, implementation
460 moved to f_language::is_string_type_p.
461 (f_language_data): Delete la_is_string_type_p initializer.
462 (f_language::is_string_type_p): New member function,
463 implementation from f_is_string_type_p.
464 * go-lang.c (go_is_string_type_p): Delete function, implementation
465 moved to go_language::is_string_type_p.
466 (go_language_data): Delete la_is_string_type_p initializer.
467 (go_language::is_string_type_p): New member function,
468 implementation from go_is_string_type_p.
469 * language.c (language_defn::is_string_type_p): Define new member
470 function.
471 (default_is_string_type_p): Make static, add comment copied from
472 header file.
473 (unknown_language_data): Delete la_is_string_type_p initializer.
474 (unknown_language::is_string_type_p): New member function.
475 (auto_language_data): Delete la_is_string_type_p initializer.
476 (auto_language::is_string_type_p): New member function.
477 * language.h (language_data): Delete la_is_string_type_p field.
478 (language_defn::is_string_type_p): Declare new function.
479 (default_is_string_type_p): Delete desclaration, move comment to
480 definition.
481 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
482 moved to m2_language::is_string_type_p.
483 (m2_language_data): Delete la_is_string_type_p initializer.
484 (m2_language::is_string_type_p): New member function,
485 implementation from m2_is_string_type_p.
486 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
487 initializer.
488 * opencl-lang.c (opencl_language_data): Likewise.
489 * p-lang.c (pascal_is_string_type_p): Delete function,
490 implementation moved to pascal_language::is_string_type_p.
491 (pascal_language_data): Delete la_is_string_type_p initializer.
492 (pascal_language::is_string_type_p): New member function,
493 implementation from pascal_is_string_type_p.
494 * rust-lang.c (rust_is_string_type_p): Delete function,
495 implementation moved to rust_language::is_string_type_p.
496 (rust_language_data): Delete la_is_string_type_p initializer.
497 (rust_language::is_string_type_p): New member function,
498 implementation from rust_is_string_type_p.
499 * valprint.c (val_print_scalar_or_string_type_p): Update call to
500 is_string_type_p.
501
4ffc13fb
AB
5022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * ada-lang.c (ada_language_data): Delete la_print_typedef
505 initializer.
506 (ada_language::print_typedef): New member function.
507 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
508 (cplus_language_data): Likewise.
509 (asm_language_data): Likewise.
510 (minimal_language_data): Likewise.
511 * d-lang.c (d_language_data): Likewise.
512 * f-lang.c (f_language_data): Likewise.
513 (f_language::print_typedef): New member function.
514 * go-lang.c (go_language_data): Delete la_print_typedef
515 initializer.
516 * language.c (language_defn::print_typedef): Define member
517 function.
518 (unknown_language_data): Delete la_print_typedef initializer.
519 (unknown_language::print_typedef): New member function.
520 (auto_language_data): Delete la_print_typedef initializer.
521 (auto_language::print_typedef): New member function.
522 * language.h (language_data): Delete la_print_typedef field.
523 (language_defn::print_typedef): Declare new member function.
524 (LA_PRINT_TYPEDEF): Update call to print_typedef.
525 (default_print_typedef): Delete declaration.
526 * m2-lang.c (m2_language_data): Delete la_print_typedef
527 initializer.
528 (m2_language::print_typedef): New member function.
529 * objc-lang.c (objc_language_data): Delete la_print_typedef
530 initializer.
531 * opencl-lang.c (opencl_language_data): Likewise.
532 * p-lang.c (pascal_language_data): Likewise.
533 (pascal_language::print_typedef): New member function.
534 * rust-lang.c (rust_print_typedef): Delete function,
535 implementation moved to rust_language::print_typedef.
536 (rust_language): Delete la_print_typedef initializer.
537 (rust_language::print_typedef): New member function,
538 implementation from rust_print_typedef.
539 * typeprint.c (default_print_typedef): Delete.
540
d711ee67
AB
5412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
544 (ada_language::printstr): New member function.
545 * c-lang.c (c_language_data): Delete la_printstr initializer.
546 (cplus_language_data): Likewise.
547 (asm_language_data): Likewise.
548 (minimal_language_data): Likewise.
549 * d-lang.c (d_language_data): Likewise.
550 * f-lang.c (f_printstr): Rename to f_language::printstr.
551 (f_language_data): Delete la_printstr initializer.
552 (f_language::printstr): New member function, implementation from
553 f_printstr.
554 * go-lang.c (go_language_data): Delete la_printstr initializer.
555 * language.c (language_defn::printstr): Define new member
556 function.
557 (unk_lang_printstr): Delete.
558 (unknown_language_data): Delete la_printstr initializer.
559 (unknown_language::printstr): New member function.
560 (auto_language_data): Delete la_printstr initializer.
561 (auto_language::printstr): New member function.
562 * language.h (language_data): Delete la_printstr field.
563 (language_defn::printstr): Declare new member function.
564 (LA_PRINT_STRING): Update call to printstr.
565 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
566 (m2_language_data): Delete la_printstr initializer.
567 (m2_language::printstr): New member function, implementation from
568 m2_printstr.
569 * objc-lang.c (objc_language_data): Delete la_printstr
570 initializer.
571 * opencl-lang.c (opencl_language_data): Likewise.
572 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
573 (pascal_language_data): Delete la_printstr initializer.
574 (pascal_language::printstr): New member function, implementation
575 from pascal_printstr.
576 * p-lang.h (pascal_printstr): Delete declaration.
577 * rust-lang.c (rust_printstr): Update header comment.
578 (rust_language_data): Delete la_printstr initializer.
579 (rust_language::printstr): New member function.
580
52b50f2c
AB
5812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
584 (ada_language::printchar): New member function.
585 * c-lang.c (c_language_data): Delete la_printchar initializer.
586 (cplus_language_data): Likewise.
587 (asm_language_data): Likewise.
588 (minimal_language_data): Likewise.
589 * d-lang.c (d_language_data): Likewise.
590 * f-lang.c (f_printchar): Rename to f_language::printchar.
591 (f_language_data): Delete la_printchar initializer.
592 (f_language::printchar): New member function, implementation from
593 f_printchar.
594 * go-lang.c (go_language_data): Delete la_printchar initializer.
595 * language.c (unk_lang_printchar): Delete.
596 (language_defn::printchar): Define new member function.
597 (unknown_language_data): Delete la_printchar initializer.
598 (unknown_language::printchar): New member function.
599 (auto_language_data): Delete la_printchar initializer.
600 (auto_language::printchar): New member function.
601 * language.h (language_data): Delete la_printchar field.
602 (language_defn::printchar): Declare new member function.
603 (LA_PRINT_CHAR): Update call to printchar.
604 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
605 (m2_language::printchar): New member function.
606 * objc-lang.c (objc_language_data): Delete la_printchar
607 initializer.
608 * opencl-lang.c (opencl_language_data): Likewise.
609 * p-lang.c (pascal_language_data): Delete la_printchar
610 initializer.
611 (pascal_language::printchar): New member function.
612 * rust-lang.c (rust_printchar): Rename to
613 rust_language::printchar.
614 (rust_language_data): Delete la_printchar initializer.
615 (rust_language::printchar): New member function, implementation
616 from rust_printchar.
617
ec8cec5b
AB
6182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
621 (ada_language_data): Delete la_emitchar initializer.
622 (ada_language::emitchar): New member function, implementation from
623 emit_char.
624 * c-lang.c (c_language_data): Delete la_emitchar initializer.
625 (cplus_language_data): Likewise.
626 (asm_language_data): Likewise.
627 (minimal_language_data): Likewise.
628 * d-lang.c (d_language_data): Likewise.
629 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
630 (f_language_data): Delete la_emitchar initializer.
631 (f_language::emitchar): New member function, implementation from
632 f_emit_char.
633 * go-lang.c (go_language_data): Delete la_emitchar initializer.
634 * language.c (unk_lang_emit_char): Delete.
635 (language_defn::emitchar): New member function definition.
636 (unknown_language_data): Delete la_emitchar initializer.
637 (unknown_language::emitchar): New member function.
638 (auto_language_data): Delete la_emitchar initializer.
639 (auto_language::emitchar): New member function.
640 * language.h (language_data): Delete la_emitchar field.
641 (language_defn::emitchar): New member field declaration.
642 (LA_EMIT_CHAR): Update call to emitchar.
643 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
644 (m2_language_data): Delete la_emitchar initializer.
645 (m2_language::emitchar): New member function, implementation from
646 m2_emit_char.
647 * objc-lang.c (objc_language_data): Delete la_emitchar
648 initializer.
649 * opencl-lang.c (opencl_language_data): Likewise.
650 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
651 (pascal_language_data): Delete la_emitchar initializer.
652 (pascal_language::emitchar): New member function, implementation
653 from pascal_emit_char.
654 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
655 (rust_language_data): Delete la_emitchar initializer.
656 (rust_language::emitchar): New member function, implementation
657 from rust_emitchar.
658
1bf9c363
AB
6592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * ada-lang.c (resolve): Rename to ada_language::post_parser.
662 (ada_language_data): Delete la_post_parser initializer.
663 (ada_language::post_parser): New member function.
664 * c-lang.c (c_language_data): Delete la_post_parser initializer.
665 (cplus_language_data): Likewise.
666 (asm_language_data): Likewise.
667 (minimal_language_data): Likewise.
668 * d-lang.c (d_language_data): Likewise.
669 * f-lang.c (f_language_data): Likewise.
670 * go-lang.c (go_language_data): Likewise.
671 * language.c (unknown_language_data): Likewise.
672 (auto_language_data): Likewise.
673 * language.h (language_data): Delete la_post_parser field.
674 (language_defn::post_parser): New member function.
675 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
676 * objc-lang.c (objc_language_data): Likewise.
677 * opencl-lang.c (opencl_language_data): Likewise.
678 * p-lang.c (pascal_language_data): Likewise.
679 * parse.c (parse_exp_in_context): Update call to post_parser.
680 (null_post_parser): Delete definition.
681 * parser-defs.h (null_post_parser): Delete declaration.
682 * rust-lang.c (rust_language_data): Delete la_post_parser
683 initializer.
684
87afa652
AB
6852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * ada-lang.c (parse): Rename to ada_language::parser.
688 (ada_language_data): Delete la_parser initializer.
689 (ada_language::parser): New member function, implementation from
690 parse.
691 * c-lang.c (c_language_data): Delete la_parser initializer.
692 (cplus_language_data): Likewise.
693 (asm_language_data): Likewise.
694 (minimal_language_data): Likewise.
695 * d-lang.c (d_language_data): Likewise.
696 (d_language::parser): New member function.
697 * f-lang.c (f_language_data): Delete la_parser initializer.
698 (f_language::parser): New member function.
699 * go-lang.c (go_language_data): Delete la_parser initializer.
700 (go_language::parser): New member function.
701 * language.c (unk_lang_parser): Delete.
702 (language_defn::parser): Define new member function.
703 (unknown_language_data): Delete la_parser initializer.
704 (unknown_language::parser): New member function.
705 (auto_language_data): Delete la_parser initializer.
706 (auto_language::parser): New member function.
707 * language.h (language_data): Delete la_parser field.
708 (language_defn::parser): Declare new member function.
709 * m2-lang.c (m2_language_data): Delete la_parser initializer.
710 (m2_language::parser): New member function.
711 * objc-lang.c (objc_language_data): Delete la_parser initializer.
712 * opencl-lang.c (opencl_language_data): Likewise.
713 * p-lang.c (pascal_language_data): Likewise.
714 (pascal_language::parser): New member function.
715 * parse.c (parse_exp_in_context): Update call to parser.
716 * rust-lang.c (rust_language_data): Delete la_parser initializer.
717 (rust_language::parser): New member function.
718
37825800
AB
7192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * top.c (print_gdb_configuration): Print --with-python-libdir
722 configuration value.
723
5b860c93
PW
7242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
725
726 * NEWS: Mention change to the alias command.
727
cf00cd6f
PW
7282020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
729
730 * cli/cli-cmds.c (lookup_cmd_for_default_args)
731 (alias_command_completer)
732 (make_alias_options_def_group): New functions.
733 (alias_opts, alias_option_defs): New struct and array.
734 (alias_usage_error): Update usage.
735 (alias_command): Handles optional DEFAULT-ARGS... arguments.
736 Use option framework.
737 (_initialize_cli_cmds): Update alias command help.
738 Update aliases command help.
739 (show_user):
740 Add NULL for new default_args lookup_cmd argument.
741 (valid_command_p): Rename to validate_aliased_command.
742 Add NULL for new default_args lookup_cmd argument. Verify that the
743 aliased_command has no default args.
744 * cli/cli-decode.c (help_cmd): Show aliases definitions.
745 (lookup_cmd_1, lookup_cmd): New argument default_args.
746 (add_alias_cmd):
747 Add NULL for new default_args lookup_cmd argument.
748 (print_help_for_command): Show default args under the layout
749 alias some_alias = some_aliased_cmd some_alias_default_arg.
750 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
751 xfree default_args in destructor.
752 * cli/cli-script.c (process_next_line, do_define_command):
753 Add NULL for new default_args lookup_cmd argument.
754 * command.h: Declare new default_args argument in lookup_cmd
755 and lookup_cmd_1.
756 * completer.c (complete_line_internal_1):
757 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
758 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
759 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
760 Likewise.
761 * infcmd.c (_initialize_infcmd): Likewise.
762 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
763 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
764 * python/py-param.c (add_setshow_generic): Likewise.
765 * remote.c (_initialize_remote): Likewise.
766 * top.c (execute_command): Prepend default_args if command has some.
767 (set_verbose):
768 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
769 * tracepoint.c (validate_actionline, encode_actions_1):
770 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
771
bd920864
TBA
7722020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
773
774 * jit.c (jit_read_descriptor): Use bool as the return type.
775 (jit_breakpoint_re_set_internal): Use bool as the return type.
776 Invert the return value logic; return true if the jit breakpoint
777 has been successfully initialized.
778 (jit_inferior_init): Update the call to
779 jit_breakpoint_re_set_internal.
780
f8098322
PA
7812020-06-22 Pedro Alves <palves@redhat.com>
782
783 PR gdb/25939
784 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
785 Use the current inferior instead. Don't return
786 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
787 wait again.
788 * sol-thread.c (sol_thread_target::wait): Don't reference
789 inferior_ptid.
790 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
791 (sol_update_thread_list_callback): Use the current inferior's pid
792 instead of inferior_ptid.
793
196535a6
RO
7942020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
795
796 * procfs.c: Cleanup many comments.
797
798 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
799 (AFTER_WATCHFLAG): Replace by value.
800
801 (MAIN_PROC_NAME_FORMAT): Inline ...
802 (create_procinfo): ... here.
803
804 (procfs_debug_inferior): Remove SYS_exec handling.
805 (syscall_is_exec): Likewise.
806 (procfs_set_exec_trap): Likewise.
807
808 (syscall_is_lwp_exit): Inline in callers.
809 (syscall_is_exit): Likewise.
810 (syscall_is_exec): Likewise.
811 (syscall_is_lwp_create): Likewise.
812
813 (invalidate_cache): Remove #if 0 code.
814
815 (make_signal_thread_runnable): Remove.
816 (procfs_target::resume): Remove #if 0 code.
817
cf6f3e86
RO
8182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
819
820 PR gdb/25939
821 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
822 call ...
823 (procfs_target::create_inferior): ... here.
824
48e9cc84
PW
8252020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
826
827 * exec.c (validate_exec_file): Ensure the build-id is up to
828 date by calling reopen_exec_file (that checks file timestamp
829 to decide to re-read the file).
830
3922b302
PA
8312020-06-18 Pedro Alves <palves@redhat.com>
832
833 PR gdb/25412
834 * gdbthread.h (delete_thread, delete_thread_silent)
835 (find_thread_ptid): Update comments.
836 * thread.c (current_thread_): New global.
837 (is_current_thread): Move higher, and reimplement.
838 (inferior_thread): Reimplement.
839 (set_thread_exited): Use bool. Add assertions.
840 (add_thread_silent): Simplify thread-reuse handling by always
841 calling delete_thread.
842 (delete_thread): Remove intro comment.
843 (find_thread_ptid): Skip exited threads.
844 (switch_to_thread_no_regs): Write to current_thread_.
845 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
846 INFERIOR_PTID. Clear current_thread_.
847
6dbdab44
PA
8482020-06-18 Pedro Alves <palves@redhat.com>
849
850 * aix-thread.c (pd_update): Use switch_to_thread.
851
2da4b788
PA
8522020-06-18 Pedro Alves <palves@redhat.com>
853
854 * ravenscar-thread.c (ravenscar_thread_target): Update.
855 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
856 (ravenscar_thread_target::add_active_thread): ... this. Don't
857 set m_base_ptid here. Update to avoid referencing inferior_ptid.
858 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
859
50838d1b
PA
8602020-06-18 Pedro Alves <palves@redhat.com>
861
862 * nat/windows-nat.c (current_windows_thread): Remove.
863 * nat/windows-nat.h (current_windows_thread): Remove.
864 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
865 Adjust.
866 (display_selectors): Adjust to fetch the current
867 windows_thread_info based on inferior_ptid.
868 (fake_create_process): No longer write to current_windows_thread.
869 (windows_nat_target::get_windows_debug_event):
870 Don't set inferior_ptid or current_windows_thread.
871 (windows_nat_target::wait): Adjust to not rely on
872 current_windows_thread.
873 (do_initial_windows_stuff): Now a method of windows_nat_target.
874 Switch to the last_ptid thread.
875 (windows_nat_target::attach): Adjust.
876 (windows_nat_target::detach): Use switch_to_no_thread instead of
877 writing to inferior_ptid directly.
878 (windows_nat_target::create_inferior): Adjust.
879
31ce04e9
PA
8802020-06-18 Pedro Alves <palves@redhat.com>
881
882 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
883
1ee1a363
PA
8842020-06-18 Pedro Alves <palves@redhat.com>
885
886 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
887 after creating it, instead of writing to inferior_ptid. Don't
888 write to inferior_ptid.
889
6d350754
PA
8902020-06-18 Pedro Alves <palves@redhat.com>
891
892 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
893
5d971d48
PA
8942020-06-18 Pedro Alves <palves@redhat.com>
895
896 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
897 it, instead of writing to inferior_ptid.
898
86e57d1b
PA
8992020-06-18 Pedro Alves <palves@redhat.com>
900
901 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
902 to inferior_ptid.
903
f2e1c129
PA
9042020-06-18 Pedro Alves <palves@redhat.com>
905
906 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
907 instead of writing to inferior_ptid directly.
908
60db1b85
PA
9092020-06-18 Pedro Alves <palves@redhat.com>
910
911 * corelow.c (core_target::close): Use switch_to_no_thread instead
912 of writing to inferior_ptid directly.
913 (add_to_thread_list, core_target_open): Use switch_to_thread
914 instead of writing to inferior_ptid directly.
915
fe7d6a8d
PA
9162020-06-18 Pedro Alves <palves@redhat.com>
917
918 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
919 inferior_ptid.
920 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
921 inferior_ptid.
922 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
923 inferior_ptid directly.
924 (darwin_nat_target::init_thread_list): Switch to thread, instead
925 of writing to inferior_ptid.
926 (darwin_nat_target::attach): Don't write to inferior_ptid.
927 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
928
975f8708
PA
9292020-06-18 Pedro Alves <palves@redhat.com>
930
931 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
932 thread.
933 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
934 Instead use switch_to_thread.
935 (gnu_nat_target::detach): Use switch_to_no_thread
936 instead of writing to inferior_ptid directly. Used passed-in
937 inferior instead of looking up the inferior by pid.
938
1a204730
PA
9392020-06-18 Pedro Alves <palves@redhat.com>
940
941 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
942 inferior_ptid.
943
ebe84f23
PA
9442020-06-18 Pedro Alves <palves@redhat.com>
945
946 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
947 inferior_ptid.
948 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
949 thread.
950 (nto_procfs_target::detach): Avoid referencing
951 inferior_ptid. Use switch_to_no_thread instead of writing to
952 inferior_ptid directly.
953 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
954 instead of writing to inferior_ptid directly.
955 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
956 to thread.
957
191f02e5
PA
9582020-06-18 Pedro Alves <palves@redhat.com>
959
960 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
961 after creating it, instead of writing to inferior_ptid.
962 (gdbsim_target_open): Use switch_to_no_thread instead of writing
963 to inferior_ptid directly.
964 (gdbsim_target::wait): Don't write to inferior_ptid.
965
0ac55310
PA
9662020-06-18 Pedro Alves <palves@redhat.com>
967
968 * remote.c (remote_target::remote_notice_new_inferior): Use
969 switch_to_thread instead of writing to inferior_ptid directly.
970 (remote_target::add_current_inferior_and_thread): Use
971 switch_to_no_thread instead of writing to inferior_ptid directly.
972 (extended_remote_target::attach): Use switch_to_inferior_no_thread
973 and switch_to_thread instead of using set_current_inferior or
974 writing to inferior_ptid directly.
975
5233f39b
PA
9762020-06-18 Pedro Alves <palves@redhat.com>
977
978 * tracectf.c (ctf_target_open): Switch to added thread instead of
979 writing to inferior_ptid directly.
980 (ctf_target::close): Use switch_to_no_thread instead of writing to
981 inferior_ptid directly.
982
087e161b
PA
9832020-06-18 Pedro Alves <palves@redhat.com>
984
985 * tracefile-tfile.c (tfile_target_open): Don't write to
986 inferior_ptid directly, instead switch to added thread.
987 (tfile_target::close): Use switch_to_no_thread instead of writing
988 to inferior_ptid directly.
989
7fb43e53
PA
9902020-06-18 Pedro Alves <palves@redhat.com>
991
992 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
993 (procfs_target::detach): Use switch_to_no_thread
994 instead of writing to inferior_ptid directly.
995 (do_attach): Change return type to void. Switch to the added
996 thread.
997 (procfs_target::create_inferior): Switch to the added thread.
998 (procfs_do_thread_registers): Don't write to inferior_ptid.
999
18493a00
PA
10002020-06-18 Pedro Alves <palves@redhat.com>
1001
1002 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1003 of writing to inferior_ptid.
1004 (scoped_restore_exited_inferior): Delete.
1005 (handle_vfork_child_exec_or_exit): Simplify using
1006 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1007 instead of writing to inferior_ptid.
1008 (THREAD_STOPPED_BY): Delete.
1009 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1010 (thread_stopped_by_hw_breakpoint): Delete.
1011 (save_waitstatus): Use
1012 scoped_restore_current_thread+switch_to_thread, and call
1013 target_stopped_by_watchpoint instead of
1014 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1015 instead of thread_stopped_by_sw_breakpoint, and
1016 target_stopped_by_hw_breakpoint instead of
1017 thread_stopped_by_hw_breakpoint.
1018 (handle_inferior_event)
1019 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1020 inferior_ptid directly, nor
1021 set_current_inferior/set_current_program_space. Use
1022 switch_to_thread / switch_to_inferior_no_thread instead.
1023
a0776b13
PA
10242020-06-18 Pedro Alves <palves@redhat.com>
1025
1026 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1027 instead of writing to inferior_ptid.
1028
6155c136
PA
10292020-06-18 Pedro Alves <palves@redhat.com>
1030
1031 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1032 added thread.
1033 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1034 to the added thread.
1035 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1036 instead of writing to inferior_ptid.
1037
c5316fc6
PA
10382020-06-18 Pedro Alves <palves@redhat.com>
1039
1040 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1041 (register_to_value_test): Mock a program_space too. Heap-allocate
1042 the address space. Don't write to inferior_ptid. Use
1043 switch_to_thread instead.
1044
8df01799
PA
10452020-06-18 Pedro Alves <palves@redhat.com>
1046
1047 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1048 Delete.
1049 (find_signalled_thread()): New, factored out from
1050 linux_make_corefile_notes and adjusted to handle exited threads.
1051 (linux_make_corefile_notes): Adjust to use the new
1052 find_signalled_thread.
1053
41792d68
PA
10542020-06-18 Pedro Alves <palves@redhat.com>
1055
1056 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1057 of saving/restoring inferior_ptid.
1058
612f258a
TT
10592020-06-17 Tom Tromey <tom@tromey.com>
1060
1061 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1062 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1063 declare.
1064 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1065
efb763a5
SM
10662020-06-15 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1069 of partial symtabs.
1070
2951f6c0
SM
10712020-06-17 Simon Marchi <simon.marchi@efficios.com>
1072
1073 * regformats/reg-arm.dat: Remove.
1074 * regformats/reg-bfin.dat: Remove.
1075 * regformats/reg-cris.dat: Remove.
1076 * regformats/reg-crisv32.dat: Remove.
1077 * regformats/reg-m32r.dat: Remove.
1078 * regformats/reg-tilegx.dat: Remove.
1079 * regformats/reg-tilegx32.dat: Remove.
1080
7d458ea5
SM
10812020-06-17 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * features/Makefile (WHICH): Remove arm files.
1084 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1085 * regformats/arm/arm-with-neon.dat: Remove.
1086 * regformats/arm/arm-with-vfpv2.dat: Remove.
1087 * regformats/arm/arm-with-vfpv3.dat: Remove.
1088
3af96c0d
SM
10892020-06-17 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * features/Makefile (XMLTOC): Remove rx.xml.
1092
b25e22fd
PA
10932020-06-17 Pedro Alves <palves@redhat.com>
1094
1095 * gdbthread.h (thread_control_state) <trap_expected> Update
1096 comments.
1097
a78a19b1
AB
10982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1101 ada_language::lookup_symbol_nonlocal.
1102 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1103 (ada_language::lookup_symbol_nonlocal): New member function,
1104 implementation from ada_lookup_symbol_nonlocal.
1105 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1106 initializer.
1107 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1108 initializer.
1109 (cplus_language::lookup_symbol_nonlocal): New member function.
1110 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1111 (minimal_language_data) Likewise.
1112 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1113 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1114 initializer.
1115 (d_language::lookup_symbol_nonlocal): New member function.
1116 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1117 initializer.
1118 (f_language::lookup_symbol_nonlocal): New member function.
1119 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1120 initializer.
1121 * language.c (unknown_language_data): Likewise.
1122 (auto_language_data): Likewise.
1123 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1124 field.
1125 (language_defn::lookup_symbol_nonlocal): New member function.
1126 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1127 initializer.
1128 * objc-lang.c (objc_language_data): Likewise.
1129 * opencl-lang.c (opencl_language_data): Likewise.
1130 * p-lang.c (pascal_language_data): Likewise.
1131 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1132 rust_language::lookup_symbol_nonlocal.
1133 (rust_language_data): Delete la_lookup_symbol_nonlocal
1134 initializer.
1135 (rust_language::lookup_symbol_nonlocal): New member function,
1136 implementation from rust_lookup_symbol_nonlocal.
1137 * symtab.c (lookup_symbol_aux): Update call to
1138 lookup_symbol_nonlocal.
1139 (basic_lookup_symbol_nonlocal): Rename to...
1140 (language_defn::lookup_symbol_nonlocal): ...this, and update
1141 header comment. Remove language_defn parameter, and replace with
1142 uses of `this'.
1143 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1144
ebe2334e
AB
11452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1148 initializer.
1149 (ada_language::value_print_inner): New member function.
1150 * c-lang.c (c_language_data): Delete la_value_print_inner
1151 initializer.
1152 (cplus_language_data): Likewise.
1153 (asm_language_data): Likewise.
1154 (minimal_language_data): Likewise.
1155 * d-lang.c (d_language_data): Likewise.
1156 (d_language::value_print_inner): New member function.
1157 * f-lang.c (f_language_data): Delete la_value_print_inner
1158 initializer.
1159 (f_language::value_print_inner): New member function.
1160 * f-lang.h (f_value_print_innner): Rename to...
1161 (f_value_print_inner): ...this (note spelling of 'inner').
1162 * f-valprint.c (f_value_print_innner): Rename to...
1163 (f_value_print_inner): ...this (note spelling of 'inner').
1164 * go-lang.c (go_language_data): Delete la_value_print_inner
1165 initializer.
1166 (go_language::value_print_inner): New member function.
1167 * language.c (language_defn::value_print_inner): Define new member
1168 function.
1169 (unk_lang_value_print_inner): Delete.
1170 (unknown_language_data): Delete la_value_print_inner initializer.
1171 (unknown_language::value_print_inner): New member function.
1172 (auto_language_data): Delete la_value_print_inner initializer.
1173 (auto_language::value_print_inner): New member function.
1174 * language.h (language_data): Delete la_value_print_inner field.
1175 (language_defn::value_print_inner): Delcare new member function.
1176 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1177 initializer.
1178 (m2_language::value_print_inner): New member function.
1179 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1180 initializer.
1181 * opencl-lang.c (opencl_language_data): Likewise.
1182 * p-lang.c (pascal_language_data): Likewise.
1183 (pascal_language::value_print_inner): New member function.
1184 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1185 initializer.
1186 (rust_language::value_print_inner): New member function.
1187 * valprint.c (do_val_print): Update call to value_print_inner.
1188
a1d1fa3e
AB
11892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * ada-lang.c (ada_language_data): Delete la_value_print
1192 initializer.
1193 (ada_language::value_print): New member function.
1194 * c-lang.c (c_language_data): Delete la_value_print initializer.
1195 (cplus_language_data): Likewise.
1196 (asm_language_data): Likewise.
1197 (minimal_language_data): Likewise.
1198 * d-lang.c (d_language_data): Likewise.
1199 * f-lang.c (f_language_data): Likewise.
1200 * go-lang.c (go_language_data): Likewise.
1201 * language.c (unk_lang_value_print): Delete.
1202 (language_defn::value_print): Define new member function.
1203 (unknown_language_data): Delete la_value_print initializer.
1204 (unknown_language::value_print): New member function.
1205 (auto_language_data): Delete la_value_print initializer.
1206 (auto_language::value_print): New member function.
1207 * language.h (language_data): Delete la_value_print field.
1208 (language_defn::value_print): Declare new member function.
1209 (LA_VALUE_PRINT): Update call to value_print.
1210 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1211 * objc-lang.c (objc_language_data): Likewise.
1212 * opencl-lang.c (opencl_language_data): Likewise.
1213 * p-lang.c (pascal_language_data): Likewise.
1214 (pascal_language::value_print): New member function.
1215 * rust-lang.c (rust_language_data): Delete la_value_print
1216 initializer.
1217
f16a9f57
AB
12182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * ada-lang.c (ada_watch_location_expression): Rename to
1221 ada_language::watch_location_expression.
1222 (ada_language_data): Delete la_watch_location_expression
1223 initializer.
1224 (ada_language::watch_location_expression): New member function,
1225 implementation from ada_watch_location_expression.
1226 * breakpoint.c (watch_command_1): Update call to
1227 watch_location_expression.
1228 * c-lang.c (c_watch_location_expression): Rename to
1229 language_defn::watch_location_expression.
1230 (c_language_data): Delete la_watch_location_expression
1231 initializer.
1232 (cplus_language_data): Likewise.
1233 (asm_language_data): Likewise.
1234 (minimal_language_data): Likewise.
1235 * c-lang.h (c_watch_location_expression): Delete declaration.
1236 * d-lang.c (d_language_data): Delete la_watch_location_expression
1237 initializer.
1238 * f-lang.c (f_language_data): Likewise.
1239 * go-lang.c (go_language_data): Likewise.
1240 * language.c (language_defn::watch_location_expression): Member
1241 function implementation from c_watch_location_expression.
1242 (unknown_language_data): Delete la_watch_location_expression
1243 initializer.
1244 (auto_language_data): Likewise.
1245 * language.h (language_data): Delete la_watch_location_expression
1246 field.
1247 (language_defn::watch_location_expression): Declare new member
1248 function.
1249 * m2-lang.c (m2_language_data): Delete
1250 la_watch_location_expression 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_watch_location_expression): Rename to
1255 rust_language::watch_location_expression.
1256 (rust_language_data): Delete la_watch_location_expression
1257 initializer.
1258 (rust_language::watch_location_expression): New member function,
1259 implementation from rust_watch_location_expression.
1260
7e56227d
AB
12612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1264 ada_language::collect_symbol_completion_matches.
1265 (ada_language_data): Delete la_collect_symbol_completion_matches
1266 initializer.
1267 (ada_language::collect_symbol_completion_matches): New member
1268 function, implementation from
1269 ada_collect_symbol_completion_matches.
1270 * c-lang.c (c_language_data): Delete
1271 la_collect_symbol_completion_matches initializer.
1272 (cplus_language_data): Likewise.
1273 (asm_language_data): Likewise.
1274 (minimal_language_data): Likewise.
1275 * d-lang.c (d_language_data): Likewise.
1276 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1277 f_language::collect_symbol_completion_matches.
1278 (f_language_data): Delete la_collect_symbol_completion_matches
1279 initializer.
1280 (f_language::collect_symbol_completion_matches) New member
1281 function, implementation from f_collect_symbol_completion_matches.
1282 * go-lang.c (go_language_data): Delete
1283 la_collect_symbol_completion_matches initializer.
1284 * language.c (unknown_language_data): Likewise.
1285 (auto_language_data): Likewise.
1286 * language.h (language_data): Delete
1287 la_collect_symbol_completion_matches field.
1288 (language_defn::collect_symbol_completion_matches): New member
1289 function.
1290 * m2-lang.c (m2_language_data): Delete
1291 la_collect_symbol_completion_matches initializer.
1292 * objc-lang.c (objc_language_data): Likewise.
1293 * opencl-lang.c (opencl_language_data): Likewise.
1294 * p-lang.c (pascal_language_data): Likewise.
1295 * rust-lang.c (rust_language_data): Likewise.
1296 * symtab.c (default_collect_symbol_completion_matches): Delete.
1297 (collect_symbol_completion_matches): Update call to
1298 collect_symbol_completion_matches.
1299 (collect_symbol_completion_matches_type): Likewise.
1300 * symtab.h (default_collect_symbol_completion_matches): Delete
1301 declaration.
1302
53fc67f8
AB
13032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1306 (ada_language_data): Delete la_word_break_characters initializer.
1307 (ada_language::word_break_characters): New member function.
1308 * c-lang.c (c_language_data): Delete la_word_break_characters
1309 initializer.
1310 (cplus_language_data): Likewise.
1311 (asm_language_data): Likewise.
1312 (minimal_language_data): Likewise.
1313 * completer.c: Update global comment.
1314 (advance_to_expression_complete_word_point): Update call to
1315 word_break_characters.
1316 (complete_files_symbols): Likewise.
1317 (complete_line_internal_1): Likewise.
1318 (default_completer_handle_brkchars): Likewise.
1319 (skip_quoted_chars): Likewise.
1320 * d-lang.c (d_language_data): Delete la_word_break_characters
1321 initializer.
1322 * f-lang.c (f_word_break_characters): Delete.
1323 (f_language_data): Delete la_word_break_characters initializer.
1324 (f_language::word_break_characters): New member function.
1325 * go-lang.c (go_language_data): Delete la_word_break_characters
1326 initializer.
1327 * language.c (unknown_language_data): Likewise.
1328 (auto_language_data): Likewise.
1329 * language.h (default_word_break_characters): Move declaration to
1330 earlier in the file.
1331 (language_data): Delete la_word_break_characters field.
1332 (language_defn::word_break_characters): New member function.
1333 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1334 initializer.
1335 * objc-lang.c (objc_language_data): Likewise.
1336 * opencl-lang.c (opencl_language_data): Likewise.
1337 * p-lang.c (pascal_language_data): Likewise.
1338 * rust-lang.c (rust_language_data): Likewise.
1339
c9debfb9
AB
13402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1341
1342 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1343 (ada_language_data): Delete la_get_symbol_name_matcher
1344 initializer.
1345 (language_defn::get_symbol_name_matcher_inner): New member
1346 function.
1347 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1348 initializer.
1349 (cplus_language_data): Likewise.
1350 (cplus_language::get_symbol_name_matcher_inner): New member
1351 function.
1352 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1353 (minimal_language_data): Likewise.
1354 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1355 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1356 initializer.
1357 * dictionary.c (iter_match_first_hashed): Update call to
1358 get_symbol_name_matcher.
1359 (iter_match_next_hashed): Likewise.
1360 (iter_match_next_linear): Likewise.
1361 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1362 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1363 initializer.
1364 (f_language::get_symbol_name_matcher_inner): New member function.
1365 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1366 initializer.
1367 * language.c (default_symbol_name_matcher): Update header comment,
1368 make static.
1369 (language_defn::get_symbol_name_matcher): New definition.
1370 (language_defn::get_symbol_name_matcher_inner): Likewise.
1371 (get_symbol_name_matcher): Delete.
1372 (unknown_language_data): Delete la_get_symbol_name_matcher
1373 initializer.
1374 (auto_language_data): Likewise.
1375 * language.h (language_data): Delete la_get_symbol_name_matcher
1376 field.
1377 (language_defn::get_symbol_name_matcher): New member function.
1378 (language_defn::get_symbol_name_matcher_inner): Likewise.
1379 (default_symbol_name_matcher): Delete declaration.
1380 * linespec.c (find_methods): Update call to
1381 get_symbol_name_matcher.
1382 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1383 initializer.
1384 * minsyms.c (lookup_minimal_symbol): Update call to
1385 get_symbol_name_matcher.
1386 (iterate_over_minimal_symbols): Likewise.
1387 * objc-lang.c (objc_language_data): Delete
1388 la_get_symbol_name_matcher initializer.
1389 * opencl-lang.c (opencl_language_data): Likewise.
1390 * p-lang.c (pascal_language_data): Likewise.
1391 * psymtab.c (psymbol_name_matches): Update call to
1392 get_symbol_name_matcher.
1393 * rust-lang.c (rust_language_data): Delete
1394 la_get_symbol_name_matcher initializer.
1395 * symtab.c (symbol_matches_search_name): Update call to
1396 get_symbol_name_matcher.
1397 (compare_symbol_name): Likewise.
1398
9a49ad8c
AB
13992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * ada-lang.c (ada_language_data): Delete la_compute_program
1402 initializer.
1403 * c-lang.c (c_language_data): Likewise.
1404 (c_language::compute_program): New member function.
1405 (cplus_language_data): Delete la_compute_program initializer.
1406 (cplus_language::compute_program): New member function.
1407 (asm_language_data): Delete la_compute_program initializer.
1408 (minimal_language_data): Likewise.
1409 * c-lang.h (c_compute_program): Update comment.
1410 (cplus_compute_program): Likewise.
1411 * compile/compile-c-support.c (c_compute_program): Likewise.
1412 (cplus_compute_program): Likewise.
1413 * compile/compile.c (compile_to_object): Update call to
1414 la_compute_program.
1415 * d-lang.c (d_language_data): Delete la_compute_program
1416 initializer.
1417 * f-lang.c (f_language_data): Likewise.
1418 * go-lang.c (go_language_data): Likewise.
1419 * language.c (unknown_language_data): Likewise.
1420 (auto_language_data): Likewise.
1421 * language.h (language_data): Delete la_compute_program field.
1422 (language_defn::compute_program): New member function.
1423 * m2-lang.c (m2_language_data): Delete la_compute_program
1424 initializer.
1425 * objc-lang.c (objc_language_data): Likewise.
1426 * opencl-lang.c (opencl_language_data): Likewise.
1427 * p-lang.c (pascal_language_data): Likewise.
1428 * rust-lang.c (rust_language_data): Likewise.
1429
eff93b4d
AB
14302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * ada-lang.c (ada_language_data) Delete
1433 la_class_name_from_physname initializer.
1434 * c-lang.c (c_language_data): Likewise.
1435 (cplus_language_data): Likewise.
1436 (cplus_language::class_name_from_physname): New member function.
1437 (asm_language_data): Delete la_class_name_from_physname
1438 initializer.
1439 (minimal_language_data): Likewise.
1440 * d-lang.c (d_language_data): Likewise.
1441 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1442 method on language_defn class.
1443 (guess_full_die_structure_name): Likewise.
1444 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1445 initializer.
1446 * go-lang.c (go_language_data): Likewise.
1447 * language.c (language_class_name_from_physname): Delete.
1448 (unk_lang_class_name): Delete.
1449 (unknown_language_data): Delete la_class_name_from_physname
1450 initializer.
1451 (auto_language_data): Likewise.
1452 * language.h (language_data): Delete la_class_name_from_physname
1453 field.
1454 (language_defn::class_name_from_physname): New function.
1455 (language_class_name_from_physname): Delete declaration.
1456 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1457 initializer.
1458 * objc-lang.c (objc_language_data): Likewise.
1459 * opencl-lang.c (opencl_language_data): Likewise.
1460 * p-lang.c (pascal_language_data): Likewise.
1461 * rust-lang.c (rust_language_data): Likewise.
1462
de543742
TT
14632020-06-16 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-data.h (STATUS_NAME): New macro.
1466 * tui/tui-layout.c (tui_remove_some_windows)
1467 (initialize_known_windows, tui_register_window)
1468 (tui_layout_split::remove_windows, initialize_layouts)
1469 (tui_new_layout_command): Don't use hard-coded window names.
1470
a350efd4
TT
14712020-06-16 Tom Tromey <tom@tromey.com>
1472
1473 PR tui/25348:
1474 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1475 tui_initialize_readline. Only run once. Call rl_initialize.
1476 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1477 tui_initialize_readline.
1478 * tui/tui-io.c (tui_setup_io): Call
1479 tui_ensure_readline_initialized.
1480 * tui/tui-interp.c (tui_interp::init): Update.
1481
39ec0490
TT
14822020-06-16 Tom Tromey <tom@tromey.com>
1483
1484 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1485 Also preserve the status window.
1486
d2d1ea20
TT
14872020-06-16 Tom Tromey <tom@tromey.com>
1488
1489 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1490 where m_window==nullptr.
1491
66920317
TT
14922020-06-15 Tom Tromey <tromey@adacore.com>
1493
1494 * windows-nat.c (windows_nat::handle_output_debug_string):
1495 Update.
1496 (windows_nat::handle_ms_vc_exception): Update.
1497 * target.h (target_read_string): Change API.
1498 * target.c (target_read_string): Change API.
1499 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1500 Update.
1501 * solib-frv.c (frv_current_sos): Update.
1502 * solib-dsbt.c (dsbt_current_sos): Update.
1503 * solib-darwin.c (darwin_current_sos): Update.
1504 * linux-thread-db.c (inferior_has_bug): Update.
1505 * expprint.c (print_subexp_standard): Update.
1506 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1507 (ada_exception_message_1): Update.
1508
a5d871dd
TT
15092020-06-15 Tom Tromey <tromey@adacore.com>
1510
1511 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1512
670e35fa
TT
15132020-06-15 Tom Tromey <tromey@adacore.com>
1514
1515 * valprint.c (read_string): Update comment.
1516 * target.c (MIN): Remove.
1517 (target_read_string): Rewrite.
1518
f5272a3b
TT
15192020-06-15 Tom Tromey <tromey@adacore.com>
1520
1521 * corefile.c (read_memory_string): Remove.
1522 * ada-valprint.c (ada_value_print_ptr): Update.
1523 * ada-lang.h (ada_tag_name): Change return type.
1524 * ada-lang.c (type_from_tag): Update.
1525 (ada_tag_name_from_tsd): Change return type. Use
1526 target_read_string.
1527 (ada_tag_name): Likewise.
1528 * gdbcore.h (read_memory_string): Don't declare.
1529
2c074f49
HD
15302020-06-14 Hannes Domani <ssbssa@yahoo.de>
1531
1532 * symtab.c (rbreak_command): Ignore Windows drive colon.
1533
6a17d503
SM
15342020-06-12 Simon Marchi <simon.marchi@efficios.com>
1535
1536 * NEWS: Mention removed GDBserver host support.
1537
453c733f
NC
15382020-06-12 Nelson Chu <nelson.chu@sifive.com>
1539
1540 * features/riscv/rebuild-csr-xml.sh: Updated.
1541
2b4e6a3f
TT
15422020-06-11 Tom Tromey <tom@tromey.com>
1543
1544 PR gdb/18318:
1545 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1546
4412332f
JG
15472020-06-09 Jonny Grant <jg@jguk.org>
15482020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1549
1550 * main.c (captured_main_1): Don't print new line after help.
1551 (print_gdb_help): add mailing list and IRC channel information
1552 to --help. Add new lines between items in the footer. Remove
1553 quotes around bug url.
1554
2f33032a
KS
15552020-06-11 Keith Seitz <keiths@redhat.com>
1556
1557 PR gdb/21356
1558 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1559 Resolve typedefs for type length calculations.
1560
7ab96794
TV
15612020-06-10 Tom de Vries <tdevries@suse.de>
1562
1563 PR ada/24713
1564 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1565 (write_psymbols): Enable .gdb_index for ada.
1566 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1567 ada.
1568
e5f3ece2
TV
15692020-06-10 Tom de Vries <tdevries@suse.de>
1570
1571 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1572 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1573 namei" instead of "const char *name" argument.
1574 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1575 dw2_symtab_iter_init.
1576
940da03e
SM
15772020-06-08 Simon Marchi <simon.marchi@efficios.com>
1578
1579 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1580 to use type::field and field::type instead.
1581
b6cdac4b
SM
15822020-06-08 Simon Marchi <simon.marchi@efficios.com>
1583
1584 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1585 to use field::type instead.
1586
5d14b6e5
SM
15872020-06-08 Simon Marchi <simon.marchi@efficios.com>
1588
1589 * gdbtypes.h (struct field) <type, set_type>: New methods.
1590 Rename `type` field to...
1591 <m_type>: ... this. Change references throughout to use type or
1592 set_type methods.
1593 (FIELD_TYPE): Use field::type. Change call sites that modify
1594 the field's type to use field::set_type instead.
1595
3d967001
SM
15962020-06-08 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1599 to use type::index_type instead.
1600
262abc0d
SM
16012020-06-08 Simon Marchi <simon.marchi@efficios.com>
1602
1603 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1604 methods.
1605 (TYPE_INDEX_TYPE): Use type::index_type.
1606 * gdbtypes.c (create_array_type_with_stride): Likewise.
1607
82836c92
TT
16082020-06-07 Tom Tromey <tom@tromey.com>
1609
1610 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1611 parameter.
1612 (generic_value_print): Update.
1613
940dace9
AB
16142020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 Revert commit 982a38f60b0.
1617 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1618
982a38f6
AB
16192020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1622 avoid use after free.
1623
82f06518
TV
16242020-06-05 Tom de Vries <tdevries@suse.de>
1625
1626 * NEWS: Fix typos.
1627
f8c41851
SM
16282020-06-04 Simon Marchi <simon.marchi@efficios.com>
1629
1630 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1631 the per_bfd object.
1632 (dwarf2_read_debug_names): Likewise.
1633 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1634 object when re-using a per_bfd object with an index.
1635
f9b5d5ea
TV
16362020-06-03 Tom de Vries <tdevries@suse.de>
1637
1638 PR symtab/26046
1639 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1640 children for C++.
1641 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1642 DW_TAG_subprogram.
1643
f6eee2d0
AB
16442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * ada-lang.c (ada_language_data): Delete skip_trampoline
1647 initializer.
1648 * c-lang.c (c_language_data): Likewise.
1649 (cplus_language_data): Likewise.
1650 (cplus_language::skip_trampoline): New member function.
1651 (asm_language_data): Delete skip_trampoline initializer.
1652 (minimal_language_data): Likewise.
1653 * d-lang.c (d_language_data): Likewise.
1654 * f-lang.c (f_language_data): Likewise.
1655 * go-lang.c (go_language_data): Likewise.
1656 * language.c (unk_lang_trampoline): Delete function.
1657 (skip_language_trampoline): Update.
1658 (unknown_language_data): Delete skip_trampoline initializer.
1659 (auto_language_data): Likewise.
1660 * language.h (language_data): Delete skip_trampoline field.
1661 (language_defn::skip_trampoline): New function.
1662 * m2-lang.c (m2_language_data): Delete skip_trampoline
1663 initializer.
1664 * objc-lang.c (objc_skip_trampoline): Delete function, move
1665 implementation to objc_language::skip_trampoline.
1666 (objc_language_data): Delete skip_trampoline initializer.
1667 (objc_language::skip_trampoline): New member function with
1668 implementation from objc_skip_trampoline.
1669 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1670 initializer.
1671 * p-lang.c (pascal_language_data): Likewise.
1672 * rust-lang.c (rust_language_data): Likewise.
1673
0a50df5d
AB
16742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1677 (ada_language::demangle): New member function.
1678 * c-lang.c (c_language_data): Delete la_demangle initializer.
1679 (cplus_language_data): Delete la_demangle initializer.
1680 (cplus_language::demangle): New member function.
1681 (asm_language_data): Delete la_demangle initializer.
1682 (minimal_language_data): Delete la_demangle initializer.
1683 * d-lang.c (d_language_data): Delete la_demangle initializer.
1684 (d_language::demangle): New member function.
1685 * f-lang.c (f_language_data): Delete la_demangle initializer.
1686 (f_language::demangle): New member function.
1687 * go-lang.c (go_language_data): Delete la_demangle initializer.
1688 (go_language::demangle): New member function.
1689 * language.c (language_demangle): Update.
1690 (unk_lang_demangle): Delete.
1691 (unknown_language_data): Delete la_demangle initializer.
1692 (unknown_language::demangle): New member function.
1693 (auto_language_data): Delete la_demangle initializer.
1694 (auto_language::demangle): New member function.
1695 * language.h (language_data): Delete la_demangle field.
1696 (language_defn::demangle): New function.
1697 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1698 * objc-lang.c (objc_language_data): Delete la_demangle
1699 initializer.
1700 (objc_language::demangle): New member function.
1701 * opencl-lang.c (opencl_language_data): Delete la_demangle
1702 initializer.
1703 * p-lang.c (pascal_language_data): Likewise.
1704 * rust-lang.c (rust_language_data): Likewise.
1705 (rust_language::demangle): New member function.
1706
fbfb0a46
AB
17072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * ada-lang.c (ada_language_data): Delete la_print_type
1710 initializer.
1711 (ada_language::print_type): New member function.
1712 * c-lang.c (c_language_data): Delete la_print_type initializer.
1713 (c_language::print_type): New member function.
1714 (cplus_language_data): Delete la_print_type initializer.
1715 (cplus_language::print_type): New member function.
1716 (asm_language_data): Delete la_print_type initializer.
1717 (asm_language::print_type): New member function.
1718 (minimal_language_data): Delete la_print_type initializer.
1719 (minimal_language::print_type): New member function.
1720 * d-lang.c (d_language_data): Delete la_print_type initializer.
1721 (d_language::print_type): New member function.
1722 * f-lang.c (f_language_data): Delete la_print_type initializer.
1723 (f_language::print_type): New member function.
1724 * go-lang.c (go_language_data): Delete la_print_type initializer.
1725 (go_language::print_type): New member function.
1726 * language.c (unk_lang_print_type): Delete.
1727 (unknown_language_data): Delete la_print_type initializer.
1728 (unknown_language::print_type): New member function.
1729 (auto_language_data): Delete la_print_type initializer.
1730 (auto_language::print_type): New member function.
1731 * language.h (language_data): Delete la_print_type field.
1732 (language_defn::print_type): New function.
1733 (LA_PRINT_TYPE): Update.
1734 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1735 (m2_language::print_type): New member function.
1736 * objc-lang.c (objc_language_data): Delete la_print_type
1737 initializer.
1738 (objc_language::print_type): New member function.
1739 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1740 to opencl_language::print_type.
1741 (opencl_language_data): Delete la_print_type initializer.
1742 (opencl_language::print_type): New member function, implementation
1743 from opencl_print_type.
1744 * p-lang.c (pascal_language_data): Delete la_print_type
1745 initializer.
1746 (pascal_language::print_type): New member function.
1747 * rust-lang.c (rust_print_type): Delete, implementation moved to
1748 rust_language::print_type.
1749 (rust_language_data): Delete la_print_type initializer.
1750 (rust_language::print_type): New member function, implementation
1751 from rust_print_type.
1752
6f827019
AB
17532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1756 implementation moves to...
1757 (ada_language::sniff_from_mangled_name): ...here. Update return
1758 type.
1759 (ada_language_data): Delete la_sniff_from_mangled_name
1760 initializer.
1761 * c-lang.c (c_language_data): Likewise.
1762 (cplus_language_data): Likewise.
1763 (cplus_language::sniff_from_mangled_name): New member function,
1764 implementation taken from gdb_sniff_from_mangled_name.
1765 (asm_language_data): Delete la_sniff_from_mangled_name
1766 initializer.
1767 (minimal_language_data): Likewise.
1768 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1769 implementation moves to cplus_language::sniff_from_mangled_name.
1770 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1771 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1772 moves to...
1773 (d_language::sniff_from_mangled_name): ...here.
1774 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1775 * f-lang.c (f_language_data): Likewise.
1776 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1777 moves to...
1778 (go_language::sniff_from_mangled_name): ...here.
1779 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1780 * language.c (language_sniff_from_mangled_name): Delete.
1781 (unknown_language_data): Delete la_sniff_from_mangled_name
1782 initializer.
1783 (auto_language_data): Likewise.
1784 * language.h (language_data): Delete la_sniff_from_mangled_name
1785 field.
1786 (language_defn::sniff_from_mangled_name): New function.
1787 (language_sniff_from_mangled_name): Delete declaration.
1788 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1789 field.
1790 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1791 implementation moves to...
1792 (objc_language::sniff_from_mangled_name): ...here.
1793 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1794 * opencl-lang.c (opencl_language_data): Likewise.
1795 * p-lang.c (pascal_language_data): Likewise.
1796 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1797 implementation moves to...
1798 (rust_language::sniff_from_mangled_name): ...here.
1799 (rust_language_data): Delete la_sniff_from_mangled_name
1800 initializer.
1801 * symtab.c (symbol_find_demangled_name): Call
1802 sniff_from_mangled_name member function.
1803
fb8006fd
AB
18042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1807 initializer.
1808 * c-lang.c (c_language_data): Likewise.
1809 (cplus_language_data): Likewise.
1810 (cplus_language::search_name_hash): New member function.
1811 (asm_language_data): Delete la_search_name_hash initializer.
1812 (minimal_language_data): Likewise.
1813 * d-lang.c (d_language_data): Likewise.
1814 * dictionary.c (default_search_name_hash): Rename to...
1815 (language_defn::search_name_hash): ...this.
1816 * f-lang.c (f_language_data): Likewise.
1817 (f_language::search_name_hash): New member function.
1818 * go-lang.c (go_language_data): Delete la_search_name_hash
1819 initializer.
1820 * language.c (unknown_language_data): Likewise.
1821 (auto_language_data): Likewise.
1822 * language.h (struct language_data): Delete la_search_name_hash
1823 field.
1824 (language_defn::search_name_hash): Declare new member function.
1825 (default_search_name_hash): Delete declaration.
1826 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1827 initializer.
1828 * objc-lang.c (objc_language_data): Likewise.
1829 * opencl-lang.c (opencl_language_data): Likewise.
1830 * p-lang.c (pascal_language_data): Likewise.
1831 * rust-lang.c (rust_language_data): Likewise.
1832 * symtab.c (search_name_hash): Update call.
1833
8e25bafe
AB
18342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1837 initializer.
1838 * c-lang.c (class compile_instance): Declare.
1839 (c_language_data): Delete la_get_compile_instance initializer.
1840 (c_language::get_compile_instance): New member function.
1841 (cplus_language_data): Delete la_get_compile_instance initializer.
1842 (cplus_language::get_compile_instance): New member function.
1843 (asm_language_data): Delete la_get_compile_instance initializer.
1844 (minimal_language_data): Likewise.
1845 * c-lang.h (c_get_compile_context): Update comment.
1846 (cplus_get_compile_context): Update comment.
1847 * compile/compile.c (compile_to_object): Update calls, don't rely
1848 on function pointer being NULL.
1849 * d-lang.c (d_language_data): Delete la_get_compile_instance
1850 initializer.
1851 * f-lang.c (f_language_data): Likewise.
1852 * go-lang.c (go_language_data): Likewise.
1853 * language.c (unknown_language_data): Likewise.
1854 (auto_language_data): Likewise.
1855 * language.h (language_data): Delete la_get_compile_instance field.
1856 (language_defn::get_compile_instance): New member function.
1857 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1858 initializer.
1859 * objc-lang.c (objc_language_data): Likewise.
1860 * opencl-lang.c (opencl_language_data): Likewise.
1861 * p-lang.c (pascal_language_data): Likewise.
1862 * rust-lang.c (rust_language_data): Likewise.
1863
4009ee92
AB
18642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * ada-lang.c (ada_add_all_symbols): Update comment.
1867 (ada_iterate_over_symbols): Delete, move implementation to...
1868 (ada_language::iterate_over_symbols): ...here, a new member
1869 function, rewrite to use range based for loop.
1870 (ada_language_data): Delete la_iterate_over_symbols initializer.
1871 * c-lang.c (c_language_data): Likewise.
1872 (cplus_language_data): Likewise.
1873 (asm_language_data): Likewise.
1874 (minimal_language_data): Likewise.
1875 * d-lang.c (d_language_data): Likewise.
1876 * f-lang.c (f_language_data): Likewise.
1877 * go-lang.c (go_language_data): Likewise.
1878 * language.c (unknown_language_data): Likewise.
1879 (auto_language_data): Likewise.
1880 * language.h (language_data): Delete la_iterate_over_symbols field.
1881 (language_defn::iterate_over_symbols): New member function.
1882 (LA_ITERATE_OVER_SYMBOLS): Update.
1883 * linespec.c (iterate_over_all_matching_symtabs): Update.
1884 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1885 initializer.
1886 * objc-lang.c (objc_language_data): Likewise.
1887 * opencl-lang.c (opencl_language_data): Likewise.
1888 * p-lang.c (pascal_language_data): Likewise.
1889 * rust-lang.c (rust_language_data): Likewise.
1890
54f4ca46
AB
18912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 * ada-lang.c (ada_language_data): Delete
1894 la_lookup_transparent_type initializer.
1895 * c-lang.c (c_language_data): Likewise.
1896 (cplus_language_data): Likewise.
1897 (cplus_language::lookup_transparent_type): New member function.
1898 (asm_language_data): Delete la_lookup_transparent_type
1899 initializer.
1900 (minimal_language_data): Likewise.
1901 * d-lang.c (d_language_data): Likewise.
1902 * f-lang.c (f_language_data): Likewise.
1903 * go-lang.c (go_language_data): Likewise.
1904 * language.c (unknown_language_data): Likewise.
1905 (auto_language_data): Likewise.
1906 * language.h (struct language_data): Delete
1907 la_lookup_transparent_type field.
1908 (language_defn::lookup_transparent_type): New member function.
1909 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1910 initializer.
1911 * objc-lang.c (objc_language_data): Likewise.
1912 * opencl-lang.c (opencl_language_data): Likewise.
1913 * p-lang.c (pascal_language_data): Likewise.
1914 * rust-lang.c (rust_language_data): Likewise.
1915 * symtab.c (symbol_matches_domain): Update call.
1916
1fb314aa
AB
19172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1918
1919 * ada-lang.c (ada_language_arch_info): Delete function, move
1920 implementation to...
1921 (ada_language::language_arch_info): ...here, a new member
1922 function.
1923 (ada_language_data): Delete la_language_arch_info.
1924 * c-lang.c (c_language_data): Likewise.
1925 (c_language::language_arch_info): New member function.
1926 (cplus_language_arch_info): Delete function, move
1927 implementation to...
1928 (cplus_language::language_arch_info): ...here, a new member
1929 function.
1930 (cplus_language_data): Delete la_language_arch_info.
1931 (asm_language_data): Likewise.
1932 (asm_language::language_arch_info): New member function.
1933 (minimal_language_data): Delete la_language_arch_info.
1934 (minimal_language::language_arch_info): New member function.
1935 * d-lang.c (d_language_arch_info): Delete function, move
1936 implementation to...
1937 (d_language::language_arch_info): ...here, a new member
1938 function.
1939 (d_language_data): Delete la_language_arch_info.
1940 * f-lang.c (f_language_arch_info): Delete function, move
1941 implementation to...
1942 (f_language::language_arch_info): ...here, a new member
1943 function.
1944 (f_language_data): Delete la_language_arch_info.
1945 * go-lang.c (go_language_arch_info): Delete function, move
1946 implementation to...
1947 (go_language::language_arch_info): ...here, a new member
1948 function.
1949 (go_language_data): Delete la_language_arch_info.
1950 * language.c (unknown_language_data): Likewise.
1951 (unknown_language::language_arch_info): New member function.
1952 (auto_language_data): Delete la_language_arch_info.
1953 (auto_language::language_arch_info): New member function.
1954 (language_gdbarch_post_init): Update call to
1955 la_language_arch_info.
1956 * language.h (language_data): Delete la_language_arch_info
1957 function pointer.
1958 (language_defn::language_arch_info): New function.
1959 * m2-lang.c (m2_language_arch_info): Delete function, move
1960 implementation to...
1961 (m2_language::language_arch_info): ...here, a new member
1962 function.
1963 (m2_language_data): Delete la_language_arch_info.
1964 * objc-lang.c (objc_language_arch_info): Delete function, move
1965 implementation to...
1966 (objc_language::language_arch_info): ...here, a new member
1967 function.
1968 (objc_language_data): Delete la_language_arch_info.
1969 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1970 implementation to...
1971 (opencl_language::language_arch_info): ...here, a new member
1972 function.
1973 (opencl_language_data): Delete la_language_arch_info.
1974 * p-lang.c (pascal_language_arch_info): Delete function, move
1975 implementation to...
1976 (pascal_language::language_arch_info): ...here, a new member
1977 function.
1978 (pascal_language_data): Delete la_language_arch_info.
1979 * rust-lang.c (rust_language_arch_info): Delete function, move
1980 implementation to...
1981 (rust_language::language_arch_info): ...here, a new member
1982 function.
1983 (rust_language_data): Delete la_language_arch_info.
1984
48448202
AB
19852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1988 initializer.
1989 * c-lang.c (c_language_data): Likewise.
1990 (cplus_language_data): Likewise.
1991 (cplus_language::pass_by_reference_info): New method.
1992 (asm_language_data): Delete la_pass_by_reference initializer.
1993 (minimal_language_data): Likewise.
1994 * cp-abi.c (cp_pass_by_reference): Remove use of
1995 default_pass_by_reference.
1996 * d-lang.c (d_language_data): Likewise.
1997 * f-lang.c (f_language_data): Likewise.
1998 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1999 default_pass_by_reference.
2000 * go-lang.c (go_language_data): Likewise.
2001 * language.c (language_pass_by_reference): Update.
2002 (default_pass_by_reference): Delete.
2003 (unknown_language_data): Delete la_pass_by_reference
2004 initializer.
2005 (auto_language_data): Likewise.
2006 * language.h (struct language_data): Delete la_pass_by_reference
2007 field.
2008 (language_defn::pass_by_reference_info): New member function.
2009 (default_pass_by_reference): Delete declaration.
2010 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2011 initializer.
2012 * objc-lang.c (objc_language_data): Likewise.
2013 * opencl-lang.c (opencl_language_data): Likewise.
2014 * p-lang.c (pascal_language_data): Likewise.
2015 * rust-lang.c (rust_language_data): Likewise.
2016
15e5fd35
AB
20172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2018
2019 * ada-lang.c (ada_read_var_value): Delete function, move
2020 implementation to...
2021 (ada_language::read_var_value): ...here.
2022 (ada_language_data): Delete la_read_var_value initializer.
2023 * c-lang.c (c_language_data): Likewise.
2024 (cplus_language_data): Likewise.
2025 (minimal_language_data): Likewise.
2026 * d-lang.c (d_language_data): Likewise.
2027 * f-lang.c (f_language_data): Likewise.
2028 * findvar.c (default_read_var_value): Rename to...
2029 (language_defn::read_var_value): ...this.
2030 * findvar.c (read_var_value): Update header comment, and change to
2031 call member function instead of function pointer.
2032 * go-lang.c (go_language_data): Likewise.
2033 * language.c (unknown_language_data): Delete la_read_var_value
2034 initializer.
2035 (auto_language_data): Likewise.
2036 * language.h (struct language_data): Delete la_read_var_value
2037 field.
2038 (language_defn::read_var_value): New member function.
2039 (default_read_var_value): Delete declaration.
2040 * m2-lang.c (m2_language_data): Delete la_read_var_value
2041 initializer.
2042 * objc-lang.c (objc_language_data): Likewise.
2043 * opencl-lang.c (opencl_language_data): Likewise.
2044 * p-lang.c (pascal_language_data): Likewise.
2045 * rust-lang.c (rust_language_data): Likewise.
2046 * value.h (default_read_var_value): Delete declaration.
2047
5bd40f2a
AB
20482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * ada-lang.c (ada_print_array_index): Delete function, move
2051 implementation to...
2052 (ada_language::print_array_index): ...here.
2053 (ada_language_data): Delete la_print_array_index initializer.
2054 * c-lang.c (c_language_data): Likewise.
2055 (cplus_language_data): Likewise.
2056 (minimal_language_data): Likewise.
2057 * d-lang.c (d_language_data): Likewise.
2058 * f-lang.c (f_language_data): Likewise.
2059 * go-lang.c (go_language_data): Likewise.
2060 * language.c (default_print_array_index): Delete function, move
2061 implementation to...
2062 (language_defn::print_array_index): ...here.
2063 (unknown_language_data): Delete la_print_array_index initializer.
2064 (auto_language_data): Likewise.
2065 * language.h (struct language_data): Delete la_print_array_index
2066 field.
2067 (language_defn::print_array_index): New member function.
2068 (LA_PRINT_ARRAY_INDEX): Update.
2069 (default_print_array_index): Delete declaration.
2070 * m2-lang.c (m2_language_data): Delete la_print_array_index
2071 initializer.
2072 * objc-lang.c (objc_language_data): Likewise.
2073 * opencl-lang.c (opencl_language_data): Likewise.
2074 * p-lang.c (pascal_language_data): Likewise.
2075 * rust-lang.c (rust_language_data): Likewise.
2076
0874fd07
AB
20772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * gdb/ada-lang.c (ada_language_defn): Convert to...
2080 (ada_language_data): ...this.
2081 (class ada_language): New class.
2082 (ada_language_defn): New static global.
2083 * gdb/c-lang.c (c_language_defn): Convert to...
2084 (c_language_data): ...this.
2085 (class c_language): New class.
2086 (c_language_defn): New static global.
2087 (cplus_language_defn): Convert to...
2088 (cplus_language_data): ...this.
2089 (class cplus_language): New class.
2090 (cplus_language_defn): New static global.
2091 (asm_language_defn): Convert to...
2092 (asm_language_data): ...this.
2093 (class asm_language): New class.
2094 (asm_language_defn): New static global.
2095 (minimal_language_defn): Convert to...
2096 (minimal_language_data): ...this.
2097 (class minimal_language): New class.
2098 (minimal_language_defn): New static global.
2099 * gdb/d-lang.c (d_language_defn): Convert to...
2100 (d_language_data): ...this.
2101 (class d_language): New class.
2102 (d_language_defn): New static global.
2103 * gdb/f-lang.c (f_language_defn): Convert to...
2104 (f_language_data): ...this.
2105 (class f_language): New class.
2106 (f_language_defn): New static global.
2107 * gdb/go-lang.c (go_language_defn): Convert to...
2108 (go_language_data): ...this.
2109 (class go_language): New class.
2110 (go_language_defn): New static global.
2111 * gdb/language.c (unknown_language_defn): Remove declaration.
2112 (current_language): Initialize to nullptr, real initialization is
2113 moved to _initialize_language.
2114 (languages): Delete global.
2115 (language_defn::languages): Define.
2116 (set_language_command): Use language_defn::languages.
2117 (set_language): Likewise.
2118 (range_error): Likewise.
2119 (language_enum): Likewise.
2120 (language_def): Likewise.
2121 (add_set_language_command): Use language_def::languages for the
2122 language list, and language_def to lookup language pointers.
2123 (skip_language_trampoline): Use language_defn::languages.
2124 (unknown_language_defn): Convert to...
2125 (unknown_language_data): ...this.
2126 (class unknown_language): New class.
2127 (unknown_language_defn): New static global.
2128 (auto_language_defn): Convert to...
2129 (auto_language_data): ...this.
2130 (class auto_language): New class.
2131 (auto_language_defn): New static global.
2132 (language_gdbarch_post_init): Use language_defn::languages.
2133 (_initialize_language): Initialize current_language.
2134 * gdb/language.h (struct language_defn): Rename to...
2135 (struct language_data): ...this.
2136 (struct language_defn): New.
2137 (auto_language_defn): Delete.
2138 (unknown_language_defn): Delete.
2139 (minimal_language_defn): Delete.
2140 (ada_language_defn): Delete.
2141 (asm_language_defn): Delete.
2142 (c_language_defn): Delete.
2143 (cplus_language_defn): Delete.
2144 (d_language_defn): Delete.
2145 (f_language_defn): Delete.
2146 (go_language_defn): Delete.
2147 (m2_language_defn): Delete.
2148 (objc_language_defn): Delete.
2149 (opencl_language_defn): Delete.
2150 (pascal_language_defn): Delete.
2151 (rust_language_defn): Delete.
2152 * gdb/m2-lang.c (m2_language_defn): Convert to...
2153 (m2_language_data): ...this.
2154 (class m2_language): New class.
2155 (m2_language_defn): New static global.
2156 * gdb/objc-lang.c (objc_language_defn): Convert to...
2157 (objc_language_data): ...this.
2158 (class objc_language): New class.
2159 (objc_language_defn): New static global.
2160 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2161 (opencl_language_data): ...this.
2162 (class opencl_language): New class.
2163 (opencl_language_defn): New static global.
2164 * gdb/p-lang.c (pascal_language_defn): Convert to...
2165 (pascal_language_data): ...this.
2166 (class pascal_language): New class.
2167 (pascal_language_defn): New static global.
2168 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2169 language pointer, update comment format.
2170 * gdb/rust-lang.c (rust_language_defn): Convert to...
2171 (rust_language_data): ...this.
2172 (class rust_language): New class.
2173 (rust_language_defn): New static global.
2174
1313c56e
AB
21752020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2178 member variable.
2179 <m_stmt_at_address>: New member variable.
2180 (lnp_state_machine::record_line): Don't record some lines, update
2181 tracking of is_stmt at the same address.
2182 (lnp_state_machine::lnp_state_machine): Initialise new member
2183 variables.
2184
b7ed9f3d
ST
21852020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2186
2187 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2188 "-include gnu-nat-mig.h".
2189 * gnu-nat-mig.h: New file.
2190 * gnu-nat.c: Include "gnu-nat-mig.h".
2191 (exc_server, msg_reply_server, notify_server,
2192 process_reply_server): Remove declarations.
2193
14a8ad62
ST
21942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2195
2196 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2197 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2198 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2199 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2200 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2201 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2202 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2203 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2204 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2205 to gnu_nat_target class.
2206 * gnu-nat.c: Likewise.
2207 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2208 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2209 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2210 object.
2211 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2212 instead of `gnu_target'.
2213
0af5e106
ST
22142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2215
2216 * i386-gnu-tdep.c: Include "gdbcore.h"
2217 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2218 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2219 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2220 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2221 i386_gnu_sigcontext_addr): New functions
2222 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2223 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2224 tdep.
2225
078f2fc9
ST
22262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2227
2228 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2229 before fork_inferior call. Avoid calling it if target_is_pushed returns
2230 true.
2231
53dff92c
ST
22322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2233
2234 * gnu-nat.h (gnu_target): New variable declaration.
2235 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2236 gnu_target.
2237 * gnu-nat.c (gnu_target): New variable.
2238 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2239 add_thread_silent, and add_thread calls.
2240 (gnu_nat_target::create_inferior): Pass gnu_target to
2241 add_thread_silent, thread_change_ptid call.
2242 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2243 call.
2244
5a8b8627
ST
22452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2246
2247 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2248 (gnu_nat_target::find_memory_regions): Remove unused
2249 `old_address' variable.
2250
366f550a
ST
22512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2252
2253 * gnu-nat.c: Include "gdbarch.h".
2254
f14871bf
ST
22552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2256
2257 * reply_mig_hack.awk (Error return): Cast function through
2258 void *, to bypass compiler function call check.
2259
c6887cfb
ST
22602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2261
2262 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2263 $(srcdir)/reply_mig_hack.awk.
2264
6930bffe
ST
22652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2266
2267 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2268
112c22ed
JG
22692020-05-30 Jonny Grant <jg@jguk.org>
2270
2271 * configure.ac (ACX_BUGURL): change bug URL to https.
2272
f68f85b5
PA
22732020-05-30 Pedro Alves <palves@redhat.com>
2274
2275 * cp-support.c (replace_typedefs_template): New.
2276 (replace_typedefs_qualified_name): Handle
2277 DEMANGLE_COMPONENT_TEMPLATE.
2278
976ca316
SM
22792020-05-29 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2282 dwarf2/index-cache.h, dwarf2/index-write.c,
2283 dwarf2/index-write.h, dwarf2/line-header.c,
2284 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2285 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2286 variables and fields from `dwarf2_per_objfile` to just
2287 `per_objfile` throughout.
2288
989ade05
SM
22892020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2290
2291 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2292 <push_dwarf_reg_entry_value>: Add comment.
2293
c47bae85
KB
22942020-05-28 Kevin Buettner <kevinb@redhat.com>
2295 Keith Seitz <keiths@redhat.com>
2296
2297 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2298 instead of PyEval_ReleaseLock.
2299 (class gdbpy_gil): Move to earlier in file.
2300 (finalize_python): Set gdb_python_initialized.
2301 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2302 when not initialized.
2303
44486dcf
SM
23042020-05-28 Simon Marchi <simon.marchi@efficios.com>
2305
2306 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2307 <push_dwarf_reg_entry_value>: Remove assert. Override
2308 per_objfile with caller_per_objfile.
2309
f030440d
TV
23102020-05-28 Tom de Vries <tdevries@suse.de>
2311
2312 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2313 PR gold/15646 workaround to symbol kind "type".
2314
f0fbb768
TT
23152020-05-27 Tom Tromey <tromey@adacore.com>
2316
2317 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2318
af0b2a3e
TT
23192020-05-27 Tom Tromey <tromey@adacore.com>
2320
2321 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2322 Use htab_find_with_hash.
2323 <add_abbrev>: Remove "abbrev_number" parameter.
2324 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2325 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2326 (hash_abbrev): Add comment.
2327 (abbrev_table::lookup_abbrev): Move to header file.
2328 (abbrev_table::read): Update.
2329
7d00ffec
TT
23302020-05-27 Tom Tromey <tromey@adacore.com>
2331
2332 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2333 method.
2334 <canonical_name>: New member.
2335 <raw_name>: Rename from "name".
2336 (partial_die_info): Initialize canonical_name.
2337 (scan_partial_symbols): Check raw_name.
2338 (partial_die_parent_scope, partial_die_full_name)
2339 (add_partial_symbol, add_partial_subprogram)
2340 (add_partial_enumeration, load_partial_dies): Use "name" method.
2341 (partial_die_info::name): New method.
2342 (partial_die_info::read, guess_partial_die_structure_name)
2343 (partial_die_info::fixup): Update.
2344
697bba18
TT
23452020-05-27 Tom Tromey <tromey@adacore.com>
2346
2347 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2348 <get_ref_die_offset>: Inline.
2349 <get_ref_die_offset_complaint>: New method.
2350 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2351 (attribute::get_ref_die_offset_complaint): Rename from
2352 get_ref_die_offset. Just issue complaint.
2353
c17ace43
HD
23542020-05-27 Hannes Domani <ssbssa@yahoo.de>
2355
2356 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2357
96445f0b
HD
23582020-05-27 Hannes Domani <ssbssa@yahoo.de>
2359
2360 * exec.c (exec_file_attach): Use errno value of first openp failure.
2361
ac637ec3
HD
23622020-05-27 Hannes Domani <ssbssa@yahoo.de>
2363
2364 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2365 Don't close thread handle.
2366
17ee85fc
TT
23672020-05-27 Tom Tromey <tom@tromey.com>
2368 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2371 shared_ptr.
2372 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2373 member.
2374 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2375 dwarf2_per_bfd_objfile_data_key>: New globals.
2376 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2377 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2378 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2379 shared.
2380 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2381 short-circuit when sharing.
2382 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2383 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2384
39b16f87
SM
23852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2386
2387 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2388 to...
2389 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2390 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2391
fcf23d5b
SM
23922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2395 build_name_components, find_name_components_bounds>:
2396 Add per_objfile parameter.
2397 (struct mapped_index) <symbol_name_at>: Likewise.
2398 (struct mapped_debug_names): Remove constructor.
2399 <dwarf2_per_objfile>: Remove field.
2400 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2401 (mapped_index_base::find_name_components_bounds,
2402 mapped_index_base::build_name_components,
2403 dw2_expand_symtabs_matching_symbol): Likewise.
2404 (class mock_mapped_index) <symbol_name_at>: Likewise.
2405 (check_match): Likewise.
2406 (check_find_bounds_finds): Likewise.
2407 (test_mapped_index_find_name_component_bounds): Update.
2408 (CHECK_MATCH): Update.
2409 (dw2_expand_symtabs_matching): Update.
2410 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2411 per_objfile parameter.
2412 <find_vec_in_debug_names>: Likewise.
2413 <m_per_objfile>: New field.
2414 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2415 parameter.
2416 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2417 (dw2_debug_names_iterator::next): Update.
2418 (dw2_debug_names_lookup_symbol): Update.
2419 (dw2_debug_names_expand_symtabs_for_function): Update.
2420 (dw2_debug_names_map_matching_symbols): Update.
2421 (dw2_debug_names_expand_symtabs_matching): Update.
2422 (dwarf2_read_debug_names): Update.
2423
7188ed02
SM
24242020-05-27 Simon Marchi <simon.marchi@efficios.com>
2425
2426 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2427 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2428 move to dwarf2_per_objfile.
2429 <read_in_chain>: Remove.
2430 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2431 remove_all_cus, age_comp_units>: New methods.
2432 <m_dwarf2_cus>: New member.
2433 (struct dwarf2_per_cu_data) <cu>: Remove.
2434 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2435 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2436 moved to methods of dwarf2_per_objfile.
2437 (dwarf2_clear_marks): Remove.
2438 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2439 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2440 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2441 (dwarf2_per_objfile::remove_all_cus): New.
2442 (class free_cached_comp_units) <~free_cached_comp_units>:
2443 Update.
2444 (load_cu): Update.
2445 (dw2_do_instantiate_symtab): Adjust.
2446 (fill_in_sig_entry_from_dwo_entry): Adjust.
2447 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2448 (cutu_reader::cutu_reader): Likewise.
2449 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2450 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2451 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2452 and dwarf2_per_objfile::age_comp_units.
2453 (load_partial_comp_unit): Update.
2454 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2455 (process_queue): Likewise.
2456 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2457 backlink.
2458 (dwarf2_read_addr_index): Likewise.
2459 (follow_die_offset): Likewise.
2460 (dwarf2_fetch_die_loc_sect_off): Likewise.
2461 (dwarf2_fetch_constant_bytes): Likewise.
2462 (dwarf2_fetch_die_type_sect_off): Likewise.
2463 (follow_die_sig_1): Likewise.
2464 (load_full_type_unit): Likewise.
2465 (read_signatured_type): Likewise.
2466 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2467 (dwarf2_cu::~dwarf2_cu): Remove.
2468 (dwarf2_per_objfile::get_cu): New.
2469 (dwarf2_per_objfile::set_cu): New.
2470 (age_cached_comp_units): Rename to...
2471 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2472 to std::unordered_map.
2473 (free_one_cached_comp_unit): Rename to...
2474 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2475 to std::unordered_map.
2476 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2477 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2478 a dwarf2_per_objfile in data.
2479 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2480 (dwarf2_clear_marks): Remove.
2481
2e671100
SM
24822020-05-27 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2485 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2486 (init_tu_and_read_dwo_dies): Likewise.
2487 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2488 (cutu_reader::cutu_reader): Likewise.
2489 (load_partial_comp_unit): Likewise.
2490 (process_psymtab_comp_unit): Update.
2491 (build_type_psymtabs_1): Update.
2492 (process_skeletonless_type_unit): Update.
2493 (load_full_comp_unit): Update.
2494 (find_partial_die): Update.
2495 (dwarf2_read_addr_index): Update.
2496 (read_signatured_type): Update.
2497
2e6a9f79
SM
24982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2499
2500 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2501 m_header_read_in>: New fields.
2502 <get_header>: New method.
2503 * dwarf2/read.c (per_cu_header_read_in): Remove.
2504 (dwarf2_per_cu_data::get_header): New.
2505 (dwarf2_per_cu_data::addr_size): Update.
2506 (dwarf2_per_cu_data::offset_size): Update.
2507 (dwarf2_per_cu_data::ref_addr_size): Update.
2508
1b555f17
SM
25092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2512 (dw2_do_instantiate_symtab): Update.
2513 (queue_and_load_all_dwo_tus): Change parameter from
2514 dwarf2_per_cu_data to dwarf2_cu.
2515 (dwarf2_fetch_die_loc_sect_off): Update.
2516 (dwarf2_fetch_constant_bytes): Update.
2517 (dwarf2_fetch_die_type_sect_off): Update.
2518
8fc0b21d
SM
25192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2520
2521 * dwarf2/read.c (process_full_comp_unit,
2522 process_full_type_unit): Remove per_cu, per_objfile paramters.
2523 Add dwarf2_cu parameter.
2524 (process_queue): Update.
2525
168c9250
SM
25262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * dwarf2/read.c (create_cu_from_index_list): Replace
2529 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2530 (create_cus_from_index_list): Likewise.
2531 (create_cus_from_index): Likewise.
2532 (create_signatured_type_table_from_index): Likewise.
2533 (create_cus_from_debug_names_list): Likewise.
2534 (create_cus_from_debug_names): Likewise.
2535 (dwarf2_read_gdb_index): Update.
2536 (dwarf2_read_debug_names): Update.
2537
e286671b
TT
25382020-05-27 Tom Tromey <tom@tromey.com>
2539 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * dwarf2/read.h (struct dwarf2_per_objfile)
2542 <get_type_for_signatured_type, set_type_for_signatured_type>:
2543 New methods.
2544 <m_type_map>: New member.
2545 (struct signatured_type) <type>: Remove.
2546 * dwarf2/read.c
2547 (dwarf2_per_objfile::get_type_for_signatured_type,
2548 dwarf2_per_objfile::set_type_for_signatured_type): New.
2549 (get_signatured_type): Use new methods.
2550
8adb8487
TT
25512020-05-27 Tom Tromey <tom@tromey.com>
2552 Simon Marchi <simon.marchi@efficios.com>
2553
2554 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2555 (struct dwarf2_per_objfile) <type_units>: New member.
2556 <get_type_unit_group_unshareable>: New method.
2557 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2558 num_symtabs, symtabs>: Remove; move to
2559 type_unit_group_unshareable.
2560 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2561 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2562 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2563
127bbf4b
SM
25642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * dwarf2/read.h (struct dwarf2_per_cu_data):
2567 <dwarf2_per_objfile>: Remove.
2568 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2569 dwarf2_per_objfile.
2570 (create_signatured_type_table_from_index): Likewise.
2571 (create_signatured_type_table_from_debug_names): Likewise.
2572 (create_debug_type_hash_table): Likewise.
2573 (fill_in_sig_entry_from_dwo_entry): Likewise.
2574 (create_type_unit_group): Likewise.
2575 (read_comp_units_from_section): Likewise.
2576 (create_cus_hash_table): Likewise.
2577
f6e649dd
SM
25782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2581 dwarf2_per_cu_data::dwarf2_per_objfile.
2582 (compute_compunit_symtab_includes): Likewise.
2583 (dwarf2_cu::start_symtab): Likewise.
2584
aa66c379
SM
25852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2588 parameter.
2589 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2590 (read_namespace_alias): Update.
2591 (lookup_die_type): Update.
2592 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2593 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2594 Update.
2595 (disassemble_dwarf_expression): Update.
2596
120ce1b5
SM
25972020-05-27 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * dwarf2/read.h (struct dwarf2_queue_item): Add
2600 dwarf2_per_objfile parameter, assign new parameter.
2601 <per_objfile>: New field.
2602 * dwarf2/read.c (free_one_cached_comp_unit): Add
2603 dwarf2_per_objfile parameter.
2604 (queue_comp_unit): Likewise.
2605 (dw2_do_instantiate_symtab): Update.
2606 (process_psymtab_comp_unit): Update.
2607 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2608 (process_imported_unit_die): Update.
2609 (queue_and_load_dwo_tu): Update.
2610 (follow_die_offset): Update.
2611 (follow_die_sig_1): Update.
2612
9f47c707
SM
26132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2614
2615 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2616 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2617 (read_call_site_scope): Assign per_objfile.
2618 (dwarf2_per_cu_data::objfile): Remove.
2619 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2620 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2621 dwarf2_per_objfile parameter.
2622 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2623 dwarf2_per_objfile parameter.
2624 (dwarf_expr_reg_to_entry_parameter): Add output
2625 dwarf2_per_objfile parameter.
2626 (locexpr_get_frame_base): Update.
2627 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2628 <push_dwarf_reg_entry_value>: Update.
2629 <call_site_to_target_addr>: Update.
2630 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2631 parameter.
2632 (value_of_dwarf_reg_entry): Update.
2633 (rw_pieced_value): Update.
2634 (indirect_synthetic_pointer): Update.
2635 (dwarf2_evaluate_property): Update.
2636 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2637 parameter.
2638 (locexpr_read_variable): Update.
2639 (locexpr_get_symbol_read_needs): Update.
2640 (loclist_read_variable): Update.
2641
14095eb3
SM
26422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2643
2644 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2645 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2646 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2647 parameter.
2648 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2649 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2650 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2651 parameter.
2652 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2653 sect_variable_value): Add dwarf2_per_objfile parameter.
2654 (class dwarf_evaluate_loc_desc) <dwarf_call,
2655 dwarf_variable_value>: Update.
2656 (fetch_const_value_from_synthetic_pointer): Add
2657 dwarf2_per_objfile parameter.
2658 (fetch_const_value_from_synthetic_pointer): Update.
2659 (coerced_pieced_ref): Update.
2660 (class symbol_needs_eval_context) <dwarf_call,
2661 dwarf_variable_value>: Update.
2662 (dwarf2_compile_expr_to_ax): Update.
2663
3c3cd3d4
SM
26642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2665
2666 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2667 parameter.
2668 (dwarf2_evaluate_loc_desc_full): Update.
2669
82ca3f51
SM
26702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2671
2672 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2673 parameter.
2674 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2675 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2676 dwarf2_per_objfile parameter.
2677 (decode_debug_loc_dwo_addresses): Likewise.
2678 (dwarf2_find_location_expression): Update.
2679 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2680 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2681 parameter.
2682 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2683 parameter.
2684 (locexpr_describe_location_1): Likewise.
2685 (locexpr_describe_location): Update.
2686
4b167ea1
SM
26872020-05-27 Simon Marchi <simon.marchi@efficios.com>
2688
2689 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2690 Remove.
2691 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2692 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2693 (dwarf2_compile_property_to_c): Update.
2694 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2695 use text offset from objfile.
2696 (locexpr_tracepoint_var_ref): Update.
2697 (locexpr_generate_c_location): Update.
2698 (loclist_describe_location): Update.
2699 (loclist_tracepoint_var_ref): Update.
2700 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2701 dwarf2_per_objfile parameter.
2702 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2703 use text offset from objfile.
2704 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2705
89b07335
SM
27062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2707
2708 * dwarf2/expr.h (struct dwarf_expr_context)
2709 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2710 <offset>: Remove.
2711 <per_objfile>: New member.
2712 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2713 dwarf2_per_objfile parameter. Don't set offset, set
2714 per_objfile.
2715 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2716 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2717 a dwarf2_per_objfile object instead of an offset.
2718 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2719 constructor.
2720 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2721 to dwarf2_expr_executor constructor. Don't set offset.
2722 (dwarf2_fetch_cfa_info): Update.
2723 (struct dwarf2_frame_cache) <text_offset>: Remove.
2724 <per_objfile>: New field.
2725 (dwarf2_frame_cache): Update.
2726 (dwarf2_frame_prev_register): Update.
2727 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2728 <dwarf_evaluate_loc_desc>: Add constructor.
2729 (dwarf2_evaluate_loc_desc_full): Update.
2730 (dwarf2_locexpr_baton_eval): Update.
2731 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2732 Add constructor.
2733 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2734
293e7e51
SM
27352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2736
2737 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2738 addr_sized_int_type>: Move to dwarf2_cu.
2739 <int_type>: Move to dwarf2_per_objfile.
2740 (struct dwarf2_per_objfile) <int_type>: Move here.
2741 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2742 addr_sized_int_type>: Move here.
2743 (read_func_scope): Update.
2744 (read_array_type): Update.
2745 (read_tag_string_type): Update.
2746 (attr_to_dynamic_prop): Update.
2747 (dwarf2_per_cu_data::int_type): Rename to...
2748 (dwarf2_per_objfile::int_type): ... this.
2749 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2750 (dwarf2_cu::addr_sized_int_type): ... this.
2751 (read_subrange_type): Update.
2752 (dwarf2_per_cu_data::addr_type): Rename to...
2753 (dwarf2_cu::addr_type): ... this.
2754 (set_die_type): Update.
2755
64874a40
SM
27562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2759 data through per_cu->cu.
2760
4ab09049
SM
27612020-05-27 Simon Marchi <simon.marchi@efficios.com>
2762
2763 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2764 dwarf2_per_cu_data parameter fo dwarf2_cu.
2765 (lookup_dwo_type_unit): Likewise.
2766 (read_cutu_die_from_dwo): Likewise.
2767 (lookup_dwo_unit): Likewise.
2768 (open_and_init_dwo_file): Likewise.
2769 (lookup_dwo_cutu): Likewise.
2770 (lookup_dwo_comp_unit): Likewise.
2771 (lookup_dwo_type_unit): Likewise.
2772 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2773 (cutu_reader::cutu_reader): Update.
2774
47b14e86
SM
27752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2778 parameter.
2779 (process_full_type_unit): Likewise.
2780 (process_queue): Update.
2781
43182c09
SM
27822020-05-27 Simon Marchi <simon.marchi@efficios.com>
2783
2784 * dwarf2/read.c (recursively_compute_inclusions): Add
2785 dwarf2_per_objfile parameter.
2786 (compute_compunit_symtab_includes): Likewise.
2787 (process_cu_includes): Update.
2788
7aa104c4
SM
27892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2792 parameter.
2793 (create_type_unit_group): Update.
2794 (process_psymtab_comp_unit_reader): Update.
2795 (build_type_psymtabs_reader): Update.
2796
e3beb21d
SM
27972020-05-27 Simon Marchi <simon.marchi@efficios.com>
2798
2799 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2800 object through m_this_cu->cu.
2801
d460f660
SM
28022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2803
2804 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2805 the info parameter.
2806 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2807
ab432490
SM
28082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2809
2810 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2811 per_objfile parameter.
2812 (load_full_type_unit): Add per_objfile parameter.
2813 (read_signatured_type): Likewise.
2814 (load_full_comp_unit): Likewise.
2815 (load_cu): Likewise.
2816 (dw2_do_instantiate_symtab): Likewise.
2817 (dw2_get_file_names): Likewise.
2818 (dw2_map_symtabs_matching_filename): Update.
2819 (dw_expand_symtabs_matching_file_matcher): Update.
2820 (dw2_map_symbol_filenames): Update.
2821 (process_psymtab_comp_unit): Add per_objfile parameter.
2822 (build_type_psymtabs_1): Update.
2823 (process_skeletonless_type_unit): Update.
2824 (dwarf2_build_psymtabs_hard): Update.
2825 (load_partial_comp_unit): Add per_objfile parameter.
2826 (scan_partial_symbols): Update.
2827 (load_full_comp_unit): Add per_objfile parameter.
2828 (process_imported_unit_die): Update.
2829 (create_cus_hash_table): Update.
2830 (find_partial_die): Update.
2831 (dwarf2_read_addr_index): Update.
2832 (follow_die_offset): Update.
2833 (dwarf2_fetch_die_loc_sect_off): Update.
2834 (dwarf2_fetch_constant_bytes): Update.
2835 (dwarf2_fetch_die_type_sect_off): Update.
2836 (follow_die_sig_1): Update.
2837 (load_full_type_unit): Add per_objfile parameter.
2838 (read_signatured_type): Likewise.
2839
313bad1b
SM
28402020-05-27 Simon Marchi <simon.marchi@efficios.com>
2841
2842 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2843 of objfile_name.
2844
c3699833
SM
28452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2846
2847 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2848 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2849 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2850 field.
2851 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2852 (create_cus_from_index): Update.
2853 (dwarf2_read_gdb_index): Update.
2854 (create_cus_from_debug_names): Update.
2855 (dwarf2_read_debug_names): Update.
2856 (get_abbrev_section_for_cu): Update.
2857 (create_all_comp_units): Update.
2858 (read_attribute_value): Update.
2859 (get_debug_line_section): Update.
2860 * dwarf2/index-cache.c (index_cache::store): Update.
2861 * dwarf2/index-write.c (save_gdb_index_command): Update.
2862 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2863
1859c670
SM
28642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2867 member.
2868 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2869 dwarf2_per_cu_data::per_bfd.
2870 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2871 (create_type_unit_group): Likewise.
2872 (queue_comp_unit): Remove reference to
2873 per_cu->dwarf2_per_objfile.
2874 (maybe_queue_comp_unit): Likewise.
2875 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2876 (create_cus_hash_table): Assign new field.
2877
5e22e966
SM
28782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * dwarf2/read.c: Replace
2881 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2882 dwarf2_cu->per_objfile throughout.
2883
97a1449a
SM
28842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2887 parameter, don't use per_cu->dwarf2_per_objfile.
2888 (dw2_instantiate_symtab): Likewise.
2889 (dw2_find_last_source_symtab): Update.
2890 (dw2_map_expand_apply): Update.
2891 (dw2_lookup_symbol): Update.
2892 (dw2_expand_symtabs_for_function): Update.
2893 (dw2_expand_all_symtabs): Update.
2894 (dw2_expand_symtabs_with_fullname): Update.
2895 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2896 don't use per_cu->dwarf2_per_objfile.
2897 (dw2_expand_marked_cus): Update.
2898 (dw2_find_pc_sect_compunit_symtab): Update.
2899 (dw2_debug_names_lookup_symbol): Update.
2900 (dw2_debug_names_expand_symtabs_for_function): Update.
2901 (dw2_debug_names_map_matching_symbols): Update.
2902 (dwarf2_psymtab::expand_psymtab): Update.
2903
9e021579
SM
29042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2905
2906 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2907 <per_objfile>: New member.
2908 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2909 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2910 call to dwarf2_cu.
2911 (cutu_reader::cutu_reader): Update.
2912 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2913
ae090bdb
SM
29142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2915
2916 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2917 struct dwarf2_per_objfile.
2918 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2919 dwarf2_per_bfd.
2920 * dwarf2/read.c (set_die_type): Update.
2921 (get_die_type_at_offset): Update.
2922
af758d11
SM
29232020-05-27 Tom Tromey <tom@tromey.com>
2924 Simon Marchi <simon.marchi@efficios.com>
2925
2926 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2927 method.
2928 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2929 get_symtab, set_symtab>: New methods.
2930 <m_symtabs>: New field.
2931 (struct dwarf2_psymtab): Derive from partial_symtab.
2932 <readin_p, get_compunit_symtab>: Declare methods.
2933 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2934 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2935 New methods.
2936 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2937 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2938 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2939 (dw2_symtab_iter_next, dw2_print_stats)
2940 (dw2_expand_symtabs_with_fullname)
2941 (dw2_expand_symtabs_matching_one)
2942 (dw_expand_symtabs_matching_file_matcher)
2943 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2944 (dw2_debug_names_iterator::next)
2945 (dw2_debug_names_map_matching_symbols)
2946 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2947 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2948 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2949 New methods.
2950 (get_compunit_symtab, process_full_comp_unit)
2951 (process_full_type_unit): Update.
2952 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2953
5989a64e
SM
29542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2955
2956 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2957 then introduce a new dwarf2_per_objfile type.
2958 <read_line_string>: Move to the new dwarf2_per_objfile type.
2959 <objfile>: Likewise.
2960 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2961 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2962 dwarf2_per_objfile->per_bfd.
2963 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2964 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2965 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2966 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2967 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2968 (dwarf2_per_objfile::locate_sections): Rename to...
2969 (dwarf2_per_bfd::locate_sections): ... this.
2970 (dwarf2_per_objfile::get_cutu): Rename to...
2971 (dwarf2_per_bfd::get_cutu): ... this.
2972 (dwarf2_per_objfile::get_cu): Rename to...
2973 (dwarf2_per_bfd::get_cu): ... this.
2974 (dwarf2_per_objfile::get_tu): Rename to...
2975 (dwarf2_per_bfd::get_tu): ... this.
2976 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2977 (dwarf2_per_bfd::allocate_per_cu): ... this.
2978 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2979 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2980 (get_gdb_index_contents_ftype): Change parameter from
2981 dwarf2_per_objfile to dwarf2_per_bfd.
2982 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2983 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2984
a50264ba
TT
29852020-05-27 Tom Tromey <tom@tromey.com>
2986 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2989 (allocate_piece_closure): Set "per_objfile" member.
2990 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2991 (locexpr_describe_location, loclist_describe_location): Use new
2992 member.
2993 * dwarf2/read.c (read_call_site_scope)
2994 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2995 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2996 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2997 handle_data_member_location): Set per_objfile member.
2998 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2999 member.
3000 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3001
d3473f0c
TT
30022020-05-27 Tom Tromey <tom@tromey.com>
3003
3004 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3005 allocate_signatured_type>: Declare new methods.
3006 <m_num_psymtabs>: New member.
3007 (struct dwarf2_per_cu_data) <index>: New member.
3008 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3009 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3010 (create_cu_from_index_list): Use allocate_per_cu.
3011 (create_signatured_type_table_from_index)
3012 (create_signatured_type_table_from_debug_names)
3013 (create_debug_type_hash_table, add_type_unit)
3014 (read_comp_units_from_section): Use allocate_signatured_type.
3015
5717c425
TT
30162020-05-27 Tom Tromey <tom@tromey.com>
3017
3018 * psymtab.c (partial_map_expand_apply)
3019 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3020 (psym_lookup_global_symbol_language)
3021 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3022 (psym_print_stats, psym_expand_symtabs_for_function)
3023 (psym_map_symbol_filenames, psym_map_matching_symbols)
3024 (psym_expand_symtabs_matching)
3025 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3026 (maintenance_check_psymtabs): Update.
3027 * psympriv.h (struct partial_symtab) <readin_p,
3028 get_compunit_symtab>: Add objfile parameter.
3029 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3030 Likewise.
3031 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3032 get_compunit_symtab>: Likewise.
3033 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3034
45940949
TT
30352020-05-27 Tom Tromey <tom@tromey.com>
3036
3037 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3038 member.
3039 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3040 (create_cu_from_index_list)
3041 (create_signatured_type_table_from_index)
3042 (create_signatured_type_table_from_debug_names)
3043 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3044 (dwarf2_create_include_psymtab)
3045 (create_debug_type_hash_table, add_type_unit)
3046 (create_type_unit_group, read_comp_units_from_section)
3047 (dwarf2_compute_name, create_cus_hash_table)
3048 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3049 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3050 obstack.
3051 (dw2_get_real_path): Likewise. Change argument to
3052 dwarf2_per_objfile.
3053
f8c6d152
LM
30542020-05-27 Luis Machado <luis.machado@linaro.org>
3055
3056 PR tdep/26000
3057 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3058 for ldrd (immediate).
3059
e98d2e6d
PW
30602020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3061
3062 * command.h: Add comment giving the name of class_tui.
3063 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3064 create the fake command for the help for class_tui.
3065
53a47a3e
TT
30662020-05-26 Tom Tromey <tromey@adacore.com>
3067
3068 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3069 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3070 (val_atr): New function.
3071 (value_val_atr): Use it.
3072 * ada-valprint.c (print_optional_low_bound): Change low bound
3073 handling for enums.
3074 (val_print_packed_array_elements): Don't call discrete_position.
3075 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3076 discrete_position for enum types.
3077 * language.c (default_print_array_index): Change type.
3078 * language.h (struct language_defn) <la_print_array_index>: Add
3079 index_type parameter, change type of index_value.
3080 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3081 (default_print_array_index): Update.
3082 * valprint.c (maybe_print_array_index): Don't call
3083 value_from_longest. Update.
3084 (value_print_array_elements): Don't call discrete_position.
3085
0bc2354b
TT
30862020-05-26 Tom Tromey <tromey@adacore.com>
3087
3088 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3089 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3090
1218a4bf
CDA
30912020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3092
3093 PR gdb/13519
3094 * avr-tdep.c (avr_integer_to_address): Return data or code
3095 address accordingly to the second 'type' argument of the
3096 function.
3097
92651b1d
MW
30982020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3099
3100 * infcmd.c, inferior.h: (construct_inferior_arguments):
3101 Moved function from here to gdbsupport/common-inferior.{h,cc}
3102
0a4f5f8c
TT
31032020-05-23 Tom Tromey <tom@tromey.com>
3104
3105 Revert commit eca1f90c:
3106 * NEWS: Remove entry for completion styling.
3107 * completer.c (_rl_completion_prefix_display_length): Move
3108 declaration later.
3109 (gdb_fnprint): Revert.
3110 (gdb_display_match_list_1): Likewise.
3111 * cli/cli-style.c (completion_prefix_style)
3112 (completion_difference_style, completion_suffix_style): Remove.
3113 (_initialize_cli_style): Revert.
3114 * cli/cli-style.h (completion_prefix_style)
3115 (completion_difference_style, completion_suffix_style): Don't
3116 declare.
3117
e08bd6c5
PA
31182020-05-24 Pedro Alves <palves@redhat.com>
3119
3120 * symtab.c (completion_list_add_name): Return boolean indication
3121 of whether the symbol matched.
3122 (completion_list_add_symbol): Don't try to remove C++ aliases if
3123 the symbol didn't match in the first place.
3124 * symtab.h (completion_list_add_name): Return bool.
3125
ceacbf6e
SM
31262020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3127
3128 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3129 type::field.
3130
26f16254
JB
31312020-05-23 Joel Brobecker <brobecker@adacore.com>
3132
3133 GDB 9.2 released.
3134
eca1f90c
TT
31352020-05-23 Tom Tromey <tom@tromey.com>
3136
3137 * NEWS: Add entry for completion styling.
3138 * completer.c (_rl_completion_prefix_display_length): Move
3139 declaration earlier.
3140 (gdb_fnprint): Use completion_style.
3141 (gdb_display_match_list_1): Likewise.
3142 * cli/cli-style.c (completion_prefix_style)
3143 (completion_difference_style, completion_suffix_style): New
3144 globals.
3145 (_initialize_cli_style): Register new globals.
3146 * cli/cli-style.h (completion_prefix_style)
3147 (completion_difference_style, completion_suffix_style): Declare.
3148
51e2cfa2
PA
31492020-05-23 Pedro Alves <palves@redhat.com>
3150
3151 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3152 (parse_escape): Use ISDIGIT instead of isdigit.
3153 (puts_debug): Use gdb_isprint instead of isprint.
3154 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3155 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3156 ISSPACE instead of isspace.
3157 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3158 instead of isspace.
3159 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3160 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3161 instead of isxdigit and ISDIGIT instead of isdigit.
3162
80fc5e77
SM
31632020-05-22 Simon Marchi <simon.marchi@efficios.com>
3164
3165 * gdbtypes.h (struct type) <field>: New method.
3166 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3167 or type::field.
3168
3cabb6b0
SM
31692020-05-22 Simon Marchi <simon.marchi@efficios.com>
3170
3171 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3172 (TYPE_FIELDS): Use type::fields. Change all call sites that
3173 modify the propery to use type::set_fields instead.
3174
1f704f76
SM
31752020-05-22 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3178 type::num_fields instead.
3179
5e33d5f4
SM
31802020-05-22 Simon Marchi <simon.marchi@efficios.com>
3181
3182 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3183 methods.
3184 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3185 that modify the number of fields to use type::set_num_fields
3186 instead.
3187
9392ebb3
TT
31882020-05-22 Tom Tromey <tromey@adacore.com>
3189
3190 * compile/compile-object-load.h (munmap_list_free): Don't
3191 declare.
3192
7c13f4e8
AB
31932020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * annotate.c (annotate_source_line): Update return type, add call
3196 to update current symtab and line.
3197 * annotate.h (annotate_source_line): Update return type, and
3198 extend header comment.
3199 * source.c (info_line_command): Check annotation_level before
3200 calling annotate_source_line.
3201 * stack.c (print_frame_info): If calling annotate_source_line
3202 returns true, then don't print any other source line information.
3203
aa370940
SM
32042020-05-21 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3207
84d53fa9
SM
32082020-05-21 Simon Marchi <simon.marchi@efficios.com>
3209
3210 * coffread.c (patch_type): Remove NULL check before xfree.
3211 * corefile.c (set_gnutarget): Likewise.
3212 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3213 * exec.c (build_section_table): Likewise.
3214 * remote.c (remote_target::pass_signals): Likewise.
3215 * utils.c (n_spaces): Likewise.
3216 * cli/cli-script.c (document_command): Likewise.
3217 * i386-windows-tdep.c (core_process_module_section): Likewise.
3218 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3219
9d428aae
SM
32202020-05-20 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * symfile.c (reread_symbols): Clear objfile's section_offsets
3223 vector and section indices, re-compute them by calling
3224 sym_offsets.
3225
250106a7
TT
32262020-05-20 Tom Tromey <tromey@adacore.com>
3227
3228 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3229 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3230
9a0bacfb
TV
32312020-05-20 Tom de Vries <tdevries@suse.de>
3232
3233 PR symtab/25833
3234 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3235
7b958a48
AM
32362020-05-20 Alan Modra <amodra@gmail.com>
3237
3238 PR 25993
3239 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3240 bfd_set_filename.
3241 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3242 passed to bfd_set_filename.
3243 * symfile-mem.c (add_vsyscall_page): Likewise for string
3244 passed to symbol_file_add_from_memory.
3245 (symbol_file_add_from_memory): Make name param a const char* and
3246 don't strdup.
3247
c7e97679
AM
32482020-05-20 Alan Modra <amodra@gmail.com>
3249
3250 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3251 rather than accessing bfd->filename directly.
3252 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3253 and use bfd_section_name.
3254 * dwarf2/frame.c (decode_frame_entry): Likewise.
3255 * exec.c (exec_set_section_address): Likewise.
3256 * solib-aix.c (solib_aix_bfd_open): Likewise.
3257 * stap-probe.c (get_stap_base_address): Likewise.
3258 * symfile.c (reread_symbols): Likewise.
3259
563c591b
TT
32602020-05-19 Tom Tromey <tromey@adacore.com>
3261
3262 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3263
f408d82c
SM
32642020-05-19 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3267
98c59b52
PA
32682020-05-19 Pedro Alves <palves@redhat.com>
3269
3270 * NEWS (set exec-file-mismatch): Adjust entry.
3271 * exec.c: Include "build-id.h".
3272 (validate_exec_file): Try to match build IDs instead of filenames.
3273 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3274 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3275 and pass down 'warn_if_slow'.
3276 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3277 gdb_bfd_open_closure to pass it down.
3278 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3279
4111f652
PA
32802020-05-19 Pedro Alves <palves@redhat.com>
3281
3282 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3283 * target.c (target_fileio_open_1): Rename to target_fileio_open
3284 and make extern. Use bool.
3285 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3286 (target_fileio_read_alloc_1): Adjust.
3287 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3288 (target_fileio_open_warn_if_slow): Delete declaration.
3289
ad80db5b
PA
32902020-05-19 Pedro Alves <palves@redhat.com>
3291
3292 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3293 Adjust all callers.
3294
1d6ce4d3
YS
32952020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3296
3297 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3298 whether disp is negative.
3299
9005fbbb
SM
33002020-05-19 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * symfile.h (struct symfile_segment_data)
3303 <~symfile_segment_data>: Remove.
3304 <segment_info>: Change to std::vector.
3305 * symfile.c (default_symfile_segments): Update.
3306 * elfread.c (elf_symfile_segments): Update.
3307
68b888ff
SM
33082020-05-19 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3311 <segments>: New.
3312 <segment_bases, segment_sizes>: Remove.
3313 * symfile.c (default_symfile_segments): Update.
3314 * elfread.c (elf_symfile_segments): Update.
3315 * remote.c (remote_target::get_offsets): Update.
3316 * solib-target.c (solib_target_relocate_section_addresses):
3317 Update.
3318
62982abd
SM
33192020-05-19 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * symfile.h (struct symfile_segment_data): Initialize fields.
3322 <~symfile_segment_data>: Add.
3323 (symfile_segment_data_up): New.
3324 (struct sym_fns) <sym_segments>: Return a
3325 symfile_segment_data_up.
3326 (default_symfile_segments): Return a symfile_segment_data_up.
3327 (free_symfile_segment_data): Remove.
3328 (get_symfile_segment_data): Return a symfile_segment_data_up.
3329 * symfile.c (default_symfile_segments): Likewise.
3330 (get_symfile_segment_data): Likewise.
3331 (free_symfile_segment_data): Remove.
3332 (symfile_find_segment_sections): Update.
3333 * elfread.c (elf_symfile_segments): Return a
3334 symfile_segment_data_up.
3335 * remote.c (remote_target::get_offsets): Update.
3336 * solib-target.c (solib_target_relocate_section_addresses):
3337 Update.
3338 * symfile-debug.c (debug_sym_segments): Return a
3339 symfile_segment_data_up.
3340
7f204339
RO
33412020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3342
e52a0f1b
RO
3343 PR build/25981
3344 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3345 Hardcode register numbers.
3346
7f204339
RO
3347 PR build/25981
3348 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3349 procfs_find_LDT_entry): Remove.
3350 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3351 procfs_find_LDT_entry): Remove.
3352 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3353 Remove.
3354
7f32a4d5
PA
33552020-05-17 Pedro Alves <palves@redhat.com>
3356 Andrew Burgess <andrew.burgess@embecosm.com>
3357 Keno Fischer <keno@juliacomputing.com>
3358
3359 PR gdb/25741
3360 * breakpoint.c (build_target_condition_list): Update comments.
3361 (build_target_command_list): Update comments and skip matching
3362 locations.
3363 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3364 a separate function. Simplify "set breakpoint auto-hw off"
3365 handling.
3366 (insert_breakpoints): Update comment.
3367 (tracepoint_locations_match): New parameter. For breakpoints,
3368 compare location types too, if the caller wants to.
3369 (handle_automatic_hardware_breakpoints): New functions.
3370 (bp_location_is_less_than): Also sort by location type and
3371 hardware breakpoint length.
3372 (update_global_location_list): Handle "set breakpoint auto-hw on"
3373 here.
3374 (update_breakpoint_locations): Ask breakpoint_locations_match to
3375 ignore location types.
3376
7d93a1e0
SM
33772020-05-16 Simon Marchi <simon.marchi@efficios.com>
3378
3379 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3380 type::name instead.
3381
d0e39ea2
SM
33822020-05-16 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * gdbtypes.h (struct type) <name, set_name>: New methods.
3385 (TYPE_CODE): Use type::name. Change all call sites used to set
3386 the name to use type::set_name instead.
3387
2dab0c7b
TT
33882020-05-16 Tom Tromey <tom@tromey.com>
3389
3390 * top.c (quit_force): Update.
3391 * infrun.c (handle_no_resumed): Update.
3392 * top.h (all_uis): New function.
3393 (ALL_UIS): Remove.
3394
59f7bd8d
SM
33952020-05-16 Simon Marchi <simon.marchi@efficios.com>
3396
3397 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3398
9bf058f0
PA
33992020-05-16 Pedro Alves <palves@redhat.com>
3400
3401 * ia64-linux-nat.c
3402 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3403 Declare method.
3404 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3405
8f86ae1a
SM
34062020-05-15 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3409 (sparc64_adi_info): Likewise.
3410
d6bc0792
TT
34112020-05-15 Tom Tromey <tom@tromey.com>
3412
3413 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3414 block_objfile.
3415 (lookup_objfile_from_block): Remove.
3416 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3417 (lookup_global_symbol): Use block_objfile.
3418 * symtab.h (lookup_objfile_from_block): Don't declare.
3419 * printcmd.c (clear_dangling_display_expressions): Use
3420 block_objfile.
3421 * parse.c (operator_check_standard): Use block_objfile.
3422
8c14c3a3
TT
34232020-05-15 Tom Tromey <tom@tromey.com>
3424
3425 * language.c (language_alloc_type_symbol): Set
3426 SYMBOL_SECTION.
3427 * symtab.c (initialize_objfile_symbol): Remove.
3428 (allocate_symbol): Remove.
3429 (allocate_template_symbol): Remove.
3430 * dwarf2/read.c (fixup_go_packaging): Use "new".
3431 (new_symbol): Use "new".
3432 (read_variable): Don't call initialize_objfile_symbol. Use
3433 "new".
3434 (read_func_scope): Use "new".
3435 * xcoffread.c (process_xcoff_symbol): Don't call
3436 initialize_objfile_symbol.
3437 (SYMBOL_DUP): Remove.
3438 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3439 "new".
3440 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3441 (allocate_template_symbol): Don't declare.
3442 (struct symbol): Add copy constructor. Change defaults.
3443 * jit.c (finalize_symtab): Use "new".
3444 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3445 Use "new".
3446 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3447 (common_block_end): Use "new".
3448 * mdebugread.c (parse_symbol): Use "new".
3449 (new_symbol): Likewise.
3450
5b4a1a8d
PW
34512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3452
3453 * NEWS: Mention changes to help and apropos.
3454
57b4f16e
PW
34552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3456
3457 * command.h (enum command_class): Improve comments, document
3458 that class_alias is for user-defined aliases, give the class
3459 name for each class, remove unused class_xdb.
3460 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3461 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3462 by a precise class.
3463 * infcmd.c (_initialize_infcmd): Likewise.
3464 * reverse.c (_initialize_reverse): Likewise.
3465 * stack.c (_initialize_stack): Likewise.
3466 * symfile.c (_initialize_symfile): Likewise.
3467 * tracepoint.c (_initialize_tracepoint): Likewise.
3468
7c05caf7
PW
34692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3470
3471 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3472 when their aliased command is traversed.
3473 (help_cmd): Add fput_command_names_styled call to
3474 output command name and aliases when command has an alias.
3475
3b3aaacb
PW
34762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3477
3478 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3479 * cli/cli-decode.c (help_cmd_list): Declare as static,
3480 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3481 a command together with the command.
3482 (fput_command_name_styled, fput_command_names_styled): New functions.
3483 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3484 fput_command_name_styled.
3485 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3486 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3487
7aa1b46f
PW
34882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3489
3490 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3491 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3492 * command.h (cmd_show_list): Likewise.
3493 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3494 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3495
89bcba74
PW
34962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3497
3498 * unittests/command-def-selftests.c (traverse_command_structure):
3499 Verify all commands of a list have the same prefix command and
3500 that only the top cmdlist commands have a null prefix.
3501
3f4d92eb
PW
35022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3503
3504 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3505 as prefix, not one of its aliases.
3506 (set_cmd_prefix): Remove.
3507 (do_add_cmd): Centralize the setting of the prefix of a command, when
3508 command is defined after its full chain of prefix commands.
3509 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3510 (add_setshow_cmd_full): Likewise.
3511 (update_prefix_field_of_prefixed_commands): New function.
3512 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3513 update_prefix_field_of_prefixed_commands.
3514 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3515 addresses of remote_set_cmdlist and remote_show_cmdlist given
3516 as argument, not the address of an argument.
3517 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3518 * gdb/remote.c (_initialize_remote): Likewise.
3519
0605465f
PW
35202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3521
3522 * cli/cli-cmds.c (alias_command): Check for an existing alias
3523 using lookup_cmd_composition, as valid_command_p is too strict
3524 and forbids aliases that are the prefix of an existing alias
3525 or command.
3526 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3527 command is properly recognised as a valid command.
3528
58e6ac70
PW
35292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3530
3531 * unittests/help-doc-selftests.c: Rename to
3532 unittests/command-def-selftests.c
3533 * unittests/command-def-selftests.c (help_doc_tests): Update some
3534 comments.
3535 (command_structure_tests, traverse_command_structure): New namespace
3536 and function.
3537 (command_structure_invariants_tests): New function.
3538 (_initialize_command_def_selftests) Renamed from
3539 _initialize_help_doc_selftests, register command_structure_invariants
3540 selftest.
3541
a7b9ceb8
PW
35422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3543
3544 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3545 an alias of 'show'.
3546
b2188a06
JB
35472020-05-15 Joel Brobecker <brobecker@adacore.com>
3548
3549 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3550 ada_is_fixed_point_type. Update all callers.
3551 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3552 all callers.
3553 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3554 Update all callers.
3555 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3556 print_fixed_point_type. Update all callers.
3557 * ada-valprint.c (ada_value_print_num): Replace call to
3558 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3559
a51951c2
KB
35602020-05-14 Kevin Buettner <kevinb@redhat.com>
3561
3562 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3563 processors.
3564 (cpu_supports_bts): Add CV_AMD case.
3565
29d6859f
LM
35662020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3567 Simon Marchi <simon.marchi@efficios.com>
3568
3569 * infrun.c (stop_all_threads): Collect multiple wait events at
3570 each pass.
3571
78134374
SM
35722020-05-14 Simon Marchi <simon.marchi@efficios.com>
3573
3574 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3575 type::code instead.
3576
67607e24
SM
35772020-05-14 Simon Marchi <simon.marchi@efficios.com>
3578
3579 * gdbtypes.h (struct type) <code, set_code>: New methods.
3580 (TYPE_CODE): Use type::code. Change all call sites used to set
3581 the code to use type::set_code instead.
3582
a05575d3
TBA
35832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3584 Tom de Vries <tdevries@suse.de>
3585 Pedro Alves <palves@redhat.com>
3586
3587 PR threads/25478
3588 * infrun.c (stop_all_threads): Do NOT ignore
3589 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3590 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3591 received.
3592 (handle_no_resumed): Remove code handling a live inferior with no
3593 threads.
3594 * remote.c (has_single_non_exited_thread): New.
3595 (remote_target::update_thread_list): Do not delete a thread if is
3596 the last thread of the process.
3597 * thread.c (thread_select): Call delete_exited_threads instead of
3598 prune_threads.
3599
6ad82919
TBA
36002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3601
3602 * infrun.c (stop_all_threads): Enable/disable thread events of all
3603 targets. Move a debug message denoting the end of the function
3604 into the SCOPED_EXIT block.
3605
d890404b
TBA
36062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607
3608 * process-stratum-target.h: Include <set>.
3609 (all_non_exited_process_targets, switch_to_target_no_thread): New
3610 function declarations.
3611 * process-stratum-target.c (all_non_exited_process_targets)
3612 (switch_to_target_no_thread): New function implementations.
3613
293b3ebc
TBA
36142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615
3616 * infrun.c (handle_inferior_event): Extract out a piece of code
3617 into...
3618 (mark_non_executing_threads): ...this new function.
3619
7ca9b62a
TBA
36202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3621
3622 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3623 use.
3624
fc75c28b
TBA
36252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3626
3627 * regcache.c (regcache_read_pc_protected): New function
3628 implementation that returns 0 if the PC cannot read via
3629 'regcache_read_pc'.
3630 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3631 instead of 'regcache_read_pc'.
3632 (keep_going_pass_signal): Ditto.
3633
a89febbd
TT
36342020-05-13 Tom Tromey <tromey@adacore.com>
3635
3636 * ada-lang.c (align_value): Remove.
3637 (ada_template_to_fixed_record_type_1): Use align_up.
3638
f7e23710
TBA
36392020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3640
3641 * async-event.c: Update the copyright year.
3642 * async-event.h: Update the copyright year.
3643
02ff80c2
SM
36442020-05-12 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * objfiles.h (is_addr_in_objfile,
3647 shared_objfile_contains_address_p): Return bool.
3648 * objfile.c (is_addr_in_objfile,
3649 shared_objfile_contains_address_p): Return bool.
3650
4fd6c7e8
TT
36512020-05-11 Tom Tromey <tromey@adacore.com>
3652
3653 * cli/cli-cmds.c (info_command): Restore.
3654 (_initialize_cli_cmds): Use add_prefix_command for "info".
3655 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3656
5eb68a39
TT
36572020-05-11 Tom Tromey <tromey@adacore.com>
3658
3659 * ada-lang.c (ada_value_primitive_field): Now public.
3660 * ada-lang.h (ada_value_primitive_field): Declare.
3661 * ada-valprint.c (print_field_values): Use
3662 ada_value_primitive_field for wrapper fields.
3663
7666722f
TV
36642020-05-11 Tom de Vries <tdevries@suse.de>
3665
3666 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3667 MODULE_DOMAIN.
3668
3ee6bb11
TV
36692020-05-11 Tom de Vries <tdevries@suse.de>
3670
3671 PR symtab/25941
3672 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3673 with length 0, if not gdb-produced.
3674 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3675
43434996
TV
36762020-05-09 Tom de Vries <tdevries@suse.de>
3677
3678 PR gdb/25955
3679 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3680 calculation.
3681
2f78cffc
TT
36822020-05-09 Tom Tromey <tom@tromey.com>
3683
3684 * top.c (server_command): Now bool.
3685 * top.h (server_command): Now bool.
3686
4f7bc5ed
TT
36872020-05-08 Tom Tromey <tromey@adacore.com>
3688
3689 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3690 already being processed.
3691
8be4b118
TT
36922020-05-08 Tom Tromey <tom@tromey.com>
3693
3694 * printcmd.c (struct display) <next>: Remove.
3695 <display>: New constructor.
3696 <exp_string>: Now a std::string.
3697 <enabled_p>: Now a bool.
3698 (display_number): Move definition earlier.
3699 (displays): Rename from display_chain. Now a std::vector.
3700 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3701 (display_command): Update.
3702 (do_one_display, disable_display)
3703 (enable_disable_display_command, do_enable_disable_display):
3704 Update.
3705 (free_display): Remove.
3706 (clear_displays): Rewrite.
3707 (delete_display): Update.
3708 (map_display_numbers): Use function_view. Remove "data"
3709 parameter. Update.
3710 (do_delete_display): Remove.
3711 (undisplay_command): Update.
3712 (do_one_display, do_displays, disable_display)
3713 (info_display_command): Update.
3714 (do_enable_disable_display): Remove.
3715 (enable_disable_display_command)
3716 (clear_dangling_display_expressions): Update.
3717
94c93c35
TT
37182020-05-08 Tom Tromey <tom@tromey.com>
3719
3720 * symtab.c (set_symbol_cache_size)
3721 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3722 (maintenance_print_symbol_cache_statistics): Update.
3723 * symmisc.c (print_symbol_bcache_statistics)
3724 (print_objfile_statistics, maintenance_print_objfiles)
3725 (maintenance_info_symtabs, maintenance_check_symtabs)
3726 (maintenance_expand_symtabs, maintenance_info_line_tables):
3727 Update.
3728 * symfile-debug.c (set_debug_symfile): Update.
3729 * source.c (forget_cached_source_info): Update.
3730 * python/python.c (gdbpy_progspaces): Update.
3731 * psymtab.c (maintenance_info_psymtabs): Update.
3732 * probe.c (parse_probes): Update.
3733 * linespec.c (iterate_over_all_matching_symtabs)
3734 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3735 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3736 * exec.c (exec_target::close): Update.
3737 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3738 * breakpoint.c (print_one_breakpoint_location)
3739 (create_longjmp_master_breakpoint)
3740 (create_std_terminate_master_breakpoint): Update.
3741 * progspace.c (program_spaces): Now a std::vector.
3742 (maybe_new_address_space): Update.
3743 (add_program_space): Remove.
3744 (program_space::program_space): Update.
3745 (remove_program_space): Update.
3746 (number_of_program_spaces): Remove.
3747 (print_program_space, update_address_spaces): Update.
3748 * progspace.h (program_spaces): Change type.
3749 (ALL_PSPACES): Remove.
3750 (number_of_program_spaces): Don't declare.
3751 (struct program_space) <next>: Remove.
3752
a1fd1ac9
TT
37532020-05-08 Tom Tromey <tom@tromey.com>
3754
3755 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3756 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3757 (enable_break): Update.
3758 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3759 (frv_fdpic_find_canonical_descriptor): Update.
3760 (frv_fetch_objfile_link_map): Update.
3761 * progspace.c (program_space::free_all_objfiles): Update.
3762 (program_space::solibs): New method.
3763 * progspace.h (struct program_space) <solibs>: New method.
3764 * solist.h (master_so_list): Don't declare.
3765 (ALL_SO_LIBS): Remove.
3766 * solib.h (so_list_head): Remove.
3767 (update_solib_list): Update comment.
3768 * solib.c (master_so_list): Remove.
3769 (solib_used, update_solib_list, solib_add)
3770 (info_sharedlibrary_command, clear_solib)
3771 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3772
38eae084
TT
37732020-05-08 Tom Tromey <tom@tromey.com>
3774
3775 * extension.c (extension_languages): Now a std::array.
3776 (ALL_EXTENSION_LANGUAGES): Remove.
3777 (get_ext_lang_defn, get_ext_lang_of_file)
3778 (eval_ext_lang_from_control_command): Update.
3779 (finish_ext_lang_initialization)
3780 (auto_load_ext_lang_scripts_for_objfile)
3781 (ext_lang_type_printers::ext_lang_type_printers)
3782 (apply_ext_lang_type_printers)
3783 (ext_lang_type_printers::~ext_lang_type_printers)
3784 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3785 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3786 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3787 (get_matching_xmethod_workers, ext_lang_colorize)
3788 (ext_lang_before_prompt): Update.
3789 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3790
596dc4ad
TT
37912020-05-08 Tom Tromey <tom@tromey.com>
3792
3793 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3794 overload.
3795 <swap_string, m_string>: Remove.
3796 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3797 Update.
3798 * stabsread.c (define_symbol, read_type): Update.
3799 * linespec.c (find_linespec_symbols): Update.
3800 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3801 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3802 * dbxread.c (read_dbx_symtab): Update.
3803 * cp-support.h (cp_canonicalize_string_full)
3804 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3805 Return unique_xmalloc_ptr.
3806 * cp-support.c (inspect_type): Update.
3807 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3808 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3809 Likewise.
3810 * c-typeprint.c (print_name_maybe_canonical): Update.
3811 * break-catch-throw.c (check_status_exception_catchpoint):
3812 Update.
3813
bf4cb9be
TV
38142020-05-08 Tom de Vries <tdevries@suse.de>
3815
3816 * infrun.c (follow_fork): Copy current_line and current_symtab to
3817 child thread.
3818
a1b68f28
SM
38192020-05-07 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * async-event.c (struct async_signal_handler, struct
3822 async_event_handler): Reformat, remove typedef.
3823
98d48915
SM
38242020-05-07 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3827 access thistype->main_type->dyn_prop_list directly.
3828
7aa91313
SM
38292020-05-07 Simon Marchi <simon.marchi@efficios.com>
3830
3831 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3832 (remove_dyn_prop): Remove. Update all users to use
3833 type::remove_dyn_prop.
3834 * gdbtypes.c (remove_dyn_prop): Rename to...
3835 (type::remove_dyn_prop): ... this.
3836
5c54719c
SM
38372020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3838
3839 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3840 (add_dyn_prop): Remove. Update all users to use
3841 type::add_dyn_prop.
3842 * gdbtypes.c (add_dyn_prop): Rename to...
3843 (type::add_dyn_prop): ... this.
3844
24e99c6c
SM
38452020-05-07 Simon Marchi <simon.marchi@efficios.com>
3846
3847 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3848 (get_dyn_prop): Remove. Update all users to use
3849 type::dyn_prop.
3850 * gdbtypes.c (get_dyn_prop): Rename to...
3851 (type::dyn_prop): ... this.
3852
0d4bf016
SM
38532020-05-06 Simon Marchi <simon.marchi@efficios.com>
3854
3855 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3856
ac4a4f1c
SM
38572020-05-06 Simon Marchi <simon.marchi@efficios.com>
3858
3859 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3860 instruction, skip it if it's there.
3861
a3bbacc1
SM
38622020-05-05 Simon Marchi <simon.marchi@efficios.com>
3863
3864 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3865
c3236f84
SM
38662020-05-04 Simon Marchi <simon.marchi@efficios.com>
3867
3868 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3869 * gdbtypes.c (recursive_dump_type): Remove use of
3870 TYPE_INCOMPLETE.
3871
3b6acaee
TT
38722020-05-03 Tom Tromey <tom@tromey.com>
3873
3874 * breakpoint.c (catch_command, tcatch_command): Remove.
3875 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3876 add_show_prefix_cmd.
3877 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3878 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3879 Remove.
3880 (add_internal_problem_command): Use add_basic_prefix_cmd,
3881 add_show_prefix_cmd.
3882 * mips-tdep.c (set_mipsfpu_command): Remove.
3883 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3884 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3885 (_initialize_index_cache): Use add_basic_prefix_cmd.
3886 * memattr.c (dummy_cmd): Remove.
3887 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3888 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3889 (_initialize_tui_win): Use add_basic_prefix_cmd,
3890 add_show_prefix_cmd.
3891 * cli/cli-logging.c (set_logging_command): Remove.
3892 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3893 add_show_prefix_cmd.
3894 (show_logging_command): Remove.
3895 * target.c (target_command): Remove.
3896 (add_target): Use add_basic_prefix_cmd.
3897
a51119cd
HD
38982020-05-02 Hannes Domani <ssbssa@yahoo.de>
3899
3900 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3901
652fc23a 39022020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3903
652fc23a
PW
3904 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3905 info_command.
3906
117539e6
KR
39072020-04-30 Kamil Rytarowski <n54@gmx.com>
3908
3909 * nbsd-nat.c (nbsd_enable_proc_events)
3910 (nbsd_nat_target::post_startup_inferior): Add.
3911 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3912 (nbsd_nat_target::update_thread_list): Rewrite.
3913 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3914 "PTRACE_LWP_CREATE".
3915 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3916
102e38eb 39172020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3918
102e38eb
PW
3919 * stack.c (_initialize_stack): Remove duplicated creation
3920 of "frame" command and "f" alias.
3921
ee9d1e5f
HD
39222020-04-30 Hannes Domani <ssbssa@yahoo.de>
3923
3924 PR gdb/18706
3925 * gdbtypes.c (check_typedef): Calculate size of array of
3926 stubbed type.
3927
627c7fb8
HD
39282020-04-30 Hannes Domani <ssbssa@yahoo.de>
3929
3930 PR gdb/15559
3931 * i386-tdep.c (i386_push_dummy_call): Call
3932 i386_thiscall_push_dummy_call.
3933 (i386_thiscall_push_dummy_call): New function.
3934 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3935 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3936 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3937
ffc2844e
SM
39382020-04-29 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * gdbarch.sh (do_read): Add shellcheck disable directive for
3941 warning SC2162.
3942
1207375d
SM
39432020-04-29 Simon Marchi <simon.marchi@efficios.com>
3944
3945 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3946 "referenced but not assigned" warning.
3947
9fdb2916
SM
39482020-04-29 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * gdbarch.sh: Remove code that sets fallbackdefault.
3951
759cea5e
SM
39522020-04-29 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * gdbarch.sh: Use shell operators && and || instead of
3955 -a and -o.
3956
cb02ab24
SM
39572020-04-29 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * gdbarch.sh: Use $(...) instead of `...`.
3960
a6fc5ffc
SM
39612020-04-29 Simon Marchi <simon.marchi@efficios.com>
3962
3963 * gdbarch.sh: Use double quotes around variables.
3964
8d113d13
SM
39652020-04-29 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * gdbarch.sh: Use %s with printf, instead of variables in the
3968 format string.
3969
ed6acedd
TT
39702020-04-29 Tom Tromey <tromey@adacore.com>
3971
3972 PR ada/25875:
3973 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3974 type fields here.
3975 (read_enumeration_type): Call
3976 update_enumeration_type_from_children later. Update comments.
3977 (process_enumeration_scope): Don't create type fields.
3978
b68b1b58
KR
39792020-04-29 Kamil Rytarowski <n54@gmx.com>
3980
3981 * nbsd-tdep.c: Include "xml-syscall.h".
3982 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3983
f94b2e03
KR
39842020-04-29 Kamil Rytarowski <n54@gmx.com>
3985
3986 * nbsd-nat.c: Include "sys/wait.h".
3987 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3988 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3989 (nbsd_nat_target::remove_exec_catchpoint)
3990 (nbsd_nat_target::set_syscall_catchpoint): Add.
3991 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3992 (nbsd_nat_target::insert_exec_catchpoint)
3993 (nbsd_nat_target::remove_exec_catchpoint)
3994 (nbsd_nat_target::set_syscall_catchpoint): Add.
3995 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3996 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3997 `nbsd_get_syscall_number'.
3998
fc49bc72
TT
39992020-04-29 Tom Tromey <tom@tromey.com>
4000
4001 * stack.c (print_block_frame_labels): Remove.
4002
d642b692
HD
40032020-04-29 Hannes Domani <ssbssa@yahoo.de>
4004
4005 PR gdb/17320
4006 * ada-valprint.c (val_print_packed_array_elements): Move array
4007 end bracket to new line.
4008 (ada_val_print_string): Remove extra spaces before first array
4009 element.
4010 * c-valprint.c (c_value_print_array): Likewise.
4011 * m2-valprint.c (m2_print_array_contents): Likewise.
4012 (m2_value_print_inner): Likewise.
4013 * p-valprint.c (pascal_value_print_inner): Likewise.
4014 * valprint.c (generic_val_print_array): Likewise.
4015 (value_print_array_elements): Move first array element and array
4016 end bracket to new line.
4017
ea90f227
TV
40182020-04-29 Tom de Vries <tdevries@suse.de>
4019
4020 PR symtab/25889
4021 * linespec.c (find_method): Fix ix calculation.
4022
4498ef4f
KR
40232020-04-28 Kamil Rytarowski <n54@gmx.com>
4024
4025 * syscalls/update-netbsd.sh: New file.
4026 * syscalls/netbsd.xml: Regenerate.
4027 * data-directory/Makefile.in: Register `netbsd.xml' in
4028 `SYSCALLS_FILES'.
4029
a55e30b5
SM
40302020-04-28 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * syscalls/update-freebsd.sh: Add double quotes.
4033
2b2fbab8
TT
40342020-04-28 Tom Tromey <tom@tromey.com>
4035
4036 * NEWS: Update.
4037 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4038 (cmdpy_init): Allow class_tui.
4039
a65189c9
TV
40402020-04-28 Mark Williams <mark@myosotissp.com>
4041
4042 PR gdb/24480
4043 * dwarf2read.c: Add missing assingments to list_in_scope when
4044 start_symtab was already called.
4045
1b95cdb7
SM
40462020-04-28 Simon Marchi <simon.marchi@efficios.com>
4047
4048 PR gdb/25881
4049 * dwarf2/read.c (offset_map_type): Use
4050 gdb:hash_enum<sect_offset> as hash function.
4051
15cd93d0
TV
40522020-04-28 Tom de Vries <tdevries@suse.de>
4053
4054 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4055 with DW_AT_signature.
4056
1eb39914
SM
40572020-04-27 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * configure.ac: Remove check for fs_base/gs_base in
4060 user_regs_struct.
4061 * configure: Re-generate.
4062 * config.in: Re-generate.
4063 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4064 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4065 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4066
991a3e2e
LM
40672020-04-27 Luis Machado <luis.machado@linaro.org>
4068
4069 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4070 problematic inline frame unwinding situation.
4071 * frame.c (frame_id_computed_p): New function.
4072 * frame.h (frame_id_computed_p): New prototype.
4073
361ba0e8
TT
40742020-04-26 Tom Tromey <tom@tromey.com>
4075
4076 * command.h (enum command_class) <class_pseudo>: Remove.
4077
bc3609fd
PW
40782020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4079
4080 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4081 and whitespace.
4082
b9771db7
KR
40832020-04-25 Kamil Rytarowski <n54@gmx.com>
4084
ec16513e
SM
4085 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4086 `PT_GET_PROCESS_STATE' block.
b9771db7 4087
7151c1af
TT
40882020-04-24 Tom Tromey <tom@tromey.com>
4089
4090 * symtab.h (symbol_get_demangled_name): Don't declare.
4091 * symtab.c (symbol_get_demangled_name): Remove.
4092 (general_symbol_info::natural_name)
4093 (general_symbol_info::demangled_name): Update.
4094
906bb4c5
TT
40952020-04-24 Tom Tromey <tom@tromey.com>
4096
4097 PR rust/25025:
4098 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4099
bcfe6157
TT
41002020-04-24 Tom Tromey <tom@tromey.com>
4101
4102 PR symtab/12707:
4103 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4104 exists.
4105 (new_symbol): Likewise.
4106 * compile/compile-object-load.c (get_out_value_type): Use
4107 symbol_matches_search_name.
4108
f049a313
TT
41092020-04-24 Tom Tromey <tom@tromey.com>
4110
4111 * dwarf2/read.c (add_partial_symbol): Do not call
4112 compute_and_set_names.
4113
76e288d1
TT
41142020-04-24 Tom Tromey <tom@tromey.com>
4115
4116 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4117 overload.
4118
2467f4f6
TT
41192020-04-24 Tom Tromey <tom@tromey.com>
4120
4121 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4122 (add_psymbol_to_list): New overload. Make old overload call new
4123 one.
4124 * psympriv.h (add_psymbol_to_list): New overload.
4125
e61108c9
TT
41262020-04-24 Tom Tromey <tom@tromey.com>
4127
4128 * dwarf2/read.c (partial_die_info::read) <case
4129 DW_AT_linkage_name>: Use value_as_string.
4130 (dwarf2_string_attr): Use value_as_string.
4131 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4132 method.
4133 * dwarf2/attribute.c (attribute::value_as_string): New method.
4134
8c87a452
TT
41352020-04-24 Tom Tromey <tom@tromey.com>
4136
4137 * symtab.c (general_symbol_info::natural_name)
4138 (general_symbol_info::demangled_name): Check for language_rust.
4139
787de330
TT
41402020-04-24 Tom Tromey <tom@tromey.com>
4141
4142 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4143 (dwarf2_physname): ... from here.
4144 (partial_die_info::read): Add Rust "{" hack.
4145
ff985671
TT
41462020-04-24 Tom Tromey <tom@tromey.com>
4147
4148 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4149 method.
4150 (symbol_set_demangled_name): Don't declare.
4151 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4152 symbol_set_demangled_name.
4153 (general_symbol_info::set_language)
4154 (general_symbol_info::compute_and_set_names): Update.
4155 * minsyms.c (minimal_symbol_reader::install): Update.
4156 * dwarf2/read.c (new_symbol): Update.
4157
1acda803
TT
41582020-04-24 Tom Tromey <tromey@adacore.com>
4159
4160 PR python/23662:
4161 * python/py-type.c (convert_field): Handle
4162 FIELD_LOC_KIND_DWARF_BLOCK.
4163 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4164 (typy_get_dynamic): Nw function.
4165 (type_object_getset): Add "dynamic".
4166 * NEWS: Add entry.
4167
d656f129
TT
41682020-04-24 Tom Tromey <tromey@adacore.com>
4169
4170 * ada-typeprint.c (print_choices, print_variant_part)
4171 (print_record_field_types_dynamic): New functions.
4172 (print_record_field_types): Use print_record_field_types_dynamic.
4173
7d79de9a
TT
41742020-04-24 Tom Tromey <tromey@adacore.com>
4175
4176 * dwarf2/read.c (handle_data_member_location): New overload.
4177 (dwarf2_add_field): Use it.
4178 (decode_locdesc): Add "computed" parameter. Update comment.
4179 * gdbtypes.c (is_dynamic_type_internal): Also look for
4180 FIELD_LOC_KIND_DWARF_BLOCK.
4181 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4182 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4183 virtual base classes.
4184 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4185 FIELD_LOC_KIND_DWARF_BLOCK.
4186
f8e89861
TT
41872020-04-24 Tom Tromey <tromey@adacore.com>
4188
4189 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4190 * gdbtypes.c (is_dynamic_type_internal): Check
4191 TYPE_HAS_DYNAMIC_LENGTH.
4192 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4193 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4194 New macros.
4195 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4196 constant.
4197
9c6a1327
TT
41982020-04-24 Tom Tromey <tromey@adacore.com>
4199
4200 * dwarf2/read.c (struct variant_field): Rewrite.
4201 (struct variant_part_builder): New.
4202 (struct nextfield): Remove "variant" field. Add "offset".
4203 (struct field_info): Add "current_variant_part" and
4204 "variant_parts".
4205 (alloc_discriminant_info): Remove.
4206 (alloc_rust_variant): New function.
4207 (quirk_rust_enum): Update.
4208 (dwarf2_add_field): Set "offset" member. Don't handle
4209 DW_TAG_variant_part.
4210 (offset_map_type): New typedef.
4211 (convert_variant_range, create_one_variant)
4212 (create_one_variant_part, create_variant_parts)
4213 (add_variant_property): New functions.
4214 (dwarf2_attach_fields_to_type): Call add_variant_property.
4215 (read_structure_type): Don't handle DW_TAG_variant_part.
4216 (handle_variant_part, handle_variant): New functions.
4217 (handle_struct_member_die): Use them.
4218 (process_structure_scope): Don't handle variant parts.
4219 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4220 (struct discriminant_info): Remove.
4221 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4222 (struct main_type) <flag_discriminated_union>: Remove.
4223 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4224 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4225 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4226 Update.
4227 * valops.c (value_union_variant): Remove.
4228 * value.h (value_union_variant): Don't declare.
4229
b249d2c2
TT
42302020-04-24 Tom Tromey <tromey@adacore.com>
4231
4232 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4233 (ada_value_primitive_packed_val): Update.
4234 * ada-valprint.c (ada_value_print_1): Update.
4235 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4236 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4237 just an address. Use evaluate_for_locexpr_baton.
4238 (dwarf2_evaluate_property): Update.
4239 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4240 array_view.
4241 * findvar.c (default_read_var_value): Update.
4242 * gdbtypes.c (compute_variant_fields_inner)
4243 (resolve_dynamic_type_internal): Update.
4244 (resolve_dynamic_type): Change type of valaddr parameter.
4245 * gdbtypes.h (resolve_dynamic_type): Update.
4246 * valarith.c (value_subscripted_rvalue): Update.
4247 * value.c (value_from_contents_and_address): Update.
4248
61122aa9
TT
42492020-04-24 Tom Tromey <tromey@adacore.com>
4250
4251 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4252 "push_initial_value" parameter.
4253 (dwarf2_evaluate_property): Likewise.
4254 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4255
ef83a141
TT
42562020-04-24 Tom Tromey <tromey@adacore.com>
4257
4258 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4259 (variant::matches, compute_variant_fields_recurse)
4260 (compute_variant_fields_inner, compute_variant_fields): New
4261 functions.
4262 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4263 Use resolved_type after type is made.
4264 (operator==): Add new cases.
4265 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4266 (struct discriminant_range, struct variant, struct variant_part):
4267 New.
4268 (union dynamic_prop_data) <variant_parts, original_type>: New
4269 members.
4270 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4271 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4272 constants.
4273 * value.c (unpack_bits_as_long): Now public.
4274 * value.h (unpack_bits_as_long): Declare.
4275
675127ec
TT
42762020-04-24 Tom Tromey <tromey@adacore.com>
4277
4278 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4279 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4280
9852ceef
HD
42812020-04-24 Hannes Domani <ssbssa@yahoo.de>
4282
4283 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4284
7632c6ce
KR
42852020-04-24 Kamil Rytarowski <n54@gmx.com>
4286
4287 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4288 (remove_fork_catchpoint, post_startup_inferior)
4289 (post_attach): Move...
4290 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4291 (remove_fork_catchpoint, post_startup_inferior)
4292 (post_attach): ...here.
4293 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4294 (remove_fork_catchpoint, post_startup_inferior)
4295 (post_attach): Move...
4296 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4297 (remove_fork_catchpoint, post_startup_inferior)
4298 (post_attach): ...here.
4299
7be2bb4f
TT
43002020-04-24 Tom Tromey <tromey@adacore.com>
4301
4302 * nat/windows-nat.h (struct windows_thread_info)
4303 <pc_adjusted>: New member.
4304 * windows-nat.c (windows_fetch_one_register): Check
4305 pc_adjusted.
4306 (windows_nat_target::get_windows_debug_event)
4307 (windows_nat_target::wait): Set pc_adjusted.
4308
f80cb3b4
TV
43092020-04-24 Tom de Vries <tdevries@suse.de>
4310
4311 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4312 Run gdb-add-index inside temp dir.
4313
29514b87
TT
43142020-04-23 Tom Tromey <tromey@adacore.com>
4315
4316 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4317 in loop.
4318
5939967b
LM
43192020-04-23 Luis Machado <luis.machado@linaro.org>
4320
4321 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4322 get_frame_register instead of gdbarch_unwind_pc.
4323
70bc38f5
TV
43242020-04-23 Tom de Vries <tdevries@suse.de>
4325
4326 * symtab.c (lookup_global_symbol): Prefer def over decl.
4327
de82891c
TV
43282020-04-23 Tom de Vries <tdevries@suse.de>
4329
4330 PR symtab/25807
4331 * block.c (best_symbol, better_symbol): Promote to external.
4332 * block.h (best_symbol, better_symbol): Declare.
4333 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4334 decl.
4335
ecc6c606
TT
43362020-04-23 Tom Tromey <tromey@adacore.com>
4337
4338 PR ada/25837:
4339 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4340 "const char *", not a "const std::string &".
4341 <name_and_matcher::operator==>: Update.
4342 * unittests/lookup_name_info-selftests.c: Change type of
4343 "result".
4344
740480b8
TT
43452020-04-23 Tom Tromey <tom@tromey.com>
4346
4347 * inferior.h (iterate_over_inferiors): Don't declare.
4348 * inferior.c (iterate_over_inferiors): Remove.
4349 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4350 Remove.
4351 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4352 use iterate_over_inferiors.
4353 (darwin_resume_inferior_it)
4354 (struct resume_inferior_threads_param)
4355 (darwin_resume_inferior_threads_it): Remove.
4356 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4357
ae3ab1f0
TV
43582020-04-23 Tom de Vries <tdevries@suse.de>
4359
4360 * blockframe.c (find_pc_partial_function): Use
4361 find_pc_sect_compunit_symtab rather than
4362 objfile->sf->qf->find_pc_sect_compunit_symtab.
4363
317d2668
TV
43642020-04-22 Tom de Vries <tdevries@suse.de>
4365
4366 PR symtab/25764
4367 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4368 in psymtabs.
4369
eea9e357
TV
43702020-04-22 Tom de Vries <tdevries@suse.de>
4371
4372 PR symtab/25801
4373 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4374 symtabs.
4375
3d5afab3
TV
43762020-04-22 Tom de Vries <tdevries@suse.de>
4377
4378 PR symtab/25700
4379 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4380 CU if already created.
4381
d43b7a2d
TBA
43822020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4383
4384 * infrun.c (displaced_step_fixup): Switch to the event_thread
4385 before calling displaced_step_restore, not after.
4386
d89edf9b
MM
43872020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4388
4389 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4390 its inferior is not recorded by us.
4391 (record_btrace_target_open): Replace call to
4392 all_non_exited_threads () with call to current_inferior
4393 ()->non_exited_threads ().
4394 (record_btrace_target::stop_recording): Likewise.
4395 (record_btrace_target::close): Likewise.
4396 (record_btrace_target::wait): Likewise.
4397 (record_btrace_target::record_stop_replaying): Likewise.
4398
5897fd49
MM
43992020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4400
4401 * btrace.c (btrace_enable): Throw an error on double enables and
4402 when enabling recording fails.
4403 (btrace_disable): Throw an error if the thread is not recorded.
4404
1a476b6d
MM
44052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4406
4407 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4408 request if we do not have a thread_info.
4409
4778a5f8
TV
44102020-04-21 Tom de Vries <tdevries@suse.de>
4411
4412 PR gdb/25471
4413 * thread.c
4414 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4415 exception in get_frame_id.
4416
0fa7617d
TT
44172020-04-20 Tom Tromey <tromey@adacore.com>
4418
4419 * python/python.c (struct gdbpy_event): Mark move constructor as
4420 noexcept.
4421 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4422 constructor as noexcept.
4423 * completer.h (struct completion_result): Mark move constructor as
4424 noexcept.
4425 * completer.c (completion_result::completion_result): Use
4426 initialization style. Don't call reset_match_list.
4427
ad23bda0
MS
44282020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4429
4430 * MAINTAINERS (Write After Approval): Add myself.
4431
45e1f031
TT
44322020-04-18 Tom Tromey <tom@tromey.com>
4433
4434 * windows-tdep.c (init_w32_command_list)
4435 (w32_prefix_command_valid): Restore.
4436 (_initialize_windows_tdep): Call init_w32_command_list.
4437
08feed99
TT
44382020-04-18 Tom Tromey <tom@tromey.com>
4439
4440 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4441 * value.c (value_fn_field): Update.
4442 * valops.c (find_function_in_inferior)
4443 (value_allocate_space_in_inferior): Update.
4444 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4445 Update.
4446 * tui/tui-source.c (tui_source_window::set_contents): Update.
4447 * symtab.c (lookup_global_or_static_symbol)
4448 (find_function_start_sal_1, skip_prologue_sal)
4449 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4450 * symmisc.c (dump_msymbols, dump_symtab_1)
4451 (maintenance_print_one_line_table): Update.
4452 * symfile.c (init_entry_point_info, section_is_mapped)
4453 (list_overlays_command, simple_read_overlay_table)
4454 (simple_overlay_update_1): Update.
4455 * stap-probe.c (handle_stap_probe): Update.
4456 * stabsread.c (dbx_init_float_type, define_symbol)
4457 (read_one_struct_field, read_enum_type, read_range_type): Update.
4458 * source.c (info_line_command): Update.
4459 * python/python.c (gdbpy_source_objfile_script)
4460 (gdbpy_execute_objfile_script): Update.
4461 * python/py-type.c (save_objfile_types): Update.
4462 * python/py-objfile.c (py_free_objfile): Update.
4463 * python/py-inferior.c (python_new_objfile): Update.
4464 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4465 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4466 (maintenance_check_psymtabs): Update.
4467 * printcmd.c (info_address_command): Update.
4468 * objfiles.h (struct objfile) <arch>: New method, from
4469 get_objfile_arch.
4470 (get_objfile_arch): Don't declare.
4471 * objfiles.c (get_objfile_arch): Remove.
4472 (filter_overlapping_sections): Update.
4473 * minsyms.c (msymbol_is_function): Update.
4474 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4475 (output_nondebug_symbol): Update.
4476 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4477 (mdebug_expand_psymtab): Update.
4478 * machoread.c (macho_add_oso_symfile): Update.
4479 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4480 Update.
4481 * linux-fork.c (checkpoint_command): Update.
4482 * linespec.c (convert_linespec_to_sals): Update.
4483 * jit.c (finalize_symtab): Update.
4484 * infrun.c (insert_exception_resume_from_probe): Update.
4485 * ia64-tdep.c (ia64_find_unwind_table): Update.
4486 * hppa-tdep.c (internalize_unwinds): Update.
4487 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4488 Update.
4489 * gcore.c (call_target_sbrk): Update.
4490 * elfread.c (record_minimal_symbol, elf_symtab_read)
4491 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4492 (elf_gnu_ifunc_resolve_by_got): Update.
4493 * dwarf2/read.c (create_addrmap_from_index)
4494 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4495 (read_debug_names_from_section)
4496 (process_psymtab_comp_unit_reader, add_partial_symbol)
4497 (add_partial_subprogram, process_full_comp_unit)
4498 (read_file_scope, read_func_scope, read_lexical_block_scope)
4499 (read_call_site_scope, dwarf2_ranges_read)
4500 (dwarf2_record_block_ranges, dwarf2_add_field)
4501 (mark_common_block_symbol_computed, read_tag_pointer_type)
4502 (read_tag_string_type, dwarf2_init_float_type)
4503 (dwarf2_init_complex_target_type, read_base_type)
4504 (partial_die_info::read, partial_die_info::read)
4505 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4506 (dwarf2_fetch_die_loc_sect_off): Update.
4507 * dwarf2/loc.c (dwarf2_find_location_expression)
4508 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4509 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4510 (dwarf2_loc_desc_get_symbol_read_needs)
4511 (locexpr_describe_location_piece, locexpr_describe_location_1)
4512 (loclist_describe_location): Update.
4513 * dwarf2/index-write.c (write_debug_names): Update.
4514 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4515 * dtrace-probe.c (dtrace_process_dof): Update.
4516 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4517 (process_one_symbol): Update.
4518 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4519 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4520 (coff_read_enum_type): Update.
4521 * cli/cli-cmds.c (edit_command, list_command): Update.
4522 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4523 * breakpoint.c (create_overlay_event_breakpoint)
4524 (create_longjmp_master_breakpoint)
4525 (create_std_terminate_master_breakpoint)
4526 (create_exception_master_breakpoint, get_sal_arch): Update.
4527 * block.c (block_gdbarch): Update.
4528 * annotate.c (annotate_source_line): Update.
4529
0743fc83
TT
45302020-04-17 Tom Tromey <tromey@adacore.com>
4531
4532 * auto-load.c (show_auto_load_cmd): Remove.
4533 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4534 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4535 (maintenance_print_arc_command): Remove.
4536 * tui/tui-win.c (tui_command): Remove.
4537 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4538 * tui/tui-layout.c (tui_layout_command): Remove.
4539 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4540 * python/python.c (user_set_python, user_show_python): Remove.
4541 (_initialize_python): Use add_basic_prefix_cmd,
4542 add_show_prefix_cmd.
4543 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4544 (install_gdb_commands): Use add_basic_prefix_cmd,
4545 add_show_prefix_cmd.
4546 (info_guile_command): Remove.
4547 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4548 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4549 add_show_prefix_cmd.
4550 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4551 Remove do_set and do_show parameters.
4552 * cli/cli-style.c (set_style, show_style): Remove.
4553 (_initialize_cli_style): Use add_basic_prefix_cmd,
4554 add_show_prefix_cmd.
4555 (cli_style_option::add_setshow_commands): Remove do_set and
4556 do_show parameters.
4557 (cli_style_option::add_setshow_commands): Use
4558 add_basic_prefix_cmd, add_show_prefix_cmd.
4559 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4560 (set_style_name): Remove.
4561 * cli/cli-dump.c (dump_command, append_command): Remove.
4562 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4563 (tekhex_dump_command, binary_dump_command)
4564 (binary_append_command): Remove.
4565 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4566 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4567 (init_w32_command_list): Remove; move into ...
4568 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4569 * valprint.c (set_print, show_print, set_print_raw)
4570 (show_print_raw): Remove.
4571 (_initialize_valprint): Use add_basic_prefix_cmd,
4572 add_show_prefix_cmd.
4573 * typeprint.c (set_print_type, show_print_type): Remove.
4574 (_initialize_typeprint): Use add_basic_prefix_cmd,
4575 add_show_prefix_cmd.
4576 * record.c (set_record_command, show_record_command): Remove.
4577 (_initialize_record): Use add_basic_prefix_cmd,
4578 add_show_prefix_cmd.
4579 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4580 add_show_prefix_cmd.
4581 (info_command, show_command, set_debug, show_debug): Remove.
4582 * top.h (set_history, show_history): Don't declare.
4583 * top.c (set_history, show_history): Remove.
4584 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4585 (unset_tdesc_cmd): Remove.
4586 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4587 add_show_prefix_cmd.
4588 * symtab.c (info_module_command): Remove.
4589 (_initialize_symtab): Use add_basic_prefix_cmd.
4590 * symfile.c (overlay_command): Remove.
4591 (_initialize_symfile): Use add_basic_prefix_cmd.
4592 * sparc64-tdep.c (info_adi_command): Remove.
4593 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4594 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4595 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4596 add_show_prefix_cmd.
4597 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4598 (_initialize_serial): Use add_basic_prefix_cmd,
4599 add_show_prefix_cmd.
4600 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4601 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4602 add_show_prefix_cmd.
4603 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4604 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4605 add_show_prefix_cmd.
4606 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4607 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4608 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4609 add_show_prefix_cmd.
4610 * remote.c (remote_command, set_remote_cmd): Remove.
4611 (_initialize_remote): Use add_basic_prefix_cmd.
4612 * record-full.c (set_record_full_command)
4613 (show_record_full_command): Remove.
4614 (_initialize_record_full): Use add_basic_prefix_cmd,
4615 add_show_prefix_cmd.
4616 * record-btrace.c (cmd_set_record_btrace)
4617 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4618 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4619 (cmd_show_record_btrace_pt): Remove.
4620 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4621 add_show_prefix_cmd.
4622 * ravenscar-thread.c (set_ravenscar_command)
4623 (show_ravenscar_command): Remove.
4624 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4625 add_show_prefix_cmd.
4626 * mips-tdep.c (show_mips_command, set_mips_command)
4627 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4628 add_show_prefix_cmd.
4629 * maint.c (maintenance_command, maintenance_info_command)
4630 (maintenance_check_command, maintenance_print_command)
4631 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4632 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4633 add_show_prefix_cmd.
4634 (show_per_command_cmd): Remove.
4635 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4636 Remove.
4637 (maintenance_show_test_settings_cmd): Remove.
4638 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4639 add_show_prefix_cmd.
4640 * maint-test-options.c (maintenance_test_options_command):
4641 Remove.
4642 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4643 * macrocmd.c (macro_command): Remove
4644 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4645 * language.c (set_check, show_check): Remove.
4646 (_initialize_language): Use add_basic_prefix_cmd,
4647 add_show_prefix_cmd.
4648 * infcmd.c (unset_command): Remove.
4649 (_initialize_infcmd): Use add_basic_prefix_cmd.
4650 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4651 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4652 add_show_prefix_cmd.
4653 * go32-nat.c (go32_info_dos_command): Remove.
4654 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4655 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4656 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4657 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4658 (_initialize_frame): Use add_basic_prefix_cmd,
4659 add_show_prefix_cmd.
4660 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4661 (_initialize_dcache): Use add_basic_prefix_cmd,
4662 add_show_prefix_cmd.
4663 * cp-support.c (maint_cplus_command): Remove.
4664 (_initialize_cp_support): Use add_basic_prefix_cmd.
4665 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4666 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4667 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4668 add_basic_prefix_cmd, add_show_prefix_cmd.
4669 * breakpoint.c (save_command): Remove.
4670 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4671 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4672 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4673 add_show_prefix_cmd.
4674 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4675 (set_ada_command, show_ada_command): Remove.
4676 (_initialize_ada_language): Use add_basic_prefix_cmd,
4677 add_show_prefix_cmd.
4678 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4679
3557f442
KR
46802020-04-16 Kamil Rytarowski <n54@gmx.com>
4681
4682 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4683 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4684
16197208
SM
46852020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4686
4687 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4688 warning messages.
4689
00ac85d3
SM
46902020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4691
4692 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4693 import table is not at beginning of .idata section.
4694
381ce63f
PA
46952020-04-16 Pedro Alves <palves@redhat.com>
4696
4697 * inferior.c (delete_inferior): Use delete operator directly
4698 instead of delete_program_space.
4699 * progspace.c (add_program_space): New, factored out from
4700 program_space::program_space.
4701 (remove_program_space): New, factored out from
4702 delete_program_space.
4703 (program_space::program_space): Remove intro comment. Rewrite.
4704 (program_space::~program_space): Remove intro comment. Call
4705 remove_program_space.
4706 (delete_program_space): Delete.
4707 * progspace.h (program_space::program_space): Make explicit. Move
4708 intro comment here, adjusted.
4709 (program_space::~program_space): Move intro comment here,
4710 adjusted.
4711 (delete_program_space): Remove.
4712
a010605f
TT
47132020-04-16 Tom Tromey <tromey@adacore.com>
4714
4715 * windows-nat.c (windows_nat::handle_access_violation): New
4716 function.
4717 * nat/windows-nat.h (handle_access_violation): Declare.
4718 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4719 windows-nat.c. Call handle_access_violation.
4720
efba5c23
TV
47212020-04-16 Tom de Vries <tdevries@suse.de>
4722
4723 PR symtab/25791
4724 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4725 CUs without psymtab.
4726
97ed802d
KB
47272020-04-16 Kevin Buettner <kevinb@redhat.com>
4728
4729 * python/python.c (do_start_initialization): Don't call
4730 PyEval_InitThreads for Python 3.9 and beyond.
4731
c7d64809
KR
47322020-04-15 Kamil Rytarowski <n54@gmx.com>
4733
4734 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4735 thread functions.
4736 (obsd_nat_target::wait): Likewise.
4737
ce127a96
TT
47382020-04-15 Tom Tromey <tromey@adacore.com>
4739
4740 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4741 (DEBUG_EXCEPT): Use debug_printf.
4742
99f1bc6a
AB
47432020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * completer.c (class completion_tracker::completion_hash_entry)
4746 <hash_name>: New member function.
4747 (completion_tracker::discard_completions): New callback to hash a
4748 completion_hash_entry, pass this to htab_create_alloc.
4749
a0e9b532
JT
47502016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4751
4752 * windows-nat.c (windows_make_so): Warn rather than stopping with
4753 an error if realpath() fails.
4754
06ca5dd4
KR
47552020-04-14 Kamil Rytarowski <n54@gmx.com>
4756
4757 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4758 (nbsd_nat_target::info_proc): Add do_status.
4759
194d088f
TV
47602020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4761 Tom de Vries <tdevries@suse.de>
4762
4763 PR symtab/25718
4764 * psympriv.h (struct partial_symtab::read_symtab)
4765 (struct partial_symtab::expand_psymtab)
4766 (struct partial_symtab::read_dependencies): Update comments.
4767 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4768 read_symtab for includer.
4769 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4770 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4771 (struct dwarf2_include_psymtab::m_readin): Remove.
4772 (struct dwarf2_include_psymtab::includer): New member function.
4773 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4774
c1a66c06
TV
47752020-04-14 Tom de Vries <tdevries@suse.de>
4776
4777 PR symtab/25720
4778 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4779 with NULL symbol_matcher and lookup_name.
4780 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4781 and lookup_name.
4782 * dwarf2/read.c (dw2_expand_symtabs_matching)
4783 (dw2_debug_names_expand_symtabs_matching): Same.
4784 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4785 Make lookup_name a pointer. Update comment.
4786 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4787 lookup_name being a pointer.
4788 * symfile.c (expand_symtabs_matching): Same.
4789 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4790 * linespec.c (iterate_over_all_matching_symtabs): Same.
4791
400b5eca
TT
47922020-04-13 Tom Tromey <tom@tromey.com>
4793
4794 * run-on-main-thread.c: Update include.
4795 * unittests/main-thread-selftests.c: Update include.
4796 * tui/tui-win.c: Update include.
4797 * tui/tui-io.c: Update include.
4798 * tui/tui-interp.c: Update include.
4799 * tui/tui-hooks.c: Update include.
4800 * top.h: Update include.
4801 * top.c: Update include.
4802 * ser-base.c: Update include.
4803 * remote.c: Update include.
4804 * remote-notif.c: Update include.
4805 * remote-fileio.c: Update include.
4806 * record-full.c: Update include.
4807 * record-btrace.c: Update include.
4808 * python/python.c: Update include.
4809 * posix-hdep.c: Update include.
4810 * mingw-hdep.c: Update include.
4811 * mi/mi-main.c: Update include.
4812 * mi/mi-interp.c: Update include.
4813 * main.c: Update include.
4814 * linux-nat.c: Update include.
4815 * interps.c: Update include.
4816 * infrun.c: Update include.
4817 * inf-loop.c: Update include.
4818 * event-top.c: Update include.
4819 * event-loop.c: Move to ../gdbsupport/.
4820 * event-loop.h: Move to ../gdbsupport/.
4821 * async-event.h: Update include.
4822 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4823
93b54c8e
TT
48242020-04-13 Tom Tromey <tom@tromey.com>
4825
4826 * tui/tui-win.c: Include async-event.h.
4827 * remote.c: Include async-event.h.
4828 * remote-notif.c: Include async-event.h.
4829 * record-full.c: Include async-event.h.
4830 * record-btrace.c: Include async-event.h.
4831 * infrun.c: Include async-event.h.
4832 * event-top.c: Include async-event.h.
4833 * event-loop.h: Move some declarations to async-event.h.
4834 * event-loop.c: Don't include ser-event.h or top.h. Move some
4835 code to async-event.c.
4836 * async-event.h: New file.
4837 * async-event.c: New file.
4838 * Makefile.in (COMMON_SFILES): Add async-event.c.
4839 (HFILES_NO_SRCDIR): Add async-event.h.
4840
c1cd3163
TT
48412020-04-13 Tom Tromey <tom@tromey.com>
4842
4843 * utils.c (flush_streams): New function.
4844 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4845
29f2bf4f
TT
48462020-04-13 Tom Tromey <tom@tromey.com>
4847
4848 * event-loop.c (handle_file_event): Use warning, not
4849 printf_unfiltered.
4850
98029d02
TT
48512020-04-13 Tom Tromey <tom@tromey.com>
4852
4853 * event-loop.c: Include <chrono>.
4854
06cc9596
TT
48552020-04-13 Tom Tromey <tom@tromey.com>
4856
4857 * gdb_select.h: Move to ../gdbsupport/.
4858 * event-loop.c: Update include path.
4859 * top.c: Update include path.
4860 * ser-base.c: Update include path.
4861 * ui-file.c: Update include path.
4862 * ser-tcp.c: Update include path.
4863 * guile/scm-ports.c: Update include path.
4864 * posix-hdep.c: Update include path.
4865 * ser-unix.c: Update include path.
4866 * gdb_usleep.c: Update include path.
4867 * mingw-hdep.c: Update include path.
4868 * inflow.c: Update include path.
4869 * infrun.c: Update include path.
4870 * event-top.c: Update include path.
4871
8ae8e197
TT
48722020-04-13 Tom Tromey <tom@tromey.com>
4873
4874 * configure: Rebuild.
4875 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4876
58cf28e8
TT
48772020-04-13 Tom Tromey <tom@tromey.com>
4878
4879 * event-loop.h (start_event_loop): Don't declare.
4880 * event-loop.c (start_event_loop): Move...
4881 * main.c (start_event_loop): ...here. Now static.
4882
b7f999ae
SDJ
48832020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4884
4885 * MAINTAINERS: Update my email address.
4886
1085dfd4
KR
48872020-04-12 Kamil Rytarowski <n54@gmx.com>
4888
4889 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4890 IP_ALL.
4891
49d1d1f5
KR
48922020-04-12 Kamil Rytarowski <n54@gmx.com>
4893
4894 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4895 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4896
b4848d2a
KR
48972020-04-12 Kamil Rytarowski <n54@gmx.com>
4898
4899 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4900 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4901
51c133d5
KR
49022020-04-12 Kamil Rytarowski <n54@gmx.com>
4903
4904 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4905
54b8cbd0
KR
49062020-04-11 Kamil Rytarowski <n54@gmx.com>
4907
4908 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4909 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4910 (nbsd_nat_target::info_proc): New functions.
4911 * nbsd-nat.c (kinfo_get_vmmap): New function.
4912 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4913 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4914 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4915 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4916 functions.
4917 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4918 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4919 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4920 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4921 (KINFO_VME_FLAG_GROWS_DOWN): New.
4922
cf83625d
AS
49232020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4924
4925 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4926 bit shift.
4927
0c4311ab
TT
49282020-04-10 Tom Tromey <tromey@adacore.com>
4929
4930 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4931
3e65b3e9
TT
49322020-04-10 Tom Tromey <tromey@adacore.com>
4933
4934 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4935 separate debug files.
4936
13302e95
HD
49372020-04-10 Hannes Domani <ssbssa@yahoo.de>
4938
4939 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4940 Move to...
4941 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4942 ... here.
4943 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4944 Check for STATUS_WX86_BREAKPOINT.
4945 (windows_nat_target::wait): Same.
4946
bdfc1e8a
TV
49472020-04-10 Tom de Vries <tdevries@suse.de>
4948
4949 PR cli/25808
4950 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4951
f4460aec
SM
49522020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4953
4954 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4955 (Write After Approval): Remove Tom de Vries.
4956
a25198bb
BE
49572020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4958
4959 revert partially:
4960 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4961
aac66a4c
SM
4962 * buildsym.c (record_line): Fix undefined behavior and preserve
4963 lines at eof.
a25198bb 4964
206c98a6
KR
49652020-04-09 Kamil Rytarowski <n54@gmx.com>
4966
4967 * auxv.h (svr4_auxv_parse): New.
4968 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4969 and generic_auxv_parse.
4970 (svr4_auxv_parse): Add.
4971 * obsd-tdep.c: Include "auxv.h".
4972 (obsd_auxv_parse): Remove.
4973 (obsd_init_abi): Remove comment.
4974 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4975 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4976 * nbsd-tdep.c: Include "auxv.h".
4977 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4978
71fbdbaf
TT
49792020-04-08 Tom Tromey <tromey@adacore.com>
4980
4981 * nat/windows-nat.h (last_wait_event): Don't declare.
4982 (wait_for_debug_event): Update comment.
4983 * nat/windows-nat.c (last_wait_event): Now static.
4984
2c1d95e8
TT
49852020-04-08 Tom Tromey <tromey@adacore.com>
4986
4987 * windows-nat.c (wait_for_debug_event): Move to
4988 nat/windows-nat.c.
4989 * nat/windows-nat.h (wait_for_debug_event): Declare.
4990 * nat/windows-nat.c (wait_for_debug_event): Move from
4991 windows-nat.c. No longer static.
4992
d2977bc4
TT
49932020-04-08 Tom Tromey <tromey@adacore.com>
4994
4995 * windows-nat.c (get_windows_debug_event): Use
4996 fetch_pending_stop.
4997 * nat/windows-nat.h (fetch_pending_stop): Declare.
4998 * nat/windows-nat.c (fetch_pending_stop): New function.
4999
e758e19c
TT
50002020-04-08 Tom Tromey <tromey@adacore.com>
5001
5002 * windows-nat.c (windows_continue): Use matching_pending_stop and
5003 continue_last_debug_event.
5004 * nat/windows-nat.h (matching_pending_stop)
5005 (continue_last_debug_event): Declare.
5006 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5007 (matching_pending_stop, continue_last_debug_event): New
5008 functions.
5009
8d30e395
TT
50102020-04-08 Tom Tromey <tromey@adacore.com>
5011
5012 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5013 (handle_exception_result): Move to nat/windows-nat.h.
5014 (DEBUG_EXCEPTION_SIMPLE): Remove.
5015 (windows_nat::handle_ms_vc_exception): New function.
5016 (handle_exception): Move to nat/windows-nat.c.
5017 (get_windows_debug_event): Update.
5018 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5019 nat/windows-nat.c.
5020 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5021 (handle_exception_result): Move from windows-nat.c.
5022 (handle_exception): Declare.
5023 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5024 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5025 windows-nat.c.
5026
29de418d
TT
50272020-04-08 Tom Tromey <tromey@adacore.com>
5028
5029 * windows-nat.c (exception_count, event_count): Remove.
5030 (handle_exception, get_windows_debug_event)
5031 (do_initial_windows_stuff): Update.
5032
a816ba18
TT
50332020-04-08 Tom Tromey <tromey@adacore.com>
5034
5035 * windows-nat.c (windows_nat::handle_load_dll)
5036 (windows_nat::handle_unload_dll): Rename. No longer static.
5037 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5038 Declare.
5039
a00caa12
TT
50402020-04-08 Tom Tromey <tromey@adacore.com>
5041
5042 * complaints.h (stop_whining): Declare at top-level.
5043 (complaint): Don't declare stop_whining.
5044
d41b524f
TT
50452020-04-08 Tom Tromey <tromey@adacore.com>
5046
5047 * windows-nat.c (windows_nat::handle_output_debug_string):
5048 Rename. No longer static.
5049 * nat/windows-nat.h (handle_output_debug_string): Declare.
5050
3c76026d
TT
50512020-04-08 Tom Tromey <tromey@adacore.com>
5052
5053 * windows-nat.c (current_process_handle, current_process_id)
5054 (main_thread_id, last_sig, current_event, last_wait_event)
5055 (current_windows_thread, desired_stop_thread_id, pending_stops)
5056 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5057 (display_selectors, fake_create_process)
5058 (get_windows_debug_event): Update.
5059 * nat/windows-nat.h (current_process_handle, current_process_id)
5060 (main_thread_id, last_sig, current_event, last_wait_event)
5061 (current_windows_thread, desired_stop_thread_id, pending_stops)
5062 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5063 * nat/windows-nat.c (current_process_handle, current_process_id)
5064 (main_thread_id, last_sig, current_event, last_wait_event)
5065 (current_windows_thread, desired_stop_thread_id, pending_stops)
5066 (siginfo_er): New globals. Move from windows-nat.c.
5067
9d8679cc
TT
50682020-04-08 Tom Tromey <tromey@adacore.com>
5069
5070 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5071 (handle_load_dll): Update.
5072 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5073
28688adf
TT
50742020-04-08 Tom Tromey <tromey@adacore.com>
5075
5076 * windows-nat.c (enum thread_disposition_type): Move to
5077 nat/windows-nat.h.
5078 (windows_nat::thread_rec): Rename from thread_rec. No longer
5079 static.
5080 (windows_add_thread, windows_nat_target::fetch_registers)
5081 (windows_nat_target::store_registers, handle_exception)
5082 (windows_nat_target::resume, get_windows_debug_event)
5083 (windows_nat_target::get_tib_address)
5084 (windows_nat_target::thread_name)
5085 (windows_nat_target::thread_alive): Update.
5086 * nat/windows-nat.h (enum thread_disposition_type): Move from
5087 windows-nat.c.
5088 (thread_rec): Declare.
5089
4834dad0
TT
50902020-04-08 Tom Tromey <tromey@adacore.com>
5091
5092 * windows-nat.c: Add "using namespace".
5093 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5094 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5095
65bafd5b
TT
50962020-04-08 Tom Tromey <tromey@adacore.com>
5097
5098 * nat/windows-nat.h (struct windows_thread_info): Declare
5099 destructor.
5100 * nat/windows-nat.c (~windows_thread_info): New.
5101
0a4afda3
TT
51022020-04-08 Tom Tromey <tromey@adacore.com>
5103
5104 PR gdb/22992
5105 * windows-nat.c (current_event): Update comment.
5106 (last_wait_event, desired_stop_thread_id): New globals.
5107 (struct pending_stop): New.
5108 (pending_stops): New global.
5109 (windows_nat_target) <stopped_by_sw_breakpoint>
5110 <supports_stopped_by_sw_breakpoint>: New methods.
5111 (windows_fetch_one_register): Add assertions. Adjust PC.
5112 (windows_continue): Handle pending stops. Suspend other threads
5113 when stepping. Use last_wait_event
5114 (wait_for_debug_event): New function.
5115 (get_windows_debug_event): Use wait_for_debug_event. Handle
5116 pending stops. Queue spurious stops.
5117 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5118 (windows_nat_target::kill): Use wait_for_debug_event.
5119 * nat/windows-nat.h (struct windows_thread_info)
5120 <stopped_at_software_breakpoint>: New field.
5121 * nat/windows-nat.c (windows_thread_info::resume): Clear
5122 stopped_at_software_breakpoint.
5123
8e61ebec
TT
51242020-04-08 Tom Tromey <tromey@adacore.com>
5125
5126 * windows-nat.c (enum thread_disposition_type): New.
5127 (thread_rec): Replace "get_context" parameter with "disposition";
5128 change type.
5129 (windows_add_thread, windows_nat_target::fetch_registers)
5130 (windows_nat_target::store_registers, handle_exception)
5131 (windows_nat_target::resume, get_windows_debug_event)
5132 (windows_nat_target::get_tib_address)
5133 (windows_nat_target::thread_name)
5134 (windows_nat_target::thread_alive): Update.
5135
98a03287
TT
51362020-04-08 Tom Tromey <tromey@adacore.com>
5137
5138 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5139 (windows_continue): Use windows_continue::resume.
5140 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5141 resume>: Declare new methods.
5142 * nat/windows-nat.c: New file.
5143 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5144
7c7411bc
TT
51452020-04-08 Tom Tromey <tromey@adacore.com>
5146
5147 * windows-nat.c (windows_add_thread, windows_delete_thread)
5148 (windows_nat_target::fetch_registers)
5149 (windows_nat_target::store_registers, fake_create_process)
5150 (windows_nat_target::resume, windows_nat_target::resume)
5151 (get_windows_debug_event, windows_nat_target::wait)
5152 (windows_nat_target::pid_to_str)
5153 (windows_nat_target::get_tib_address)
5154 (windows_nat_target::get_ada_task_ptid)
5155 (windows_nat_target::thread_name)
5156 (windows_nat_target::thread_alive): Use lwp, not tid.
5157
2950fdf7
TT
51582020-04-08 Tom Tromey <tromey@adacore.com>
5159
5160 * windows-nat.c (handle_exception)
5161 (windows_nat_target::thread_name): Update.
5162 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5163 <name>: Now unique_xmalloc_ptr.
5164
62fe396b
TT
51652020-04-08 Tom Tromey <tromey@adacore.com>
5166
5167 * windows-nat.c (thread_rec)
5168 (windows_nat_target::fetch_registers): Update.
5169 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5170 Update comment.
5171 <debug_registers_changed, reload_context>: Now bool.
5172
e9534bd2
TT
51732020-04-08 Tom Tromey <tromey@adacore.com>
5174
5175 * windows-nat.c (windows_add_thread): Use new.
5176 (windows_init_thread_list, windows_delete_thread): Use delete.
5177 (get_windows_debug_event): Update.
5178 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5179 destructor, and initializers.
5180
ae1f8880
TT
51812020-04-08 Tom Tromey <tromey@adacore.com>
5182
5183 * windows-nat.c (struct windows_thread_info): Remove.
5184 * nat/windows-nat.h: New file.
5185
55a1e039
TT
51862020-04-08 Tom Tromey <tromey@adacore.com>
5187
5188 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5189 (thread_rec, windows_add_thread, windows_delete_thread)
5190 (windows_continue): Update.
5191
93366324
TT
51922020-04-08 Tom Tromey <tromey@adacore.com>
5193
5194 * windows-nat.c (struct windows_thread_info): Remove typedef.
5195 (thread_head): Remove.
5196 (thread_list): New global.
5197 (thread_rec, windows_add_thread, windows_init_thread_list)
5198 (windows_delete_thread, windows_continue): Update.
5199
0f2265e2
SM
52002020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5201
5202 * windows-tdep.h (windows_init_abi): Add comment.
5203 (cygwin_init_abi): New declaration.
5204 * windows-tdep.c: Split signal enumeration in two, one for
5205 Windows and one for Cygwin.
5206 (windows_gdb_signal_to_target): Only deal with signal of the
5207 Windows OS ABI.
5208 (cygwin_gdb_signal_to_target): New function.
5209 (windows_init_abi): Rename to windows_init_abi_common, don't set
5210 gdb_signal_to_target gdbarch method. Add new new function with
5211 this name.
5212 (cygwin_init_abi): New function.
5213 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5214 comment. Don't call windows_init_abi.
5215 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5216 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5217 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5218 i386_windows_init_abi_common, don't call windows_init_abi. Add
5219 a new function of this name.
5220 (i386_cygwin_init_abi): New function.
5221 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5222 OS ABI Cygwin.
5223
3810f182
SM
52242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5225
5226 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5227 parameter.c.
5228 (dwarf2_read_gdb_index): Update.
5229
063f8e80
KR
52302020-04-07 Kamil Rytarowski <n54@gmx.com>
5231
5232 * nbsd-tdep.c: Include "objfiles.h".
5233 (nbsd_skip_solib_resolver): New.
5234 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5235
85a9510c 52362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5237
5238 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5239 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5240 with DW_LLE_base_addressx are being emitted in DWARFv5.
5241 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5242 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5243 unsigned integer.
5244
9fc3eaae 52452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5246
5247 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5248 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5249 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5250 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5251 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5252 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5253 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5254
5255
41144253 52562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5257
5258 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5259 (read_loclist_index): New function definition.
5260 (lookup_loclist_base): New function definition.
5261 (read_loclist_header): New function definition.
5262 (dwarf2_cu): Add loclist_base and loclist_header field.
5263 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5264 (read_full_die_1): Read the value of DW_AT_loclists_base.
5265 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5266 (read_attribute_value): Handle DW_FORM_loclistx.
5267 (skip_one_die): Handle DW_FORM_loclistx.
5268 (loclist_header): New structure declaration.
5269 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5270
9f4e76a4
SM
52712020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5272
5273 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5274 constructor. Remove `addr` parameter from other constructor and
5275 add `per_cu` parameter.
5276 * dwarf2/read.c (create_partial_symtab): Update.
5277
25c11aca
TV
52782020-04-07 Tom de Vries <tdevries@suse.de>
5279
5280 PR symtab/25796
5281 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5282 (partial_die_info::fixup): Inherit has_const_value.
5283
5707e24b
TV
52842020-04-07 Tom de Vries <tdevries@suse.de>
5285
5286 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5287 symbols without address.
5288
05f00e22
KR
52892020-04-06 Kamil Rytarowski <n54@gmx.com>
5290
5291 * nbsd-nat.h (struct thread_info): Add forward declaration.
5292 (nbsd_nat_target::thread_alive): Add.
5293 (nbsd_nat_target::thread_name): Likewise.
5294 (nbsd_nat_target::update_thread_list): Likewise.
5295 (update_thread_list::post_attach): Likewise.
5296 (post_attach::pid_to_str): Likewise.
5297 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5298 (nbsd_thread_lister): Add.
5299 (nbsd_nat_target::thread_alive): Likewise.
5300 (nbsd_nat_target::thread_name): Likewise.
5301 (nbsd_add_threads): Likewise.
5302 (update_thread_list::post_attach): Likewise.
5303 (nbsd_nat_target::update_thread_list): Likewise.
5304 (post_attach::pid_to_str): Likewise.
5305
6ee448cc
TT
53062020-04-06 Tom Tromey <tromey@adacore.com>
5307
5308 * ada-valprint.c (print_variant_part): Extract the variant field.
5309 (print_field_values): Use the field as the outer value when
5310 recursing.
5311
dea34e8c
TT
53122020-04-06 Tom Tromey <tromey@adacore.com>
5313
5314 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5315 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5316 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5317 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5318 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5319
93689ce9
TT
53202020-04-06 Tom Tromey <tromey@adacore.com>
5321
5322 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5323 TYPE_CODE_ERROR.
5324
79743962
KR
53252020-04-06 Kamil Rytarowski <n54@gmx.com>
5326
5327 * nbsd-tdep.c: Include "gdbarch.h".
5328 Define enum with NetBSD signal numbers.
5329 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5330 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5331 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5332 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5333 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5334 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5335 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5336 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5337 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5338 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5339 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5340 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5341
9e7c9a03
HD
53422020-04-03 Hannes Domani <ssbssa@yahoo.de>
5343
5344 PR gdb/25325
5345 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5346
d9e49b61
TT
53472020-04-03 Tom Tromey <tromey@adacore.com>
5348
5349 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5350 Read constant block.
5351
e0fc5c3f
SM
53522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5353
5354 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5355 (gdb_bfd_get_full_section_contents): New declaration.
5356 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5357 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5358 gdb_bfd_get_full_section_contents.
5359
e2ff18a0
SM
53602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * exec.c (build_section_table): Replace internal_error with
5363 gdb_assert.
5364 (section_table_xfer_memory_partial): Likewise.
5365 * mdebugread.c (parse_partial_symbols): Likewise.
5366 * psymtab.c (lookup_partial_symbol): Likewise.
5367 * utils.c (wrap_here): Likewise.
5368
0830d301
TT
53692020-04-02 Tom Tromey <tromey@adacore.com>
5370
5371 * f-lang.c (build_fortran_types): Use arch_type to initialize
5372 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5373
e7da7f8f
TT
53742020-04-02 Tom Tromey <tromey@adacore.com>
5375
5376 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5377 of attributes.
5378
c90d28ac
AB
53792020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5380 Bernd Edlinger <bernd.edlinger@hotmail.de>
5381 Tom Tromey <tromey@adacore.com>
5382
5383 * buildsym.c (buildsym_compunit::record_line): Remove
5384 deduplication code.
5385
1aa98955
TV
53862020-04-02 Tom de Vries <tdevries@suse.de>
5387
5388 PR ada/24671
5389 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5390
d3214198
TV
53912020-04-02 Tom de Vries <tdevries@suse.de>
5392
5393 * dwarf2/read.c (dwarf2_gdb_index_functions,
5394 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5395 NULL.
5396 * psymtab.c (psym_lookup_global_symbol_language): New function.
5397 (psym_functions): Init psym_lookup_global_symbol_language with
5398 psym_lookup_global_symbol_language.
5399 * symfile-debug.c (debug_sym_quick_functions): Init
5400 lookup_global_symbol_language with NULL.
5401 * symfile.c (set_initial_language): Remove fixme comment.
5402 * symfile.h (struct quick_symbol_functions): Add
5403 lookup_global_symbol_language.
5404 * symtab.c (find_quick_global_symbol_language): New function.
5405 (find_main_name): Use find_quick_global_symbol_language.
5406
2836752f
SM
54072020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5408
5409 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5410
64dc2d4b
BE
54112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5412
5413 * buildsym.c (record_line): Fix undefined behavior and preserve
5414 lines at eof.
5415
bbe3dc41
BE
54162020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5417
5418 * buildsym.c (record_line): Fix the resizing condition.
5419
6b4a335b
TT
54202020-04-01 Tom Tromey <tom@tromey.com>
5421
5422 * value.h (value_literal_complex): Add comment.
5423 * valops.c (value_literal_complex): Refer to value.h.
5424
3638a098
TT
54252020-04-01 Tom Tromey <tom@tromey.com>
5426
5427 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5428 (scalar_type): New rule, from typebase.
5429 (typebase): Use scalar_type. Recognize complex types.
5430 (field_name): Handle FLOAT_KEYWORD.
5431 (ident_tokens): Add _Complex and __complex__.
5432
c34e8714
TT
54332020-04-01 Tom Tromey <tom@tromey.com>
5434
5435 PR exp/25299:
5436 * valarith.c (promotion_type, complex_binop): New functions.
5437 (scalar_binop): Handle complex numbers. Use promotion_type.
5438 (value_pos, value_neg, value_complement): Handle complex numbers.
5439
fa649bb7
TT
54402020-04-01 Tom Tromey <tom@tromey.com>
5441
5442 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5443 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5444 (parse_number): Handle complex numbers.
5445
981c08ce
TT
54462020-04-01 Tom Tromey <tom@tromey.com>
5447
5448 * c-valprint.c (c_decorations): Change complex suffix to "i".
5449
4c99290d
TT
54502020-04-01 Tom Tromey <tom@tromey.com>
5451
5452 * valprint.c (generic_value_print_complex): Use accessors.
5453 * value.h (value_real_part, value_imaginary_part): Declare.
5454 * valops.c (value_real_part, value_imaginary_part): New
5455 functions.
5456 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5457
5b930b45
TT
54582020-04-01 Tom Tromey <tom@tromey.com>
5459
5460 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5461 (read_range_type): Update.
5462 * mdebugread.c (basic_type): Update.
5463 * go-lang.c (build_go_types): Use init_complex_type.
5464 * gdbtypes.h (struct main_type) <complex_type>: New member.
5465 (init_complex_type): Update.
5466 (arch_complex_type): Don't declare.
5467 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5468 Make name if none given. Use alloc_type_copy. Look for cached
5469 complex type.
5470 (arch_complex_type): Remove.
5471 (gdbtypes_post_init): Use init_complex_type.
5472 * f-lang.c (build_fortran_types): Use init_complex_type.
5473 * dwarf2/read.c (read_base_type): Update.
5474 * d-lang.c (build_d_types): Use init_complex_type.
5475 * ctfread.c (read_base_type): Update.
5476
53cccef1
TBA
54772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5478
5479 * infrun.c (stop_all_threads): Update assertion, plus when
5480 stopping threads, take into account that we might be trying
5481 to stop an all-stop target.
5482 (stop_waiting): Call 'stop_all_threads' if there exists a
5483 non-stop target.
5484
a0714d30
TBA
54852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5486
5487 * target.h (exists_non_stop_target): New function declaration.
5488 * target.c (exists_non_stop_target): New function.
5489
60e22c1e
HD
54902020-04-01 Hannes Domani <ssbssa@yahoo.de>
5491
5492 PR gdb/24789
5493 * eval.c (is_integral_or_integral_reference): New function.
5494 (evaluate_subexp_standard): Allow integer references in
5495 pointer arithmetic.
5496
e139a727
TBA
54972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5498
5499 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5500 check for no ptid in the stop reply when the target is non-stop.
5501
e0802d59
TT
55022020-04-01 Tom Tromey <tromey@adacore.com>
5503
5504 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5505 "name" parameter to rvalue reference. Initialize m_name_holder.
5506 <lookup_name_info>: New overloads.
5507 <name>: Return gdb::string_view.
5508 <c_str>: New method.
5509 <make_ignore_params>: Update.
5510 <search_name_hash>: Update.
5511 <language_lookup_name>: Return const char *.
5512 <m_name>: Change type.
5513 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5514 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5515 (lookup_name_info::match_any): Update.
5516 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5517 Update.
5518 * minsyms.c (linkage_name_str): Update.
5519 * language.c (default_symbol_name_matcher): Update.
5520 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5521 Update.
5522 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5523 (ada_lookup_name_info::ada_lookup_name_info): Update.
5524 (literal_symbol_name_matcher): Update.
5525
8c072cb6
TT
55262020-04-01 Tom Tromey <tromey@adacore.com>
5527
5528 * psymtab.c (psymtab_search_name): Remove function.
5529 (psym_lookup_symbol): Create search name and lookup name here.
5530 (lookup_partial_symbol): Remove "name" parameter; add
5531 lookup_name.
5532 (psym_expand_symtabs_for_function): Update.
5533
6f29a534
TT
55342020-03-31 Joel Jones <joelkevinjones@gmail.com>
5535
5536 PR tui/25597:
5537 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5538
af62665e
TT
55392020-03-31 Tom Tromey <tromey@adacore.com>
5540
5541 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5542 memcpy.
5543
d1a89da5
NC
55442020-03-30 Nelson Chu <nelson.chu@sifive.com>
5545
5546 * features/riscv/32bit-csr.xml: Regenerated.
5547 * features/riscv/64bit-csr.xml: Regenerated.
5548
d8af9068
TT
55492020-03-30 Tom Tromey <tromey@adacore.com>
5550
5551 * ada-valprint.c (print_variant_part): Update.
5552 * ada-lang.h (ada_which_variant_applies): Update.
5553 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5554 outer_valaddr parameters; replace with "outer" value parameter.
5555 (to_fixed_variant_branch_type): Update.
5556
227c0bf4
PFC
55572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5558
5559 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5560 <list>. Remove inclusion of observable.h.
5561 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5562 (struct arch_lwp_info): New struct.
5563 (class ppc_linux_dreg_interface): New class.
5564 (struct ppc_linux_process_info): New struct.
5565 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5566 <low_new_clone, low_forget_process, low_prepare_to_resume>
5567 <copy_thread_dreg_state, mark_thread_stale>
5568 <mark_debug_registers_changed, register_hw_breakpoint>
5569 <clear_hw_breakpoint, register_wp, clear_wp>
5570 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5571 <num_memory_accesses, get_trigger_type>
5572 <create_watchpoint_request, hwdebug_point_cmp>
5573 <init_arch_lwp_info, get_arch_lwp_info>
5574 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5575 methods.
5576 <struct ptid_hash>: New inner struct.
5577 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5578 members.
5579 (saved_dabr_value, hwdebug_info, max_slots_number)
5580 (struct hw_break_tuple, struct thread_points, ppc_threads)
5581 (have_ptrace_hwdebug_interface)
5582 (hwdebug_find_thread_points_by_tid)
5583 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5584 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5585 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5586 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5587 use m_dreg_interface.
5588 (hwdebug_point_cmp): Change to...
5589 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5590 reference arguments instead of pointers.
5591 (ppc_linux_nat_target::ranged_break_num_registers): Use
5592 m_dreg_interface.
5593 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5594 m_dreg_interface. Call register_hw_breakpoint.
5595 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5596 m_dreg_interface. Call clear_hw_breakpoint.
5597 (get_trigger_type): Change to...
5598 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5599 comment.
5600 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5601 use m_dreg_interface. Call register_hw_breakpoint.
5602 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5603 use m_dreg_interface. Call clear_hw_breakpoint.
5604 (can_use_watchpoint_cond_accel): Change to...
5605 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5606 method. Update comment, use m_dreg_interface and
5607 m_process_info.
5608 (calculate_dvc): Change to...
5609 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5610 m_dreg_interface.
5611 (num_memory_accesses): Change to...
5612 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5613 (check_condition): Change to...
5614 (ppc_linux_nat_target::check_condition): ...this method.
5615 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5616 comment, use m_dreg_interface.
5617 (create_watchpoint_request): Change to...
5618 (ppc_linux_nat_target::create_watchpoint_request): ...this
5619 method. Use m_dreg_interface.
5620 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5621 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5622 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5623 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5624 (ppc_linux_nat_target::low_forget_process)
5625 (ppc_linux_nat_target::low_new_fork)
5626 (ppc_linux_nat_target::low_new_clone)
5627 (ppc_linux_nat_target::low_delete_thread)
5628 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5629 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5630 only call mark_thread_stale.
5631 (ppc_linux_thread_exit): Remove.
5632 (ppc_linux_nat_target::stopped_data_address): Change to...
5633 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5634 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5635 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5636 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5637 comment. Call low_stopped_data_address.
5638 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5639 m_dreg_interface.
5640 (ppc_linux_nat_target::masked_watch_num_registers): Use
5641 m_dreg_interface.
5642 (ppc_linux_nat_target::copy_thread_dreg_state)
5643 (ppc_linux_nat_target::mark_thread_stale)
5644 (ppc_linux_nat_target::mark_debug_registers_changed)
5645 (ppc_linux_nat_target::register_hw_breakpoint)
5646 (ppc_linux_nat_target::clear_hw_breakpoint)
5647 (ppc_linux_nat_target::register_wp)
5648 (ppc_linux_nat_target::clear_wp)
5649 (ppc_linux_nat_target::init_arch_lwp_info)
5650 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5651 (_initialize_ppc_linux_nat): Remove observer callback.
5652
4db10d8f
PFC
56532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5654
5655 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5656 (ppc_linux_nat_target::auxv_parse)
5657 (ppc_linux_nat_target::read_description)
5658 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5659 Move up.
5660
1310c1b0
PFC
56612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5662
5663 * linux-nat.h (low_new_clone): New method.
5664 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5665
69b037c3
SM
56662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5667
5668 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5669 (dbx_expand_psymtab): ... this.
5670 (start_psymtab): Update.
5671 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5672 (mdebug_expand_psymtab): ... this.
5673 (parse_partial_symbols): Update.
5674 (new_psymtab): Update.
5675 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5676 (xcoff_expand_psymtab): ... this.
5677 (xcoff_start_psymtab): Update.
5678
48993951
SM
56792020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5680
5681 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5682 <expand_dependencies>: ... this.
5683 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5684 (partial_symtab::expand_dependencies): ... this.
5685 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5686 Update.
5687 (dwarf2_psymtab::expand_psymtab): Update.
5688 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5689 * mdebugread.c (psymtab_to_symtab_1): Update.
5690 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5691
3ad83046
SM
56922020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5693
5694 * psympriv.h (discard_psymtab): Remove.
5695 * dbxread.c (dbx_end_psymtab): Update.
5696 * xcoffread.c (xcoff_end_psymtab): Update.
5697
4d1b9ab6
TT
56982020-03-28 Tom Tromey <tom@tromey.com>
5699
5700 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5701 comment.
5702
f1749218
TT
57032020-03-28 Tom Tromey <tom@tromey.com>
5704
5705 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5706
ebea7626
HD
57072020-03-27 Hannes Domani <ssbssa@yahoo.de>
5708
5709 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5710
a879b4d5
JB
57112020-03-26 John Baldwin <jhb@FreeBSD.org>
5712
5713 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5714
0826b30a
TT
57152020-03-26 Tom Tromey <tom@tromey.com>
5716
5717 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5718 (mark_common_block_symbol_computed, read_tag_string_type)
5719 (attr_to_dynamic_prop, read_subrange_type): Update.
5720 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5721 to be methods on struct attribute.
5722 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5723 (read_call_site_scope, partial_die_info::read)
5724 (partial_die_info::read, lookup_die_type, follow_die_ref):
5725 Update.
5726 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5727 from dwarf2_get_ref_die_offset.
5728 (attribute::constant_value): New method, from
5729 dwarf2_get_attr_constant_value.
5730 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5731 Declare method.
5732 <constant_value>: New method.
5733
2b2558bf
TT
57342020-03-26 Tom Tromey <tom@tromey.com>
5735
5736 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5737 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5738 (dwarf_type_encoding_name): Move to stringify.c.
5739 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5740 * dwarf2/stringify.c: New file.
5741 * dwarf2/stringify.h: New file.
5742
eeb64781
TT
57432020-03-26 Tom Tromey <tom@tromey.com>
5744
5745 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5746 Rewrite.
5747
a39fdb41
TT
57482020-03-26 Tom Tromey <tom@tromey.com>
5749
5750 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5751 methods.
5752 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5753 (lookup_ranges_base): Likewise.
5754 (read_cutu_die_from_dwo, read_full_die_1): Update.
5755
436c571c
TT
57562020-03-26 Tom Tromey <tom@tromey.com>
5757
5758 * dwarf2/read.c (read_import_statement, read_file_scope)
5759 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5760 (read_lexical_block_scope, read_call_site_scope)
5761 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5762 (handle_struct_member_die, process_structure_scope)
5763 (update_enumeration_type_from_children)
5764 (process_enumeration_scope, read_array_type, read_common_block)
5765 (read_namespace, read_module, read_subroutine_type): Update.
5766 (sibling_die): Remove.
5767
052c8bb8
TT
57682020-03-26 Tom Tromey <tom@tromey.com>
5769
5770 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5771 (build_type_psymtabs_reader, read_structure_type)
5772 (read_enumeration_type, read_full_die_1): Update.
5773 (dwarf2_attr_no_follow): Move to die.h.
5774 * dwarf2/die.h (struct die_info) <attr>: New method.
5775
2b24b6e4
TT
57762020-03-26 Tom Tromey <tom@tromey.com>
5777
5778 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5779 <base_address>: Now an optional.
5780 (dwarf2_find_base_address, dwarf2_rnglists_process)
5781 (dwarf2_ranges_process, fill_in_loclist_baton)
5782 (dwarf2_symbol_mark_computed): Update.
5783
c2d50fd0
TT
57842020-03-26 Tom Tromey <tom@tromey.com>
5785
5786 * dwarf2/read.c (struct die_info): Move to die.h.
5787 * dwarf2/die.h: New file.
5788
0df7ad3a
TT
57892020-03-26 Tom Tromey <tom@tromey.com>
5790
5791 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5792 * dwarf2/read.c
5793 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5794 Move to line-header.c.
5795 (read_checked_initial_length_and_offset, read_formatted_entries):
5796 Likewise.
5797 (dwarf_decode_line_header): Split into two.
5798 * dwarf2/line-header.c
5799 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5800 Move from read.c.
5801 (read_checked_initial_length_and_offset, read_formatted_entries):
5802 Likewise.
5803 (dwarf_decode_line_header): New function, split from read.c.
5804
86c0bb4c
TT
58052020-03-26 Tom Tromey <tom@tromey.com>
5806
5807 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5808 Declare method.
5809 * dwarf2/read.c (read_attribute_value): Update.
5810 (dwarf2_per_objfile::read_line_string): Rename from
5811 read_indirect_line_string.
5812 (read_formatted_entries): Update.
5813
2ef46c2f
TT
58142020-03-26 Tom Tromey <tom@tromey.com>
5815
5816 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5817 variable.
5818
4f9c1eda
TT
58192020-03-26 Tom Tromey <tom@tromey.com>
5820
5821 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5822 const.
5823 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5824 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5825 parameter const.
5826
5a0e026f
TT
58272020-03-26 Tom Tromey <tom@tromey.com>
5828
5829 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5830 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5831 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5832 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5833
8844c11b
TT
58342020-03-26 Tom Tromey <tom@tromey.com>
5835
5836 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5837 file_names_size, file_full_name, file_file_name>: Use const.
5838 <file_name_at, file_names>: Add const overload.
5839 * dwarf2/line-header.c (line_header::file_file_name)
5840 (line_header::file_full_name): Update.
5841
c90ec28a
TT
58422020-03-26 Tom Tromey <tom@tromey.com>
5843
5844 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5845 (macro_start_file, consume_improper_spaces)
5846 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5847 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5848 (dwarf_decode_macros): Move to macro.c.
5849 * dwarf2/macro.c: New file.
5850 * dwarf2/macro.h: New file.
5851 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5852
4f44ae6c
TT
58532020-03-26 Tom Tromey <tom@tromey.com>
5854
5855 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5856 method.
5857 * dwarf2/section.c: New method. From
5858 read_indirect_string_at_offset_from.
5859 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5860 (read_indirect_string_at_offset_from): Move to section.c.
5861 (read_indirect_string_at_offset): Rewrite.
5862 (read_indirect_line_string_at_offset): Remove.
5863 (read_indirect_string, read_indirect_line_string)
5864 (dwarf_decode_macro_bytes): Update.
5865
a0194fa8
TT
58662020-03-26 Tom Tromey <tom@tromey.com>
5867
5868 * dwarf2/section.h (struct dwarf2_section_info)
5869 <overload_complaint>: Declare.
5870 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5871 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5872 Rename from dwarf2_section_buffer_overflow_complaint.
5873 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5874 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5875
3d27bbdb
TT
58762020-03-26 Tom Tromey <tom@tromey.com>
5877
5878 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5879 Declare.
5880 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5881 Move from read.c.
5882 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5883 to section.c.
5884
9eac9650
TT
58852020-03-26 Tom Tromey <tom@tromey.com>
5886
5887 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5888
bf80d710
TT
58892020-03-26 Tom Tromey <tom@tromey.com>
5890
5891 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5892 "builder".
5893 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5894 parameter.
5895 (dwarf_decode_macros): Update.
5896
0314b390
TT
58972020-03-26 Tom Tromey <tom@tromey.com>
5898
5899 * dwarf2/read.c (read_attribute_value): Update.
5900 (read_indirect_string_from_dwz): Move to dwz.c; change into
5901 method.
5902 (dwarf_decode_macro_bytes): Update.
5903 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5904 * dwarf2/dwz.c: New file.
5905 * Makefile.in (COMMON_SFILES): Add dwz.c.
5906
9fda78b6
TT
59072020-03-26 Tom Tromey <tom@tromey.com>
5908
5909 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5910 * dwarf2/read.c: Add include.
5911 * dwarf2/index-write.c: Add include.
5912 * dwarf2/index-cache.c: Add include.
5913 * dwarf2/dwz.h: New file.
5914
33aa3c10
TT
59152020-03-25 Tom Tromey <tom@tromey.com>
5916
5917 * compile/compile-object-load.c (get_out_value_type): Mention
5918 correct symbol name in error message.
5919
d503b685
HD
59202020-03-25 Hannes Domani <ssbssa@yahoo.de>
5921
5922 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5923
7b1eff95
TV
59242020-03-25 Tom de Vries <tdevries@suse.de>
5925
5926 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5927 * symmisc.c (dump_symtab_1): Print user and includes fields.
5928 (maintenance_info_symtabs): Same.
5929
dd895392
AB
59302020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 PR gdb/25534
5933 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5934 (riscv_regcache_cooked_write): New function.
5935 (riscv_push_dummy_call): Use new function.
5936 (riscv_return_value): Likewise.
5937
5ab2fbf1
SM
59382020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5941 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5942 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5943 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5944 * infrun.c (follow_fork): Likewise.
5945 (follow_fork_inferior): Likewise.
5946 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5947 * linux-nat.h (class linux_nat_target): Likewise.
5948 * remote.c (class remote_target) <follow_fork>: Likewise.
5949 (remote_target::follow_fork): Likewise.
5950 * target-delegates.c: Re-generate.
5951 * target.c (default_follow_fork): Likewise.
5952 (target_follow_fork): Likewise.
5953 * target.h (struct target_ops) <follow_fork>: Likewise.
5954 (target_follow_fork): Likewise.
5955
a64fafb5
TV
59562020-03-24 Tom de Vries <tdevries@suse.de>
5957
5958 * psymtab.c (maintenance_info_psymtabs): Print user field.
5959
fe26d3a3
TT
59602020-03-20 Tom Tromey <tromey@adacore.com>
5961
5962 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5963 const.
5964 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5965 const.
5966
c884cc46
SM
59672020-03-20 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * ptrace.m4: Don't check for ptrace declaration.
5970 * config.in: Re-generate.
5971 * configure: Re-generate.
5972 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5973 not defined.
5974
1ff700c2
KR
59752020-03-20 Kamil Rytarowski <n54@gmx.com>
5976
5977 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5978 `PTRACE_TYPE_RET'.
5979 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5980 * sparc-nat.c (gdb_ptrace): Likewise.
5981 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5982
f7d4f0b1
TT
59832020-03-20 Tom Tromey <tromey@adacore.com>
5984
5985 * c-exp.y (lex_one_token): Fix assert.
5986
f67210ff
TT
59872020-03-20 Tom Tromey <tromey@adacore.com>
5988
5989 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5990 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5991 strncpy call.
5992
1773be9e
TT
59932020-03-20 Tom Tromey <tromey@adacore.com>
5994
5995 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5996
70304be9
TT
59972020-03-20 Tom Tromey <tromey@adacore.com>
5998
5999 * ada-valprint.c (print_variant_part): Remove parameters; switch
6000 to value-based API.
6001 (print_field_values): Likewise.
6002 (ada_val_print_struct_union): Likewise.
6003 (ada_value_print_1): Update.
6004
9faa006d
KR
60052020-03-20 Kamil Rytarowski <n54@gmx.com>
6006
6007 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6008 nbsd_nat_target instead of inf_ptrace_target.
6009 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6010 nbsd_nat_target.
6011
4a90f062
KR
60122020-03-20 Kamil Rytarowski <n54@gmx.com>
6013
6014 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6015 it to the ptrace call.
6016 * (store_registers): Likewise.
6017
60182020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6019
6020 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6021 it to the ptrace call.
6022 * (store_registers): Likewise.
6023
2d07da27
LM
60242020-03-19 Luis Machado <luis.machado@linaro.org>
6025
6026 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6027 valid, fetch vg value from ptrace.
6028
f09db380
KR
60292020-03-19 Kamil Rytarowski <n54@gmx.com>
6030 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6031 * inf-ptrace.c: Likewise.
6032 * (gdb_ptrace): Add.
6033 * (inf_ptrace_target::resume): Update.
6034 * (inf_ptrace_target::xfer_partial): Likewise.
6035 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6036 * (inf_ptrace_peek_poke): Update.
6037
fcc7376e
KR
60382020-03-19 Kamil Rytarowski <n54@gmx.com>
6039
6040 * x86-bsd-nat.c (gdb_ptrace): New.
6041 * (x86bsd_dr_set): Add new argument `ptid'.
6042 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6043 x86bsd_dr_set_addr): Update.
6044
cada5fc9
AB
60452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * remote.c (remote_target::process_stop_reply): Handle events for
6048 all threads differently.
6049
19a2740f
AB
60502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * completer.c (completion_tracker::remove_completion): Define new
6053 function.
6054 * completer.h (completion_tracker::remove_completion): Declare new
6055 function.
6056 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6057 when adding a C++ function symbol.
6058
724fd9ba
AB
60592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6060
6061 * completer.c (completion_tracker::completion_hash_entry): Define
6062 new class.
6063 (advance_to_filename_complete_word_point): Call
6064 recompute_lowest_common_denominator.
6065 (completion_tracker::completion_tracker): Call discard_completions
6066 to setup the hash table.
6067 (completion_tracker::discard_completions): Allow for being called
6068 from the constructor, pass new equal function, and element deleter
6069 when constructing the hash table. Initialise new class member
6070 variables.
6071 (completion_tracker::maybe_add_completion): Remove use of
6072 m_entries_vec, and store more information into m_entries_hash.
6073 (completion_tracker::recompute_lcd_visitor): New function, most
6074 content taken from...
6075 (completion_tracker::recompute_lowest_common_denominator):
6076 ...here, this now just visits each item in the hash calling the
6077 above visitor.
6078 (completion_tracker::build_completion_result): Remove use of
6079 m_entries_vec, call recompute_lowest_common_denominator.
6080 * completer.h (completion_tracker::have_completions): Remove use
6081 of m_entries_vec.
6082 (completion_tracker::completion_hash_entry): Declare new class.
6083 (completion_tracker::recompute_lowest_common_denominator): Change
6084 function signature.
6085 (completion_tracker::recompute_lcd_visitor): Declare new function.
6086 (completion_tracker::m_entries_vec): Delete.
6087 (completion_tracker::m_entries_hash): Initialize to NULL.
6088 (completion_tracker::m_lowest_common_denominator_valid): New
6089 member variable.
6090 (completion_tracker::m_lowest_common_denominator_max_length): New
6091 member variable.
6092
5a82b8a1
KR
60932020-03-17 Kamil Rytarowski <n54@gmx.com>
6094
6095 * regformats/regdef.h: Put reg in gdb namespace.
6096
fb516a69
KR
60972020-03-17 Kamil Rytarowski <n54@gmx.com>
6098
6099 * i386-bsd-nat.c (gdb_ptrace): New.
6100 * (i386bsd_fetch_inferior_registers,
6101 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6102 * (i386bsd_fetch_inferior_registers,
6103 i386bsd_store_inferior_registers) Use gdb_ptrace.
6104
1c0aa1fb
KR
61052020-03-17 Kamil Rytarowski <n54@gmx.com>
6106
6107 * amd64-bsd-nat.c (gdb_ptrace): New.
6108 * (amd64bsd_fetch_inferior_registers,
6109 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6110 * (amd64bsd_fetch_inferior_registers,
6111 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6112
5ccd2fb7
KR
61132020-03-17 Kamil Rytarowski <n54@gmx.com>
6114
6115 * user-regs.c (user_reg::read): Rename to...
6116 (user_reg::xread): ...this.
6117 * (append_user_reg): Rename argument `read' to `xread'.
6118 * (user_reg_add_builtin): Likewise.
6119 * (user_reg_add): Likewise.
6120 * (value_of_user_reg): Likewise.
6121
2108a63a
KR
61222020-03-17 Kamil Rytarowski <n54@gmx.com>
6123
6124 * sparc-nat.c (gdb_ptrace): New.
6125 * sparc-nat.c (sparc_fetch_inferior_registers)
6126 (sparc_store_inferior_registers) Remove obsolete comment.
6127 * sparc-nat.c (sparc_fetch_inferior_registers)
6128 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6129 * sparc-nat.c (sparc_fetch_inferior_registers)
6130 (sparc_store_inferior_registers) Use gdb_ptrace.
6131
a225c9a8
KR
61322020-03-17 Kamil Rytarowski <n54@gmx.com>
6133
6134 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6135 it to the ptrace call.
6136 * sh-nbsd-nat.c (store_registers): Likewise.
6137
98097623
KR
61382020-03-17 Kamil Rytarowski <n54@gmx.com>
6139
6140 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6141 nbsd_nat_target instead of inf_ptrace_target.
6142 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6143 nbsd_nat_target.
6144
9e38d619
KR
61452020-03-17 Kamil Rytarowski <n54@gmx.com>
6146
6147 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6148
a2ecbe9f
KR
61492020-03-17 Kamil Rytarowski <n54@gmx.com>
6150
6151 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6152 <sys/sysctl.h>.
6153 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6154
58990295
TV
61552020-03-17 Tom de Vries <tdevries@suse.de>
6156
6157 PR gdb/23710
6158 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6159 fields.
6160 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6161 fields.
6162 (process_imported_unit_die): Skip import of c++ CUs.
6163
771dd3a8
TT
61642020-03-16 Tom Tromey <tom@tromey.com>
6165
6166 * p-valprint.c (pascal_object_print_value): Initialize
6167 base_value.
6168
817a7585
AK
61692020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6170 Shahab Vahedi <shahab@synopsys.com>
6171
6172 * Makefile.in: Add arch/arc.o
6173 * configure.tgt: Likewise.
6174 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6175 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6176 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6177 * arc-tdep.h (arc_read_description): Add proto type.
6178 * arch/arc.c: New file.
6179 * arch/arc.h: Likewise.
6180 * features/Makefile: Replace old target descriptions with new.
6181 * features/arc-arcompact.c: Remove.
6182 * features/arc-arcompact.xml: Likewise.
6183 * features/arc-v2.c: Likewise
6184 * features/arc-v2.xml: Likewise
6185 * features/arc/aux-arcompact.xml: New file.
6186 * features/arc/aux-v2.xml: Likewise.
6187 * features/arc/core-arcompact.xml: Likewise.
6188 * features/arc/core-v2.xml: Likewise.
6189 * features/arc/aux-arcompact.c: Generate.
6190 * features/arc/aux-v2.c: Likewise.
6191 * features/arc/core-arcompact.c: Likewise.
6192 * features/arc/core-v2.c: Likewise.
6193 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6194
67430cd0
TT
61952020-03-16 Tom Tromey <tromey@adacore.com>
6196
6197 PR gdb/25663:
6198 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6199 putting value into bcache.
6200
30efb6c7
SM
62012020-03-16 Simon Marchi <simon.marchi@efficios.com>
6202
6203 PR gdb/21500
6204 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6205 to...
6206 (amd64_windows_init_abi_common): ... this. Don't set size of
6207 long type.
6208 (amd64_windows_init_abi): New function.
6209 (amd64_cygwin_init_abi): New function.
6210 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6211 the Cygwin OS ABI.
6212 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6213 comment.
6214
8db52437
SM
62152020-03-16 Simon Marchi <simon.marchi@efficios.com>
6216
6217 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6218 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6219 (pe_import_directory_entry): New struct type.
6220 (is_linked_with_cygwin_dll): New function.
6221 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6222 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6223 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6224
5982a56a
SM
62252020-03-16 Simon Marchi <simon.marchi@efficios.com>
6226
6227 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6228 i386_cygwin_core_osabi_sniffer.
6229
7a1998df
SM
62302020-03-16 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * i386-cygwin-tdep.c: Rename to...
6233 * i386-windows-tdep.c: ... this.
6234 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6235 i386-windows-tdep.c.
6236 * configure.tgt: Likewise.
6237
053205cc
SM
62382020-03-16 Simon Marchi <simon.marchi@efficios.com>
6239
6240 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6241 * osabi.c (gdb_osabi_names): Add "Windows".
6242 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6243 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6244 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6245 i386_cygwin_osabi_sniffer.
6246 (_initialize_i386_cygwin_tdep): Register OS ABI
6247 GDB_OSABI_WINDOWS for i386.
6248 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6249 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6250 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6251 for x86-64.
6252 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6253 when the target matches '*-*-mingw*'.
6254
fe4b2ee6
SM
62552020-03-16 Simon Marchi <simon.marchi@efficios.com>
6256
6257 * defs.h (enum gdb_osabi): Move to...
6258 * osabi.h (enum gdb_osabi): ... here.
6259 * gdbarch.sh: Include osabi.h in gdbarch.h.
6260 * gdbarch.h: Re-generate.
6261
cb9b645d
SM
62622020-03-16 Simon Marchi <simon.marchi@efficios.com>
6263
6264 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6265 function.
6266 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6267
3293bbaf
TT
62682020-03-14 Tom Tromey <tom@tromey.com>
6269
6270 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6271 for C++.
6272 (c_type_print_modifier): Likewise. Add "language" parameter.
6273 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6274 (c_type_print_base_1): Update.
6275 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6276 constants.
6277 * type-stack.c (type_stack::insert): Handle tp_atomic and
6278 tp_restrict.
6279 (type_stack::follow_type_instance_flags): Likewise.
6280 (type_stack::follow_types): Likewise. Merge type-following code.
6281 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6282 (space_identifier, cv_with_space_id)
6283 (const_or_volatile_or_space_identifier_noopt)
6284 (const_or_volatile_or_space_identifier): Remove.
6285 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6286 rules.
6287 (ptr_operator, typebase): Update.
6288 (enum token_flag) <FLAG_C>: New constant.
6289 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6290 "_Atomic".
6291 (lex_one_token): Handle FLAG_C.
6292
154151a6
KR
62932020-03-14 Kamil Rytarowski <n54@gmx.com>
6294
6295 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6296 it to the ptrace call.
6297 * m68k-bsd-nat.c (store_registers): Likewise.
6298
bc107784
KR
62992020-03-14 Kamil Rytarowski <n54@gmx.com>
6300
6301 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6302 gdb_byte *.
6303 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6304 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6305 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6306
01a80117
KR
63072020-03-14 Kamil Rytarowski <n54@gmx.com>
6308
6309 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6310 nbsd_nat_target instead of inf_ptrace_target.
6311 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6312 nbsd_nat_target.
6313
f90280ca
KR
63142020-03-14 Kamil Rytarowski <n54@gmx.com>
6315
6316 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6317 register_t.
6318
6def66f1
KR
63192020-03-14 Kamil Rytarowski <n54@gmx.com>
6320
6321 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6322 it to the ptrace call.
6323 * alpha-bsd-nat.c (store_registers): Likewise.
6324
66eaca97
KR
63252020-03-14 Kamil Rytarowski <n54@gmx.com>
6326
6327 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6328 includes.
6329 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6330 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6331 fill_fpregset): Likewise.
6332
4fed520b
KR
63332020-03-14 Kamil Rytarowski <n54@gmx.com>
6334
6335 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6336 nbsd_nat_target instead of inf_ptrace_target.
6337 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6338 nbsd_nat_target.
6339
2190cf06
KR
63402020-03-14 Kamil Rytarowski <n54@gmx.com>
6341
6342 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6343 register_t.
6344
75c56d3d
KR
63452020-03-14 Kamil Rytarowski <n54@gmx.com>
6346
6347 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6348 it to the ptrace call.
6349 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6350 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6351 * arm-nbsd-nat.c (store_register): Likewise.
6352 * arm-nbsd-nat.c (store_regs): Likewise.
6353 * arm-nbsd-nat.c (store_fp_register): Likewise.
6354 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6355
6018d381
KR
63562020-03-14 Kamil Rytarowski <n54@gmx.com>
6357
6358 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6359 nbsd_nat_target instead of inf_ptrace_target.
6360 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6361 nbsd_nat_target.
6362
013f99f0
KR
63632020-03-14 Kamil Rytarowski <n54@gmx.com>
6364
6365 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6366 it to the ptrace call.
6367 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6368
12753073
KR
63692020-03-14 Kamil Rytarowski <n54@gmx.com>
6370
6227b330
KR
6371 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6372 it to the ptrace call.
6373 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6374
63752020-03-14 Kamil Rytarowski <n54@gmx.com>
6376
6377 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6378 gdb_byte *.
12753073
KR
6379 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6380
d5be5fa4
KR
63812020-03-14 Kamil Rytarowski <n54@gmx.com>
6382
6383 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6384 instead of inf_ptrace_target.
6385 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6386 nbsd_nat_target.
6387
8110f842
KR
63882020-03-14 Kamil Rytarowski <n54@gmx.com>
6389
6390 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6391 register_t.
6392
52feded7
KR
63932020-03-14 Kamil Rytarowski <n54@gmx.com>
6394
6395 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6396 register_t.
6397
25567eee
KR
63982020-03-14 Kamil Rytarowski <n54@gmx.com>
6399
6400 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6401 register_t.
6402
426a9c18
TT
64032020-03-13 Tom Tromey <tom@tromey.com>
6404
6405 * value.h (val_print): Don't declare.
6406 * valprint.h (val_print_array_elements)
6407 (val_print_scalar_formatted, generic_val_print): Don't declare.
6408 * valprint.c (generic_val_print_array): Take a struct value.
6409 (generic_val_print_ptr, generic_val_print_memberptr)
6410 (generic_val_print_bool, generic_val_print_int)
6411 (generic_val_print_char, generic_val_print_complex)
6412 (generic_val_print): Remove.
6413 (generic_value_print): Update.
6414 (do_val_print): Remove unused parameters. Don't call
6415 la_val_print.
6416 (val_print): Remove.
6417 (common_val_print): Update. Don't call value_check_printable.
6418 (val_print_scalar_formatted, val_print_array_elements): Remove.
6419 * rust-lang.c (rust_val_print): Remove.
6420 (rust_language_defn): Update.
6421 * p-valprint.c (pascal_val_print): Remove.
6422 (pascal_value_print_inner): Update.
6423 (pascal_object_print_val_fields, pascal_object_print_val):
6424 Remove.
6425 (pascal_object_print_static_field): Update.
6426 * p-lang.h (pascal_val_print): Don't declare.
6427 * p-lang.c (pascal_language_defn): Update.
6428 * opencl-lang.c (opencl_language_defn): Update.
6429 * objc-lang.c (objc_language_defn): Update.
6430 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6431 * m2-lang.h (m2_val_print): Don't declare.
6432 * m2-lang.c (m2_language_defn): Update.
6433 * language.h (struct language_defn) <la_val_print>: Remove.
6434 * language.c (unk_lang_value_print_inner): Rename. Change
6435 argument types.
6436 (unknown_language_defn, auto_language_defn): Update.
6437 * go-valprint.c (go_val_print): Remove.
6438 * go-lang.h (go_val_print): Don't declare.
6439 * go-lang.c (go_language_defn): Update.
6440 * f-valprint.c (f_val_print): Remove.
6441 * f-lang.h (f_value_print): Don't declare.
6442 * f-lang.c (f_language_defn): Update.
6443 * d-valprint.c (d_val_print): Remove.
6444 * d-lang.h (d_value_print): Don't declare.
6445 * d-lang.c (d_language_defn): Update.
6446 * cp-valprint.c (cp_print_value_fields)
6447 (cp_print_value_fields_rtti, cp_print_value): Remove.
6448 (cp_print_static_field): Update.
6449 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6450 (c_val_print_struct, c_val_print_union, c_val_print_int)
6451 (c_val_print_memberptr, c_val_print): Remove.
6452 * c-lang.h (c_val_print_array, cp_print_value_fields)
6453 (cp_print_value_fields_rtti): Don't declare.
6454 * c-lang.c (c_language_defn, cplus_language_defn)
6455 (asm_language_defn, minimal_language_defn): Update.
6456 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6457 (ada_val_print_enum): Take a struct value.
6458 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6459 (ada_val_print): Remove.
6460 (ada_value_print_1): Update.
6461 (printable_val_type): Remove.
6462 * ada-lang.h (ada_val_print): Don't declare.
6463 * ada-lang.c (ada_language_defn): Update.
6464
42331a1e
TT
64652020-03-13 Tom Tromey <tom@tromey.com>
6466
6467 * valprint.c (do_val_print): Update.
6468 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6469 a struct value.
6470 (value_to_value_object_no_release): Declare.
6471 * python/py-value.c (value_to_value_object_no_release): New
6472 function.
6473 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6474 struct value.
6475 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6476 function.
6477 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6478 a struct value.
6479 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6480 Declare.
6481 (gdbscm_apply_val_pretty_printer): Take a struct value.
6482 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6483 value.
6484 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6485 value.
6486 * extension-priv.h (struct extension_language_ops)
6487 <apply_val_pretty_printer>: Take a struct value.
6488 * cp-valprint.c (cp_print_value): Create a struct value.
6489 (cp_print_value): Update.
6490
3a916a97
TT
64912020-03-13 Tom Tromey <tom@tromey.com>
6492
6493 * ada-valprint.c (print_field_values): Call common_val_print.
6494
b59eac37
TT
64952020-03-13 Tom Tromey <tom@tromey.com>
6496
6497 * ada-valprint.c (val_print_packed_array_elements): Remove
6498 bitoffset and val parameters. Call common_val_print.
6499 (ada_val_print_string): Remove offset, address, and original_value
6500 parameters.
6501 (ada_val_print_array): Update.
6502 (ada_value_print_array): New function.
6503 (ada_value_print_1): Call it.
6504
03371129
TT
65052020-03-13 Tom Tromey <tom@tromey.com>
6506
6507 * ada-valprint.c (ada_value_print): Use common_val_print.
6508
2e088f8b
TT
65092020-03-13 Tom Tromey <tom@tromey.com>
6510
6511 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6512
39ef85a8
TT
65132020-03-13 Tom Tromey <tom@tromey.com>
6514
6515 * ada-valprint.c (ada_value_print_num): New function.
6516 (ada_value_print_1): Use it.
6517
b9fa6e07
TT
65182020-03-13 Tom Tromey <tom@tromey.com>
6519
6520 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6521
416595d6
TT
65222020-03-13 Tom Tromey <tom@tromey.com>
6523
6524 * ada-valprint.c (ada_value_print_ptr): New function.
6525 (ada_value_print_1): Use it.
6526
5b5e15ec
TT
65272020-03-13 Tom Tromey <tom@tromey.com>
6528
6529 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6530 call common_val_print.
6531 (ada_val_print_1): Update.
6532 (ada_value_print_1): New function.
6533 (ada_value_print_inner): Rewrite.
6534
fbf54e75
TT
65352020-03-13 Tom Tromey <tom@tromey.com>
6536
6537 * cp-valprint.c (cp_print_value_fields): Update.
6538 (cp_print_value): New function.
6539
64b653ca
TT
65402020-03-13 Tom Tromey <tom@tromey.com>
6541
6542 * m2-valprint.c (m2_value_print_inner): Use
6543 cp_print_value_fields.
6544 * cp-valprint.c (cp_print_value_fields): New function.
6545 * c-valprint.c (c_value_print_struct): New function.
6546 (c_value_print_inner): Use c_value_print_struct.
6547 * c-lang.h (cp_print_value_fields): Declare.
6548
6999f067
TT
65492020-03-13 Tom Tromey <tom@tromey.com>
6550
6551 * c-valprint.c (c_value_print_array): New function.
6552 (c_value_print_inner): Use it.
6553
ce80b8bd
TT
65542020-03-13 Tom Tromey <tom@tromey.com>
6555
6556 * c-valprint.c (c_value_print_memberptr): New function.
6557 (c_value_print_inner): Use it.
6558
2faac269
TT
65592020-03-13 Tom Tromey <tom@tromey.com>
6560
6561 * c-valprint.c (c_value_print_int): New function.
6562 (c_value_print_inner): Use it.
6563
da3e2c29
TT
65642020-03-13 Tom Tromey <tom@tromey.com>
6565
6566 * c-valprint.c (c_value_print_ptr): New function.
6567 (c_value_print_inner): Use it.
6568
50836231
TT
65692020-03-13 Tom Tromey <tom@tromey.com>
6570
6571 * c-valprint.c (c_value_print_inner): Rewrite.
6572
4f412b6e
TT
65732020-03-13 Tom Tromey <tom@tromey.com>
6574
6575 * valprint.c (generic_value_print_complex): New function.
6576 (generic_value_print): Use it.
6577
f5354008
TT
65782020-03-13 Tom Tromey <tom@tromey.com>
6579
6580 * valprint.c (generic_val_print_float): Don't call
6581 val_print_scalar_formatted.
6582 (generic_val_print, generic_value_print): Update.
6583
3eec3b05
TT
65842020-03-13 Tom Tromey <tom@tromey.com>
6585
6586 * valprint.c (generic_value_print_char): New function
6587 (generic_value_print): Use it.
6588
fdddfccb
TT
65892020-03-13 Tom Tromey <tom@tromey.com>
6590
6591 * valprint.c (generic_value_print_int): New function.
6592 (generic_value_print): Use it.
6593
6dde7521
TT
65942020-03-13 Tom Tromey <tom@tromey.com>
6595
6596 * valprint.c (generic_value_print_bool): New function.
6597 (generic_value_print): Use it.
6598
4112d2e6
TT
65992020-03-13 Tom Tromey <tom@tromey.com>
6600
6601 * valprint.c (generic_val_print_func): Simplify.
6602 (generic_val_print, generic_value_print): Update.
6603
65786af6
TT
66042020-03-13 Tom Tromey <tom@tromey.com>
6605
6606 * valprint.c (generic_val_print_flags): Remove.
6607 (generic_val_print, generic_value_print): Update.
6608 (val_print_type_code_flags): Add original_value parameter.
6609
40f3ce18
TT
66102020-03-13 Tom Tromey <tom@tromey.com>
6611
6612 * valprint.c (generic_val_print): Update.
6613 (generic_value_print): Update.
6614 * valprint.c (generic_val_print_enum): Don't call
6615 val_print_scalar_formatted.
6616
2a5b130b
TT
66172020-03-13 Tom Tromey <tom@tromey.com>
6618
6619 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6620 * valprint.c (generic_value_print_ptr): New function.
6621
abc66ce9
TT
66222020-03-13 Tom Tromey <tom@tromey.com>
6623
6624 * valprint.c (generic_value_print): Rewrite.
6625
07a32858
TT
66262020-03-13 Tom Tromey <tom@tromey.com>
6627
6628 * p-valprint.c (pascal_object_print_value_fields)
6629 (pascal_object_print_value): New functions.
6630
64d64d3a
TT
66312020-03-13 Tom Tromey <tom@tromey.com>
6632
6633 * p-valprint.c (pascal_value_print_inner): Rewrite.
6634
6a95a1f5
TT
66352020-03-13 Tom Tromey <tom@tromey.com>
6636
6637 * f-valprint.c (f_value_print_innner): Rewrite.
6638
59fcdac6
TT
66392020-03-13 Tom Tromey <tom@tromey.com>
6640
6641 * m2-valprint.c (m2_print_unbounded_array): New overload.
6642 (m2_print_unbounded_array): Update.
6643 (m2_print_array_contents): Take a struct value.
6644 (m2_value_print_inner): Rewrite.
6645
d133c3e1
TT
66462020-03-13 Tom Tromey <tom@tromey.com>
6647
6648 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6649 (d_value_print_inner): New function.
6650 * d-lang.h (d_value_print_inner): Declare.
6651 * d-lang.c (d_language_defn): Use d_value_print_inner.
6652
23b0f06b
TT
66532020-03-13 Tom Tromey <tom@tromey.com>
6654
6655 * go-valprint.c (go_value_print_inner): New function.
6656 * go-lang.h (go_value_print_inner): Declare.
6657 * go-lang.c (go_language_defn): Use go_value_print_inner.
6658
5f56f7cb
TT
66592020-03-13 Tom Tromey <tom@tromey.com>
6660
6661 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6662 API.
6663 (rust_val_print): Rewrite.
6664 (rust_value_print_inner): New function, from rust_val_print.
6665 (rust_language_defn): Use rust_value_print_inner.
6666
26792ee0
TT
66672020-03-13 Tom Tromey <tom@tromey.com>
6668
6669 * ada-valprint.c (ada_value_print_inner): New function.
6670 * ada-lang.h (ada_value_print_inner): Declare.
6671 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6672
24051bbe
TT
66732020-03-13 Tom Tromey <tom@tromey.com>
6674
6675 * f-valprint.c (f_value_print_innner): New function.
6676 * f-lang.h (f_value_print_innner): Declare.
6677 * f-lang.c (f_language_defn): Use f_value_print_innner.
6678
c0941be6
TT
66792020-03-13 Tom Tromey <tom@tromey.com>
6680
6681 * p-valprint.c (pascal_value_print_inner): New function.
6682 * p-lang.h (pascal_value_print_inner): Declare.
6683 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6684
62c4663d
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * m2-valprint.c (m2_value_print_inner): New function.
6688 * m2-lang.h (m2_value_print_inner): Declare.
6689 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6690
62182190
TT
66912020-03-13 Tom Tromey <tom@tromey.com>
6692
6693 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6694 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6695 * c-valprint.c (c_value_print_inner): New function.
6696 * c-lang.h (c_value_print_inner): Declare.
6697 * c-lang.c (c_language_defn, cplus_language_defn)
6698 (asm_language_defn, minimal_language_defn): Use
6699 c_value_print_inner.
6700
1e592a8a
TT
67012020-03-13 Tom Tromey <tom@tromey.com>
6702
6703 * p-valprint.c (pascal_object_print_value_fields): Now static.
6704 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6705
7fe471e9
TT
67062020-03-13 Tom Tromey <tom@tromey.com>
6707
6708 * c-valprint.c (c_val_print_array): Simplify.
6709
d121c6ce
TT
67102020-03-13 Tom Tromey <tom@tromey.com>
6711
6712 * valprint.c (value_print_array_elements): New function.
6713 * valprint.h (value_print_array_elements): Declare.
6714
4dba70ee
TT
67152020-03-13 Tom Tromey <tom@tromey.com>
6716
6717 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6718 * mips-tdep.c (mips_print_register): Use
6719 value_print_scalar_formatted.
6720
4f9ae810
TT
67212020-03-13 Tom Tromey <tom@tromey.com>
6722
6723 * valprint.h (value_print_scalar_formatted): Declare.
6724 * valprint.c (value_print_scalar_formatted): New function.
6725
156bfec9
TT
67262020-03-13 Tom Tromey <tom@tromey.com>
6727
6728 * valprint.h (generic_value_print): Declare.
6729 * valprint.c (generic_value_print): New function.
6730
2b4e573d
TT
67312020-03-13 Tom Tromey <tom@tromey.com>
6732
6733 * valprint.c (do_val_print): Call la_value_print_inner, if
6734 available.
6735 * rust-lang.c (rust_language_defn): Update.
6736 * p-lang.c (pascal_language_defn): Update.
6737 * opencl-lang.c (opencl_language_defn): Update.
6738 * objc-lang.c (objc_language_defn): Update.
6739 * m2-lang.c (m2_language_defn): Update.
6740 * language.h (struct language_defn) <la_value_print_inner>: New
6741 member.
6742 * language.c (unknown_language_defn, auto_language_defn): Update.
6743 * go-lang.c (go_language_defn): Update.
6744 * f-lang.c (f_language_defn): Update.
6745 * d-lang.c (d_language_defn): Update.
6746 * c-lang.c (c_language_defn, cplus_language_defn)
6747 (asm_language_defn, minimal_language_defn): Update.
6748 * ada-lang.c (ada_language_defn): Update.
6749
a1f6a07c
TT
67502020-03-13 Tom Tromey <tom@tromey.com>
6751
6752 * c-valprint.c (c_value_print): Use common_val_print.
6753
410cf315
TT
67542020-03-13 Tom Tromey <tom@tromey.com>
6755
6756 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6757
72a45c93
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * f-valprint.c (f77_print_array_1, f_val_print): Use
6761 common_val_print.
6762
040f66bd
TT
67632020-03-13 Tom Tromey <tom@tromey.com>
6764
6765 * riscv-tdep.c (riscv_print_one_register_info): Use
6766 common_val_print.
6767
a6e05a6c
TT
67682020-03-13 Tom Tromey <tom@tromey.com>
6769
6770 * mi/mi-main.c (output_register): Use common_val_print.
6771
3444c526
TT
67722020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * infcmd.c (default_print_one_register_info): Use
6775 common_val_print.
6776
c2a44efe
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * valprint.h (common_val_print_checked): Declare.
6780 * valprint.c (common_val_print_checked): New function.
6781 * stack.c (print_frame_arg): Use common_val_print_checked.
6782
b0c26e99
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * valprint.c (do_val_print): New function, from val_print.
6786 (val_print): Use do_val_print.
6787 (common_val_print): Use do_val_print.
6788
ce3acbe9
TT
67892020-03-13 Tom Tromey <tom@tromey.com>
6790
6791 * valprint.c (value_print): Use scoped_value_mark.
6792
96c7f873
TV
67932020-03-13 Tom de Vries <tdevries@suse.de>
6794
6795 PR symtab/25646
6796 * psymtab.c (partial_symtab::partial_symtab): Don't set
6797 globals_offset and statics_offset. Push element onto
6798 current_global_psymbols and current_static_psymbols stacks.
6799 (concat): New function.
6800 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6801 element from current_global_psymbols and current_static_psymbols
6802 stacks. Concat popped elements to global_psymbols and
6803 static_symbols.
6804 (add_psymbol_to_list): Use current_global_psymbols and
6805 current_static_psymbols stacks.
6806 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6807 current_static_psymbols fields.
6808
6ba0a321
CB
68092020-03-12 Christian Biesinger <cbiesinger@google.com>
6810
6811 * corelow.c (sniff_core_bfd): Remove.
6812 (class core_target) <m_core_vec>: Remove.
6813 (core_target::core_target): Update.
6814 (core_file_fns): Remove.
6815 (deprecated_add_core_fns): Remove.
6816 (default_core_sniffer): Remove.
6817 (sniff_core_bfd): Remove.
6818 (default_check_format): Remove.
6819 (gdb_check_format): Remove.
6820 (core_target_open): Update.
6821 (core_target::get_core_register_section): Update.
6822 (get_core_registers_cb): Update.
6823 (core_target::fetch_registers): Update.
6824 * gdbcore.h (struct core_fns): Remove.
6825 (deprecated_add_core_fns): Remove.
6826 (default_core_sniffer): Remove.
6827 (default_check_format): Remove.
6828
227031b2
TT
68292020-03-12 Tom Tromey <tom@tromey.com>
6830
6831 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6832 CORE_ADDR.
6833 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6834
53807e9f
TT
68352020-03-12 Tom Tromey <tom@tromey.com>
6836
6837 * remote.c (remote_target::download_tracepoint)
6838 (remote_target::enable_tracepoint)
6839 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6840 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6841 sprintf_vma.
6842
64f25102
TT
68432020-03-12 Tom Tromey <tom@tromey.com>
6844
6845 * symfile-mem.c: Update CORE_ADDR size assert.
6846
272cd5a3
SM
68472020-03-12 Simon Marchi <simon.marchi@efficios.com>
6848
6849 * selftest.m4: Move to gdbsupport/.
6850 * acinclude.m4: Update path to selftest.m4.
6851
74cd3f9d
SM
68522020-03-12 Simon Marchi <simon.marchi@efficios.com>
6853
6854 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6855 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6856 gdbarch-selfselftests.c and selftest-arch.c.
6857 (SUBDIR_UNITTESTS_OBS): Rename to...
6858 (SELFTESTS_OBS): ... this.
6859 (COMMON_SFILES): Remove disasm-selftests.c and
6860 gdbarch-selftests.c.
6861 * configure.ac: Don't add selftest-arch.{c,o} to
6862 CONFIG_{SRCS,OBS}.
6863 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6864 preprocessor conditions.
6865
db6878ac
SM
68662020-03-12 Simon Marchi <simon.marchi@efficios.com>
6867
6868 * configure.ac: Don't source bfd/development.sh.
6869 * selftest.m4: Modify comment.
6870 * configure: Re-generate.
6871
4d696a5c
SM
68722020-03-12 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6875 not "true" or "false".
6876 * configure: Re-generate.
6877
8dd8e1c7
CB
68782020-03-12 Christian Biesinger <cbiesinger@google.com>
6879
6880 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6881 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6882 renamed to arm_nbsd_supply_gregset.
6883 (fetch_register): Update to call arm_nbsd_supply_gregset.
6884 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6885 (arm_netbsd_nat_target::fetch_registers): Update.
6886 (fetch_elfcore_registers): Removed.
6887 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6888 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6889 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6890 not require NetBSD system headers.
6891 (arm_nbsd_regset): New struct.
6892 (arm_nbsd_iterate_over_regset_sections): New function.
6893 (arm_netbsd_init_abi_common): Updated to call
6894 set_gdbarch_iterate_over_regset_sections.
6895 * arm-nbsd-tdep.h: New file.
6896
dd69bf7a
KB
68972020-03-11 Kevin Buettner <kevinb@redhat.com>
6898
6899 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6900 recursion.
6901
a0761e34
SM
69022020-03-11 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * configure: Re-generate.
6905
e7a82140
TT
69062020-03-11 Tom Tromey <tromey@adacore.com>
6907
6908 * ada-typeprint.c (print_choices): Fix comment.
6909
dcc050c8
AB
69102020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6913 previous item in the list, when the list has no items.
6914
1c33af77
TV
69152020-03-11 Tom de Vries <tdevries@suse.de>
6916
6917 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6918 PROP_LOCLIST handling code.
6919
8c95582d
AB
69202020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6921
6922 * buildsym-legacy.c (record_line): Pass extra parameter to
6923 record_line.
6924 * buildsym.c (buildsym_compunit::record_line): Take an extra
6925 parameter, reduce duplication in the line table, and record the
6926 is_stmt flag in the line table.
6927 * buildsym.h (buildsym_compunit::record_line): Add extra
6928 parameter.
6929 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6930 non-statement lines.
6931 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6932 this to the symtab builder.
6933 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6934 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6935 through to dwarf_record_line_1.
6936 * infrun.c (process_event_stop_test): When stepping, don't stop at
6937 a non-statement instruction, and only refresh the step info when
6938 we land in the middle of a line's range. Also add an extra
6939 comment.
6940 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6941 field.
6942 * record-btrace.c (btrace_find_line_range): Only record lines
6943 marked as is-statement.
6944 * stack.c (frame_show_address): Show the frame address if we are
6945 in a non-statement sal.
6946 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6947 (maintenance_print_one_line_table): Print a header for the is_stmt
6948 column, and include is_stmt information in the output.
6949 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6950 preference to non-statements.
6951 (find_pcs_for_symtab_line): Prefer is-statement entries.
6952 (find_line_common): Likewise.
6953 * symtab.h (struct linetable_entry): Add is_stmt field.
6954 (struct symtab_and_line): Likewise.
6955 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6956 arranging the line table.
6957
e4003a34
TV
69582020-03-07 Tom de Vries <tdevries@suse.de>
6959
6960 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6961 DIE.
6962
e8932576
TT
69632020-03-07 Tom Tromey <tom@tromey.com>
6964
6965 * valops.c (value_literal_complex): Remove obsolete comment.
6966 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6967 comment.
6968
29734269
SM
69692020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6970
6971 * infrun.h: Forward-declare thread_info.
6972 (set_step_info): Add thread_info parameter, add doc.
6973 * infrun.c (set_step_info): Add thread_info parameter, move doc
6974 to header.
6975 * infrun.c (process_event_stop_test): Pass thread to
6976 set_step_info call.
6977 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6978 set_step_info.
6979 (prepare_one_step): Add thread_info parameter, pass it to
6980 set_step_frame and prepare_one_step (recursive) call.
6981 (step_1): Pass thread to prepare_one_step call.
6982 (step_command_fsm::should_stop): Pass thread to
6983 prepare_one_step.
6984 (until_next_fsm): Pass thread to set_step_frame call.
6985 (finish_command): Pass thread to set_step_info call.
6986
b7d64b29
HD
69872020-03-06 Hannes Domani <ssbssa@yahoo.de>
6988
6989 * windows-tdep.c (windows_solib_create_inferior_hook):
6990 Check if inferior is running.
6991
09f2921c
TV
69922020-03-06 Tom de Vries <tdevries@suse.de>
6993
6994 * NEWS: Fix "the the".
6995 * ctfread.c: Same.
6996
fd760e79
TV
69972020-03-06 Tom de Vries <tdevries@suse.de>
6998
6999 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7000
20ea4a60
AB
70012020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7002
7003 * .dir-locals.el: Add a comment referencing the other copies of
7004 this file.
7005
0afbabf0
JB
70062020-03-05 John Baldwin <jhb@FreeBSD.org>
7007
7008 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7009 psargs.
7010
842806cb
TBA
70112020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7012
7013 * .gitattributes: New file.
7014
be1e3d3e
TT
70152020-03-04 Tom Tromey <tom@tromey.com>
7016
7017 * symmisc.c (print_symbol_bcache_statistics)
7018 (print_objfile_statistics): Update.
7019 * symfile.c (allocate_symtab): Use intern.
7020 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7021 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7022 macro_cache>: Remove.
7023 <string_cache>: New member.
7024 (struct objfile) <intern>: New methods.
7025 * elfread.c (elf_symtab_read): Use intern.
7026 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7027 (dwarf2_compute_name, dwarf2_physname)
7028 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7029 names.
7030 (guess_partial_die_structure_name): Update.
7031 (partial_die_info::fixup): Intern name.
7032 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7033 name.
7034 (dwarf2_name): Intern name. Update.
7035 * buildsym.c (buildsym_compunit::get_macro_table): Use
7036 string_cache.
7037
4e7625fd
TT
70382020-03-04 Tom Tromey <tom@tromey.com>
7039
7040 * jit.c (bfd_open_from_target_memory): Make "target" const.
7041 * corefile.c (gnutarget): Now const.
7042 * gdbcore.h (gnutarget): Now const.
7043
46f9f931
HD
70442020-03-04 Hannes Domani <ssbssa@yahoo.de>
7045
7046 * NEWS: Mention support for WOW64 processes.
7047 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7048 (amd64_windows_segment_register_p): Remove static.
7049 (_initialize_amd64_windows_nat): Update.
7050 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7051 * i386-windows-nat.c (context_offset): Update.
7052 (i386_mappings): Rename and remove static.
7053 (i386_windows_segment_register_p): Remove static.
7054 (_initialize_i386_windows_nat): Update.
7055 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7056 (STATUS_WX86_SINGLE_STEP): New macro.
7057 (EnumProcessModulesEx): New macro.
7058 (Wow64SuspendThread): New macro.
7059 (Wow64GetThreadContext): New macro.
7060 (Wow64SetThreadContext): New macro.
7061 (Wow64GetThreadSelectorEntry): New macro.
7062 (windows_set_context_register_offsets): Add static.
7063 (windows_set_segment_register_p): Likewise.
7064 (windows_add_thread): Adapt for WOW64 processes.
7065 (windows_fetch_one_register): Likewise.
7066 (windows_nat_target::fetch_registers): Likewise.
7067 (windows_store_one_register): Likewise.
7068 (display_selector): Likewise.
7069 (display_selectors): Likewise.
7070 (handle_exception): Likewise.
7071 (windows_continue): Likewise.
7072 (windows_nat_target::resume): Likewise.
7073 (windows_add_all_dlls): Likewise.
7074 (do_initial_windows_stuff): Likewise.
7075 (windows_nat_target::attach): Likewise.
7076 (windows_get_exec_module_filename): Likewise.
7077 (windows_nat_target::create_inferior): Likewise.
7078 (windows_xfer_siginfo): Likewise.
7079 (_initialize_loadable): Initialize Wow64SuspendThread,
7080 Wow64GetThreadContext, Wow64SetThreadContext,
7081 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7082 * windows-nat.h (windows_set_context_register_offsets):
7083 Remove declaration.
7084 (windows_set_segment_register_p): Likewise.
7085 (i386_windows_segment_register_p): Add declaration.
7086 (amd64_windows_segment_register_p): Likewise.
7087
440cf44e
LM
70882020-03-04 Luis Machado <luis.machado@linaro.org>
7089
7090 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7091 in "info registers" for AArch64/ARM.
7092
7093 The change caused "info registers" to not print GPR's.
7094
7095 gdb/ChangeLog:
7096
7097 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7098
7099 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7100 when reg->group is empty and reggroup is not.
7101
1009d92f
TT
71022020-03-03 Tom Tromey <tromey@adacore.com>
7103
7104 * dwarf2/frame.c (struct dwarf2_frame_cache)
7105 <checked_tailcall_bottom, entry_cfa_sp_offset,
7106 entry_cfa_sp_offset_p>: Remove members.
7107 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7108 (dwarf2_frame_prev_register): Don't call
7109 dwarf2_tailcall_sniffer_first.
7110 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7111 * frame-unwind.c (add_unwinder): New fuction.
7112 (frame_unwind_init): Use it. Add tailcall unwinder.
7113
5e5d66b6
AB
71142020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7115 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7116
7117 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7118 value should be printed as true.
7119
584cf46d
HD
71202020-03-03 Hannes Domani <ssbssa@yahoo.de>
7121
7122 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7123 (windows_init_abi): Set and use windows_so_ops.
7124
7b973adc
SDJ
71252020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7126
7127 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7128 when verifying if dealing with a convenience variable.
7129
bb7b70ab
LM
71302020-03-03 Luis Machado <luis.machado@linaro.org>
7131
7132 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7133
9822cb57
SM
71342020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7135
7136 * infrun.c (gdbarch_supports_displaced_stepping): New.
7137 (use_displaced_stepping): Break up conditions in smaller pieces.
7138 Use gdbarch_supports_displaced_stepping.
7139 (displaced_step_prepare_throw): Use
7140 gdbarch_supports_displaced_stepping.
7141
63e163f2
AB
71422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7143
7144 * NEWS: Mention new behaviour of the history filename.
7145 * top.c (write_history_p): Add comment.
7146 (show_write_history_p): Add header comment, give a different
7147 message when history writing is on, but the history filename is
7148 empty.
7149 (history_filename): Add comment.
7150 (history_filename_empty): New function.
7151 (show_history_filename): Add header comment, give a different
7152 message when the filename is empty.
7153 (init_history): Compare history_filename against nullptr, and only
7154 read history if the filename is not empty.
7155 (set_history_filename): Add header comment, and only make
7156 non-empty filenames absolute.
7157 (init_main): Make the filename argument to 'set history filename'
7158 optional.
7159
81b86b97
CB
71602020-03-02 Christian Biesinger <cbiesinger@google.com>
7161
7162 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7163 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7164 (fetch_fp_register): Update.
7165 (fetch_fp_regs): Update.
7166 (store_fp_register): Update.
7167 (store_fp_regs): Update.
7168 (arm_netbsd_nat_target::read_description): New function.
7169 (fetch_elfcore_registers): Update.
7170
24ed6739
AB
71712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7172
7173 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7174 general_thread if the stop reply is missing a thread-id.
7175 (remote_target::process_stop_reply): Use the first non-exited
7176 thread if the target didn't pass a thread-id.
7177 * infrun.c (do_target_wait): Move call to
7178 switch_to_inferior_no_thread to ....
7179 (do_target_wait_1): ... here.
7180
a84bb2a0
JT
71812020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7182
7183 * debuginfod-support.c: Include defs.h first.
7184
658dadf0
TV
71852020-02-28 Tom de Vries <tdevries@suse.de>
7186
7187 * symfile.c (set_initial_language): Use default language for lookup.
7188
4ebe4877
SM
71892020-02-28 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7192 reader variable, pass `this` to read_cutu_die_from_dwo.
7193
e5da1139
AM
71942020-02-27 Aaron Merey <amerey@redhat.com>
7195
7196 * source.c (open_source_file): Check for nullptr when computing
7197 srcpath.
7198
317f7127
TT
71992020-02-27 Tom Tromey <tromey@adacore.com>
7200
7201 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7202 member.
7203 (dwarf2_add_field): Don't update nfields.
7204 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7205
3104d9ee
AB
72062020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7207
7208 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7209 abs.
7210
b83470bf
TT
72112020-02-26 Tom Tromey <tom@tromey.com>
7212
7213 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7214 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7215 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7216 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7217 per_cu_data.
7218
edfe0a0c
TT
72192020-02-26 Tom Tromey <tom@tromey.com>
7220
7221 * dwarf2/index-write.c (psym_index_map): Change type.
7222 (add_address_entry_worker, write_one_signatured_type)
7223 (recursively_count_psymbols, recursively_write_psymbols)
7224 (class debug_names, psyms_seen_size, write_gdbindex)
7225 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7226
0d79cdc4
AM
72272020-02-26 Aaron Merey <amerey@redhat.com>
7228
7229 * Makefile.in: Handle optional debuginfod support.
7230 * NEWS: Update.
7231 * README: Add --with-debuginfod summary.
7232 * config.in: Regenerate.
7233 * configure: Regenerate.
7234 * configure.ac: Handle optional debuginfod support.
7235 * debuginfod-support.c: debuginfod helper functions.
7236 * debuginfod-support.h: Ditto.
7237 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7238 summary.
7239 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7240 when a dwz file cannot be found.
7241 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7242 debuginfo file cannot be found.
7243 * source.c (open_source_file): Query debuginfod servers when a
7244 source file cannot be found.
7245 * top.c (print_gdb_configuration): Include
7246 --{with,without}-debuginfod in the output.
7247
b65ce565
JG
72482020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7249
7250 * thread.c (thr_try_catch_cmd): Print thread name.
7251
d4c9a4f8
SM
72522020-02-26 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7255 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7256 dwarf2_fetch_die_type_sect_off): Move to...
7257 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7258 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7259 dwarf2_fetch_die_type_sect_off): ... here.
7260 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7261 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7262 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7263
0dce4280
TV
72642020-02-26 Tom de Vries <tdevries@suse.de>
7265
7266 PR gdb/25603
7267 * symfile.c (set_initial_language): Exit-early if
7268 language_mode == language_mode_manual.
7269
450a1bfc
SM
72702020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7271
7272 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7273 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7274 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7275
9e80cfa1
AB
72762020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7277
7278 * gdbtypes.c (create_array_type_with_stride): Handle negative
7279 array strides.
7280 * valarith.c (value_subscripted_rvalue): Likewise.
7281
09624f1f
LM
72822020-02-25 Luis Machado <luis.machado@linaro.org>
7283
7284 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7285
8cb5117c
SM
72862020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7287
7288 * loc.h (dwarf2_get_die_type): Move to...
7289 * read.h (dwarf2_get_die_type): ... here.
7290 * read.c (dwarf2_get_die_type): Move doc to header.
7291
c325c44e
JB
72922020-02-25 Joel Brobecker <brobecker@adacore.com>
7293
7294 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7295 'gnulib/Makefile.in' to the list.
7296
4ac93832
TT
72972020-02-24 Tom Tromey <tom@tromey.com>
7298
7299 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7300 Remove.
7301 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7302 XOBNEWVEC.
7303
197400e8
TT
73042020-02-24 Tom Tromey <tom@tromey.com>
7305
7306 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7307 New method.
7308 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7309 (dw2_do_instantiate_symtab, dw2_get_file_names)
7310 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7311
76935768
TT
73122020-02-24 Tom Tromey <tom@tromey.com>
7313
7314 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7315 make_scoped_restore.
7316 (dwarf2_psymtab::read_symtab): Don't clear
7317 reading_partial_symbols.
7318
a88ef40d
TV
73192020-02-24 Tom de Vries <tdevries@suse.de>
7320
7321 PR gdb/25592
7322 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7323
c9af6521
TV
73242020-02-24 Tom de Vries <tdevries@suse.de>
7325
7326 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7327 commands layout next/prev/regs.
7328
5707a07a
TT
73292020-02-22 Tom Tromey <tom@tromey.com>
7330
7331 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7332 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7333
3b0fb49e
TT
73342020-02-22 Tom Tromey <tom@tromey.com>
7335
7336 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7337
283be8bf
TT
73382020-02-22 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7341 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7342 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7343 * tui/tui.c (_initialize_tui): Add usage text.
7344
ca793b96
TT
73452020-02-22 Tom Tromey <tom@tromey.com>
7346
7347 * tui/tui-win.c (tui_set_focus_command)
7348 (tui_set_win_height_command): Use error_no_arg.
7349 (_initialize_tui_win): Update help text.
7350 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7351
432b5c40
TT
73522020-02-22 Tom Tromey <tom@tromey.com>
7353
7354 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7355 * tui/tui-disasm.h (struct tui_disasm_window)
7356 <display_start_addr>: Declare.
7357 * tui/tui-source.h (struct tui_source_window)
7358 <display_start_addr>: Declare.
7359 * tui/tui-winsource.h (struct tui_source_window_base)
7360 <show_source_line, display_start_addr>: New methods.
7361 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7362 Rename and move to protected section.
7363 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7364 (tui_source_window_base::do_erase_source_content): Update.
7365 (tui_source_window_base::show_source_line): Now a method.
7366 (tui_source_window_base::show_source_content)
7367 (tui_source_window_base::tui_source_window_base)
7368 (tui_source_window_base::rerender)
7369 (tui_source_window_base::refill)
7370 (tui_source_window_base::do_scroll_horizontal)
7371 (tui_source_window_base::set_is_exec_point_at)
7372 (tui_source_window_base::update_breakpoint_info)
7373 (tui_source_window_base::update_exec_info): Update.
7374 * tui/tui-source.c (tui_source_window::set_contents)
7375 (tui_source_window::showing_source_p)
7376 (tui_source_window::do_scroll_vertical)
7377 (tui_source_window::location_matches_p)
7378 (tui_source_window::line_is_displayed): Update.
7379 (tui_source_window::display_start_addr): New method.
7380 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7381 (tui_disasm_window::do_scroll_vertical)
7382 (tui_disasm_window::location_matches_p): Update.
7383 (tui_disasm_window::display_start_addr): New method.
7384
01b1af32
TT
73852020-02-22 Tom Tromey <tom@tromey.com>
7386
7387 * NEWS: Add entry for gdb.register_window_type.
7388 * tui/tui-layout.h (window_factory): New typedef.
7389 (tui_register_window): Declare.
7390 * tui/tui-layout.c (saved_tui_windows): New global.
7391 (tui_apply_current_layout): Use it.
7392 (tui_register_window): New function.
7393 * python/python.c (do_start_initialization): Call
7394 gdbpy_initialize_tui.
7395 (python_GdbMethods): Add "register_window_type" function.
7396 * python/python-internal.h (gdbpy_register_tui_window)
7397 (gdbpy_initialize_tui): Declare.
7398 * python/py-tui.c: New file.
7399 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7400
fc96d20b
TT
74012020-02-22 Tom Tromey <tom@tromey.com>
7402
7403 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7404
935c78c0
TT
74052020-02-22 Tom Tromey <tom@tromey.com>
7406
7407 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7408 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7409 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7410 (tui_set_win_focus_to): Move from tui-win.c.
7411
0240c8f1
TT
74122020-02-22 Tom Tromey <tom@tromey.com>
7413
7414 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7415 functions.
7416 (known_window_types): New global.
7417 (tui_get_window_by_name): Reimplement.
7418 (initialize_known_windows): New function.
7419 (validate_window_name): Rewrite.
7420 (_initialize_tui_layout): Call initialize_known_windows.
7421
fdb01f0c
TT
74222020-02-22 Tom Tromey <tom@tromey.com>
7423
7424 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7425 Remove constants.
7426 * tui/tui-winsource.h (struct tui_source_window_base)
7427 <tui_source_window_base>: Remove parameter.
7428 * tui/tui-winsource.c
7429 (tui_source_window_base::tui_source_window_base): Remove
7430 parameter.
7431 (tui_source_window_base::refill): Update.
7432 * tui/tui-stack.h (struct tui_locator_window)
7433 <tui_locator_window>: Update.
7434 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7435 Default the constructor.
7436 * tui/tui-regs.h (struct tui_data_item_window)
7437 <tui_data_item_window>: Default the constructor.
7438 (struct tui_data_window) <tui_data_window>: Likewise.
7439 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7440 Default the constructor.
7441 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7442 Default the constructor.
7443 <type>: Remove.
7444 (struct tui_win_info) <tui_win_info>: Default the constructor.
7445 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7446 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7447 Default the constructor.
7448
865a5aec
TT
74492020-02-22 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7452 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7453 * tui/tui-win.c (tui_resize_all): Don't call
7454 tui_delete_invisible_windows.
7455 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7456 done.
7457 (tui_set_layout): Update.
7458 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7459 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7460 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7461
e098d18c
TT
74622020-02-22 Tom Tromey <tom@tromey.com>
7463
7464 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7465 correctly.
7466
eb9c8874
TT
74672020-02-22 Tom Tromey <tom@tromey.com>
7468
7469 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7470
7eed1a8e
TT
74712020-02-22 Tom Tromey <tom@tromey.com>
7472
7473 * tui/tui-winsource.h (struct tui_source_window_iterator)
7474 <inner_iterator>: New etytypedef.
7475 <tui_source_window_iterator>: Take "end" parameter.
7476 <tui_source_window_iterator>: Take iterator.
7477 <operator*, advance>: Update.
7478 <m_iter>: Change type.
7479 <m_end>: New field.
7480 (struct tui_source_windows) <begin, end>: Update.
7481 * tui/tui-layout.c (tui_windows): New global.
7482 (tui_apply_current_layout): Clear tui_windows.
7483 (tui_layout_window::apply): Update tui_windows.
7484 * tui/tui-data.h (tui_windows): Declare.
7485 (all_tui_windows): Now inline function.
7486 (class tui_window_iterator, struct all_tui_windows): Remove.
7487
7c043ba6
TT
74882020-02-22 Tom Tromey <tom@tromey.com>
7489
7490 PR tui/17850:
7491 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7492 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7493 "height" argument.
7494 (class tui_layout_window) <get_sizes>: Likewise.
7495 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7496 argument.
7497 <get_sizes>: Add "height" argument.
7498 <m_vertical>: New field.
7499 * tui/tui-layout.c (tui_layout_split::clone): Update.
7500 (tui_layout_split::get_sizes): Add "height" argument.
7501 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7502 (tui_new_layout_command): Parse "-horizontal".
7503 (_initialize_tui_layout): Update help string.
7504 (tui_layout_split::specification): Add "-horizontal" when needed.
7505 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7506 argument.
7507 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7508 New methods.
7509
6bc56648
TT
75102020-02-22 Tom Tromey <tom@tromey.com>
7511
7512 * tui/tui-layout.h (enum tui_adjust_result): New.
7513 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7514 (class tui_layout_window) <adjust_size>: Return
7515 tui_adjust_result. Rewrite.
7516 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7517 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7518
c22fef7e
TT
75192020-02-22 Tom Tromey <tom@tromey.com>
7520
7521 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7522 parameter and return types.
7523 (class tui_layout_base) <specification>: Add "depth".
7524 (class tui_layout_window) <specification>: Add "depth".
7525 (class tui_layout_split) <specification>: Add "depth".
7526 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7527 and return types.
7528 (tui_new_layout_command): Parse sub-layouts.
7529 (_initialize_tui_layout): Update help string.
7530 (tui_layout_window::specification): Add "depth".
7531 (add_layout_command): Update.
7532
ee325b61
TT
75332020-02-22 Tom Tromey <tom@tromey.com>
7534
7535 * NEWS: Add "tui new-layout" item.
7536 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7537 Add new-layout command to help text.
7538 (validate_window_name): New function.
7539 (tui_new_layout_command): New function.
7540 (_initialize_tui_layout): Register "new-layout".
7541 (tui_layout_window::specification): New method.
7542 (tui_layout_window::specification): New method.
7543 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7544 method.
7545 (class tui_layout_window) <specification>: New method.
7546 (class tui_layout_split) <specification>: New method.
7547
416eb92d
TT
75482020-02-22 Tom Tromey <tom@tromey.com>
7549
7550 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7551 * tui/tui-win.c (window_name_completer): Update comment.
7552 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7553 Declare method.
7554 (class tui_layout_window) <replace_window>: Likewise.
7555 (class tui_layout_split) <replace_window>: Likewise.
7556 (tui_set_layout): Don't declare.
7557 (tui_set_initial_layout): Declare function.
7558 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7559 (asm_regs_layout): New globals.
7560 (tui_current_layout, show_layout): Remove.
7561 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7562 (find_layout, tui_apply_layout): New function.
7563 (layout_completer): Remove.
7564 (tui_next_layout): Reimplement.
7565 (tui_next_layout_command): New function.
7566 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7567 (tui_regs_layout): Reimplement.
7568 (tui_regs_layout_command): New function.
7569 (extract_display_start_addr): Rewrite.
7570 (next_layout, prev_layout): Remove.
7571 (tui_layout_window::replace_window): New method.
7572 (tui_layout_split::replace_window): New method.
7573 (destroy_layout): New function.
7574 (layout_list): New global.
7575 (add_layout_command): New function.
7576 (initialize_layouts): Update.
7577 (tui_layout_command): New function.
7578 (_initialize_tui_layout): Install "layout" commands.
7579 * tui/tui-data.h (enum tui_layout_type): Remove.
7580 (tui_current_layout): Don't declare.
7581
0dbc2fc7
TT
75822020-02-22 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-regs.c (tui_reg_layout): Remove.
7585 (tui_reg_command): Use tui_regs_layout.
7586 * tui/tui-layout.h (tui_reg_command): Declare.
7587 * tui/tui-layout.c (tui_reg_command): New function.
7588
5afe342e
TT
75892020-02-22 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui.c (tui_rl_delete_other_windows): Call
7592 tui_remove_some_windows.
7593 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7594 Declare method.
7595 (class tui_layout_window) <remove_windows>: New method.
7596 (class tui_layout_split) <remove_windows>: Declare.
7597 (tui_remove_some_windows): Declare.
7598 * tui/tui-layout.c (tui_remove_some_windows): New function.
7599 (tui_layout_split::remove_windows): New method.
7600
427326a8
TT
76012020-02-22 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7604 * tui/tui-layout.h (tui_next_layout): Declare.
7605 * tui/tui-layout.c (tui_next_layout): New function.
7606
3fe12b6d
TT
76072020-02-22 Tom Tromey <tom@tromey.com>
7608
7609 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7610 correct coordinates.
7611
59b8b5d2
TT
76122020-02-22 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7615 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7616 DATA_WIN case.
7617
2a3d458b
TT
76182020-02-22 Tom Tromey <tom@tromey.com>
7619
7620 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7621 TUI_DISASM_WIN, not tui_win_list.
7622
3f0cbb04
TT
76232020-02-22 Tom Tromey <tom@tromey.com>
7624
7625 * valprint.c (generic_val_print_enum_1)
7626 (val_print_type_code_flags): Style member names.
7627 * rust-lang.c (val_print_struct, rust_print_enum)
7628 (rust_print_struct_def, rust_internal_print_type): Style member
7629 names.
7630 * p-valprint.c (pascal_object_print_value_fields): Style member
7631 names. Only call fprintf_symbol_filtered for static members.
7632 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7633 * f-valprint.c (f_val_print): Style member names.
7634 * f-typeprint.c (f_type_print_base): Style member names.
7635 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7636 call fprintf_symbol_filtered for static members.
7637 (cp_print_class_member): Style member names.
7638 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7639 member names.
7640 * ada-valprint.c (ada_print_scalar): Style enum names.
7641 (ada_val_print_enum): Likewise.
7642 * ada-typeprint.c (print_enum_type): Style enum names.
7643
d4d947ae
TT
76442020-02-21 Tom Tromey <tom@tromey.com>
7645
7646 * psympriv.h (struct partial_symtab): Update comment.
7647
e94e944b
TT
76482020-02-21 Tom Tromey <tromey@adacore.com>
7649
7650 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7651 type is CORE_ADDR.
7652
1eb73179
TV
76532020-02-21 Tom de Vries <tdevries@suse.de>
7654
7655 PR gdb/25534
7656 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7657 if dependencies[i]->user != NULL.
7658
4f180d53
AT
76592020-02-21 Ali Tamur <tamur@google.com>
7660
7661 * dwarf2/read.c (dwarf2_name): Add null check.
7662
22b6cd70
TT
76632020-02-20 Tom Tromey <tom@tromey.com>
7664
7665 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7666 ">=", in binary search.
7667 (dwarf2_find_containing_comp_unit): New overload.
7668 (run_test): New self-test.
7669 (_initialize_dwarf2_read): Register new test.
7670
bd0cf5a6
NC
76712020-02-20 Nelson Chu <nelson.chu@sifive.com>
7672
7673 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7674 * riscv-tdep.h: Likewise.
7675 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7676 rv32-only CSR.
7677 * features/riscv/64bit-csr.xml: Regenerated.
7678
3f702acd
SDJ
76792020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7680 Tom Tromey <tom@tromey.com>
7681
7682 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7683 of 'fputc_unfiltered'.
7684 (putchar_unfiltered): Call 'fputc_unfiltered'.
7685 (fputc_unfiltered): Call 'fputs_unfiltered'.
7686
d13c7322
AB
76872020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7688
7689 * config.in: Regenerate.
7690 * configure: Regenerate.
7691 * configure.ac: Add --with-python-libdir option.
7692 * main.c: Use WITH_PYTHON_LIBDIR.
7693
869d8950
TT
76942020-02-19 Tom Tromey <tom@tromey.com>
7695
7696 * symtab.c (general_symbol_info::compute_and_set_names): Use
7697 obstack_strndup. Simplify call to symbol_set_demangled_name.
7698
298e9637
SM
76992020-02-19 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * dwarf2/read.c (allocate_signatured_type_table,
7702 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7703 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7704 Remove objfile parameter, update all callers.
7705
08410482
DE
77062020-02-19 Doug Evans <dje@google.com>
7707
7708 PR rust/25535
7709 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7710 rust_enum_variant calculation.
7711
dfdeeca1
TT
77122020-02-19 Tom Tromey <tromey@adacore.com>
7713
7714 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7715
2ef5453b
TT
77162020-02-19 Tom Tromey <tromey@adacore.com>
7717
7718 * ada-lang.c (cache_symbol): Use obstack_strdup.
7719
9f1528a1
AB
77202020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7721
7722 * configure: Regenerate.
7723
d3c22fa8
TT
77242020-02-19 Tom Tromey <tromey@adacore.com>
7725
7726 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7727 NULL check.
7728
bf84f706
MR
77292020-02-19 Maciej W. Rozycki <macro@wdc.com>
7730
7731 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7732
d1c9b20f
AB
77332020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7734
7735 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7736 if GDBSERVER is not defined.
7737 (riscv_tdesc_cache): Likewise, also store const target_desc.
7738 (STATIC_IN_GDB): Define.
7739 (riscv_create_target_description): Update declaration with
7740 STATIC_IN_GDB.
7741 (riscv_lookup_target_description): New function, only define if
7742 GDBSERVER is not defined.
7743 * arch/riscv.h (riscv_create_target_description): Declare only
7744 when GDBSERVER is defined.
7745 (riscv_lookup_target_description): New declaration when GDBSERVER
7746 is not defined.
7747 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7748 (riscv_linux_read_features): ...this, and return
7749 riscv_gdbarch_features instead of target_desc.
7750 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7751 (riscv_linux_read_description): Rename to...
7752 (riscv_linux_read_features): ...this.
7753 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7754 Update to use riscv_gdbarch_features and
7755 riscv_lookup_target_description.
7756 * riscv-tdep.c (riscv_find_default_target_description): Use
7757 riscv_lookup_target_description instead of
7758 riscv_create_target_description.
7759
373d7ac0
SM
77602020-02-18 Simon Marchi <simon.marchi@efficios.com>
7761
7762 * valprint.c (generic_val_print_enum_1): When printing a flag
7763 enum with value 0 and there is no enumerator with value 0, print
7764 just "0" instead of "(unknown: 0x0)".
7765
b29a2df0
SM
77662020-02-18 Simon Marchi <simon.marchi@efficios.com>
7767
7768 * valprint.c (generic_val_print_enum_1): Print unknown part of
7769 flag enum in hex.
7770
6740f0cc
SM
77712020-02-18 Simon Marchi <simon.marchi@efficios.com>
7772
7773 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7774 flag enums to contain duplicate enumerators.
7775 * valprint.c (generic_val_print_enum_1): Update comment.
7776
edd45eb0
SM
77772020-02-18 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * dwarf2/read.c: Include "count-one-bits.h".
7780 (update_enumeration_type_from_children): If an enumerator has
7781 multiple bits set, don't treat the enumeration as a "flag enum".
7782 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7783 of flag enums have 0 or 1 bit set.
7784
6d0cf446
BE
77852020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7786
7787 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7788 conversion.
7789 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7790 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7791 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7792 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7793 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7794
7001c1b7
SM
77952020-02-18 Simon Marchi <simon.marchi@efficios.com>
7796
7797 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7798
fdb61c6c
SM
77992020-02-14 Simon Marchi <simon.marchi@efficios.com>
7800
7801 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7802 displaced_step_closure_up.
7803 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7804 (struct displaced_step_closure_up):
7805 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7806 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7807 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7808 Likewise.
7809 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7810 * gdbarch.c, gdbarch.h: Re-generate.
7811 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7812 displaced_step_closure_up.
7813 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7814 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7815 * infrun.h (displaced_step_closure_up): New type alias.
7816 (struct displaced_step_inferior_state) <step_closure>: Change
7817 type to displaced_step_closure_up.
7818 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7819 displaced_step_closure_up.
7820 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7821
a4a38eb4
TT
78222020-02-14 Tom Tromey <tom@tromey.com>
7823
7824 * minidebug.c (gnu_debug_key): New global.
7825 (find_separate_debug_file_in_section): Use it.
7826
e8217e61
SM
78272020-02-14 Simon Marchi <simon.marchi@efficios.com>
7828
7829 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7830 std::unique_ptr.
7831 * gdbarch.c: Re-generate.
7832 * gdbarch.h: Re-generate.
7833 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7834 change.
7835 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7836 type to std::unique_ptr.
7837 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7838 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7839 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7840 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7841 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7842 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7843 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7844 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7845 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7846
d8d83535
SM
78472020-02-14 Simon Marchi <simon.marchi@efficios.com>
7848
7849 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7850 std::unique_ptr.
7851 (displaced_step_clear): Rename to...
7852 (displaced_step_reset): ... this. Just call displaced->reset ().
7853 (displaced_step_clear_cleanup): Rename to...
7854 (displaced_step_reset_cleanup): ... this.
7855 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7856 (displaced_step_fixup): Likewise.
7857 (resume_1): Likewise.
7858 (handle_inferior_event): Restore child's memory before calling
7859 displaced_step_fixup on the parent.
7860 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7861 to std::unique_ptr.
7862 <step_closure>: Change type to std::unique_ptr.
7863
5f661e03
SM
78642020-02-14 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * arm-tdep.c: Include count-one-bits.h.
7867 (cleanup_block_store_pc): Use count_one_bits.
7868 (cleanup_block_load_pc): Use count_one_bits.
7869 (arm_copy_block_xfer): Use count_one_bits.
7870 (thumb2_copy_block_xfer): Use count_one_bits.
7871 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7872 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7873 (thumb_get_next_pcs_raw): Use count_one_bits.
7874 (arm_get_next_pcs_raw): Use count_one_bits_l.
7875 * arch/arm.c (bitcount): Remove.
7876 * arch/arm.h (bitcount): Remove.
7877
8084e579
TT
78782020-02-14 Tom Tromey <tromey@adacore.com>
7879
7880 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7881 Update.
7882 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7883 * dwarf2/loc.c (call_site_find_chain_1): Return
7884 unique_xmalloc_ptr.
7885 (call_site_find_chain): Likewise.
7886
258bf0ee
RB
78872020-02-14 Richard Biener <rguenther@suse.de>
7888
7889 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7890 on expression with division operators.
7891
f98a8458
AKS
78922020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7893
7894 * MAINTAINERS (Write After Approval): Adding myself.
7895
d1437c0e
TT
78962020-02-12 Tom Tromey <tom@tromey.com>
7897
7898 * event-loop.c (event_data, gdb_event, event_handler_func):
7899 Remove.
7900
3d4560f7
TT
79012020-02-12 Tom Tromey <tom@tromey.com>
7902
7903 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7904 (dwarf2_frame_objfile_data): Add comment.
7905 (find_comp_unit, set_comp_unit): New functions.
7906 (dwarf2_frame_find_fde): Use find_comp_unit.
7907 (dwarf2_build_frame_info): Use set_comp_unit.
7908
21982304
TT
79092020-02-12 Tom Tromey <tom@tromey.com>
7910
7911 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7912 (comp_unit): Don't initialize objfile.
7913 (execute_cfa_program): Add text_offset parameter.
7914 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7915 (dwarf2_frame_cache): Update.
7916 (dwarf2_build_frame_info): Don't set "objfile" member.
7917
4debb237
TT
79182020-02-12 Tom Tromey <tom@tromey.com>
7919
7920 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7921 (decode_frame_entry): Likewise.
7922 (dwarf2_build_frame_info): Update.
7923
0d404d44
TT
79242020-02-12 Tom Tromey <tom@tromey.com>
7925
7926 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7927 (decode_frame_entry_1): Use the comp_unit obstack.
7928
a7a3ae5c
TT
79292020-02-12 Tom Tromey <tom@tromey.com>
7930
7931 * dwarf2/frame.c (struct comp_unit): Add initializers and
7932 constructor.
7933 (dwarf2_frame_objfile_data): Store a comp_unit.
7934 (dwarf2_frame_find_fde): Update.
7935 (dwarf2_build_frame_info): Use "new".
7936
a9d65418
TT
79372020-02-12 Tom Tromey <tom@tromey.com>
7938
7939 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7940 (dwarf2_fde_table): Typedef for std::vector.
7941 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7942 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7943 (decode_frame_entry): Update.
7944 (dwarf2_build_frame_info): Use "new".
7945
7559c217
CB
79462020-02-12 Christian Biesinger <cbiesinger@google.com>
7947
7948 * arm-tdep.c (arm_gdbarch_init): Update.
7949 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7950 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7951 have_neon, is_m>: Change to bool.
7952
aeefc73c
CB
79532020-02-12 Christian Biesinger <cbiesinger@google.com>
7954
7955 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7956
d27b8e5f
TT
79572020-02-12 Tom Tromey <tom@tromey.com>
7958
7959 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7960
cd5900f3
HD
79612020-02-12 Hannes Domani <ssbssa@yahoo.de>
7962
7963 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7964 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7965
f056b22b
TT
79662020-02-11 Tom Tromey <tom@tromey.com>
7967
7968 * psymtab.h: Update comment.
7969
f92ff6b5
TT
79702020-02-11 Tom Tromey <tom@tromey.com>
7971
7972 * gdb_obstack.h (struct auto_obstack): Use
7973 DISABLE_COPY_AND_ASSIGN.
7974
3fd6912b
TT
79752020-02-11 Tom Tromey <tom@tromey.com>
7976
7977 * dwarf2/frame.h (struct objfile): Don't forward declare.
7978
69ed9b74
CB
79792020-02-11 Christian Biesinger <cbiesinger@google.com>
7980
7981 * cris-tdep.c (cris_supply_gregset): Change signature to match
7982 what struct regset expects.
7983 (cris_regset): New struct.
7984 (fetch_core_registers): Remove.
7985 (cris_iterate_over_regset_sections): New function.
7986 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7987 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7988
bda874f6
CB
79892020-02-11 Christian Biesinger <cbiesinger@google.com>
7990
7991 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7992 registers.
7993
754e1564
CB
79942020-02-11 Christian Biesinger <cbiesinger@google.com>
7995
7996 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7997
8ddd8e0e
SM
79982020-02-11 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * configure: Re-generate.
8001
898e7f60
SM
80022020-02-11 Simon Marchi <simon.marchi@efficios.com>
8003
8004 * configure: Re-generate.
8005
58df732b
SM
80062020-02-11 Simon Marchi <simon.marchi@efficios.com>
8007
8008 * acinclude: Update warning.m4 path.
8009 * warning.m4: Move to gdbsupport.
8010
da5bd37e
TT
80112020-02-11 Tom Tromey <tromey@adacore.com>
8012
8013 * remote.c (remote_console_output): Update.
8014 * printcmd.c (printf_command): Update.
8015 * event-loop.c (gdb_wait_for_event): Update.
8016 * linux-nat.c (sigchld_handler): Update.
8017 * remote-sim.c (gdb_os_write_stdout): Update.
8018 (gdb_os_flush_stdout): Update.
8019 (gdb_os_flush_stderr): Update.
8020 (gdb_os_write_stderr): Update.
8021 * exceptions.c (print_exception): Update.
8022 * remote-fileio.c (remote_fileio_func_read): Update.
8023 (remote_fileio_func_write): Update.
8024 * tui/tui.c (tui_enable): Update.
8025 * tui/tui-interp.c (tui_interp::init): Update.
8026 * utils.c (init_page_info): Update.
8027 (putchar_unfiltered, fputc_unfiltered): Update.
8028 (gdb_flush): Update.
8029 (emit_style_escape): Update.
8030 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8031 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8032 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8033 (stderr_file::write): Update.
8034 (stderr_file::puts): Update.
8035 * ui-file.h (ui_file_isatty, ui_file_write)
8036 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8037 (ui_file_puts): Don't declare.
8038
85f0dd3c
TV
80392020-02-10 Tom de Vries <tdevries@suse.de>
8040
8041 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8042 sentinel to char *.
8043
2e927613
TV
80442020-02-09 Tom de Vries <tdevries@suse.de>
8045
8046 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8047 filename if it matches "<artificial>".
8048
6bafc845
HD
80492020-02-09 Hannes Domani <ssbssa@yahoo.de>
8050
8051 * windows-tdep.c (struct enum_value_name): New struct.
8052 (create_enum): New function.
8053 (windows_get_siginfo_type): Create and use enum types.
8054
7928d571
HD
80552020-02-09 Hannes Domani <ssbssa@yahoo.de>
8056
8057 * NEWS: Mention $_siginfo support for Windows.
8058 * windows-nat.c (handle_exception): Set siginfo_er.
8059 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8060 (windows_xfer_siginfo): New function.
8061 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8062 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8063 (init_windows_gdbarch_data): New function.
8064 (get_windows_gdbarch_data): New function.
8065 (windows_get_siginfo_type): New function.
8066 (windows_init_abi): Register windows_get_siginfo_type.
8067 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8068
6751ebae
TT
80692020-02-08 Tom Tromey <tom@tromey.com>
8070
8071 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8072 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8073 <keep>: Declare method.
8074 <m_keep>: Remove member.
8075 <~cutu_reader>: Remove.
8076 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8077 (cutu_reader::cutu_reader): Update.
8078 (cutu_reader::keep): Rename from ~cutu_reader.
8079 (process_psymtab_comp_unit, build_type_psymtabs_1)
8080 (process_skeletonless_type_unit, load_partial_comp_unit)
8081 (load_full_comp_unit, dwarf2_read_addr_index)
8082 (read_signatured_type): Update.
8083
135f5437
TT
80842020-02-08 Tom Tromey <tom@tromey.com>
8085
8086 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8087 "want_partial_unit" parameter.
8088 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8089 Inline check for DW_TAG_partial_unit.
8090 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8091
9f66ff1c
TT
80922020-02-08 Tom Tromey <tom@tromey.com>
8093
8094 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8095 read.c.
8096 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8097 read.c.
8098
c8a7a66f
TT
80992020-02-08 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2/read.c (read_address): Move to comp-unit.c.
8102 (dwarf2_rnglists_process, dwarf2_ranges_process)
8103 (read_attribute_value, dwarf_decode_lines_1)
8104 (var_decode_location, decode_locdesc): Update.
8105 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8106 read.c. Remove "cu" parameter.
8107 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8108 method.
8109
8266302d
TT
81102020-02-08 Tom Tromey <tom@tromey.com>
8111
8112 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8113 (read_indirect_line_string): Update.
8114 * dwarf2/comp-unit.c (read_offset): Remove.
8115 (read_comp_unit_head): Update.
8116 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8117 method.
8118 (read_offset): Don't declare.
8119
4057dfde
TT
81202020-02-08 Tom Tromey <tom@tromey.com>
8121
8122 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8123 * dwarf2/read.c (struct comp_unit_head): Move to
8124 dwarf2/comp-unit.h.
8125 (enum class rcuh_kind): Move to comp-unit.h.
8126 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8127 (read_comp_unit_head, error_check_comp_unit_head)
8128 (read_and_check_comp_unit_head): Move to comp-unit.c.
8129 (read_offset, dwarf_unit_type_name): Likewise.
8130 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8131 (cutu_reader::cutu_reader, read_call_site_scope)
8132 (find_partial_die, follow_die_offset): Update.
8133 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8134
24aa364d
TT
81352020-02-08 Tom Tromey <tom@tromey.com>
8136
8137 * dwarf2/read.c (read_offset_1): Move to leb.c.
8138 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8139 (dwarf_decode_macro_bytes): Update.
8140 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8141 * dwarf2/leb.h (read_offset): Declare.
8142
2c7d5afc
TT
81432020-02-08 Tom Tromey <tom@tromey.com>
8144
8145 * dwarf2/read.c (dwarf2_section_size): Remove.
8146 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8147 Update.
8148 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8149
4075cb26
TT
81502020-02-08 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/read.c (read_initial_length): Move to leb.c.
8153 * dwarf2/leb.h (read_initial_length): Declare.
8154 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8155 handle_nonstd parameter.
8156 * dwarf2/frame.c (read_initial_length): Remove.
8157 (decode_frame_entry_1): Update.
8158
09ba997f
TT
81592020-02-08 Tom Tromey <tom@tromey.com>
8160
8161 * dwarf2/loc.c (dwarf2_find_location_expression)
8162 (dwarf_evaluate_loc_desc::get_tls_address)
8163 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8164 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8165 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8166 (dwarf2_compile_property_to_c)
8167 (dwarf2_loc_desc_get_symbol_read_needs)
8168 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8169 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8170 (loclist_describe_location, loclist_tracepoint_var_ref)
8171 (loclist_generate_c_location): Update.
8172 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8173 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8174 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8175 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8176 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8177 (dwarf2_per_cu_data::addr_size)
8178 (dwarf2_per_cu_data::ref_addr_size)
8179 (dwarf2_per_cu_data::text_offset)
8180 (dwarf2_per_cu_data::addr_type): Now methods.
8181 (per_cu_header_read_in): Make per_cu "const".
8182 (dwarf2_version): Remove.
8183 (dwarf2_per_cu_data::int_type): Now a method.
8184 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8185 (set_die_type, read_array_type, read_subrange_index_type)
8186 (read_tag_string_type, read_subrange_type): Update.
8187 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8188 offset_size, ref_addr_size, text_offset, addr_type, version,
8189 objfile, int_type, addr_sized_int_type>: Declare methods.
8190
96c738c0
TT
81912020-02-08 Tom Tromey <tom@tromey.com>
8192
8193 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8194 Move earlier.
8195
8fdd972c
TT
81962020-02-08 Tom Tromey <tom@tromey.com>
8197
8198 * dwarf2/read.h (dwarf_line_debug): Declare.
8199 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8200 * dwarf2/read.c: Move line_header code to new files.
8201 (dwarf_line_debug): No longer static.
8202 * dwarf2/line-header.c: New file.
8203 * dwarf2/line-header.h: New file.
8204
03075812
TT
82052020-02-08 Tom Tromey <tom@tromey.com>
8206
8207 * dwarf2/read.c (struct line_header) <file_full_name,
8208 file_file_name>: Return unique_xmalloc_ptr.
8209 (line_header::file_file_name): Update.
8210 (line_header::file_full_name): Update.
8211 (dw2_get_file_names_reader): Update.
8212 (macro_start_file): Update.
8213
bb822404
TT
82142020-02-08 Tom Tromey <tom@tromey.com>
8215
8216 * dwarf2/read.c (struct line_header) <file_full_name,
8217 file_file_name>: Declare methods.
8218 (dw2_get_file_names_reader): Update.
8219 (file_file_name): Now a method.
8220 (file_full_name): Likewise.
8221 (macro_start_file): Update.
8222
009b64fc
TT
82232020-02-08 Tom Tromey <tom@tromey.com>
8224
8225 * dwarf2/read.c (dwarf_always_disassemble)
8226 (show_dwarf_always_disassemble): Move to loc.c.
8227 (_initialize_dwarf2_read): Move "always-disassemble" registration
8228 to loc.c.
8229 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8230 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8231 static.
8232 (show_dwarf_always_disassemble): Move from read.c.
8233 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8234
5895093f
TT
82352020-02-08 Tom Tromey <tom@tromey.com>
8236
8237 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8238 (create_quick_file_names_table): Return htab_up.
8239 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8240 Update.
8241 * dwarf2/read.h (struct dwarf2_per_objfile)
8242 <quick_file_names_table>: Now htab_up.
8243
b3b32279
TT
82442020-02-08 Tom Tromey <tom@tromey.com>
8245
8246 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8247
1d33d811
TT
82482020-02-08 Tom Tromey <tom@tromey.com>
8249
8250 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8251 Rewrite.
8252 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8253 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8254 (abbrev_table::abbrev_table): No longer inline.
8255 (ABBREV_HASH_SIZE): Remove.
8256 (abbrev_table::m_abbrevs): Now an htab_up.
8257
86de1d91
TT
82582020-02-08 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8261 (cutu_reader): Update.
8262 (build_type_psymtabs_1): Update.
8263 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8264 (abbrev_table::alloc_abbrev): Update.
8265 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8266 (abbrev_table::read): New static method, renamed from
8267 abbrev_table_read_table.
8268 (abbrev_table::alloc_abbrev)
8269 (abbrev_table::add_abbrev): Now private.
8270 (abbrev_table::abbrev_table): Now private.
8271 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8272
0335378b
TT
82732020-02-08 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8276 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8277 htab_up.
8278
48b490f2
TT
82792020-02-08 Tom Tromey <tom@tromey.com>
8280
8281 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8282 htab_up.
8283 (lookup_dwo_unit_in_dwp): Update.
8284 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8285 on obstack.
8286
bc68fb19
TT
82872020-02-08 Tom Tromey <tom@tromey.com>
8288
8289 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8290 obstack.
8291
d15acc42
TT
82922020-02-08 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8295 line_header_hash.
8296 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8297 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8298 Change type to htab_up.
8299
eaa5fa8b
TT
83002020-02-08 Tom Tromey <tom@tromey.com>
8301
8302 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8303 htab_up. Don't allocate on obstack.
8304 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8305 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8306 Change type to htab_up.
8307
b0b6a987
TT
83082020-02-08 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8311 Change type to htab_up.
8312 * dwarf2/read.c (create_signatured_type_table_from_index)
8313 (create_signatured_type_table_from_debug_names)
8314 (create_all_type_units, add_type_unit)
8315 (lookup_dwo_signatured_type, lookup_signatured_type)
8316 (process_skeletonless_type_unit): Update.
8317 (create_debug_type_hash_table, create_debug_types_hash_table):
8318 Change type of types_htab.
8319 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8320 htab_up. Don't allocate on obstack.
8321 (create_cus_hash_table): Change type of cus_htab parameter.
8322 (struct dwo_file) <cus, tus>: Now htab_up.
8323 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8324 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8325 (queue_and_load_all_dwo_tus): Update.
8326 * dwarf2/index-write.c (write_gdbindex): Update.
8327 (write_debug_names): Update.
8328
39856def
TT
83292020-02-08 Tom Tromey <tom@tromey.com>
8330
8331 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8332 dwarf2/read.c. Remove "next" member. Add constructor ntad
8333 destructor.
8334 (struct dwarf2_per_objfile) <queue>: New member.
8335 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8336 dwarf2/read.h.
8337 (dwarf2_queue, dwarf2_queue_tail): Remove.
8338 (class dwarf2_queue_guard): Add parameter to constructor. Use
8339 DISABLE_COPY_AND_ASSIGN.
8340 <m_per_objfile>: New member.
8341 <~dwarf2_queue_guard>: Rewrite.
8342 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8343 Update.
8344 (~dwarf2_queue_item): New.
8345
3e225074
TT
83462020-02-08 Tom Tromey <tom@tromey.com>
8347
8348 * dwarf2/read.c (struct die_info) <has_children>: New member.
8349 (dw2_get_file_names_reader): Remove has_children.
8350 (dw2_get_file_names): Update.
8351 (read_cutu_die_from_dwo): Remove has_children.
8352 (cutu_reader::init_tu_and_read_dwo_dies)
8353 (cutu_reader::cutu_reader): Update.
8354 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8355 Remove has_children.
8356 (build_type_psymtabs_1, process_skeletonless_type_unit)
8357 (load_partial_comp_unit, load_full_comp_unit): Update.
8358 (create_dwo_cu_reader): Remove has_children.
8359 (create_cus_hash_table, read_die_and_children): Update.
8360 (read_full_die_1,read_full_die): Remove has_children.
8361 (read_signatured_type): Update.
8362 (class cutu_reader) <has_children>: Remove.
8363
82ca8957
TT
83642020-02-08 Tom Tromey <tom@tromey.com>
8365
8366 * dwarf2/expr.c: Rename from dwarf2expr.c.
8367 * dwarf2/expr.h: Rename from dwarf2expr.h.
8368 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8369 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8370 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8371 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8372 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8373 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8374 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8375 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8376 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8377 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8378 * dwarf2/loc.c: Rename from dwarf2loc.c.
8379 * dwarf2/loc.h: Rename from dwarf2loc.h.
8380 * dwarf2/read.c: Rename from dwarf2read.c.
8381 * dwarf2/read.h: Rename from dwarf2read.h.
8382 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8383 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8384 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8385 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8386 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8387 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8388 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8389 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8390 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8391 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8392 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8393 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8394 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8395 Update.
8396 * Makefile.in (COMMON_SFILES): Update.
8397 (HFILES_NO_SRCDIR): Update.
8398
9e35d499
TT
83992020-02-08 Tom Tromey <tom@tromey.com>
8400
8401 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8402 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8403
1eba2311
TT
84042020-02-08 Tom Tromey <tom@tromey.com>
8405
8406 * dwarf2read.h (struct die_info): Don't declare.
8407
e41c2da2
TT
84082020-02-08 Tom Tromey <tom@tromey.com>
8409
8410 * dwarf2read.h (die_info_ptr): Remove typedef.
8411
4fc6c0d5
TT
84122020-02-08 Tom Tromey <tom@tromey.com>
8413
8414 * dwarf2read.c (read_call_site_scope)
8415 (handle_data_member_location, dwarf2_add_member_fn)
8416 (mark_common_block_symbol_computed, read_common_block)
8417 (attr_to_dynamic_prop, partial_die_info::read)
8418 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8419 (dwarf2_symbol_mark_computed, set_die_type): Update.
8420 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8421 method.
8422 (attr_form_is_block): Don't declare.
8423 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8424
cd6c91b4
TT
84252020-02-08 Tom Tromey <tom@tromey.com>
8426
8427 * dwarf2read.c (dwarf2_find_base_address, )
8428 (read_call_site_scope, rust_containing_type)
8429 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8430 (handle_data_member_location, dwarf2_add_member_fn)
8431 (get_alignment, read_structure_type, process_structure_scope)
8432 (mark_common_block_symbol_computed, read_common_block)
8433 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8434 (partial_die_info::read, read_attribute_value, new_symbol)
8435 (lookup_die_type, dwarf2_get_ref_die_offset)
8436 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8437 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8438 (dwarf2_symbol_mark_computed): Update.
8439 * dwarf2/attribute.h (struct attribute) <value_as_address,
8440 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8441 methods.
8442 (value_as_address, attr_form_is_section_offset)
8443 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8444 * dwarf2/attribute.c (attribute::value_as_address)
8445 (attribute::form_is_section_offset, attribute::form_is_constant)
8446 (attribute::form_is_ref): Now methods.
8447
162dce55
TT
84482020-02-08 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2read.c (struct attribute, DW_STRING)
8451 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8452 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8453 (attr_form_is_block, attr_form_is_section_offset)
8454 (attr_form_is_constant, attr_form_is_ref): Move.
8455 * dwarf2/attribute.h: New file.
8456 * dwarf2/attribute.c: New file, from dwarf2read.c.
8457 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8458
3054dd54
TT
84592020-02-08 Tom Tromey <tom@tromey.com>
8460
8461 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8462 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8463 Move.
8464 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8465 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8466 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8467 abbrev.c.
8468 * dwarf2/abbrev.h: New file.
8469 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8470 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8471
96b79293
TT
84722020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8475 (dwarf2_section_size, dwarf2_get_section_info)
8476 (create_signatured_type_table_from_debug_names)
8477 (create_addrmap_from_aranges, read_debug_names_from_section)
8478 (get_gdb_index_contents_from_section, read_comp_unit_head)
8479 (error_check_comp_unit_head, read_abbrev_offset)
8480 (create_debug_type_hash_table, init_cu_die_reader)
8481 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8482 (read_comp_units_from_section, create_cus_hash_table)
8483 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8484 (create_dwp_v2_section, dwarf2_rnglists_process)
8485 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8486 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8487 (read_indirect_string_from_dwz, read_addr_index_1)
8488 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8489 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8490 (fill_in_loclist_baton): Update.
8491 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8492 get_containing_section, get_bfd_owner, get_bfd_section,
8493 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8494 (dwarf2_read_section, get_section_name, get_section_file_name)
8495 (get_containing_section, get_section_bfd_owner)
8496 (get_section_bfd_section, get_section_name, get_section_file_name)
8497 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8498 declare.
8499 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8500 (dwarf2_section_info::get_bfd_owner)
8501 (dwarf2_section_info::get_bfd_section)
8502 (dwarf2_section_info::get_name)
8503 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8504 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8505 (dwarf2_section_info::read): Now methods.
8506 * dwarf-index-write.c (class debug_names): Update.
8507
2c86cff9
TT
85082020-02-08 Tom Tromey <tom@tromey.com>
8509
8510 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8511 Move to dwarf2/section.h.
8512 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8513 (get_section_bfd_section, get_section_name)
8514 (get_section_file_name, get_section_id, get_section_flags)
8515 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8516 dwarf2/section.c.
8517 * dwarf2/section.h: New file.
8518 * dwarf2/section.c: New file, from dwarf2read.c.
8519 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8520
f4382c45
TT
85212020-02-08 Tom Tromey <tom@tromey.com>
8522
8523 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8524 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8525 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8526 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8527 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8528 * dwarf2/leb.h: New file, from dwarf2read.c.
8529 * dwarf2/leb.c: New file, from dwarf2read.c.
8530 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8531 Remove.
8532 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8533 (COMMON_SFILES): Add dwarf2/leb.c.
8534
01840b7a
JB
85352020-02-08 Joel Brobecker <brobecker@adacore.com>
8536
8537 GDB 9.1 released.
8538
dfcb27e4
IB
85392020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8540
8541 PR gdb/25190:
aac66a4c
SM
8542 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8543 * gdb/remote.c (remote_console_output): Update.
8544 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8545 (ui_file_puts): ...this.
8546 * gdb/ui-file.h (ui_file_puts): Add declaration.
8547 * gdb/utils.c (emit_style_escape): Update.
8548 (flush_wrap_buffer): Update.
8549 (fputs_maybe_filtered): Update.
8550 (fputs_unfiltered): Add function.
dfcb27e4 8551
faa17681
IB
85522020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8553
aac66a4c
SM
8554 * gdb/event-loop.c (gdb_wait_for_event): Update.
8555 * gdb/printcmd.c (printf_command): Update.
8556 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8557 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8558 (gdb_os_flush_stderr): Update.
8559 * gdb/remote.c (remote_console_output): Update.
8560 * gdb/ui-file.c (gdb_flush): Rename to...
8561 (ui_file_flush): ...this.
8562 (stderr_file::write): Update.
8563 (stderr_file::puts): Update.
8564 * gdb/ui-file.h (gdb_flush): Rename to...
8565 (ui_file_flush): ...this.
8566 * gdb/utils.c (gdb_flush): Add function.
8567 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8568
5abbbe1d
TT
85692020-02-07 Tom Tromey <tromey@adacore.com>
8570
8571 PR breakpoints/24915:
8572 * source.c (find_and_open_source): Do not check basenames_may_differ.
8573
919adfe8
TT
85742020-02-07 Tom Tromey <tom@tromey.com>
8575
8576 * README: Update gdbserver documentation.
8577 * gdbserver: Move to top level.
8578 * configure.tgt (build_gdbserver): Remove.
8579 * configure.ac: Remove --enable-gdbserver.
8580 * configure: Rebuild.
8581 * Makefile.in (distclean): Don't mention gdbserver.
8582
1d5d29e7
SV
85832020-02-06 Shahab Vahedi <shahab@synopsys.com>
8584
8585 * source-cache.c (source_cache::ensure): Surround
8586 get_plain_source_lines with a try/catch.
8587 (source_cache::get_line_charpos): Get rid of try/catch
8588 and only check for the return value of "ensure".
8589 * tui/tui-source.c (tui_source_window::set_contents):
8590 Simplify "nlines" calculation.
8591
6eb1129c
SV
85922020-02-06 Shahab Vahedi <shahab@synopsys.com>
8593
8594 * MAINTAINERS (Write After Approval): Add myself.
8595
c6a42d11
CB
85962020-02-05 Christian Biesinger <cbiesinger@google.com>
8597
8598 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8599 function call.
8600
c8ecdda6
CB
86012020-02-05 Christian Biesinger <cbiesinger@google.com>
8602
8603 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8604
f6480e70
MR
86052020-02-05 Maciej W. Rozycki <macro@wdc.com>
8606
8607 * nat/riscv-linux-tdesc.h: New file.
8608 * nat/riscv-linux-tdesc.c: New file, taking code from...
8609 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8610 ... here.
8611 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8612 NATDEPFILES.
8613
dcc9fbc6
AB
86142020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8617 we don't set the fake simulator ptid to the null_ptid.
8618
719546c4
SM
86192020-02-03 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8622 * gdbthread.h (class thread_info) <resumed>: Likewise.
8623 * infrun.c (resume_1): Likewise.
8624 (proceed): Likewise.
8625 (infrun_thread_stop_requested): Likewise.
8626 (stop_all_threads): Likewise.
8627 (handle_inferior_event): Likewise.
8628 (restart_threads): Likewise.
8629 (finish_step_over): Likewise.
8630 (keep_going_stepped_thread): Likewise.
8631 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8632 (linux_handle_extended_wait): Likewise.
8633 * record-btrace.c (get_thread_current_frame_id): Likewise.
8634 * record-full.c (record_full_wait_1): Likewise.
8635 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8636 * target.c (target_resume): Likewise.
8637 * thread.c (set_running_thread): Likewise.
8638
e409c542
AKS
86392020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8640
8641 * f-valprint.c (f77_print_array_1): Changed datatype of index
8642 variable to LONGEST from int to enable it to contain bound
8643 values correctly.
8644
ee98c0da
MR
86452020-02-03 Maciej W. Rozycki <macro@wdc.com>
8646
8647 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8648 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8649 offsets according to FLEN determined.
8650 (riscv_linux_nat_target::read_description): Determine FLEN
8651 dynamically.
8652 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8653 according to FLEN determined.
8654 (riscv_linux_nat_target::store_registers): Likewise.
8655
aa66aac4
SV
86562020-02-01 Shahab Vahedi <shahab@synopsys.com>
8657
8658 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8659 when reg->group is empty and reggroup is not.
8660
fd9faca8
TT
86612020-01-31 Tom Tromey <tromey@adacore.com>
8662
8663 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8664 Call beneath target's mourn_inferior after unpushing.
8665
42330a68
AB
86662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8667
8668 PR tui/9765
8669 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8670 have enough lines to fill the screen, still return the lowest
8671 address we found.
8672
7a27a45b
AB
86732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8674
8675 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8676 '-', '<', and '>' commands.
8677
c47f70e2
PA
86782020-01-29 Pedro Alves <palves@redhat.com>
8679 Sergio Durigan Junior <sergiodj@redhat.com>
8680
8681 * infcmd.c (construct_inferior_arguments): Assert that
8682 'argc' is greater than 0.
8683
5133a315
LM
86842020-01-29 Luis Machado <luis.machado@linaro.org>
8685
8686 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8687 (BRK_INSN_MASK): Define to 0xd4200000.
8688 (aarch64_program_breakpoint_here_p): New function.
8689 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8690 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8691 breakpoint.c.
8692 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8693 breakpoint.h
8694 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8695 call gdbarch_program_breakpoint_here_p.
8696 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8697 default_program_breakpoint_here_p, changed return type to bool and
8698 simplified.
8699 * breakpoint.h (program_breakpoint_here): Moved prototype to
8700 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8701 return type to bool.
8702 * gdbarch.c: Regenerate.
8703 * gdbarch.h: Regenerate.
8704 * gdbarch.sh (program_breakpoint_here_p): New method.
8705 * infrun.c (handle_signal_stop): Call
8706 gdbarch_program_breakpoint_here_p.
8707
168f8c6b
TT
87082020-01-26 Tom Tromey <tom@tromey.com>
8709
8710 * ctfread.c (struct ctf_fp_info): Reindent.
8711 (_initialize_ctfread): Remove.
8712
128a391f
TT
87132020-01-26 Tom Tromey <tom@tromey.com>
8714
8715 * psymtab.c (partial_map_expand_apply)
8716 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8717 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8718 (psym_print_stats, psym_expand_symtabs_for_function)
8719 (psym_map_symbol_filenames, psym_map_matching_symbols)
8720 (psym_expand_symtabs_matching)
8721 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8722 (maintenance_check_psymtabs): Use new methods.
8723 * psympriv.h (struct partial_symtab) <readin_p,
8724 get_compunit_symtab>: New methods.
8725 <readin, compunit_symtab>: Remove members.
8726 (struct standard_psymtab): New.
8727 (struct legacy_psymtab): Derive from standard_psymtab.
8728 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8729 standard_psymtab.
8730 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8731
0494dbec
TT
87322020-01-26 Tom Tromey <tom@tromey.com>
8733
8734 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8735 read_dependencies. Add assert.
8736 * psymtab.c (partial_symtab::read_dependencies): New method.
8737 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8738 method.
8739 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8740 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8741 read_dependencies.
8742 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8743 Add assert.
8744
8566b89b
TT
87452020-01-26 Tom Tromey <tom@tromey.com>
8746
8747 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8748 Call expand_psymtab.
8749 (xcoff_read_symtab): Call expand_psymtab.
8750 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8751 legacy_expand_psymtab.
8752 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8753 method.
8754 (struct legacy_psymtab) <expand_psymtab>: Implement.
8755 <legacy_expand_psymtab>: New member.
8756 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8757 (parse_partial_symbols): Set legacy_expand_psymtab.
8758 (psymtab_to_symtab_1): Change argument order. Call
8759 expand_psymtab.
8760 (new_psymtab): Set legacy_expand_psymtab.
8761 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8762 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8763 expand_psymtab.
8764 (dwarf2_psymtab::expand_psymtab): Rename from
8765 psymtab_to_symtab_1. Call expand_psymtab.
8766 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8767 (dbx_end_psymtab): Likewise.
8768 (dbx_psymtab_to_symtab_1): Change argument order. Call
8769 expand_psymtab.
8770 (dbx_read_symtab): Call expand_psymtab.
8771 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8772 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8773 (ctf_psymtab::read_symtab): Call expand_psymtab.
8774
077cbab2
TT
87752020-01-26 Tom Tromey <tom@tromey.com>
8776
8777 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8778 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8779 messages.
8780 * mdebugread.c (mdebug_read_symtab): Remove prints.
8781 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8782 assert.
8783 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8784
891813be
TT
87852020-01-26 Tom Tromey <tom@tromey.com>
8786
8787 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8788 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8789 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8790 legacy_symtab.
8791 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8792 * psymtab.c (psymtab_to_symtab): Call method.
8793 (dump_psymtab): Update.
8794 * psympriv.h (struct partial_symtab): Add virtual destructor.
8795 <read_symtab>: New method.
8796 (struct legacy_symtab): New.
8797 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8798 (struct pst_map) <pst>: Now a legacy_psymtab.
8799 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8800 (new_psymtab): Use legacy_psymtab.
8801 * dwarf2read.h (struct dwarf2_psymtab): New.
8802 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8803 * dwarf2read.c (dwarf2_create_include_psymtab)
8804 (dwarf2_build_include_psymtabs, create_type_unit_group)
8805 (create_partial_symtab, process_psymtab_comp_unit_reader)
8806 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8807 (set_partial_user): Use dwarf2_psymtab.
8808 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8809 (psymtab_to_symtab_1, process_full_comp_unit)
8810 (process_full_type_unit, dwarf2_ranges_read)
8811 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8812 (dwarf_decode_lines): Use dwarf2_psymtab.
8813 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8814 (add_address_entry_worker, write_one_signatured_type)
8815 (recursively_count_psymbols, recursively_write_psymbols)
8816 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8817 (write_debug_names): Likewise.
8818 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8819 <pst>: Now a legacy_psymtab.
8820 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8821 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8822 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8823 * ctfread.c (struct ctf_psymtab): New.
8824 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8825 ctf_psymtab.
8826 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8827 (create_partial_symtab): Return a ctf_psymtab.
8828 (scan_partial_symbols): Update.
8829
c3693a1d
TT
88302020-01-26 Tom Tromey <tom@tromey.com>
8831
8832 * xcoffread.c (xcoff_start_psymtab): Use new.
8833 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8834 renamed from start_psymtab_common.
8835 * psympriv.h (struct partial_symtab): Add new constructor.
8836 (start_psymtab_common): Don't declare.
8837 * mdebugread.c (parse_partial_symbols): Use new.
8838 * dwarf2read.c (create_partial_symtab): Use new.
8839 * dbxread.c (start_psymtab): Use new.
8840 * ctfread.c (create_partial_symtab): Use new.
8841
32caafd0
TT
88422020-01-26 Tom Tromey <tom@tromey.com>
8843
8844 * xcoffread.c (xcoff_end_psymtab): Use new.
8845 * psymtab.c (start_psymtab_common): Use new.
8846 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8847 Update.
8848 * psympriv.h (struct partial_symtab): Add parameters to
8849 constructor. Don't inline.
8850 (allocate_psymtab): Don't declare.
8851 * mdebugread.c (new_psymtab): Use new.
8852 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8853 * dbxread.c (dbx_end_psymtab): Use new.
8854
abaa2f23
TT
88552020-01-26 Tom Tromey <tom@tromey.com>
8856
8857 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8858 allocate_psymtab. Update documentation.
8859 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8860 allocate_psymtab. Do not use new.
8861 (allocate_psymtab): Use new. Update.
8862
6d94535f
TT
88632020-01-26 Tom Tromey <tom@tromey.com>
8864
8865 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8866 * psymtab.c (psym_print_stats): Update.
8867 * psympriv.h (struct partial_symtab) <readin,
8868 psymtabs_addrmap_supported, anonymous>: Now bool.
8869 * mdebugread.c (psymtab_to_symtab_1): Update.
8870 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8871 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8872 (process_full_comp_unit, process_full_type_unit): Update.
8873 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8874 * ctfread.c (psymtab_to_symtab): Update.
8875
6f17252b
TT
88762020-01-26 Tom Tromey <tom@tromey.com>
8877
8878 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8879 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8880 * psymtab.c (psymtab_storage): Delete psymtabs.
8881 (psymtab_storage::allocate_psymtab): Use new.
8882 (psymtab_storage::discard_psymtab): Use delete.
8883 * psympriv.h (struct partial_symtab): Add constructor and
8884 initializers.
8885
f6f1cebc
TT
88862020-01-26 Tom Tromey <tom@tromey.com>
8887
8888 * machoread.c: Do not include psympriv.h.
8889
e47e48f6
PW
88902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8891
8892 * NEWS: Mention the new option and the set/show commands.
8893
a2fedca9
PW
88942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8895
8896 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8897 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8898 (validate_exec_file): New variables, enums, functions.
8899 (exec_file_locate_attach, print_section_info): Style the filenames.
8900 (_initialize_exec): Install show_exec_file_mismatch_command and
8901 set_exec_file_mismatch_command.
8902 * gdbcore.h (validate_exec_file): Declare.
8903 * infcmd.c (attach_command): Call validate_exec_file.
8904 * remote.c ( remote_target::remote_add_inferior): Likewise.
8905
7ffa82e1
AB
89062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8907
8908 * frame.c (find_frame_sal): Move call to get_next_frame into more
8909 inner scope.
8910 * inline-frame.c (inilne_state) <inline_state>: Update argument
8911 types.
8912 (inilne_state) <skipped_symbol>: Rename to...
8913 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8914 (skip_inline_frames): Build vector of skipped symbols and use this
8915 to reate the inline_state.
8916 (inline_skipped_symbol): Add a comment and some assertions, fetch
8917 skipped symbol from the list.
8918
3d92a3e3
AB
89192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8920
8921 * buildsym.c (lte_is_less_than): Delete.
8922 (buildsym_compunit::end_symtab_with_blockvector): Create local
8923 lambda function to sort line table entries, and use
8924 std::stable_sort instead of std::sort.
8925 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8926 markers when looking for a previous line.
8927
94a72be7
AB
89282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8929
8930 * dwarf2read.c (lnp_state_machine::record_line): Include
8931 end_sequence parameter in debug print out. Record the line if we
8932 are at an end_sequence marker even if it's not the start of a
8933 statement.
8934 * symmisc.c (maintenance_print_one_line_table): Print end of
8935 sequence markers with 'END' not '0'.
8936
53af73bf
PA
89372020-01-24 Pedro Alves <palves@redhat.com>
8938
8939 PR gdb/25410
8940 * thread.c (scoped_restore_current_thread::restore): Use
8941 switch_to_inferior_no_thread.
8942 * exec.c: Include "progspace-and-thread.h".
8943 (add_target_sections, remove_target_sections):
8944 scoped_restore_current_pspace_and_thread instead of
8945 scoped_restore_current_thread.
8946 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8947 and aspace to the inferior before calling clone_program_space.
8948 Remove stale comment.
8949
3050c6f4
CB
89502020-01-24 Christian Biesinger <cbiesinger@google.com>
8951
8952 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8953 (arm_netbsd_nat_target::fetch_registers): ...this.
8954 (arm_nbsd_nat_target::store_registers): Rename to...
8955 (arm_netbsd_nat_target::store_registers): ...this.
8956
73685c7e
CB
89572020-01-24 Christian Biesinger <cbiesinger@google.com>
8958
8959 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8960 register_t.
8961
89203d40
CB
89622020-01-24 Christian Biesinger <cbiesinger@google.com>
8963
8964 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8965 Update comment.
8966 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8967 Likewise.
8968 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8969 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8970 the correct replacement (iterate_over_regset_sections).
8971 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8972 Update comment.
8973
1ba1ac88
AB
89742020-01-24 Graham Markall <graham.markall@embecosm.com>
8975
8976 PR gdb/23718
8977 * gdb/python/python.c (execute_gdb_command): Call
8978 async_enable_stdin in catch block.
8979
f3364a6d
AB
89802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8981
8982 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8983 SWITCH_THRU_ALL_UIS.
8984
733d0a67
AB
89852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8986
8987 PR tui/9765
8988 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8989 comment, add extra parameter, and update to store previous symbol
8990 when appropriate.
8991 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8992 add extra parameter.
8993 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8994 remove unneeded parameter, add try/catch around gdb_print_insn,
8995 rewrite to add items to asm_lines vector.
8996 (tui_find_backward_disassembly_start_address): New function.
8997 (tui_find_disassembly_address): Updated throughout.
8998 (tui_disasm_window::set_contents): Update for changes to
8999 tui_disassemble.
9000 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9001 number of lines to scroll.
9002
b3b3bada
SM
90032020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9004
9005 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9006 (SECT_OFF_DATA): Likewise.
9007 (SECT_OFF_RODATA): Likewise.
9008 (SECT_OFF_TEXT): Likewise.
9009 (SECT_OFF_BSS): Likewise.
9010 (struct objfile) <text_section_offset, data_section_offset>: New
9011 methods.
9012 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9013 objfile::text_section_offset.
9014 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9015 * coffread.c (coff_symtab_read): Likewise.
9016 (enter_linenos): Likewise.
9017 (process_coff_symbol): Likewise.
9018 * ctfread.c (get_objfile_text_range): Likewise.
9019 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9020 Use objfile::data_section_offset.
9021 * dwarf2-frame.c (execute_cfa_program): Use
9022 objfile::text_section_offset.
9023 (dwarf2_frame_find_fde): Likewise.
9024 * dwarf2read.c (create_addrmap_from_index): Likewise.
9025 (create_addrmap_from_aranges): Likewise.
9026 (dw2_find_pc_sect_compunit_symtab): Likewise.
9027 (process_psymtab_comp_unit_reader): Likewise.
9028 (add_partial_symbol): Likewise.
9029 (add_partial_subprogram): Likewise.
9030 (process_full_comp_unit): Likewise.
9031 (read_file_scope): Likewise.
9032 (read_func_scope): Likewise.
9033 (read_lexical_block_scope): Likewise.
9034 (read_call_site_scope): Likewise.
9035 (dwarf2_rnglists_process): Likewise.
9036 (dwarf2_ranges_process): Likewise.
9037 (dwarf2_ranges_read): Likewise.
9038 (dwarf_decode_lines_1): Likewise.
9039 (new_symbol): Likewise.
9040 (dwarf2_fetch_die_loc_sect_off): Likewise.
9041 (dwarf2_per_cu_text_offset): Likewise.
9042 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9043 * hppa-tdep.c (read_unwind_info): Likewise.
9044 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9045 * psympriv.h (struct partial_symtab): Likewise.
9046 * psymtab.c (find_pc_sect_psymtab): Likewise.
9047 * solib-svr4.c (enable_break): Likewise.
9048 * stap-probe.c (relocate_address): Use
9049 objfile::data_section_offset.
9050 * xcoffread.c (enter_line_range): Use
9051 objfile::text_section_offset.
9052 (read_xcoff_symtab): Likewise.
9053
ab53f382
SM
90542020-01-23 Simon Marchi <simon.marchi@efficios.com>
9055
9056 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9057 declaration to narrower scopes.
9058
e7eee665
SM
90592020-01-23 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * darwin-nat.h (struct darwin_exception_msg, enum
9062 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9063 Move up.
9064 (class darwin_nat_target) <wait_1, check_new_threads,
9065 decode_exception_message, decode_message, stop_inferior,
9066 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9067 * darwin-nat.c (darwin_check_new_threads): Rename to...
9068 (darwin_nat_target::check_new_threads): ... this.
9069 (darwin_suspend_inferior_it): Remove.
9070 (darwin_decode_exception_message): Rename to...
9071 (darwin_nat_target::decode_exception_message): ... this.
9072 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9073 (darwin_decode_message): Rename to...
9074 (darwin_nat_target::decode_message): ... this.
9075 (cancel_breakpoint): Rename to...
9076 (darwin_nat_target::cancel_breakpoint): ... this.
9077 (darwin_wait): Rename to...
9078 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9079 instead of iterate_over_inferiors.
9080 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9081 (darwin_stop_inferior): Rename to...
9082 (darwin_nat_target::stop_inferior): ... this.
9083 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9084 (darwin_init_thread_list): Rename to...
9085 (darwin_nat_target::init_thread_list): ... this.
9086 (darwin_ptrace_him): Rename to...
9087 (darwin_nat_target::ptrace_him): ... this.
9088 (darwin_nat_target::create_inferior): Pass lambda function to
9089 fork_inferior.
9090 (darwin_nat_target::detach): Call stop_inferior instead of
9091 darwin_stop_inferior.
9092 * fork-inferior.h (fork_inferior): Change init_trace_fun
9093 parameter to gdb::function_view.
9094 * fork-inferior.c (fork_inferior): Likewise.
9095
c162ed3e
HD
90962020-01-23 Hannes Domani <ssbssa@yahoo.de>
9097
9098 * i386-cygwin-tdep.c (core_process_module_section): Update.
9099 * windows-nat.c (struct lm_info_windows): Add text_offset.
9100 (windows_xfer_shared_libraries): Update.
9101 * windows-tdep.c (windows_xfer_shared_library):
9102 Add text_offset_cached argument.
9103 * windows-tdep.h (windows_xfer_shared_library): Update.
9104
a1237872
SM
91052020-01-21 Simon Marchi <simon.marchi@efficios.com>
9106
9107 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9108
b3ee6dd9
SM
91092020-01-21 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9112 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9113 replace with range-based for.
9114 (gdbsim_interrupt_inferior): Remove.
9115 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9116 with a range-based for. Inline code from
9117 gdbsim_interrupt_inferior.
9118
f9fac3c8
SM
91192020-01-21 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * infrun.c (proceed): Fix indentation.
9122
f6474de9
TT
91232020-01-21 Tom Tromey <tromey@adacore.com>
9124
9125 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9126 * python/python.c (python_extension_ops): Update.
9127 (gdbpy_colorize): New function.
9128 * python/lib/gdb/__init__.py (colorize): New function.
9129 * extension.h (ext_lang_colorize): Declare.
9130 * extension.c (ext_lang_colorize): New function.
9131 * extension-priv.h (struct extension_language_ops) <colorize>: New
9132 member.
9133 * cli/cli-style.c (_initialize_cli_style): Update help text.
9134
f0c702d4
LM
91352020-01-21 Luis Machado <luis.machado@linaro.org>
9136
9137 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9138 <cond>: Change type to bool.
9139 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9140 (aarch64_displaced_step_cb): Likewise.
9141 (aarch64_displaced_step_tb): Likewise.
9142
1ab139e5
LM
91432020-01-21 Luis Machado <luis.machado@linaro.org>
9144
9145 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9146 output.
9147
0c271889
LM
91482020-01-21 Luis Machado <luis.machado@linaro.org>
9149
9150 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9151 <pc_adjust>: Adjust the documentation.
9152 (aarch64_displaced_step_fixup): Check if PC really moved before
9153 adjusting it.
9154
4d89c1c7
TT
91552020-01-19 Tom Tromey <tom@tromey.com>
9156
9157 * disasm.c (~gdb_disassembler): New destructor.
9158 (gdb_buffered_insn_length): Call disassemble_free_target.
9159 * disasm.h (class gdb_disassembler): Declare destructor. Use
9160 DISABLE_COPY_AND_ASSIGN.
9161
c0ab21c2
TT
91622020-01-19 Tom Tromey <tom@tromey.com>
9163
9164 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9165 (die_reader_func_ftype): Remove.
9166 (cutu_reader): New class.
9167 (dw2_get_file_names_reader): Remove "data" parameter.
9168 (dw2_get_file_names): Use cutu_reader.
9169 (create_debug_type_hash_table): Update.
9170 (read_cutu_die_from_dwo): Update comment.
9171 (lookup_dwo_unit): Add dwo_name parameter.
9172 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9173 die_reader_func_ftype and data parameters.
9174 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9175 Remove die_reader_func_ftype and data parameters.
9176 (~cutu_reader): New; from init_cutu_and_read_dies.
9177 (cutu_reader::cutu_reader): Rename from
9178 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9179 and data parameters.
9180 (init_cutu_and_read_dies_simple): Remove.
9181 (struct process_psymtab_comp_unit_data): Remove.
9182 (process_psymtab_comp_unit_reader): Remove data parameter; add
9183 want_partial_unit and pretend_language parameters.
9184 (process_psymtab_comp_unit): Use cutu_reader.
9185 (build_type_psymtabs_reader): Remove data parameter.
9186 (build_type_psymtabs_1): Use cutu_reader.
9187 (process_skeletonless_type_unit): Likewise.
9188 (load_partial_comp_unit_reader): Remove.
9189 (load_partial_comp_unit): Use cutu_reader.
9190 (load_full_comp_unit_reader): Remove.
9191 (load_full_comp_unit): Use cutu_reader.
9192 (struct create_dwo_cu_data): Remove.
9193 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9194 dwo_unit parameters.
9195 (create_cus_hash_table): Use cutu_reader.
9196 (struct dwarf2_read_addr_index_data): Remove.
9197 (dwarf2_read_addr_index_reader): Remove.
9198 (dwarf2_read_addr_index): Use cutu_reader.
9199 (read_signatured_type_reader): Remove.
9200 (read_signatured_type): Use cutu_reader.
9201
45bbae5c
TT
92022020-01-19 Tom Tromey <tom@tromey.com>
9203
9204 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9205 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9206 (tui_wrefresh): Declare.
9207 * tui/tui-wingeneral.c (suppress_output): New global.
9208 (tui_suppress_output, ~tui_suppress_output): New constructor and
9209 destructor.
9210 (tui_wrefresh): New function.
9211 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9212 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9213 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9214 method.
9215 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9216 tui_wrefresh.
9217 (tui_data_window::no_refresh): New method.
9218 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9219 (tui_reg_command): Use tui_suppress_output
9220 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9221 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9222 method.
9223 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9224
4f13c1c0
TT
92252020-01-19 Tom Tromey <tom@tromey.com>
9226
9227 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9228 Handle case where symtab is null.
9229
fa47e446
SM
92302020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9231
9232 * linux-fork.c (one_fork_p): Simplify.
9233
26f42329
SM
92342020-01-17 Simon Marchi <simon.marchi@efficios.com>
9235
9236 * top.c (struct qt_args): Remove.
9237 (kill_or_detach): Change return type to void, replace `void *`
9238 parameter with a proper one.
9239 (print_inferior_quit_action): Likewise.
9240 (quit_confirm): Use range-based for loop to iterate over inferiors.
9241 (quit_force): Likewise.
9242
a9ac81b1
SM
92432020-01-17 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9246 `void *` parameter with proper parameters.
9247 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9248 (print_one_inferior): Change return type to void, replace `void *`
9249 parameter with proper parameters.
9250 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9251 inferiors.
9252 (get_other_inferior): Remove.
9253 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9254 inferiors.
9255
788eca49
SM
92562020-01-17 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * mi/mi-interp.c (report_initial_inferior): Remove.
9259 (mi_interp::init): Use range-based for to iterate over inferiors.
9260
d9bc85b6
SM
92612020-01-17 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * python/py-inferior.c (build_inferior_list): Remove.
9264 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9265
40c94099
CB
92662020-01-16 Christian Biesinger <cbiesinger@google.com>
9267
9268 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9269 (btrace_stitch_trace): Likewise.
9270 * charset.c (intermediate_encoding): Likewise (vaild).
9271 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9272 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9273 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9274
e0cdfe3c
HD
92752020-01-16 Hannes Domani <ssbssa@yahoo.de>
9276
9277 * windows-tdep.c (windows_get_tlb_type):
9278 Add rtl_user_process_parameters type.
9279
790f1718 92802020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9281 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9282
9283 PR build/24805
9284 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9285 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9286 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9287 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9288 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9289 (ps_plog): Redeclare exported functions with default visibility.
9290
3112ed97
NA
92912020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9292
9293 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9294 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9295
8dc3273e
SM
92962020-01-15 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * infcmd.c (post_create_inferior): Use get_thread_regcache
9299 instead of get_current_regcache.
9300
ff47f4f0
TT
93012020-01-14 Tom Tromey <tom@tromey.com>
9302
9303 PR symtab/12535:
9304 * python/python.c (gdbpy_decode_line): Treat empty string the same
9305 as no argument.
9306
975f45b7
TT
93072020-01-14 Tom Tromey <tom@tromey.com>
9308
9309 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9310
25e57356
TT
93112020-01-14 Tom Tromey <tom@tromey.com>
9312
9313 * nat/linux-btrace.c: Don't include <config.h>.
9314 * nat/linux-ptrace.c: Don't include <config.h>.
9315 * nat/x86-linux-dregs.c: Don't include <config.h>.
9316
05ea2a05
TT
93172020-01-14 Tom Tromey <tom@tromey.com>
9318
9319 * configure: Rebuild.
9320 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9321
01027315
TT
93222020-01-14 Tom Tromey <tom@tromey.com>
9323
9324 * nat/x86-linux-dregs.c: Include configh.h.
9325 * nat/linux-ptrace.c: Include configh.h.
9326 * nat/linux-btrace.c: Include configh.h.
9327 * defs.h: Include config.h, bfd.h.
9328 * configure.ac: Don't source common.host.
9329 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9330 * configure: Rebuild.
9331 * acinclude.m4: Update path.
9332 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9333 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9334 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9335 (CLIBS): Add LIBSUPPORT.
9336 (CDEPS): Likewise.
9337 (COMMON_SFILES): Remove gdbsupport files.
9338 (HFILES_NO_SRCDIR): Likewise.
9339 (stamp-version): Update path to create-version.sh.
9340 (ALLDEPFILES): Remove gdbsupport files.
9341
b2ceabe8
TT
93422020-01-14 Tom Tromey <tom@tromey.com>
9343
9344 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9345 USE_WIN32API when needed.
9346 * configure.ac (USE_WIN32API): Don't define.
9347 (WIN32LIBS): Use WIN32APILIBS.
9348 * configure: Rebuild.
9349
25c51f71
TT
93502020-01-14 Tom Tromey <tom@tromey.com>
9351
9352 * configure: Rebuild.
9353 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9354
717c684d
BE
93552020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9356
9357 * skip.c (skip_function_command): Make skip w/o arguments use the
9358 name of the inlined function if pc is inside any inlined function.
9359
7da6a5b9
LM
93602020-01-14 Luis Machado <luis.machado@linaro.org>
9361
9362 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9363 * infrun.c (resume_1): Likewise.
9364 (handle_inferior_event): Remove stale comment.
9365 * linux-nat.c (linux_nat_target::resume): Update comments.
9366 (save_stop_reason): Likewise.
9367 (linux_nat_filter_event): Likewise.
9368 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9369
44e4c775
AB
93702020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9371
9372 * elfread.c (record_minimal_symbol): Set section index to 0 for
9373 non-allocatable sections.
9374
18a8505e
AT
9375
93762020-01-13 Ali Tamur <tamur@google.com>
9377
9378 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9379 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9380 to gdb::optional. Update comments.
9381 (dwo_file): Update comments.
9382 (read_attribute): Update API to take an additional out parameter,
9383 need_reprocess. This is used to mark attributes that need other
9384 attributes (e.g. str_offsets_base) for correct computation which may not
9385 have been read yet.
9386 (read_attribute_reprocess): New function declaration.
9387 (read_addr_index): Likewise.
9388 (read_dwo_str_index): Likewise.
9389 (read_stub_str_index): Likewise.
9390 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9391 (lookup_addr_base): New function definition.
9392 (lookup_ranges_base): Likewise.
9393 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9394 lookup_ranges_base.
9395 (init_cutu_and_read_dies): Update comments.
9396 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9397 unit. This is used to inherit parent's str_offsets_base and addr_base.
9398 Update comments.
9399 (init_cutu_and_read_dies_simple): Reflect API changes.
9400 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9401 (create_cus_hash_table): Change API to take parent compile unit.
9402 Reflect API changes.
9403 (open_and_init_dwo_file): Reflect API changes.
9404 (dwarf2_get_pc_bounds): Update comments.
9405 (dwarf2_record_block_ranges): Likewise.
9406 (read_full_die_1): Change implementation to reprocess attributes that
9407 need str_offsets_base and addr_base.
9408 (partial_die_info::read): Likewise.
9409 (read_attribute_reprocess): New function definition.
9410 (read_attribute_value): Change API to take an additional out parameter,
9411 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9412 when a non-dwo compile unit has index based attributes.
9413 (read_attribute): Reflect API changes.
9414 (read_addr_index_1): Reflect API changes. Update comments.
9415 (dwarf2_read_addr_index_data): Reflect API changes.
9416 (dwarf2_read_addr_index): Likewise.
9417 (read_str_index): Change API and implementation. This becomes a helper
9418 to be used by the new string index related methods. Update error
9419 message and comments.
9420 (read_dwo_str_index): New function definition.
9421 (read_stub_str_index): Likewise.
9422 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9423 * symfile.h (dwarf2_debug_sections): Likewise.
9424 * xcoffread.c (dwarf2_debug_sections): Likewise.
9425
0cac9354
SM
94262020-01-13 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9429 core_reg_sect type to gdb_byte *.
9430 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9431 * cris-tdep.c (fetch_core_registers): Likewise.
9432 * corelow.c (core_target::get_core_register_section): Change
9433 type of `contents` to gdb::byte_vector.
9434
9a6d629c
AB
94352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9436
9437 * tui/tui-wingeneral.c (box_win): Position the title in the center
9438 of the border.
9439
d8b2f9e3
SM
94402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9441
9442 * corelow.c (core_target::get_core_register_section): Use
9443 std::vector instead of alloca.
9444
bb564c58
SM
94452020-01-13 Simon Marchi <simon.marchi@efficios.com>
9446
9447 * warning.m4: Add -Wmissing-declarations to build_warnings.
9448 * configure: Re-generate.
9449
6b366111
SM
94502020-01-13 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * python/python.c (init__gdb_module): Add declaration.
9453
6c265988
SM
94542020-01-13 Simon Marchi <simon.marchi@efficios.com>
9455
9456 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9457 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9458 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9459 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9460 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9461 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9462 * ada-exp.y (_initialize_ada_exp): Add declaration.
9463 * ada-lang.c (_initialize_ada_language): Add declaration.
9464 * ada-tasks.c (_initialize_tasks): Add declaration.
9465 * agent.c (_initialize_agent): Add declaration.
9466 * aix-thread.c (_initialize_aix_thread): Add declaration.
9467 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9468 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9469 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9470 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9471 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9472 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9473 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9474 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9475 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9476 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9477 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9478 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9479 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9480 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9481 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9482 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9483 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9484 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9485 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9486 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9487 * annotate.c (_initialize_annotate): Add declaration.
9488 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9489 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9490 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9491 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9492 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9493 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9494 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9495 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9496 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9497 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9498 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9499 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9500 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9501 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9502 * auto-load.c (_initialize_auto_load): Add declaration.
9503 * auxv.c (_initialize_auxv): Add declaration.
9504 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9505 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9506 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9507 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9508 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9509 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9510 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9511 * breakpoint.c (_initialize_breakpoint): Add declaration.
9512 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9513 * btrace.c (_initialize_btrace): Add declaration.
9514 * charset.c (_initialize_charset): Add declaration.
9515 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9516 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9517 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9518 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9519 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9520 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9521 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9522 * coffread.c (_initialize_coffread): Add declaration.
9523 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9524 * compile/compile.c (_initialize_compile): Add declaration.
9525 * complaints.c (_initialize_complaints): Add declaration.
9526 * completer.c (_initialize_completer): Add declaration.
9527 * copying.c (_initialize_copying): Add declaration.
9528 * corefile.c (_initialize_core): Add declaration.
9529 * corelow.c (_initialize_corelow): Add declaration.
9530 * cp-abi.c (_initialize_cp_abi): Add declaration.
9531 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9532 * cp-support.c (_initialize_cp_support): Add declaration.
9533 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9534 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9535 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9536 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9537 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9538 * ctfread.c (_initialize_ctfread): Add declaration.
9539 * d-lang.c (_initialize_d_language): Add declaration.
9540 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9541 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9542 * dbxread.c (_initialize_dbxread): Add declaration.
9543 * dcache.c (_initialize_dcache): Add declaration.
9544 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9545 * disasm.c (_initialize_disasm): Add declaration.
9546 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9547 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9548 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9549 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9550 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9551 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9552 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9553 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9554 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9555 * elfread.c (_initialize_elfread): Add declaration.
9556 * exec.c (_initialize_exec): Add declaration.
9557 * extension.c (_initialize_extension): Add declaration.
9558 * f-lang.c (_initialize_f_language): Add declaration.
9559 * f-valprint.c (_initialize_f_valprint): Add declaration.
9560 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9561 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9562 * filesystem.c (_initialize_filesystem): Add declaration.
9563 * findcmd.c (_initialize_mem_search): Add declaration.
9564 * findvar.c (_initialize_findvar): Add declaration.
9565 * fork-child.c (_initialize_fork_child): Add declaration.
9566 * frame-base.c (_initialize_frame_base): Add declaration.
9567 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9568 * frame.c (_initialize_frame): Add declaration.
9569 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9570 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9571 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9572 * gcore.c (_initialize_gcore): Add declaration.
9573 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9574 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9575 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9576 * gdbarch.c (_initialize_gdbarch): Add declaration.
9577 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9578 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9579 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9580 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9581 * go-lang.c (_initialize_go_language): Add declaration.
9582 * go32-nat.c (_initialize_go32_nat): Add declaration.
9583 * guile/guile.c (_initialize_guile): Add declaration.
9584 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9585 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9586 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9587 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9588 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9589 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9590 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9591 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9592 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9593 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9594 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9595 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9596 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9597 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9598 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9599 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9600 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9601 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9602 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9603 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9604 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9605 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9606 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9607 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9608 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9609 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9610 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9611 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9612 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9613 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9614 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9615 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9616 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9617 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9618 * infcall.c (_initialize_infcall): Add declaration.
9619 * infcmd.c (_initialize_infcmd): Add declaration.
9620 * inflow.c (_initialize_inflow): Add declaration.
9621 * infrun.c (_initialize_infrun): Add declaration.
9622 * interps.c (_initialize_interpreter): Add declaration.
9623 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9624 * jit.c (_initialize_jit): Add declaration.
9625 * language.c (_initialize_language): Add declaration.
9626 * linux-fork.c (_initialize_linux_fork): Add declaration.
9627 * linux-nat.c (_initialize_linux_nat): Add declaration.
9628 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9629 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9630 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9631 * m2-lang.c (_initialize_m2_language): Add declaration.
9632 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9633 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9634 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9635 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9636 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9637 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9638 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9639 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9640 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9641 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9642 * machoread.c (_initialize_machoread): Add declaration.
9643 * macrocmd.c (_initialize_macrocmd): Add declaration.
9644 * macroscope.c (_initialize_macroscope): Add declaration.
9645 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9646 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9647 * maint.c (_initialize_maint_cmds): Add declaration.
9648 * mdebugread.c (_initialize_mdebugread): Add declaration.
9649 * memattr.c (_initialize_mem): Add declaration.
9650 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9651 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9652 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9653 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9654 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9655 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9656 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9657 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9658 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9659 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9660 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9661 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9662 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9663 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9664 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9665 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9666 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9667 * mipsread.c (_initialize_mipsread): Add declaration.
9668 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9669 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9670 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9671 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9672 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9673 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9674 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9675 * nto-procfs.c (_initialize_procfs): Add declaration.
9676 * objc-lang.c (_initialize_objc_language): Add declaration.
9677 * observable.c (_initialize_observer): Add declaration.
9678 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9679 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9680 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9681 * osabi.c (_initialize_gdb_osabi): Add declaration.
9682 * osdata.c (_initialize_osdata): Add declaration.
9683 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9684 * parse.c (_initialize_parse): Add declaration.
9685 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9686 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9687 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9688 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9689 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9690 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9691 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9692 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9693 * printcmd.c (_initialize_printcmd): Add declaration.
9694 * probe.c (_initialize_probe): Add declaration.
9695 * proc-api.c (_initialize_proc_api): Add declaration.
9696 * proc-events.c (_initialize_proc_events): Add declaration.
9697 * proc-service.c (_initialize_proc_service): Add declaration.
9698 * procfs.c (_initialize_procfs): Add declaration.
9699 * producer.c (_initialize_producer): Add declaration.
9700 * psymtab.c (_initialize_psymtab): Add declaration.
9701 * python/python.c (_initialize_python): Add declaration.
9702 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9703 * record-btrace.c (_initialize_record_btrace): Add declaration.
9704 * record-full.c (_initialize_record_full): Add declaration.
9705 * record.c (_initialize_record): Add declaration.
9706 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9707 * regcache.c (_initialize_regcache): Add declaration.
9708 * reggroups.c (_initialize_reggroup): Add declaration.
9709 * remote-notif.c (_initialize_notif): Add declaration.
9710 * remote-sim.c (_initialize_remote_sim): Add declaration.
9711 * remote.c (_initialize_remote): Add declaration.
9712 * reverse.c (_initialize_reverse): Add declaration.
9713 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9714 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9715 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9716 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9717 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9718 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9719 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9720 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9721 Add declaration.
9722 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9723 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9724 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9725 * rust-exp.y (_initialize_rust_exp): Add declaration.
9726 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9727 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9728 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9729 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9730 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9731 * score-tdep.c (_initialize_score_tdep): Add declaration.
9732 * ser-go32.c (_initialize_ser_dos): Add declaration.
9733 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9734 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9735 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9736 * ser-uds.c (_initialize_ser_socket): Add declaration.
9737 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9738 * serial.c (_initialize_serial): Add declaration.
9739 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9740 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9741 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9742 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9743 * skip.c (_initialize_step_skip): Add declaration.
9744 * sol-thread.c (_initialize_sol_thread): Add declaration.
9745 * solib-aix.c (_initialize_solib_aix): Add declaration.
9746 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9747 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9748 * solib-frv.c (_initialize_frv_solib): Add declaration.
9749 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9750 * solib-target.c (_initialize_solib_target): Add declaration.
9751 * solib.c (_initialize_solib): Add declaration.
9752 * source-cache.c (_initialize_source_cache): Add declaration.
9753 * source.c (_initialize_source): Add declaration.
9754 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9755 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9756 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9757 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9758 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9759 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9760 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9761 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9762 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9763 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9764 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9765 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9766 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9767 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9768 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9769 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9770 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9771 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9772 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9773 * stabsread.c (_initialize_stabsread): Add declaration.
9774 * stack.c (_initialize_stack): Add declaration.
9775 * stap-probe.c (_initialize_stap_probe): Add declaration.
9776 * std-regs.c (_initialize_frame_reg): Add declaration.
9777 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9778 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9779 * symfile.c (_initialize_symfile): Add declaration.
9780 * symmisc.c (_initialize_symmisc): Add declaration.
9781 * symtab.c (_initialize_symtab): Add declaration.
9782 * target.c (_initialize_target): Add declaration.
9783 * target-connection.c (_initialize_target_connection): Add
9784 declaration.
9785 * target-dcache.c (_initialize_target_dcache): Add declaration.
9786 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9787 * thread.c (_initialize_thread): Add declaration.
9788 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9789 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9790 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9791 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9792 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9793 * tracectf.c (_initialize_ctf): Add declaration.
9794 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9795 * tracefile.c (_initialize_tracefile): Add declaration.
9796 * tracepoint.c (_initialize_tracepoint): Add declaration.
9797 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9798 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9799 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9800 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9801 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9802 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9803 * tui/tui.c (_initialize_tui): Add declaration.
9804 * typeprint.c (_initialize_typeprint): Add declaration.
9805 * ui-style.c (_initialize_ui_style): Add declaration.
9806 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9807 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9808 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9809 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9810 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9811 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9812 * unittests/filtered_iterator-selftests.c
9813 (_initialize_filtered_iterator_selftests): Add declaration.
9814 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9815 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9816 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9817 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9818 * unittests/main-thread-selftests.c
9819 (_initialize_main_thread_selftests): Add declaration.
9820 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9821 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9822 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9823 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9824 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9825 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9826 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9827 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9828 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9829 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9830 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9831 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9832 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9833 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9834 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9835 declaration.
9836 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9837 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9838 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9839 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9840 * user-regs.c (_initialize_user_regs): Add declaration.
9841 * utils.c (_initialize_utils): Add declaration.
9842 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9843 * valops.c (_initialize_valops): Add declaration.
9844 * valprint.c (_initialize_valprint): Add declaration.
9845 * value.c (_initialize_values): Add declaration.
9846 * varobj.c (_initialize_varobj): Add declaration.
9847 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9848 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9849 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9850 * windows-nat.c (_initialize_windows_nat): Add declaration.
9851 (_initialize_check_for_gdb_ini): Add declaration.
9852 (_initialize_loadable): Add declaration.
9853 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9854 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9855 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9856 * xcoffread.c (_initialize_xcoffread): Add declaration.
9857 * xml-support.c (_initialize_xml_support): Add declaration.
9858 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9859 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9860 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9861 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9862
e2de1eec
SM
98632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9864
9865 * regformats/regdat.sh: Generate declaration for init function.
9866
e0037b4c
SM
98672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9868
9869 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9870 up.
9871 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9872 close_one_inferior>: New methods.
9873 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9874 pass down target to find_inferior_pid.
9875 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9876 Pass down target to find_inferior_ptid.
9877 (gdbsim_target::create_inferior): Pass down target to
9878 add_thread_silent.
9879 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9880 target down to find_inferior_ptid and switch_to_thread.
9881 (gdbsim_target::close): Update to call close_one_inferior.
9882 (struct resume_data): Remove.
9883 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9884 directly, rather than through a void pointer.
9885 (gdbsim_target::resume): Update to call resume_one_inferior.
9886
58920b5b
SM
98872020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9888
9889 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9890
4ec89149
PA
98912020-01-12 Pedro Alves <palves@redhat.com>
9892
9893 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9894 directly for the current inferior instead of
9895 discard_all_inferiors.
9896 (discard_all_inferiors): Delete.
9897
7c392d1d
TT
98982020-01-11 Tom Tromey <tom@tromey.com>
9899
9900 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9901 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9902 deprecated_safe_get_selected_frame.
9903
d9ebdab7
TBA
99042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9905
9906 * inferior.c (print_inferior): Switch inferior before printing it.
9907
f3c469b9
PA
99082020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9909 Pedro Alves <palves@redhat.com>
9910
9911 * progspace-and-thread.c (switch_to_program_space_and_thread):
9912 Assert there's an inferior for PSPACE. Use
9913 switch_to_inferior_no_thread to switch the inferior too.
9914 * progspace.c (program_space::~program_space): Call
9915 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9916 (program_space::free_all_objfiles): Don't call clear_symtab_users
9917 here.
9918 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9919
65c574f6
PA
99202020-01-10 Pedro Alves <palves@redhat.com>
9921
9922 * NEWS: Mention multi-target debugging, "info connections", and
9923 "add-inferior -no-connection".
9924
2f4fcf00
PA
99252020-01-10 Pedro Alves <palves@redhat.com>
9926
9927 * infrun.c: Include "target-connection.h".
9928 (check_multi_target_resumption): New.
9929 (proceed): Call it.
9930 * target-connection.c (make_target_connection_string): Make
9931 extern.
9932 * target-connection.h (make_target_connection_string): Declare.
9933
121b3efd
PA
99342020-01-10 Pedro Alves <palves@redhat.com>
9935
9936 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9937 * inferior.c (uiout_field_connection): New function.
9938 (print_inferior): Add new "connection-id" column.
9939 (add_inferior_command): Show connection number/string of added
9940 inferior.
9941 * process-stratum-target.h
9942 (process_stratum_target::connection_string): New virtual method.
9943 (process_stratum_target::connection_number): New field.
9944 * remote.c (remote_target::connection_string): New override.
9945 * target-connection.c: New file.
9946 * target-connection.h: New file.
9947 * target.c (decref_target): Remove process_stratum targets from
9948 the connection list.
9949 (target_stack::push): Add process_stratum targets to the
9950 connection list.
9951
4f837581
PA
99522020-01-10 Pedro Alves <palves@redhat.com>
9953
9954 Revert:
9955 2016-04-12 Pedro Alves <palves@redhat.com>
9956 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9957 Remove references to name.
9958 * serial.h (struct serial) <name>: Delete.
9959
f4ec508e
PA
99602020-01-10 Pedro Alves <palves@redhat.com>
9961
9962 * gdbarch-selftests.c (register_to_value_test): Remove "target
9963 already pushed" check.
9964
5b6d1e4f
PA
99652020-01-10 Pedro Alves <palves@redhat.com>
9966 John Baldwin <jhb@FreeBSD.org>
9967
9968 * aarch64-linux-nat.c
9969 (aarch64_linux_nat_target::thread_architecture): Adjust.
9970 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9971 (task_command_1): Likewise.
9972 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9973 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9974 (aix_thread_target::store_registers)
9975 (aix_thread_target::thread_alive): Adjust.
9976 * amd64-fbsd-tdep.c: Include "inferior.h".
9977 (amd64fbsd_get_thread_local_address): Pass down target.
9978 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9979 thread's gdbarch instead of target_gdbarch.
9980 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9981 get_last_target_status.
9982 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9983 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9984 inferiors.
9985 (update_inserted_breakpoint_locations): Skip if inferiors with no
9986 execution.
9987 (update_global_location_list): When handling moribund locations,
9988 find representative inferior for location's pspace, and use thread
9989 count of its process_stratum target.
9990 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9991 * bsd-uthread.c (bsd_uthread_target::wait): Use
9992 as_process_stratum_target and adjust thread_change_ptid and
9993 add_thread calls.
9994 (bsd_uthread_target::update_thread_list): Use
9995 as_process_stratum_target and adjust find_thread_ptid,
9996 thread_change_ptid and add_thread calls.
9997 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9998 find_thread_ptid call.
9999 * corelow.c (add_to_thread_list): Adjust add_thread call.
10000 (core_target_open): Adjust add_thread_silent and thread_count
10001 calls.
10002 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10003 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10004 * event-top.c (async_disconnect): Pop targets from all inferiors.
10005 * exec.c (add_target_sections): Push exec target on all inferiors
10006 sharing the program space.
10007 (remove_target_sections): Remove the exec target from all
10008 inferiors sharing the program space.
10009 (exec_on_vfork): New.
10010 * exec.h (exec_on_vfork): Declare.
10011 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10012 Pass it down.
10013 (fbsd_nat_target::update_thread_list): Adjust.
10014 (fbsd_nat_target::resume): Adjust.
10015 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10016 down.
10017 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10018 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10019 get_thread_arch_regcache call.
10020 * fork-child.c (gdb_startup_inferior): Pass target down to
10021 startup_inferior and set_executing.
10022 * gdbthread.h (struct process_stratum_target): Forward declare.
10023 (add_thread, add_thread_silent, add_thread_with_info)
10024 (in_thread_list): Add process_stratum_target parameter.
10025 (find_thread_ptid(inferior*, ptid_t)): New overload.
10026 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10027 parameter.
10028 (all_threads()): Delete overload.
10029 (all_threads, all_non_exited_threads): Add process_stratum_target
10030 parameter.
10031 (all_threads_safe): Use brace initialization.
10032 (thread_count): Add process_stratum_target parameter.
10033 (set_resumed, set_running, set_stop_requested, set_executing)
10034 (threads_are_executing, finish_thread_state): Add
10035 process_stratum_target parameter.
10036 (switch_to_thread): Use is_current_thread.
10037 * i386-fbsd-tdep.c: Include "inferior.h".
10038 (i386fbsd_get_thread_local_address): Pass down target.
10039 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10040 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10041 have_inferiors check.
10042 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10043 (inf_ptrace_target::attach): Adjust.
10044 * infcall.c (run_inferior_call): Adjust.
10045 * infcmd.c (run_command_1): Pass target to
10046 scoped_finish_thread_state.
10047 (proceed_thread_callback): Skip inferiors with no execution.
10048 (continue_command): Rename 'all_threads' local to avoid hiding
10049 'all_threads' function. Adjust get_last_target_status call.
10050 (prepare_one_step): Adjust set_running call.
10051 (signal_command): Use user_visible_resume_target. Compare thread
10052 pointers instead of inferior_ptid.
10053 (info_program_command): Adjust to pass down target.
10054 (attach_command): Mark target's 'thread_executing' flag.
10055 (stop_current_target_threads_ns): New, factored out from ...
10056 (interrupt_target_1): ... this. Switch inferior before making
10057 target calls.
10058 * inferior-iter.h
10059 (struct all_inferiors_iterator, struct all_inferiors_range)
10060 (struct all_inferiors_safe_range)
10061 (struct all_non_exited_inferiors_range): Filter on
10062 process_stratum_target too. Remove explicit.
10063 * inferior.c (inferior::inferior): Push dummy target on target
10064 stack.
10065 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10066 Add process_stratum_target parameter, and pass it down.
10067 (have_live_inferiors): Adjust.
10068 (switch_to_inferior_and_push_target): New.
10069 (add_inferior_command, clone_inferior_command): Handle
10070 "-no-connection" parameter. Use
10071 switch_to_inferior_and_push_target.
10072 (_initialize_inferior): Mention "-no-connection" option in
10073 the help of "add-inferior" and "clone-inferior" commands.
10074 * inferior.h: Include "process-stratum-target.h".
10075 (interrupt_target_1): Use bool.
10076 (struct inferior) <push_target, unpush_target, target_is_pushed,
10077 find_target_beneath, top_target, process_target, target_at,
10078 m_stack>: New.
10079 (discard_all_inferiors): Delete.
10080 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10081 (all_inferiors, all_non_exited_inferiors): Add
10082 process_stratum_target parameter.
10083 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10084 (target_last_proc_target): New global.
10085 (follow_fork_inferior): Push target on new inferior. Pass target
10086 to add_thread_silent. Call exec_on_vfork. Handle target's
10087 reference count.
10088 (follow_fork): Adjust get_last_target_status call. Also consider
10089 target.
10090 (follow_exec): Push target on new inferior.
10091 (struct execution_control_state) <target>: New field.
10092 (user_visible_resume_target): New.
10093 (do_target_resume): Call target_async.
10094 (resume_1): Set target's threads_executing flag. Consider resume
10095 target.
10096 (commit_resume_all_targets): New.
10097 (proceed): Also consider resume target. Skip threads of inferiors
10098 with no execution. Commit resumtion in all targets.
10099 (start_remote): Pass current inferior to wait_for_inferior.
10100 (infrun_thread_stop_requested): Consider target as well. Pass
10101 thread_info pointer to clear_inline_frame_state instead of ptid.
10102 (infrun_thread_thread_exit): Consider target as well.
10103 (random_pending_event_thread): New inferior parameter. Use it.
10104 (do_target_wait): Rename to ...
10105 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10106 down.
10107 (threads_are_resumed_pending_p, do_target_wait): New.
10108 (prepare_for_detach): Adjust calls.
10109 (wait_for_inferior): New inferior parameter. Handle it. Use
10110 do_target_wait_1 instead of do_target_wait.
10111 (fetch_inferior_event): Adjust. Switch to representative
10112 inferior. Pass target down.
10113 (set_last_target_status): Add process_stratum_target parameter.
10114 Save target in global.
10115 (get_last_target_status): Add process_stratum_target parameter and
10116 handle it.
10117 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10118 (context_switch): Check inferior_ptid == null_ptid before calling
10119 inferior_thread().
10120 (get_inferior_stop_soon): Pass down target.
10121 (wait_one): Rename to ...
10122 (poll_one_curr_target): ... this.
10123 (struct wait_one_event): New.
10124 (wait_one): New.
10125 (stop_all_threads): Adjust.
10126 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10127 event's target.
10128 (switch_back_to_stepped_thread): Also consider target.
10129 (print_stop_event): Update.
10130 (normal_stop): Update. Also consider the resume target.
10131 * infrun.h (wait_for_inferior): Remove declaration.
10132 (user_visible_resume_target): New declaration.
10133 (get_last_target_status, set_last_target_status): New
10134 process_stratum_target parameter.
10135 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10136 process_stratum_target parameter, and use it.
10137 (clear_inline_frame_state (thread_info*)): New.
10138 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10139 process_stratum_target parameter.
10140 (clear_inline_frame_state (thread_info*)): Declare.
10141 * linux-fork.c (delete_checkpoint_command): Pass target down to
10142 find_thread_ptid.
10143 (checkpoint_command): Adjust.
10144 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10145 instead of just tweaking inferior_ptid.
10146 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10147 (exit_lwp): Pass target down to find_thread_ptid.
10148 (attach_proc_task_lwp_callback): Pass target down to
10149 add_thread/set_running/set_executing.
10150 (linux_nat_target::attach): Pass target down to
10151 thread_change_ptid.
10152 (get_detach_signal): Pass target down to find_thread_ptid.
10153 Consider last target status's target.
10154 (linux_resume_one_lwp_throw, resume_lwp)
10155 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10156 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10157 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10158 (linux_nat_target::async_wait_fd): New.
10159 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10160 target down.
10161 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10162 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10163 * linux-thread-db.c (struct thread_db_info::process_target): New
10164 field.
10165 (add_thread_db_info): Save target.
10166 (get_thread_db_info): New process_stratum_target parameter. Also
10167 match target.
10168 (delete_thread_db_info): New process_stratum_target parameter.
10169 Also match target.
10170 (thread_from_lwp): Adjust to pass down target.
10171 (thread_db_notice_clone): Pass down target.
10172 (check_thread_db_callback): Pass down target.
10173 (try_thread_db_load_1): Always push the thread_db target.
10174 (try_thread_db_load, record_thread): Pass target down.
10175 (thread_db_target::detach): Pass target down. Always unpush the
10176 thread_db target.
10177 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10178 target down. Always unpush the thread_db target.
10179 (find_new_threads_callback, thread_db_find_new_threads_2)
10180 (thread_db_target::update_thread_list): Pass target down.
10181 (thread_db_target::pid_to_str): Pass current inferior down.
10182 (thread_db_target::get_thread_local_address): Pass target down.
10183 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10184 target down.
10185 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10186 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10187 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10188 (procfs_init_inferior): Rename to ...
10189 (procfs_target::procfs_init_inferior): ... this and adjust.
10190 (procfs_target::create_inferior, procfs_notice_thread)
10191 (procfs_do_thread_registers): Adjust.
10192 * ppc-fbsd-tdep.c: Include "inferior.h".
10193 (ppcfbsd_get_thread_local_address): Pass down target.
10194 * proc-service.c (ps_xfer_memory): Switch current inferior and
10195 program space as well.
10196 (get_ps_regcache): Pass target down.
10197 * process-stratum-target.c
10198 (process_stratum_target::thread_address_space)
10199 (process_stratum_target::thread_architecture): Pass target down.
10200 * process-stratum-target.h
10201 (process_stratum_target::threads_executing): New field.
10202 (as_process_stratum_target): New.
10203 * ravenscar-thread.c
10204 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10205 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10206 down.
10207 * record-btrace.c (record_btrace_target::info_record): Adjust.
10208 (record_btrace_target::record_method)
10209 (record_btrace_target::record_is_replaying)
10210 (record_btrace_target::fetch_registers)
10211 (get_thread_current_frame_id, record_btrace_target::resume)
10212 (record_btrace_target::wait, record_btrace_target::stop): Pass
10213 target down.
10214 * record-full.c (record_full_wait_1): Switch to event thread.
10215 Pass target down.
10216 * regcache.c (regcache::regcache)
10217 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10218 process_stratum_target parameter and handle it.
10219 (current_thread_target): New global.
10220 (get_thread_regcache): Add process_stratum_target parameter and
10221 handle it. Switch inferior before calling target method.
10222 (get_thread_regcache): Pass target down.
10223 (get_thread_regcache_for_ptid): Pass target down.
10224 (registers_changed_ptid): Add process_stratum_target parameter and
10225 handle it.
10226 (registers_changed_thread, registers_changed): Pass target down.
10227 (test_get_thread_arch_aspace_regcache): New.
10228 (current_regcache_test): Define a couple local test_target_ops
10229 instances and use them for testing.
10230 (readwrite_regcache): Pass process_stratum_target parameter.
10231 (cooked_read_test, cooked_write_test): Pass mock_target down.
10232 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10233 (get_thread_arch_aspace_regcache): Add process_stratum_target
10234 parameter.
10235 (regcache::target): New method.
10236 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10237 (regcache::registers_changed_ptid): Add process_stratum_target
10238 parameter.
10239 (regcache::m_target): New field.
10240 (registers_changed_ptid): Add process_stratum_target parameter.
10241 * remote.c (remote_state::supports_vCont_probed): New field.
10242 (remote_target::async_wait_fd): New method.
10243 (remote_unpush_and_throw): Add remote_target parameter.
10244 (get_current_remote_target): Adjust.
10245 (remote_target::remote_add_inferior): Push target.
10246 (remote_target::remote_add_thread)
10247 (remote_target::remote_notice_new_inferior)
10248 (get_remote_thread_info): Pass target down.
10249 (remote_target::update_thread_list): Skip threads of inferiors
10250 bound to other targets. (remote_target::close): Don't discard
10251 inferiors. (remote_target::add_current_inferior_and_thread)
10252 (remote_target::process_initial_stop_replies)
10253 (remote_target::start_remote)
10254 (remote_target::remote_serial_quit_handler): Pass down target.
10255 (remote_target::remote_unpush_target): New remote_target
10256 parameter. Unpush the target from all inferiors.
10257 (remote_target::remote_unpush_and_throw): New remote_target
10258 parameter. Pass it down.
10259 (remote_target::open_1): Check whether the current inferior has
10260 execution instead of checking whether any inferior is live. Pass
10261 target down.
10262 (remote_target::remote_detach_1): Pass down target. Use
10263 remote_unpush_target.
10264 (extended_remote_target::attach): Pass down target.
10265 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10266 (remote_target::append_resumption): Pass down target.
10267 (remote_target::append_pending_thread_resumptions)
10268 (remote_target::remote_resume_with_hc, remote_target::resume)
10269 (remote_target::commit_resume): Pass down target.
10270 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10271 (remote_target::interrupt_query)
10272 (remote_target::remove_new_fork_children)
10273 (remote_target::check_pending_events_prevent_wildcard_vcont)
10274 (remote_target::remote_parse_stop_reply)
10275 (remote_target::process_stop_reply): Pass down target.
10276 (first_remote_resumed_thread): New remote_target parameter. Pass
10277 it down.
10278 (remote_target::wait_as): Pass down target.
10279 (unpush_and_perror): New remote_target parameter. Pass it down.
10280 (remote_target::readchar, remote_target::remote_serial_write)
10281 (remote_target::getpkt_or_notif_sane_1)
10282 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10283 down target.
10284 (remote_target::mourn_inferior): Pass down target. Use
10285 remote_unpush_target.
10286 (remote_target::core_of_thread)
10287 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10288 (remote_target::pid_to_exec_file)
10289 (remote_target::thread_handle_to_thread_info): Pass down target.
10290 (remote_target::async_wait_fd): New.
10291 * riscv-fbsd-tdep.c: Include "inferior.h".
10292 (riscv_fbsd_get_thread_local_address): Pass down target.
10293 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10294 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10295 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10296 Adjust.
10297 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10298 * solib-svr4.c (enable_break): Pass down target.
10299 * spu-multiarch.c (parse_spufs_run): Pass down target.
10300 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10301 * target-delegates.c: Regenerate.
10302 * target.c (g_target_stack): Delete.
10303 (current_top_target): Return the current inferior's top target.
10304 (target_has_execution_1): Refer to the passed-in inferior's top
10305 target.
10306 (target_supports_terminal_ours): Check whether the initial
10307 inferior was already created.
10308 (decref_target): New.
10309 (target_stack::push): Incref/decref the target.
10310 (push_target, push_target, unpush_target): Adjust.
10311 (target_stack::unpush): Defref target.
10312 (target_is_pushed): Return bool. Adjust to refer to the current
10313 inferior's target stack.
10314 (dispose_inferior): Delete, and inline parts ...
10315 (target_preopen): ... here. Only dispose of the current inferior.
10316 (target_detach): Hold strong target reference while detaching.
10317 Pass target down.
10318 (target_thread_name): Add assertion.
10319 (target_resume): Pass down target.
10320 (target_ops::beneath, find_target_at): Adjust to refer to the
10321 current inferior's target stack.
10322 (get_dummy_target): New.
10323 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10324 has a thread running.
10325 (initialize_targets): Rename to ...
10326 (_initialize_target): ... this.
10327 * target.h: Include "gdbsupport/refcounted-object.h".
10328 (struct target_ops): Inherit refcounted_object.
10329 (target_ops::shortname, target_ops::longname): Make const.
10330 (target_ops::async_wait_fd): New method.
10331 (decref_target): Declare.
10332 (struct target_ops_ref_policy): New.
10333 (target_ops_ref): New typedef.
10334 (get_dummy_target): Declare function.
10335 (target_is_pushed): Return bool.
10336 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10337 (all_matching_threads_iterator::all_matching_threads_iterator):
10338 Handle filter target.
10339 * thread-iter.h (struct all_matching_threads_iterator, struct
10340 all_matching_threads_range, class all_non_exited_threads_range):
10341 Filter by target too. Remove explicit.
10342 * thread.c (threads_executing): Delete.
10343 (inferior_thread): Pass down current inferior.
10344 (clear_thread_inferior_resources): Pass down thread pointer
10345 instead of ptid_t.
10346 (add_thread_silent, add_thread_with_info, add_thread): Add
10347 process_stratum_target parameter. Use it for thread and inferior
10348 searches.
10349 (is_current_thread): New.
10350 (thread_info::deletable): Use it.
10351 (find_thread_ptid, thread_count, in_thread_list)
10352 (thread_change_ptid, set_resumed, set_running): New
10353 process_stratum_target parameter. Pass it down.
10354 (set_executing): New process_stratum_target parameter. Pass it
10355 down. Adjust reference to 'threads_executing'.
10356 (threads_are_executing): New process_stratum_target parameter.
10357 Adjust reference to 'threads_executing'.
10358 (set_stop_requested, finish_thread_state): New
10359 process_stratum_target parameter. Pass it down.
10360 (switch_to_thread): Also match inferior.
10361 (switch_to_thread): New process_stratum_target parameter. Pass it
10362 down.
10363 (update_threads_executing): Reimplement.
10364 * top.c (quit_force): Pop targets from all inferior.
10365 (gdb_init): Don't call initialize_targets.
10366 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10367 Declare.
10368 (windows_add_thread, windows_delete_thread): Adjust.
10369 (get_windows_debug_event): Rename to ...
10370 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10371 * tracefile-tfile.c (tfile_target_open): Pass down target.
10372 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10373 Forward declare.
10374 (switch_to_thread): Add process_stratum_target parameter.
10375 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10376 parameter. Use it.
10377 (mi_on_resume): Pass target down.
10378 * nat/fork-inferior.c (startup_inferior): Add
10379 process_stratum_target parameter. Pass it down.
10380 * nat/fork-inferior.h (startup_inferior): Add
10381 process_stratum_target parameter.
10382 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10383
75c6c844
PA
103842020-01-10 Pedro Alves <palves@redhat.com>
10385
10386 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10387 directly. Instead find the first thread in the thread list and
10388 use switch_to_thread.
10389
78f2c40a
PA
103902020-01-10 Pedro Alves <palves@redhat.com>
10391
10392 * remote.c (remote_target::remote_add_inferior): Don't bind a
10393 process to the current inferior if the current inferior is already
10394 bound to a process.
10395
e7af6c70
TBA
103962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10397 Pedro Alves <palves@redhat.com>
10398
10399 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10400 If no process is specified, return null_ptid instead of
10401 inferior_ptid.
10402 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10403 TARGET_WAITKIND_SIGNALLED with no pid.
10404
31ba933e
PA
104052020-01-10 Pedro Alves <palves@redhat.com>
10406
10407 * remote.c (first_remote_resumed_thread): New.
10408 (remote_target::wait_as): Use it as default event_ptid instead of
10409 inferior_ptid.
10410
735fc2ca
PA
104112020-01-10 Pedro Alves <palves@redhat.com>
10412
10413 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10414
c17e02e1
PA
104152020-01-10 Pedro Alves <palves@redhat.com>
10416
10417 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10418 not -1.
10419
ab1ddbcf
PA
104202020-01-10 Pedro Alves <palves@redhat.com>
10421
10422 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10423 ptid to get_last_target_status.
10424 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10425 ptid to get_last_target_status.
10426 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10427 get_last_target_status.
10428 (info_program_command): Don't pass a target_waitstatus to
10429 get_last_target_status.
10430 * infrun.c (init_wait_for_inferior): Use
10431 nullify_last_target_wait_ptid.
10432 (get_last_target_status): Handle nullptr arguments.
10433 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10434 (print_stop_event): Don't pass a ptid to get_last_target_status.
10435 (normal_stop): Don't pass a ptid to get_last_target_status.
10436 * infrun.h (get_last_target_status, set_last_target_status): Move
10437 comments here and update.
10438 (nullify_last_target_wait_ptid): Declare.
10439 * linux-fork.c (fork_load_infrun_state): Remove local extern
10440 declaration of nullify_last_target_wait_ptid.
10441 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10442 to get_last_target_status.
10443
f3f8ece4
PA
104442020-01-10 Pedro Alves <palves@redhat.com>
10445
10446 * gdbthread.h (scoped_restore_current_thread)
10447 <dont_restore, restore, m_dont_restore>: Declare.
10448 * thread.c (thread_alive): Add assertion. Return bool.
10449 (switch_to_thread_if_alive): New.
10450 (prune_threads): Switch inferior/thread.
10451 (print_thread_info_1): Switch thread before calling target methods.
10452 (scoped_restore_current_thread::restore): New, factored out from
10453 ...
10454 (scoped_restore_current_thread::~scoped_restore_current_thread):
10455 ... this.
10456 (scoped_restore_current_thread::scoped_restore_current_thread):
10457 Add assertion.
10458 (thread_apply_all_command, thread_select): Use
10459 switch_to_thread_if_alive.
10460 * infrun.c (proceed, restart_threads, handle_signal_stop)
10461 (switch_back_to_stepped_thread): Switch current thread before
10462 calling target methods.
10463
db2d40f7
PA
104642020-01-10 Pedro Alves <palves@redhat.com>
10465
10466 * inferior.c (switch_to_inferior_no_thread): New function,
10467 factored out from ...
10468 (inferior_command): ... here.
10469 * inferior.h (switch_to_inferior_no_thread): Declare.
10470 * mi/mi-main.c (run_one_inferior): Use
10471 switch_to_inferior_no_thread.
10472
bd420a2d
PA
104732020-01-10 Pedro Alves <palves@redhat.com>
10474
10475 * infcmd.c (kill_command): Remove dead code.
10476
ddf5db90
PA
104772020-01-10 Pedro Alves <palves@redhat.com>
10478
10479 * remote.c (remote_target::mourn_inferior): No longer check
10480 whether the target is running.
10481
5018ce90
PA
104822020-01-10 Pedro Alves <palves@redhat.com>
10483
10484 * corelow.c (core_target::has_execution): Change parameter type to
10485 inferior pointer.
10486 * inferior.c (number_of_live_inferiors): Use
10487 inferior::has_execution instead of target_has_execution_1.
10488 * inferior.h (inferior::has_execution): New.
10489 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10490 inferior::has_execution instead of target_has_execution_1.
10491 * process-stratum-target.c
10492 (process_stratum_target::has_execution): Change parameter type to
10493 inferior pointer. Check the inferior's PID instead of
10494 inferior_ptid.
10495 * process-stratum-target.h
10496 (process_stratum_target::has_execution): Change parameter type to
10497 inferior pointer.
10498 * record-full.c (record_full_core_target::has_execution): Change
10499 parameter type to inferior pointer.
10500 * target.c (target_has_execution_1): Change parameter type to
10501 inferior pointer.
10502 (target_has_execution_current): Adjust.
10503 * target.h (target_ops::has_execution): Change parameter type to
10504 inferior pointer.
10505 (target_has_execution_1): Change parameter type to inferior
10506 pointer. Change return type to bool.
10507 * tracefile.h (tracefile_target::has_execution): Change parameter
10508 type to inferior pointer.
10509
74375d18
PA
105102020-01-10 Pedro Alves <palves@redhat.com>
10511
10512 * exceptions.c (print_flush): Remove current_top_target() check.
10513
acdf84a6
PA
105142020-01-10 Pedro Alves <palves@redhat.com>
10515
10516 * remote.c (show_remote_exec_file): Show the current inferior's
10517 exec-file instead of the command variable's value.
10518
ec506636
PA
105192020-01-10 Pedro Alves <palves@redhat.com>
10520
10521 * record-full.c (record_full_resume_ptid): New global.
10522 (record_full_target::resume): Set it.
10523 (record_full_wait_1): Use record_full_resume_ptid instead of
10524 inferior_ptid.
10525
873657b9
PA
105262020-01-10 Pedro Alves <palves@redhat.com>
10527
10528 * gdbthread.h (scoped_restore_current_thread)
10529 <dont_restore, restore, m_dont_restore>: Declare.
10530 * thread.c (thread_alive): Add assertion. Return bool.
10531 (switch_to_thread_if_alive): New.
10532 (prune_threads): Switch inferior/thread.
10533 (print_thread_info_1): Switch thread before calling target methods.
10534 (scoped_restore_current_thread::restore): New, factored out from
10535 ...
10536 (scoped_restore_current_thread::~scoped_restore_current_thread):
10537 ... this.
10538 (scoped_restore_current_thread::scoped_restore_current_thread):
10539 Add assertion.
10540 (thread_apply_all_command, thread_select): Use
10541 switch_to_thread_if_alive.
10542
7f0ae84c
GB
105432020-01-10 George Barrett <bob@bob131.so>
10544
10545 * stap-probe.c (stap_modify_semaphore): Don't check for null
10546 semaphores.
10547 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10548 for null semaphores.
10549
f5a7c406
AB
105502020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10551
10552 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10553 all source windows, and maintain horizontal scroll status while
10554 doing so.
10555
9ae6bf64
TT
105562020-01-09 Tom Tromey <tom@tromey.com>
10557
10558 PR tui/18932:
10559 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10560 update_source_window, not print_source_lines.
10561
b2efe70c
AB
105622020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10563
10564 * tui/tui.c (tui_enable): Register tui hooks after calling
10565 tui_display_main.
10566
5f23a082
CB
105672020-01-09 Christian Biesinger <cbiesinger@google.com>
10568
10569 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10570
3061113b
SM
105712020-01-08 Simon Marchi <simon.marchi@efficios.com>
10572
10573 * thread.c (print_thread_info_1): Fix indentation.
10574
57d75002
CB
105752020-01-09 Christian Biesinger <cbiesinger@google.com>
10576
10577 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10578 unique_xmalloc_ptr outside the if to always free the demangled name.
10579
6a053cb1
TT
105802020-01-08 Tom Tromey <tromey@adacore.com>
10581
10582 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10583 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10584 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10585 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10586 Remove.
10587 (section_offsets): New typedef.
10588 * symtab.c (fixup_section, get_msymbol_address): Update.
10589 * symmisc.c (dump_msymbols): Update.
10590 * symfile.h (relative_addr_info_to_section_offsets)
10591 (symfile_map_offsets_to_segments): Update.
10592 * symfile.c (build_section_addr_info_from_objfile)
10593 (init_objfile_sect_indices): Update.
10594 (struct place_section_arg): Change type of "offsets".
10595 (place_section): Update.
10596 (relative_addr_info_to_section_offsets): Change type of
10597 "section_offsets". Remove "num_sections" parameter.
10598 (default_symfile_offsets, syms_from_objfile_1)
10599 (set_objfile_default_section_offset): Update.
10600 (reread_symbols): No need to preserve section offsets by hand.
10601 (symfile_map_offsets_to_segments): Change type of "offsets".
10602 * stap-probe.c (relocate_address): Update.
10603 * stabsread.h (process_one_symbol): Update.
10604 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10605 (solib_target_relocate_section_addresses): Update.
10606 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10607 Update.
10608 * solib-frv.c (frv_relocate_main_executable): Update.
10609 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10610 * solib-aix.c (solib_aix_get_section_offsets): Change return
10611 type.
10612 (solib_aix_solib_create_inferior_hook): Update.
10613 * remote.c (remote_target::get_offsets): Update.
10614 * psymtab.c (find_pc_sect_psymtab): Update.
10615 * psympriv.h (struct partial_symbol) <address, text_low,
10616 text_high>: Update.
10617 * objfiles.h (obj_section_offset): Update.
10618 (struct objfile) <section_offsets>: Change type.
10619 <num_sections>: Remove.
10620 (objfile_relocate): Update.
10621 * objfiles.c (entry_point_address_query): Update
10622 (relocate_one_symbol): Change type of "section_offsets".
10623 (objfile_relocate1, objfile_relocate1): Change type of
10624 "new_offsets".
10625 (objfile_rebase1): Update.
10626 * mipsread.c (mipscoff_symfile_read): Update.
10627 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10628 parameter.
10629 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10630 (parse_external, psymtab_to_symtab_1): Update.
10631 * machoread.c (macho_symfile_offsets): Update.
10632 * ia64-tdep.c (ia64_find_unwind_table): Update.
10633 * hppa-tdep.c (read_unwind_info): Update.
10634 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10635 * dwarf2read.c (create_addrmap_from_index)
10636 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10637 (process_psymtab_comp_unit_reader, add_partial_symbol)
10638 (add_partial_subprogram, process_full_comp_unit)
10639 (read_file_scope, read_func_scope, read_lexical_block_scope)
10640 (read_call_site_scope, dwarf2_rnglists_process)
10641 (dwarf2_ranges_process, dwarf2_ranges_read)
10642 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10643 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10644 Update.
10645 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10646 Update.
10647 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10648 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10649 (process_one_symbol): Change type of "section_offsets".
10650 * ctfread.c (get_objfile_text_range): Update.
10651 * coffread.c (coff_symtab_read, enter_linenos)
10652 (process_coff_symbol): Update.
10653 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10654 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10655
456e800a
TT
106562020-01-08 Tom Tromey <tromey@adacore.com>
10657
10658 * dwarf2read.c (parse_macro_definition): Use std::string.
10659 (parse_macro_definition): Likewise.
10660
6dfa2fc2
TT
106612020-01-08 Tom Tromey <tromey@adacore.com>
10662
10663 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10664 (ATTR_ALLOC_CHUNK): Remove.
10665
421d1616
TT
106662020-01-08 Tom Tromey <tromey@adacore.com>
10667
10668 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10669
43816ebc
TT
106702020-01-08 Tom Tromey <tromey@adacore.com>
10671
10672 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10673 (dwarf2_compute_name, open_dwo_file): Likewise.
10674 (process_enumeration_scope): Use std::vector.
10675 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10676 (partial_die_info::fixup, dwarf2_start_subfile)
10677 (guess_full_die_structure_name, dwarf2_name): Likewise.
10678 (determine_prefix): Update.
10679 (guess_full_die_structure_name): Make return type const.
10680 (partial_die_full_name): Return unique_xmalloc_ptr.
10681 (DW_FIELD_ALLOC_CHUNK): Remove.
10682
4212d509
TT
106832020-01-07 Tom Tromey <tromey@adacore.com>
10684
10685 PR build/24937:
10686 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10687
06a6207a
JT
106882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10689
10690 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10691
153d79c4
AB
106922020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10693
10694 * stack.c (print_frame_info): Move disassemble_next_line code
10695 inside source_print block.
10696
66182876
EZ
106972020-01-06 Eli Zaretskii <eliz@gnu.org>
10698
10699 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10700 gdb/signals.h, as we are now using native signal symbols.
10701
cbfa8581
SV
107022020-01-06 Shahab Vahedi <shahab@synopsys.com>
10703
10704 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10705 overflow by an early check of content vs threshold.
aac66a4c 10706 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10707 Likewise.
10708
3f602821
EZ
107092020-01-06 Eli Zaretskii <eliz@gnu.org>
10710
10711 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10712
a08c904d
JT
107132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10714
10715 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10716 export table if no section contains it's RVA.
10717
89a65580
EZ
107182020-01-06 Eli Zaretskii <eliz@gnu.org>
10719
10720 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10721
8b7fcda2
HD
107222020-01-06 Hannes Domani <ssbssa@yahoo.de>
10723
10724 * source.c (print_source_lines_base): Set last_line_listed.
10725
a61b4f69
SV
107262020-01-06 Shahab Vahedi <shahab@synopsys.com>
10727
10728 * tui/tui-disasm.c: Remove trailing spaces.
10729
559e7e50
EZ
107302020-01-06 Eli Zaretskii <eliz@gnu.org>
10731 Pedro Alves <palves@redhat.com>
10732
10733 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10734 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10735 (windows_gdb_signal_to_target): New function, uses the above
10736 enumeration to convert GDB internal signal codes to equivalent
10737 Windows codes.
10738 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10739 * windows-nat.c: Include "gdb_wait.h".
10740 (get_windows_debug_event): Extract the fatal exception from the
10741 exit status and convert to the equivalent Posix signal number.
10742 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10743 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10744 * gdbsupport/gdb_wait.c: New file, implements
10745 windows_status_to_termsig.
10746 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10747 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10748
f2302a34
AB
107492020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10752 show_layout.
10753
6a5206eb
LM
107542020-01-05 Luis Machado <luis.machado@linaro.org>
10755
10756 * aarch64-linux-nat.c
10757 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10758 and bfd_mach_aarch64.
10759
6ec1d75e
PW
107602020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10761
10762 * ui-file.c (stdio_file::can_emit_style_escape)
10763 (tee_file::can_emit_style_escape): Ensure style is used also on
10764 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10765 to gdb_stdout.
10766 * main.c (set_gdb_data_directory): Use file style to output the
10767 warning that the given pathname is not a directory.
10768 * top.c (show_history_filename, gdb_safe_append_history)
10769 (show_gdb_datadir): Use file style.
10770
44f81a76
HD
107712020-01-03 Hannes Domani <ssbssa@yahoo.de>
10772
10773 * solib-target.c (struct lm_info_target):
10774 Change offsets to be a unique_xmalloc_ptr.
10775 (solib_target_relocate_section_addresses): Update.
10776
25057eb0
HD
107772020-01-03 Hannes Domani <ssbssa@yahoo.de>
10778
10779 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10780
6e2118f5
BE
107812020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10782
10783 * MAINTAINERS (Write After Approval): Add myself.
10784
8133c7dc
LM
107852020-01-02 Luis Machado <luis.machado@linaro.org>
10786
10787 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10788 Cell BE architecture.
10789 * target.h (struct target_ops) <thread_architecture>: Likewise.
10790
48189bec
HD
107912020-01-01 Hannes Domani <ssbssa@yahoo.de>
10792
10793 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10794
ead1063b
HD
107952020-01-01 Hannes Domani <ssbssa@yahoo.de>
10796
10797 * MAINTAINERS (Write After Approval): Add myself.
10798
e5d78223
JB
107992020-01-01 Joel Brobecker <brobecker@adacore.com>
10800
10801 * gdbarch.sh: Update copyright year range of generated files.
10802
b811d2c2
JB
108032020-01-01 Joel Brobecker <brobecker@adacore.com>
10804
10805 Update copyright year range in all GDB files.
10806
5f4def5c
JB
108072020-01-01 Joel Brobecker <brobecker@adacore.com>
10808
10809 * copyright.py: Convert to Python 3.
10810
51fd4002
JB
108112020-01-01 Joel Brobecker <brobecker@adacore.com>
10812
10813 * copyright.py: Adapt after move of gnulib directory from gdb
10814 directory to toplevel directory.
10815
5fb651f2
JB
108162020-01-01 Joel Brobecker <brobecker@adacore.com>
10817
10818 * copyright.py (main): Exit if run from the wrong directory.
10819
5dd8bf88
JB
108202020-01-01 Joel Brobecker <brobecker@adacore.com>
10821
10822 * top.c (print_gdb_version): Change copyright year to 2020.
10823
9f71dacb 108242020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10825
9f71dacb 10826 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10827
9f71dacb 10828For older changes see ChangeLog-2019.
c906108c
SS
10829\f
10830Local Variables:
10831mode: change-log
10832left-margin: 8
10833fill-column: 74
10834version-control: never
57da7796 10835coding: utf-8
c906108c 10836End: