]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
asan: readelf: stack buffer overflow
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1e7c1b22
TV
12020-07-05 Tom de Vries <tdevries@suse.de>
2
3 PR build/26187
4 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5 std::uncaught_exceptions instead of deprecated
6 std::uncaught_exception.
7
a36158ec
SM
82020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * macroexp.h (macro_stringify): Return
11 gdb::unique_xmalloc_ptr<char>.
12 * macroexp.c (macro_stringify): Likewise.
13 * macrotab.c (fixup_definition): Update.
14
14d960c8
SM
152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
18 (lex_one_token): Update.
19 * macroexp.c (struct macro_buffer) <release>: Return
20 gdb::unique_xmalloc_ptr<char>.
21 (macro_stringify): Update.
22 (macro_expand): Update.
23 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
24 * macroexp.h (macro_expand_next): Likewise.
25
211d5b1c
SM
262020-07-02 Simon Marchi <simon.marchi@efficios.com>
27
28 * macroexp.h (macro_lookup_ftype): Remove.
29 (macro_expand, macro_expand_once, macro_expand_next): Remove
30 lookup function parameters, add scope parameter.
31 * macroexp.c (scan, substitute_args, expand, maybe_expand,
32 macro_expand, macro_expand_once, macro_expand_next): Likewise.
33 * macroscope.h (standard_macro_lookup): Change parameter type
34 to macro_scope.
35 * macroscope.c (standard_macro_lookup): Likewise.
36 * c-exp.y (lex_one_token): Update.
37 * macrocmd.c (macro_expand_command): Likewise.
38 (macro_expand_once_command): Likewise.
39
b1a35af2
SM
402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * inf-loop.c (inferior_event_handler): Remove client_data param.
43 * inf-loop.h (inferior_event_handler): Likewise.
44 * infcmd.c (step_1): Adjust.
45 * infrun.c (proceed): Adjust.
46 (fetch_inferior_event): Remove client_data param.
47 (infrun_async_inferior_event_handler): Adjust.
48 * infrun.h (fetch_inferior_event): Remove `void *` param.
49 * linux-nat.c (handle_target_event): Adjust.
50 * record-btrace.c (record_btrace_handle_async_inferior_event):
51 Adjust.
52 * record-full.c (record_full_async_inferior_event_handler):
53 Adjust.
54 * remote.c (remote_async_inferior_event_handler): Adjust.
55
1cdf9e33
TT
562020-07-01 Tom Tromey <tom@tromey.com>
57
58 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
59 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
60
32c1e210
TT
612020-07-01 Tom Tromey <tom@tromey.com>
62
63 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
64 tui_gen_win_info.
65 (tui_win_info::make_window): Merge with
66 tui_gen_win_info::make_window.
67 (tui_win_info::make_visible): Move from tui_gen_win_info.
68 * tui/tui-win.c (tui_win_info::max_width): Move from
69 tui_gen_win_info.
70 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
71 type.
72 <window_factory>: Likewise.
73 * tui/tui-layout.c (tui_win_info::resize): Move from
74 tui_gen_win_info.
75 (make_standard_window): Change return type.
76 (get_locator_window, tui_get_window_by_name): Likewise.
77 (tui_layout_window::apply): Remove a cast.
78 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
79 (struct tui_win_info): Merge with tui_gen_win_info.
80 (struct tui_gen_win_info): Remove.
81
a30cb6da
TT
822020-07-01 Tom Tromey <tom@tromey.com>
83
84 * tui/tui-stack.h (struct tui_locator_window): Derive from
85 tui_win_info.
86 <do_scroll_horizontal, do_scroll_vertical>: New methods.
87 <can_box>: New method.
88
1eb2161f
TT
892020-07-01 Tom Tromey <tom@tromey.com>
90
91 * tui/tui-stack.h (struct tui_locator_window): Remove body.
92
7134f2eb
TT
932020-07-01 Tom Tromey <tom@tromey.com>
94
95 * tui/tui-regs.c (tui_data_window::display_registers_from)
96 (tui_data_window::display_registers_from)
97 (tui_data_window::first_data_item_displayed)
98 (tui_data_window::delete_data_content_windows): Update.
99 (tui_data_window::refresh_window, tui_data_window::no_refresh):
100 Remove.
101 (tui_data_window::check_register_values): Update.
102 (tui_data_item_window::rerender): Add parameters. Update.
103 (tui_data_item_window::refresh_window): Remove.
104 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
105 virtual.
106 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
107 tui_gen_win_info.
108 <refresh_window, max_height, min_height>: Remove.
109 <rerender>: Add parameters.
110 <x, y, visible>: New members.
111 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
112 <m_item_width>: New member.
113
22b7b041
TT
1142020-07-01 Tom Tromey <tom@tromey.com>
115
116 * tui/tui-regs.c (tui_data_window::show_register_group)
117 (tui_data_window::check_register_values): Update.
118 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
119 from item_no.
120
c9753adb
TT
1212020-07-01 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
124 useless "if".
125
9ab26b4a
TT
1262020-07-01 Tom Tromey <tom@tromey.com>
127
128 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
129 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
130
e555083f
TT
1312020-07-01 Tom Tromey <tom@tromey.com>
132
133 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
134 * tui/tui-winsource.h (enum tui_line_or_address_kind)
135 (struct tui_line_or_address): Move from tui-data.h.
136 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
137 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
138 (tui_cmd_window, tui_source_window_base, tui_source_window)
139 (tui_disasm_window): Don't declare.
140 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
141 to tui-winsource.h.
142 (SINGLE_KEY): Move to tui-stack.c.
143
7a02bab7
TT
1442020-07-01 Tom Tromey <tom@tromey.com>
145
146 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
147 std::string.
148 * tui/tui-regs.c (class tab_expansion_file): New.
149 (tab_expansion_file::write): New method.
150 (tui_register_format): Change return type. Use
151 tab_expansion_file.
152 (tui_get_register, tui_data_window::display_registers_from)
153 (tui_data_item_window::rerender): Update.
154 * tui/tui-io.h (tui_expand_tabs): Don't declare.
155 * tui/tui-io.c (tui_expand_tabs): Remove.
156
ea68593b
TT
1572020-07-01 Tom Tromey <tom@tromey.com>
158
159 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
160
a8caed5d
FS
1612020-07-01 Fangrui Song <maskray@google.com>
162
163 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
164
9cdf9820
AKS
1652020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
166
167 * dwarf2/read.c (set_die_type): Removed conditions to restrict
168 forms for DW_AT_associated and DW_AT_allocated attributes,
169 which is already checked in function attr_to_dynamic_prop.
170
a1520ad8
TT
1712020-06-30 Tom Tromey <tromey@adacore.com>
172
173 * dwarf2/read.c (quirk_rust_enum): Correctly call
174 alloc_rust_variant for default-less enum.
175
5ac58899
TT
1762020-06-30 Tom Tromey <tromey@adacore.com>
177
178 PR build/26183:
179 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
180 gdb::to_string.
181
19b187a9
SM
1822020-06-29 Simon Marchi <simon.marchi@efficios.com>
183
184 * gdbarch.sh (displaced_step_copy_insn): Update doc.
185 * gdbarch.h: Re-generate.
186
cd4c4c07
TT
1872020-06-28 Tom Tromey <tom@tromey.com>
188
189 * command.h (cmd_types): Remove.
190 (cmd_type): Don't declare.
191 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
192 typedef.
193 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
194 * cli/cli-decode.c (cmd_type): Remove.
195
05779d57
PA
1962020-06-27 Pedro Alves <palves@redhat.com>
197
198 * fork-child.c (prefork_hook): Adjust.
199 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
200 Delete.
201 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
202 * inferior.c (inferior::set_tty, inferior::tty): New methods.
203 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
204 Remove declarations.
205 (struct inferior) <set_tty, tty>: New methods.
206 (struct inferior) <terminal>: Rename to ...
207 (struct inferior) <m_terminal>: ... this and make private.
208 * main.c (captured_main_1): Adjust.
209 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
210 (mi_cmd_inferior_tty_show): Adjust.
211 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
212 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
213
1776e3e5
NA
2142020-06-26 Nick Alcock <nick.alcock@oracle.com>
215
216 * configure.ac: Add --enable-libctf: handle --disable-static
217 properly.
218 * acinclude.m4: sinclude ../config/enable.m4.
219 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
220 (LIBCTF): Substitute in.
221 (CTF_DEPS): New, likewise.
222 (CLIBS): libctf needs symbols from libbfd: move earlier.
223 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
224 flags.
225 * ctfread.c: Surround in ENABLE_LIBCTF.
226 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
227 * configure: Regenerate.
228 * config.in: Likewise.
229
58373b80
SM
2302020-06-25 Simon Marchi <simon.marchi@efficios.com>
231
232 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
233
277474ee
SM
2342020-06-25 Simon Marchi <simon.marchi@efficios.com>
235
236 * inferior.h (struct inferior) <terminal>: Change type to
237 gdb::unique_xmalloc_ptr<char>.
238 * inferior.c (inferior::~inferior): Don't free inf->terminal.
239 * infcmd.c (set_inferior_io_terminal): Don't free terminal
240 field, adjust to unique pointer.
241 (get_inferior_io_terminal): Adjust to unique pointer.
242
6d74da72
AB
2432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * riscv-tdep.c (riscv_print_registers_info): Loop over all
246 registers, not just the known core set of registers.
247
2e52d038
AB
2482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
251 fflags, frm, and fcsr registers.
252 (riscv_register_reggroup_p): Remove unknown CSRs from save and
253 restore groups.
254 (riscv_tdesc_unknown_reg): New function.
255 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
256 tdesc_use_registers.
257 * riscv-tdep.h (struct gdbarch_tdep): Add
258 unknown_csrs_first_regnum, unknown_csrs_count,
259 duplicate_fflags_regnum, duplicate_frm_regnum, and
260 duplicate_fcsr_regnum fields.
261
be64fd07
AB
2622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * target-descriptions.c (tdesc_use_registers): Add new parameter a
265 callback, use the callback (when not null) to help number unknown
266 registers.
267 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
268 (tdesc_use_registers): Add extra parameter to declaration.
269
3b9fce96
AB
2702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
273 in the file.
274 (class riscv_pending_register_alias): Likewise.
275 (riscv_register_feature::register_info): Change 'required_p' field
276 to 'required', and change its type. Add 'check' member function.
277 (riscv_register_feature::register_info::check): Define new member
278 function.
279 (riscv_xreg_feature): Change initialisation of 'required' field.
280 (riscv_freg_feature): Likewise.
281 (riscv_virtual_feature): Likewise.
282 (riscv_csr_feature): Likewise.
283 (riscv_check_tdesc_feature): Take extra parameter, the csr
284 tdesc_feature, rewrite the function to use the new
285 riscv_register_feature::register_info::check function.
286 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
287
865bad26
AB
2882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * features/Makefile: Remove all references to the deleted files
291 below.
292 * features/riscv/32bit-csr.c: Deleted.
293 * features/riscv/32bit-csr.xml: Deleted.
294 * features/riscv/64bit-csr.c: Deleted.
295 * features/riscv/64bit-csr.xml: Deleted.
296 * features/riscv/rebuild-csr-xml.sh: Deleted.
297
ed69cbc8
AB
2982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
301 whitespace error for declaration of names member variable.
302 (struct riscv_register_feature): Add new prefer_first_name member
303 variable, and fix whitespace error in declaration of registers.
304 (riscv_xreg_feature): Initialize prefer_first_name field.
305 (riscv_freg_feature): Likewise.
306 (riscv_virtual_feature): Likewise.
307 (riscv_csr_feature): Likewise.
308 (riscv_register_name): Expand on comments. Remove register name
309 modifications for CSR and virtual registers.
310
4445e8f5
AB
3112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
314 errors.
315
767a879e
AB
3162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
319 riscv-opc.h.
320 (class riscv_pending_register_alias): New class.
321 (riscv_check_tdesc_feature): Take vector of pending aliases and
322 populate it as appropriate.
323 (riscv_setup_register_aliases): Delete.
324 (riscv_gdbarch_init): Create vector of pending aliases and pass it
325 to riscv_check_tdesc_feature in all cases. Use the vector to
326 create the register aliases.
327
bb6e55f3
RO
3282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
329
330 * sol2-tdep.c (sol2_static_transform_name): Remove.
331 (sol2_init_abi): Don't register it.
332 * gdbarch.sh (static_transform_name): Remove.
333 * gdbarch.c, gdbarch.h: Regenerate.
334
335 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
336 gdbarch_static_transform_name.
337 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
338 * stabsread.c (define_symbol) <'X'>: Remove.
339 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
340 handling.
341 <'V'>: Likewise.
342 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
343 <'S'>: Remove call to gdbarch_static_transform_name.
344
c6d36836
RO
3452020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
346
347 * procfs.c (procfs_pre_trace): New function.
348 (procfs_target::create_inferior): Pass it to fork_inferior.
349
a7e6196b
RO
3502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
351
352 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
353 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
354 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
355 sol2-tdep.o, sparc-sol2-tdep.o.
356 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
357 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
358 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
359 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
360
d412e696
RO
3612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362
363 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
364 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
365 Call sol2_init_abi.
366 Remove calls to set_gdbarch_skip_solib_resolver,
367 set_gdbarch_core_pid_to_str.
368 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
369 (i386_sol2_static_transform_name): Remove.
370 (i386_sol2_init_abi): Call sol2_init_abi.
371 Remove calls to set_gdbarch_sofun_address_maybe_missing,
372 set_gdbarch_static_transform_name,
373 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
374 Use sol2_sigtramp_p.
375 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
376 (sol2_sigtramp_p): New function.
377 (sol2_static_transform_name): New function.
378 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
379 (sol2_init_abi): New function.
380 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
381 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
382 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
383 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
384 (sparc_sol2_static_transform_name): Remove.
385 (sparc32_sol2_init_abi): Call sol2_init_abi.
386 Remove calls to set_gdbarch_sofun_address_maybe_missing,
387 set_gdbarch_static_transform_name,
388 set_gdbarch_skip_solib_resolver,
389 set_gdbarch_core_pid_to_str.
390 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
391 (sparc_sol2_static_transform_name): Remove
392 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
393 call sol2_sigtramp_p.
394 (sparc64_sol2_init_abi): Call sol2_init_abi.
395 Remove calls to set_gdbarch_sofun_address_maybe_missing,
396 set_gdbarch_static_transform_name,
397 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
398
a8654e7d
PW
3992020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
400
401 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
402 * exec.c (validate_exec_file): If from_tty, set both
403 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
404 * symfile.c (symbol_file_add_with_addrs): if always_confirm
405 and from_tty, unconditionally ask a confirmation.
406
caa7fd04
AB
4072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * target-descriptions.c (tdesc_architecture_name): Protect against
410 NULL pointer dereference.
411 (maint_print_xml_tdesc_cmd): New function.
412 (_initialize_target_descriptions): Register new 'maint print
413 xml-tdesc' command and give it the filename completer.
414 * NEWS: Mention new 'maint print xml-tdesc' command.
415
fbf42f4e
AB
4162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * target-descriptions.c (class tdesc_compatible_info): New class.
419 (struct target_desc): Change type of compatible vector.
420 (tdesc_compatible_p): Update for change in type of
421 target_desc::compatible.
422 (tdesc_compatible_info_list): New function.
423 (tdesc_compatible_info_arch_name): New function.
424 (tdesc_add_compatible): Update for change in type of
425 target_desc::compatible.
426 (print_c_tdesc::visit_pre): Likewise.
427
20821f4e
AB
4282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
431 whitespace to underscore.
432 (maint_print_c_tdesc_cmd): Use fake filename for target
433 descriptions that came from the target.
434 (_initialize_target_descriptions): Add filename command completion
435 for 'maint print c-tdesc'.
436
1fb5ee62
SM
4372020-06-23 Simon Marchi <simon.marchi@efficios.com>
438
439 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
440 lines.
441
fc3ecb3e
SM
4422020-06-23 Simon Marchi <simon.marchi@efficios.com>
443
444 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
445 lines.
446 (dwarf2_find_location_expression): Likewise.
447 (call_site_parameter_matches): Likewise.
448 (dwarf2_compile_expr_to_ax): Likewise.
449 (disassemble_dwarf_expression): Likewise.
450 (loclist_describe_location): Likewise.
451
236ef034
PA
4522020-06-23 Pedro Alves <palves@redhat.com>
453
454 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
455 progspace-and-thread.h. Include scoped-mock-context.h instead.
456 (register_to_value_test): Use scoped_mock_context.
457 * regcache.c: Include "scoped-mock-context.h".
458 (cooked_read_test): Don't error out if a target is already pushed.
459 Use scoped_mock_context. Adjust.
460 * scoped-mock-context.h: New file.
461
39e7ecca
AB
4622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
465 initializer.
466 (ada_language::is_string_type_p): New member function.
467 * c-lang.c (c_language_data): Delete la_is_string_type_p
468 initializer.
469 (cplus_language_data): Likewise.
470 (asm_language_data): Likewise.
471 (minimal_language_data): Likewise.
472 * d-lang.c (d_language_data): Likewise.
473 * f-lang.c (f_is_string_type_p): Delete function, implementation
474 moved to f_language::is_string_type_p.
475 (f_language_data): Delete la_is_string_type_p initializer.
476 (f_language::is_string_type_p): New member function,
477 implementation from f_is_string_type_p.
478 * go-lang.c (go_is_string_type_p): Delete function, implementation
479 moved to go_language::is_string_type_p.
480 (go_language_data): Delete la_is_string_type_p initializer.
481 (go_language::is_string_type_p): New member function,
482 implementation from go_is_string_type_p.
483 * language.c (language_defn::is_string_type_p): Define new member
484 function.
485 (default_is_string_type_p): Make static, add comment copied from
486 header file.
487 (unknown_language_data): Delete la_is_string_type_p initializer.
488 (unknown_language::is_string_type_p): New member function.
489 (auto_language_data): Delete la_is_string_type_p initializer.
490 (auto_language::is_string_type_p): New member function.
491 * language.h (language_data): Delete la_is_string_type_p field.
492 (language_defn::is_string_type_p): Declare new function.
493 (default_is_string_type_p): Delete desclaration, move comment to
494 definition.
495 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
496 moved to m2_language::is_string_type_p.
497 (m2_language_data): Delete la_is_string_type_p initializer.
498 (m2_language::is_string_type_p): New member function,
499 implementation from m2_is_string_type_p.
500 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
501 initializer.
502 * opencl-lang.c (opencl_language_data): Likewise.
503 * p-lang.c (pascal_is_string_type_p): Delete function,
504 implementation moved to pascal_language::is_string_type_p.
505 (pascal_language_data): Delete la_is_string_type_p initializer.
506 (pascal_language::is_string_type_p): New member function,
507 implementation from pascal_is_string_type_p.
508 * rust-lang.c (rust_is_string_type_p): Delete function,
509 implementation moved to rust_language::is_string_type_p.
510 (rust_language_data): Delete la_is_string_type_p initializer.
511 (rust_language::is_string_type_p): New member function,
512 implementation from rust_is_string_type_p.
513 * valprint.c (val_print_scalar_or_string_type_p): Update call to
514 is_string_type_p.
515
4ffc13fb
AB
5162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * ada-lang.c (ada_language_data): Delete la_print_typedef
519 initializer.
520 (ada_language::print_typedef): New member function.
521 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
522 (cplus_language_data): Likewise.
523 (asm_language_data): Likewise.
524 (minimal_language_data): Likewise.
525 * d-lang.c (d_language_data): Likewise.
526 * f-lang.c (f_language_data): Likewise.
527 (f_language::print_typedef): New member function.
528 * go-lang.c (go_language_data): Delete la_print_typedef
529 initializer.
530 * language.c (language_defn::print_typedef): Define member
531 function.
532 (unknown_language_data): Delete la_print_typedef initializer.
533 (unknown_language::print_typedef): New member function.
534 (auto_language_data): Delete la_print_typedef initializer.
535 (auto_language::print_typedef): New member function.
536 * language.h (language_data): Delete la_print_typedef field.
537 (language_defn::print_typedef): Declare new member function.
538 (LA_PRINT_TYPEDEF): Update call to print_typedef.
539 (default_print_typedef): Delete declaration.
540 * m2-lang.c (m2_language_data): Delete la_print_typedef
541 initializer.
542 (m2_language::print_typedef): New member function.
543 * objc-lang.c (objc_language_data): Delete la_print_typedef
544 initializer.
545 * opencl-lang.c (opencl_language_data): Likewise.
546 * p-lang.c (pascal_language_data): Likewise.
547 (pascal_language::print_typedef): New member function.
548 * rust-lang.c (rust_print_typedef): Delete function,
549 implementation moved to rust_language::print_typedef.
550 (rust_language): Delete la_print_typedef initializer.
551 (rust_language::print_typedef): New member function,
552 implementation from rust_print_typedef.
553 * typeprint.c (default_print_typedef): Delete.
554
d711ee67
AB
5552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
556
557 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
558 (ada_language::printstr): New member function.
559 * c-lang.c (c_language_data): Delete la_printstr initializer.
560 (cplus_language_data): Likewise.
561 (asm_language_data): Likewise.
562 (minimal_language_data): Likewise.
563 * d-lang.c (d_language_data): Likewise.
564 * f-lang.c (f_printstr): Rename to f_language::printstr.
565 (f_language_data): Delete la_printstr initializer.
566 (f_language::printstr): New member function, implementation from
567 f_printstr.
568 * go-lang.c (go_language_data): Delete la_printstr initializer.
569 * language.c (language_defn::printstr): Define new member
570 function.
571 (unk_lang_printstr): Delete.
572 (unknown_language_data): Delete la_printstr initializer.
573 (unknown_language::printstr): New member function.
574 (auto_language_data): Delete la_printstr initializer.
575 (auto_language::printstr): New member function.
576 * language.h (language_data): Delete la_printstr field.
577 (language_defn::printstr): Declare new member function.
578 (LA_PRINT_STRING): Update call to printstr.
579 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
580 (m2_language_data): Delete la_printstr initializer.
581 (m2_language::printstr): New member function, implementation from
582 m2_printstr.
583 * objc-lang.c (objc_language_data): Delete la_printstr
584 initializer.
585 * opencl-lang.c (opencl_language_data): Likewise.
586 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
587 (pascal_language_data): Delete la_printstr initializer.
588 (pascal_language::printstr): New member function, implementation
589 from pascal_printstr.
590 * p-lang.h (pascal_printstr): Delete declaration.
591 * rust-lang.c (rust_printstr): Update header comment.
592 (rust_language_data): Delete la_printstr initializer.
593 (rust_language::printstr): New member function.
594
52b50f2c
AB
5952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
598 (ada_language::printchar): New member function.
599 * c-lang.c (c_language_data): Delete la_printchar initializer.
600 (cplus_language_data): Likewise.
601 (asm_language_data): Likewise.
602 (minimal_language_data): Likewise.
603 * d-lang.c (d_language_data): Likewise.
604 * f-lang.c (f_printchar): Rename to f_language::printchar.
605 (f_language_data): Delete la_printchar initializer.
606 (f_language::printchar): New member function, implementation from
607 f_printchar.
608 * go-lang.c (go_language_data): Delete la_printchar initializer.
609 * language.c (unk_lang_printchar): Delete.
610 (language_defn::printchar): Define new member function.
611 (unknown_language_data): Delete la_printchar initializer.
612 (unknown_language::printchar): New member function.
613 (auto_language_data): Delete la_printchar initializer.
614 (auto_language::printchar): New member function.
615 * language.h (language_data): Delete la_printchar field.
616 (language_defn::printchar): Declare new member function.
617 (LA_PRINT_CHAR): Update call to printchar.
618 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
619 (m2_language::printchar): New member function.
620 * objc-lang.c (objc_language_data): Delete la_printchar
621 initializer.
622 * opencl-lang.c (opencl_language_data): Likewise.
623 * p-lang.c (pascal_language_data): Delete la_printchar
624 initializer.
625 (pascal_language::printchar): New member function.
626 * rust-lang.c (rust_printchar): Rename to
627 rust_language::printchar.
628 (rust_language_data): Delete la_printchar initializer.
629 (rust_language::printchar): New member function, implementation
630 from rust_printchar.
631
ec8cec5b
AB
6322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
635 (ada_language_data): Delete la_emitchar initializer.
636 (ada_language::emitchar): New member function, implementation from
637 emit_char.
638 * c-lang.c (c_language_data): Delete la_emitchar initializer.
639 (cplus_language_data): Likewise.
640 (asm_language_data): Likewise.
641 (minimal_language_data): Likewise.
642 * d-lang.c (d_language_data): Likewise.
643 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
644 (f_language_data): Delete la_emitchar initializer.
645 (f_language::emitchar): New member function, implementation from
646 f_emit_char.
647 * go-lang.c (go_language_data): Delete la_emitchar initializer.
648 * language.c (unk_lang_emit_char): Delete.
649 (language_defn::emitchar): New member function definition.
650 (unknown_language_data): Delete la_emitchar initializer.
651 (unknown_language::emitchar): New member function.
652 (auto_language_data): Delete la_emitchar initializer.
653 (auto_language::emitchar): New member function.
654 * language.h (language_data): Delete la_emitchar field.
655 (language_defn::emitchar): New member field declaration.
656 (LA_EMIT_CHAR): Update call to emitchar.
657 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
658 (m2_language_data): Delete la_emitchar initializer.
659 (m2_language::emitchar): New member function, implementation from
660 m2_emit_char.
661 * objc-lang.c (objc_language_data): Delete la_emitchar
662 initializer.
663 * opencl-lang.c (opencl_language_data): Likewise.
664 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
665 (pascal_language_data): Delete la_emitchar initializer.
666 (pascal_language::emitchar): New member function, implementation
667 from pascal_emit_char.
668 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
669 (rust_language_data): Delete la_emitchar initializer.
670 (rust_language::emitchar): New member function, implementation
671 from rust_emitchar.
672
1bf9c363
AB
6732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * ada-lang.c (resolve): Rename to ada_language::post_parser.
676 (ada_language_data): Delete la_post_parser initializer.
677 (ada_language::post_parser): New member function.
678 * c-lang.c (c_language_data): Delete la_post_parser initializer.
679 (cplus_language_data): Likewise.
680 (asm_language_data): Likewise.
681 (minimal_language_data): Likewise.
682 * d-lang.c (d_language_data): Likewise.
683 * f-lang.c (f_language_data): Likewise.
684 * go-lang.c (go_language_data): Likewise.
685 * language.c (unknown_language_data): Likewise.
686 (auto_language_data): Likewise.
687 * language.h (language_data): Delete la_post_parser field.
688 (language_defn::post_parser): New member function.
689 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
690 * objc-lang.c (objc_language_data): Likewise.
691 * opencl-lang.c (opencl_language_data): Likewise.
692 * p-lang.c (pascal_language_data): Likewise.
693 * parse.c (parse_exp_in_context): Update call to post_parser.
694 (null_post_parser): Delete definition.
695 * parser-defs.h (null_post_parser): Delete declaration.
696 * rust-lang.c (rust_language_data): Delete la_post_parser
697 initializer.
698
87afa652
AB
6992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * ada-lang.c (parse): Rename to ada_language::parser.
702 (ada_language_data): Delete la_parser initializer.
703 (ada_language::parser): New member function, implementation from
704 parse.
705 * c-lang.c (c_language_data): Delete la_parser initializer.
706 (cplus_language_data): Likewise.
707 (asm_language_data): Likewise.
708 (minimal_language_data): Likewise.
709 * d-lang.c (d_language_data): Likewise.
710 (d_language::parser): New member function.
711 * f-lang.c (f_language_data): Delete la_parser initializer.
712 (f_language::parser): New member function.
713 * go-lang.c (go_language_data): Delete la_parser initializer.
714 (go_language::parser): New member function.
715 * language.c (unk_lang_parser): Delete.
716 (language_defn::parser): Define new member function.
717 (unknown_language_data): Delete la_parser initializer.
718 (unknown_language::parser): New member function.
719 (auto_language_data): Delete la_parser initializer.
720 (auto_language::parser): New member function.
721 * language.h (language_data): Delete la_parser field.
722 (language_defn::parser): Declare new member function.
723 * m2-lang.c (m2_language_data): Delete la_parser initializer.
724 (m2_language::parser): New member function.
725 * objc-lang.c (objc_language_data): Delete la_parser initializer.
726 * opencl-lang.c (opencl_language_data): Likewise.
727 * p-lang.c (pascal_language_data): Likewise.
728 (pascal_language::parser): New member function.
729 * parse.c (parse_exp_in_context): Update call to parser.
730 * rust-lang.c (rust_language_data): Delete la_parser initializer.
731 (rust_language::parser): New member function.
732
37825800
AB
7332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
734
735 * top.c (print_gdb_configuration): Print --with-python-libdir
736 configuration value.
737
5b860c93
PW
7382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
739
740 * NEWS: Mention change to the alias command.
741
cf00cd6f
PW
7422020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
743
744 * cli/cli-cmds.c (lookup_cmd_for_default_args)
745 (alias_command_completer)
746 (make_alias_options_def_group): New functions.
747 (alias_opts, alias_option_defs): New struct and array.
748 (alias_usage_error): Update usage.
749 (alias_command): Handles optional DEFAULT-ARGS... arguments.
750 Use option framework.
751 (_initialize_cli_cmds): Update alias command help.
752 Update aliases command help.
753 (show_user):
754 Add NULL for new default_args lookup_cmd argument.
755 (valid_command_p): Rename to validate_aliased_command.
756 Add NULL for new default_args lookup_cmd argument. Verify that the
757 aliased_command has no default args.
758 * cli/cli-decode.c (help_cmd): Show aliases definitions.
759 (lookup_cmd_1, lookup_cmd): New argument default_args.
760 (add_alias_cmd):
761 Add NULL for new default_args lookup_cmd argument.
762 (print_help_for_command): Show default args under the layout
763 alias some_alias = some_aliased_cmd some_alias_default_arg.
764 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
765 xfree default_args in destructor.
766 * cli/cli-script.c (process_next_line, do_define_command):
767 Add NULL for new default_args lookup_cmd argument.
768 * command.h: Declare new default_args argument in lookup_cmd
769 and lookup_cmd_1.
770 * completer.c (complete_line_internal_1):
771 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
772 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
773 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
774 Likewise.
775 * infcmd.c (_initialize_infcmd): Likewise.
776 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
777 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
778 * python/py-param.c (add_setshow_generic): Likewise.
779 * remote.c (_initialize_remote): Likewise.
780 * top.c (execute_command): Prepend default_args if command has some.
781 (set_verbose):
782 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
783 * tracepoint.c (validate_actionline, encode_actions_1):
784 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
785
bd920864
TBA
7862020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787
788 * jit.c (jit_read_descriptor): Use bool as the return type.
789 (jit_breakpoint_re_set_internal): Use bool as the return type.
790 Invert the return value logic; return true if the jit breakpoint
791 has been successfully initialized.
792 (jit_inferior_init): Update the call to
793 jit_breakpoint_re_set_internal.
794
f8098322
PA
7952020-06-22 Pedro Alves <palves@redhat.com>
796
797 PR gdb/25939
798 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
799 Use the current inferior instead. Don't return
800 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
801 wait again.
802 * sol-thread.c (sol_thread_target::wait): Don't reference
803 inferior_ptid.
804 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
805 (sol_update_thread_list_callback): Use the current inferior's pid
806 instead of inferior_ptid.
807
196535a6
RO
8082020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
809
810 * procfs.c: Cleanup many comments.
811
812 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
813 (AFTER_WATCHFLAG): Replace by value.
814
815 (MAIN_PROC_NAME_FORMAT): Inline ...
816 (create_procinfo): ... here.
817
818 (procfs_debug_inferior): Remove SYS_exec handling.
819 (syscall_is_exec): Likewise.
820 (procfs_set_exec_trap): Likewise.
821
822 (syscall_is_lwp_exit): Inline in callers.
823 (syscall_is_exit): Likewise.
824 (syscall_is_exec): Likewise.
825 (syscall_is_lwp_create): Likewise.
826
827 (invalidate_cache): Remove #if 0 code.
828
829 (make_signal_thread_runnable): Remove.
830 (procfs_target::resume): Remove #if 0 code.
831
cf6f3e86
RO
8322020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
833
834 PR gdb/25939
835 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
836 call ...
837 (procfs_target::create_inferior): ... here.
838
48e9cc84
PW
8392020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
840
841 * exec.c (validate_exec_file): Ensure the build-id is up to
842 date by calling reopen_exec_file (that checks file timestamp
843 to decide to re-read the file).
844
3922b302
PA
8452020-06-18 Pedro Alves <palves@redhat.com>
846
847 PR gdb/25412
848 * gdbthread.h (delete_thread, delete_thread_silent)
849 (find_thread_ptid): Update comments.
850 * thread.c (current_thread_): New global.
851 (is_current_thread): Move higher, and reimplement.
852 (inferior_thread): Reimplement.
853 (set_thread_exited): Use bool. Add assertions.
854 (add_thread_silent): Simplify thread-reuse handling by always
855 calling delete_thread.
856 (delete_thread): Remove intro comment.
857 (find_thread_ptid): Skip exited threads.
858 (switch_to_thread_no_regs): Write to current_thread_.
859 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
860 INFERIOR_PTID. Clear current_thread_.
861
6dbdab44
PA
8622020-06-18 Pedro Alves <palves@redhat.com>
863
864 * aix-thread.c (pd_update): Use switch_to_thread.
865
2da4b788
PA
8662020-06-18 Pedro Alves <palves@redhat.com>
867
868 * ravenscar-thread.c (ravenscar_thread_target): Update.
869 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
870 (ravenscar_thread_target::add_active_thread): ... this. Don't
871 set m_base_ptid here. Update to avoid referencing inferior_ptid.
872 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
873
50838d1b
PA
8742020-06-18 Pedro Alves <palves@redhat.com>
875
876 * nat/windows-nat.c (current_windows_thread): Remove.
877 * nat/windows-nat.h (current_windows_thread): Remove.
878 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
879 Adjust.
880 (display_selectors): Adjust to fetch the current
881 windows_thread_info based on inferior_ptid.
882 (fake_create_process): No longer write to current_windows_thread.
883 (windows_nat_target::get_windows_debug_event):
884 Don't set inferior_ptid or current_windows_thread.
885 (windows_nat_target::wait): Adjust to not rely on
886 current_windows_thread.
887 (do_initial_windows_stuff): Now a method of windows_nat_target.
888 Switch to the last_ptid thread.
889 (windows_nat_target::attach): Adjust.
890 (windows_nat_target::detach): Use switch_to_no_thread instead of
891 writing to inferior_ptid directly.
892 (windows_nat_target::create_inferior): Adjust.
893
31ce04e9
PA
8942020-06-18 Pedro Alves <palves@redhat.com>
895
896 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
897
1ee1a363
PA
8982020-06-18 Pedro Alves <palves@redhat.com>
899
900 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
901 after creating it, instead of writing to inferior_ptid. Don't
902 write to inferior_ptid.
903
6d350754
PA
9042020-06-18 Pedro Alves <palves@redhat.com>
905
906 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
907
5d971d48
PA
9082020-06-18 Pedro Alves <palves@redhat.com>
909
910 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
911 it, instead of writing to inferior_ptid.
912
86e57d1b
PA
9132020-06-18 Pedro Alves <palves@redhat.com>
914
915 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
916 to inferior_ptid.
917
f2e1c129
PA
9182020-06-18 Pedro Alves <palves@redhat.com>
919
920 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
921 instead of writing to inferior_ptid directly.
922
60db1b85
PA
9232020-06-18 Pedro Alves <palves@redhat.com>
924
925 * corelow.c (core_target::close): Use switch_to_no_thread instead
926 of writing to inferior_ptid directly.
927 (add_to_thread_list, core_target_open): Use switch_to_thread
928 instead of writing to inferior_ptid directly.
929
fe7d6a8d
PA
9302020-06-18 Pedro Alves <palves@redhat.com>
931
932 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
933 inferior_ptid.
934 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
935 inferior_ptid.
936 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
937 inferior_ptid directly.
938 (darwin_nat_target::init_thread_list): Switch to thread, instead
939 of writing to inferior_ptid.
940 (darwin_nat_target::attach): Don't write to inferior_ptid.
941 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
942
975f8708
PA
9432020-06-18 Pedro Alves <palves@redhat.com>
944
945 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
946 thread.
947 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
948 Instead use switch_to_thread.
949 (gnu_nat_target::detach): Use switch_to_no_thread
950 instead of writing to inferior_ptid directly. Used passed-in
951 inferior instead of looking up the inferior by pid.
952
1a204730
PA
9532020-06-18 Pedro Alves <palves@redhat.com>
954
955 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
956 inferior_ptid.
957
ebe84f23
PA
9582020-06-18 Pedro Alves <palves@redhat.com>
959
960 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
961 inferior_ptid.
962 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
963 thread.
964 (nto_procfs_target::detach): Avoid referencing
965 inferior_ptid. Use switch_to_no_thread instead of writing to
966 inferior_ptid directly.
967 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
968 instead of writing to inferior_ptid directly.
969 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
970 to thread.
971
191f02e5
PA
9722020-06-18 Pedro Alves <palves@redhat.com>
973
974 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
975 after creating it, instead of writing to inferior_ptid.
976 (gdbsim_target_open): Use switch_to_no_thread instead of writing
977 to inferior_ptid directly.
978 (gdbsim_target::wait): Don't write to inferior_ptid.
979
0ac55310
PA
9802020-06-18 Pedro Alves <palves@redhat.com>
981
982 * remote.c (remote_target::remote_notice_new_inferior): Use
983 switch_to_thread instead of writing to inferior_ptid directly.
984 (remote_target::add_current_inferior_and_thread): Use
985 switch_to_no_thread instead of writing to inferior_ptid directly.
986 (extended_remote_target::attach): Use switch_to_inferior_no_thread
987 and switch_to_thread instead of using set_current_inferior or
988 writing to inferior_ptid directly.
989
5233f39b
PA
9902020-06-18 Pedro Alves <palves@redhat.com>
991
992 * tracectf.c (ctf_target_open): Switch to added thread instead of
993 writing to inferior_ptid directly.
994 (ctf_target::close): Use switch_to_no_thread instead of writing to
995 inferior_ptid directly.
996
087e161b
PA
9972020-06-18 Pedro Alves <palves@redhat.com>
998
999 * tracefile-tfile.c (tfile_target_open): Don't write to
1000 inferior_ptid directly, instead switch to added thread.
1001 (tfile_target::close): Use switch_to_no_thread instead of writing
1002 to inferior_ptid directly.
1003
7fb43e53
PA
10042020-06-18 Pedro Alves <palves@redhat.com>
1005
1006 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1007 (procfs_target::detach): Use switch_to_no_thread
1008 instead of writing to inferior_ptid directly.
1009 (do_attach): Change return type to void. Switch to the added
1010 thread.
1011 (procfs_target::create_inferior): Switch to the added thread.
1012 (procfs_do_thread_registers): Don't write to inferior_ptid.
1013
18493a00
PA
10142020-06-18 Pedro Alves <palves@redhat.com>
1015
1016 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1017 of writing to inferior_ptid.
1018 (scoped_restore_exited_inferior): Delete.
1019 (handle_vfork_child_exec_or_exit): Simplify using
1020 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1021 instead of writing to inferior_ptid.
1022 (THREAD_STOPPED_BY): Delete.
1023 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1024 (thread_stopped_by_hw_breakpoint): Delete.
1025 (save_waitstatus): Use
1026 scoped_restore_current_thread+switch_to_thread, and call
1027 target_stopped_by_watchpoint instead of
1028 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1029 instead of thread_stopped_by_sw_breakpoint, and
1030 target_stopped_by_hw_breakpoint instead of
1031 thread_stopped_by_hw_breakpoint.
1032 (handle_inferior_event)
1033 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1034 inferior_ptid directly, nor
1035 set_current_inferior/set_current_program_space. Use
1036 switch_to_thread / switch_to_inferior_no_thread instead.
1037
a0776b13
PA
10382020-06-18 Pedro Alves <palves@redhat.com>
1039
1040 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1041 instead of writing to inferior_ptid.
1042
6155c136
PA
10432020-06-18 Pedro Alves <palves@redhat.com>
1044
1045 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1046 added thread.
1047 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1048 to the added thread.
1049 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1050 instead of writing to inferior_ptid.
1051
c5316fc6
PA
10522020-06-18 Pedro Alves <palves@redhat.com>
1053
1054 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1055 (register_to_value_test): Mock a program_space too. Heap-allocate
1056 the address space. Don't write to inferior_ptid. Use
1057 switch_to_thread instead.
1058
8df01799
PA
10592020-06-18 Pedro Alves <palves@redhat.com>
1060
1061 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1062 Delete.
1063 (find_signalled_thread()): New, factored out from
1064 linux_make_corefile_notes and adjusted to handle exited threads.
1065 (linux_make_corefile_notes): Adjust to use the new
1066 find_signalled_thread.
1067
41792d68
PA
10682020-06-18 Pedro Alves <palves@redhat.com>
1069
1070 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1071 of saving/restoring inferior_ptid.
1072
612f258a
TT
10732020-06-17 Tom Tromey <tom@tromey.com>
1074
1075 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1076 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1077 declare.
1078 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1079
efb763a5
SM
10802020-06-15 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1083 of partial symtabs.
1084
2951f6c0
SM
10852020-06-17 Simon Marchi <simon.marchi@efficios.com>
1086
1087 * regformats/reg-arm.dat: Remove.
1088 * regformats/reg-bfin.dat: Remove.
1089 * regformats/reg-cris.dat: Remove.
1090 * regformats/reg-crisv32.dat: Remove.
1091 * regformats/reg-m32r.dat: Remove.
1092 * regformats/reg-tilegx.dat: Remove.
1093 * regformats/reg-tilegx32.dat: Remove.
1094
7d458ea5
SM
10952020-06-17 Simon Marchi <simon.marchi@efficios.com>
1096
1097 * features/Makefile (WHICH): Remove arm files.
1098 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1099 * regformats/arm/arm-with-neon.dat: Remove.
1100 * regformats/arm/arm-with-vfpv2.dat: Remove.
1101 * regformats/arm/arm-with-vfpv3.dat: Remove.
1102
3af96c0d
SM
11032020-06-17 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * features/Makefile (XMLTOC): Remove rx.xml.
1106
b25e22fd
PA
11072020-06-17 Pedro Alves <palves@redhat.com>
1108
1109 * gdbthread.h (thread_control_state) <trap_expected> Update
1110 comments.
1111
a78a19b1
AB
11122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1115 ada_language::lookup_symbol_nonlocal.
1116 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1117 (ada_language::lookup_symbol_nonlocal): New member function,
1118 implementation from ada_lookup_symbol_nonlocal.
1119 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1120 initializer.
1121 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1122 initializer.
1123 (cplus_language::lookup_symbol_nonlocal): New member function.
1124 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1125 (minimal_language_data) Likewise.
1126 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1127 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1128 initializer.
1129 (d_language::lookup_symbol_nonlocal): New member function.
1130 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1131 initializer.
1132 (f_language::lookup_symbol_nonlocal): New member function.
1133 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1134 initializer.
1135 * language.c (unknown_language_data): Likewise.
1136 (auto_language_data): Likewise.
1137 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1138 field.
1139 (language_defn::lookup_symbol_nonlocal): New member function.
1140 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1141 initializer.
1142 * objc-lang.c (objc_language_data): Likewise.
1143 * opencl-lang.c (opencl_language_data): Likewise.
1144 * p-lang.c (pascal_language_data): Likewise.
1145 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1146 rust_language::lookup_symbol_nonlocal.
1147 (rust_language_data): Delete la_lookup_symbol_nonlocal
1148 initializer.
1149 (rust_language::lookup_symbol_nonlocal): New member function,
1150 implementation from rust_lookup_symbol_nonlocal.
1151 * symtab.c (lookup_symbol_aux): Update call to
1152 lookup_symbol_nonlocal.
1153 (basic_lookup_symbol_nonlocal): Rename to...
1154 (language_defn::lookup_symbol_nonlocal): ...this, and update
1155 header comment. Remove language_defn parameter, and replace with
1156 uses of `this'.
1157 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1158
ebe2334e
AB
11592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1162 initializer.
1163 (ada_language::value_print_inner): New member function.
1164 * c-lang.c (c_language_data): Delete la_value_print_inner
1165 initializer.
1166 (cplus_language_data): Likewise.
1167 (asm_language_data): Likewise.
1168 (minimal_language_data): Likewise.
1169 * d-lang.c (d_language_data): Likewise.
1170 (d_language::value_print_inner): New member function.
1171 * f-lang.c (f_language_data): Delete la_value_print_inner
1172 initializer.
1173 (f_language::value_print_inner): New member function.
1174 * f-lang.h (f_value_print_innner): Rename to...
1175 (f_value_print_inner): ...this (note spelling of 'inner').
1176 * f-valprint.c (f_value_print_innner): Rename to...
1177 (f_value_print_inner): ...this (note spelling of 'inner').
1178 * go-lang.c (go_language_data): Delete la_value_print_inner
1179 initializer.
1180 (go_language::value_print_inner): New member function.
1181 * language.c (language_defn::value_print_inner): Define new member
1182 function.
1183 (unk_lang_value_print_inner): Delete.
1184 (unknown_language_data): Delete la_value_print_inner initializer.
1185 (unknown_language::value_print_inner): New member function.
1186 (auto_language_data): Delete la_value_print_inner initializer.
1187 (auto_language::value_print_inner): New member function.
1188 * language.h (language_data): Delete la_value_print_inner field.
1189 (language_defn::value_print_inner): Delcare new member function.
1190 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1191 initializer.
1192 (m2_language::value_print_inner): New member function.
1193 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1194 initializer.
1195 * opencl-lang.c (opencl_language_data): Likewise.
1196 * p-lang.c (pascal_language_data): Likewise.
1197 (pascal_language::value_print_inner): New member function.
1198 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1199 initializer.
1200 (rust_language::value_print_inner): New member function.
1201 * valprint.c (do_val_print): Update call to value_print_inner.
1202
a1d1fa3e
AB
12032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * ada-lang.c (ada_language_data): Delete la_value_print
1206 initializer.
1207 (ada_language::value_print): New member function.
1208 * c-lang.c (c_language_data): Delete la_value_print initializer.
1209 (cplus_language_data): Likewise.
1210 (asm_language_data): Likewise.
1211 (minimal_language_data): Likewise.
1212 * d-lang.c (d_language_data): Likewise.
1213 * f-lang.c (f_language_data): Likewise.
1214 * go-lang.c (go_language_data): Likewise.
1215 * language.c (unk_lang_value_print): Delete.
1216 (language_defn::value_print): Define new member function.
1217 (unknown_language_data): Delete la_value_print initializer.
1218 (unknown_language::value_print): New member function.
1219 (auto_language_data): Delete la_value_print initializer.
1220 (auto_language::value_print): New member function.
1221 * language.h (language_data): Delete la_value_print field.
1222 (language_defn::value_print): Declare new member function.
1223 (LA_VALUE_PRINT): Update call to value_print.
1224 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1225 * objc-lang.c (objc_language_data): Likewise.
1226 * opencl-lang.c (opencl_language_data): Likewise.
1227 * p-lang.c (pascal_language_data): Likewise.
1228 (pascal_language::value_print): New member function.
1229 * rust-lang.c (rust_language_data): Delete la_value_print
1230 initializer.
1231
f16a9f57
AB
12322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * ada-lang.c (ada_watch_location_expression): Rename to
1235 ada_language::watch_location_expression.
1236 (ada_language_data): Delete la_watch_location_expression
1237 initializer.
1238 (ada_language::watch_location_expression): New member function,
1239 implementation from ada_watch_location_expression.
1240 * breakpoint.c (watch_command_1): Update call to
1241 watch_location_expression.
1242 * c-lang.c (c_watch_location_expression): Rename to
1243 language_defn::watch_location_expression.
1244 (c_language_data): Delete la_watch_location_expression
1245 initializer.
1246 (cplus_language_data): Likewise.
1247 (asm_language_data): Likewise.
1248 (minimal_language_data): Likewise.
1249 * c-lang.h (c_watch_location_expression): Delete declaration.
1250 * d-lang.c (d_language_data): Delete la_watch_location_expression
1251 initializer.
1252 * f-lang.c (f_language_data): Likewise.
1253 * go-lang.c (go_language_data): Likewise.
1254 * language.c (language_defn::watch_location_expression): Member
1255 function implementation from c_watch_location_expression.
1256 (unknown_language_data): Delete la_watch_location_expression
1257 initializer.
1258 (auto_language_data): Likewise.
1259 * language.h (language_data): Delete la_watch_location_expression
1260 field.
1261 (language_defn::watch_location_expression): Declare new member
1262 function.
1263 * m2-lang.c (m2_language_data): Delete
1264 la_watch_location_expression initializer.
1265 * objc-lang.c (objc_language_data): Likewise.
1266 * opencl-lang.c (opencl_language_data): Likewise.
1267 * p-lang.c (pascal_language_data): Likewise.
1268 * rust-lang.c (rust_watch_location_expression): Rename to
1269 rust_language::watch_location_expression.
1270 (rust_language_data): Delete la_watch_location_expression
1271 initializer.
1272 (rust_language::watch_location_expression): New member function,
1273 implementation from rust_watch_location_expression.
1274
7e56227d
AB
12752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1276
1277 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1278 ada_language::collect_symbol_completion_matches.
1279 (ada_language_data): Delete la_collect_symbol_completion_matches
1280 initializer.
1281 (ada_language::collect_symbol_completion_matches): New member
1282 function, implementation from
1283 ada_collect_symbol_completion_matches.
1284 * c-lang.c (c_language_data): Delete
1285 la_collect_symbol_completion_matches initializer.
1286 (cplus_language_data): Likewise.
1287 (asm_language_data): Likewise.
1288 (minimal_language_data): Likewise.
1289 * d-lang.c (d_language_data): Likewise.
1290 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1291 f_language::collect_symbol_completion_matches.
1292 (f_language_data): Delete la_collect_symbol_completion_matches
1293 initializer.
1294 (f_language::collect_symbol_completion_matches) New member
1295 function, implementation from f_collect_symbol_completion_matches.
1296 * go-lang.c (go_language_data): Delete
1297 la_collect_symbol_completion_matches initializer.
1298 * language.c (unknown_language_data): Likewise.
1299 (auto_language_data): Likewise.
1300 * language.h (language_data): Delete
1301 la_collect_symbol_completion_matches field.
1302 (language_defn::collect_symbol_completion_matches): New member
1303 function.
1304 * m2-lang.c (m2_language_data): Delete
1305 la_collect_symbol_completion_matches initializer.
1306 * objc-lang.c (objc_language_data): Likewise.
1307 * opencl-lang.c (opencl_language_data): Likewise.
1308 * p-lang.c (pascal_language_data): Likewise.
1309 * rust-lang.c (rust_language_data): Likewise.
1310 * symtab.c (default_collect_symbol_completion_matches): Delete.
1311 (collect_symbol_completion_matches): Update call to
1312 collect_symbol_completion_matches.
1313 (collect_symbol_completion_matches_type): Likewise.
1314 * symtab.h (default_collect_symbol_completion_matches): Delete
1315 declaration.
1316
53fc67f8
AB
13172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1320 (ada_language_data): Delete la_word_break_characters initializer.
1321 (ada_language::word_break_characters): New member function.
1322 * c-lang.c (c_language_data): Delete la_word_break_characters
1323 initializer.
1324 (cplus_language_data): Likewise.
1325 (asm_language_data): Likewise.
1326 (minimal_language_data): Likewise.
1327 * completer.c: Update global comment.
1328 (advance_to_expression_complete_word_point): Update call to
1329 word_break_characters.
1330 (complete_files_symbols): Likewise.
1331 (complete_line_internal_1): Likewise.
1332 (default_completer_handle_brkchars): Likewise.
1333 (skip_quoted_chars): Likewise.
1334 * d-lang.c (d_language_data): Delete la_word_break_characters
1335 initializer.
1336 * f-lang.c (f_word_break_characters): Delete.
1337 (f_language_data): Delete la_word_break_characters initializer.
1338 (f_language::word_break_characters): New member function.
1339 * go-lang.c (go_language_data): Delete la_word_break_characters
1340 initializer.
1341 * language.c (unknown_language_data): Likewise.
1342 (auto_language_data): Likewise.
1343 * language.h (default_word_break_characters): Move declaration to
1344 earlier in the file.
1345 (language_data): Delete la_word_break_characters field.
1346 (language_defn::word_break_characters): New member function.
1347 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1348 initializer.
1349 * objc-lang.c (objc_language_data): Likewise.
1350 * opencl-lang.c (opencl_language_data): Likewise.
1351 * p-lang.c (pascal_language_data): Likewise.
1352 * rust-lang.c (rust_language_data): Likewise.
1353
c9debfb9
AB
13542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1357 (ada_language_data): Delete la_get_symbol_name_matcher
1358 initializer.
1359 (language_defn::get_symbol_name_matcher_inner): New member
1360 function.
1361 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1362 initializer.
1363 (cplus_language_data): Likewise.
1364 (cplus_language::get_symbol_name_matcher_inner): New member
1365 function.
1366 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1367 (minimal_language_data): Likewise.
1368 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1369 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1370 initializer.
1371 * dictionary.c (iter_match_first_hashed): Update call to
1372 get_symbol_name_matcher.
1373 (iter_match_next_hashed): Likewise.
1374 (iter_match_next_linear): Likewise.
1375 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1376 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1377 initializer.
1378 (f_language::get_symbol_name_matcher_inner): New member function.
1379 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1380 initializer.
1381 * language.c (default_symbol_name_matcher): Update header comment,
1382 make static.
1383 (language_defn::get_symbol_name_matcher): New definition.
1384 (language_defn::get_symbol_name_matcher_inner): Likewise.
1385 (get_symbol_name_matcher): Delete.
1386 (unknown_language_data): Delete la_get_symbol_name_matcher
1387 initializer.
1388 (auto_language_data): Likewise.
1389 * language.h (language_data): Delete la_get_symbol_name_matcher
1390 field.
1391 (language_defn::get_symbol_name_matcher): New member function.
1392 (language_defn::get_symbol_name_matcher_inner): Likewise.
1393 (default_symbol_name_matcher): Delete declaration.
1394 * linespec.c (find_methods): Update call to
1395 get_symbol_name_matcher.
1396 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1397 initializer.
1398 * minsyms.c (lookup_minimal_symbol): Update call to
1399 get_symbol_name_matcher.
1400 (iterate_over_minimal_symbols): Likewise.
1401 * objc-lang.c (objc_language_data): Delete
1402 la_get_symbol_name_matcher initializer.
1403 * opencl-lang.c (opencl_language_data): Likewise.
1404 * p-lang.c (pascal_language_data): Likewise.
1405 * psymtab.c (psymbol_name_matches): Update call to
1406 get_symbol_name_matcher.
1407 * rust-lang.c (rust_language_data): Delete
1408 la_get_symbol_name_matcher initializer.
1409 * symtab.c (symbol_matches_search_name): Update call to
1410 get_symbol_name_matcher.
1411 (compare_symbol_name): Likewise.
1412
9a49ad8c
AB
14132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * ada-lang.c (ada_language_data): Delete la_compute_program
1416 initializer.
1417 * c-lang.c (c_language_data): Likewise.
1418 (c_language::compute_program): New member function.
1419 (cplus_language_data): Delete la_compute_program initializer.
1420 (cplus_language::compute_program): New member function.
1421 (asm_language_data): Delete la_compute_program initializer.
1422 (minimal_language_data): Likewise.
1423 * c-lang.h (c_compute_program): Update comment.
1424 (cplus_compute_program): Likewise.
1425 * compile/compile-c-support.c (c_compute_program): Likewise.
1426 (cplus_compute_program): Likewise.
1427 * compile/compile.c (compile_to_object): Update call to
1428 la_compute_program.
1429 * d-lang.c (d_language_data): Delete la_compute_program
1430 initializer.
1431 * f-lang.c (f_language_data): Likewise.
1432 * go-lang.c (go_language_data): Likewise.
1433 * language.c (unknown_language_data): Likewise.
1434 (auto_language_data): Likewise.
1435 * language.h (language_data): Delete la_compute_program field.
1436 (language_defn::compute_program): New member function.
1437 * m2-lang.c (m2_language_data): Delete la_compute_program
1438 initializer.
1439 * objc-lang.c (objc_language_data): Likewise.
1440 * opencl-lang.c (opencl_language_data): Likewise.
1441 * p-lang.c (pascal_language_data): Likewise.
1442 * rust-lang.c (rust_language_data): Likewise.
1443
eff93b4d
AB
14442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * ada-lang.c (ada_language_data) Delete
1447 la_class_name_from_physname initializer.
1448 * c-lang.c (c_language_data): Likewise.
1449 (cplus_language_data): Likewise.
1450 (cplus_language::class_name_from_physname): New member function.
1451 (asm_language_data): Delete la_class_name_from_physname
1452 initializer.
1453 (minimal_language_data): Likewise.
1454 * d-lang.c (d_language_data): Likewise.
1455 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1456 method on language_defn class.
1457 (guess_full_die_structure_name): Likewise.
1458 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1459 initializer.
1460 * go-lang.c (go_language_data): Likewise.
1461 * language.c (language_class_name_from_physname): Delete.
1462 (unk_lang_class_name): Delete.
1463 (unknown_language_data): Delete la_class_name_from_physname
1464 initializer.
1465 (auto_language_data): Likewise.
1466 * language.h (language_data): Delete la_class_name_from_physname
1467 field.
1468 (language_defn::class_name_from_physname): New function.
1469 (language_class_name_from_physname): Delete declaration.
1470 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1471 initializer.
1472 * objc-lang.c (objc_language_data): Likewise.
1473 * opencl-lang.c (opencl_language_data): Likewise.
1474 * p-lang.c (pascal_language_data): Likewise.
1475 * rust-lang.c (rust_language_data): Likewise.
1476
de543742
TT
14772020-06-16 Tom Tromey <tom@tromey.com>
1478
1479 * tui/tui-data.h (STATUS_NAME): New macro.
1480 * tui/tui-layout.c (tui_remove_some_windows)
1481 (initialize_known_windows, tui_register_window)
1482 (tui_layout_split::remove_windows, initialize_layouts)
1483 (tui_new_layout_command): Don't use hard-coded window names.
1484
a350efd4
TT
14852020-06-16 Tom Tromey <tom@tromey.com>
1486
1487 PR tui/25348:
1488 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1489 tui_initialize_readline. Only run once. Call rl_initialize.
1490 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1491 tui_initialize_readline.
1492 * tui/tui-io.c (tui_setup_io): Call
1493 tui_ensure_readline_initialized.
1494 * tui/tui-interp.c (tui_interp::init): Update.
1495
39ec0490
TT
14962020-06-16 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1499 Also preserve the status window.
1500
d2d1ea20
TT
15012020-06-16 Tom Tromey <tom@tromey.com>
1502
1503 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1504 where m_window==nullptr.
1505
66920317
TT
15062020-06-15 Tom Tromey <tromey@adacore.com>
1507
1508 * windows-nat.c (windows_nat::handle_output_debug_string):
1509 Update.
1510 (windows_nat::handle_ms_vc_exception): Update.
1511 * target.h (target_read_string): Change API.
1512 * target.c (target_read_string): Change API.
1513 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1514 Update.
1515 * solib-frv.c (frv_current_sos): Update.
1516 * solib-dsbt.c (dsbt_current_sos): Update.
1517 * solib-darwin.c (darwin_current_sos): Update.
1518 * linux-thread-db.c (inferior_has_bug): Update.
1519 * expprint.c (print_subexp_standard): Update.
1520 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1521 (ada_exception_message_1): Update.
1522
a5d871dd
TT
15232020-06-15 Tom Tromey <tromey@adacore.com>
1524
1525 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1526
670e35fa
TT
15272020-06-15 Tom Tromey <tromey@adacore.com>
1528
1529 * valprint.c (read_string): Update comment.
1530 * target.c (MIN): Remove.
1531 (target_read_string): Rewrite.
1532
f5272a3b
TT
15332020-06-15 Tom Tromey <tromey@adacore.com>
1534
1535 * corefile.c (read_memory_string): Remove.
1536 * ada-valprint.c (ada_value_print_ptr): Update.
1537 * ada-lang.h (ada_tag_name): Change return type.
1538 * ada-lang.c (type_from_tag): Update.
1539 (ada_tag_name_from_tsd): Change return type. Use
1540 target_read_string.
1541 (ada_tag_name): Likewise.
1542 * gdbcore.h (read_memory_string): Don't declare.
1543
2c074f49
HD
15442020-06-14 Hannes Domani <ssbssa@yahoo.de>
1545
1546 * symtab.c (rbreak_command): Ignore Windows drive colon.
1547
6a17d503
SM
15482020-06-12 Simon Marchi <simon.marchi@efficios.com>
1549
1550 * NEWS: Mention removed GDBserver host support.
1551
453c733f
NC
15522020-06-12 Nelson Chu <nelson.chu@sifive.com>
1553
1554 * features/riscv/rebuild-csr-xml.sh: Updated.
1555
2b4e6a3f
TT
15562020-06-11 Tom Tromey <tom@tromey.com>
1557
1558 PR gdb/18318:
1559 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1560
4412332f
JG
15612020-06-09 Jonny Grant <jg@jguk.org>
15622020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * main.c (captured_main_1): Don't print new line after help.
1565 (print_gdb_help): add mailing list and IRC channel information
1566 to --help. Add new lines between items in the footer. Remove
1567 quotes around bug url.
1568
2f33032a
KS
15692020-06-11 Keith Seitz <keiths@redhat.com>
1570
1571 PR gdb/21356
1572 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1573 Resolve typedefs for type length calculations.
1574
7ab96794
TV
15752020-06-10 Tom de Vries <tdevries@suse.de>
1576
1577 PR ada/24713
1578 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1579 (write_psymbols): Enable .gdb_index for ada.
1580 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1581 ada.
1582
e5f3ece2
TV
15832020-06-10 Tom de Vries <tdevries@suse.de>
1584
1585 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1586 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1587 namei" instead of "const char *name" argument.
1588 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1589 dw2_symtab_iter_init.
1590
940da03e
SM
15912020-06-08 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1594 to use type::field and field::type instead.
1595
b6cdac4b
SM
15962020-06-08 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1599 to use field::type instead.
1600
5d14b6e5
SM
16012020-06-08 Simon Marchi <simon.marchi@efficios.com>
1602
1603 * gdbtypes.h (struct field) <type, set_type>: New methods.
1604 Rename `type` field to...
1605 <m_type>: ... this. Change references throughout to use type or
1606 set_type methods.
1607 (FIELD_TYPE): Use field::type. Change call sites that modify
1608 the field's type to use field::set_type instead.
1609
3d967001
SM
16102020-06-08 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1613 to use type::index_type instead.
1614
262abc0d
SM
16152020-06-08 Simon Marchi <simon.marchi@efficios.com>
1616
1617 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1618 methods.
1619 (TYPE_INDEX_TYPE): Use type::index_type.
1620 * gdbtypes.c (create_array_type_with_stride): Likewise.
1621
82836c92
TT
16222020-06-07 Tom Tromey <tom@tromey.com>
1623
1624 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1625 parameter.
1626 (generic_value_print): Update.
1627
940dace9
AB
16282020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 Revert commit 982a38f60b0.
1631 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1632
982a38f6
AB
16332020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1636 avoid use after free.
1637
82f06518
TV
16382020-06-05 Tom de Vries <tdevries@suse.de>
1639
1640 * NEWS: Fix typos.
1641
f8c41851
SM
16422020-06-04 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1645 the per_bfd object.
1646 (dwarf2_read_debug_names): Likewise.
1647 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1648 object when re-using a per_bfd object with an index.
1649
f9b5d5ea
TV
16502020-06-03 Tom de Vries <tdevries@suse.de>
1651
1652 PR symtab/26046
1653 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1654 children for C++.
1655 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1656 DW_TAG_subprogram.
1657
f6eee2d0
AB
16582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * ada-lang.c (ada_language_data): Delete skip_trampoline
1661 initializer.
1662 * c-lang.c (c_language_data): Likewise.
1663 (cplus_language_data): Likewise.
1664 (cplus_language::skip_trampoline): New member function.
1665 (asm_language_data): Delete skip_trampoline initializer.
1666 (minimal_language_data): Likewise.
1667 * d-lang.c (d_language_data): Likewise.
1668 * f-lang.c (f_language_data): Likewise.
1669 * go-lang.c (go_language_data): Likewise.
1670 * language.c (unk_lang_trampoline): Delete function.
1671 (skip_language_trampoline): Update.
1672 (unknown_language_data): Delete skip_trampoline initializer.
1673 (auto_language_data): Likewise.
1674 * language.h (language_data): Delete skip_trampoline field.
1675 (language_defn::skip_trampoline): New function.
1676 * m2-lang.c (m2_language_data): Delete skip_trampoline
1677 initializer.
1678 * objc-lang.c (objc_skip_trampoline): Delete function, move
1679 implementation to objc_language::skip_trampoline.
1680 (objc_language_data): Delete skip_trampoline initializer.
1681 (objc_language::skip_trampoline): New member function with
1682 implementation from objc_skip_trampoline.
1683 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1684 initializer.
1685 * p-lang.c (pascal_language_data): Likewise.
1686 * rust-lang.c (rust_language_data): Likewise.
1687
0a50df5d
AB
16882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1691 (ada_language::demangle): New member function.
1692 * c-lang.c (c_language_data): Delete la_demangle initializer.
1693 (cplus_language_data): Delete la_demangle initializer.
1694 (cplus_language::demangle): New member function.
1695 (asm_language_data): Delete la_demangle initializer.
1696 (minimal_language_data): Delete la_demangle initializer.
1697 * d-lang.c (d_language_data): Delete la_demangle initializer.
1698 (d_language::demangle): New member function.
1699 * f-lang.c (f_language_data): Delete la_demangle initializer.
1700 (f_language::demangle): New member function.
1701 * go-lang.c (go_language_data): Delete la_demangle initializer.
1702 (go_language::demangle): New member function.
1703 * language.c (language_demangle): Update.
1704 (unk_lang_demangle): Delete.
1705 (unknown_language_data): Delete la_demangle initializer.
1706 (unknown_language::demangle): New member function.
1707 (auto_language_data): Delete la_demangle initializer.
1708 (auto_language::demangle): New member function.
1709 * language.h (language_data): Delete la_demangle field.
1710 (language_defn::demangle): New function.
1711 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1712 * objc-lang.c (objc_language_data): Delete la_demangle
1713 initializer.
1714 (objc_language::demangle): New member function.
1715 * opencl-lang.c (opencl_language_data): Delete la_demangle
1716 initializer.
1717 * p-lang.c (pascal_language_data): Likewise.
1718 * rust-lang.c (rust_language_data): Likewise.
1719 (rust_language::demangle): New member function.
1720
fbfb0a46
AB
17212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * ada-lang.c (ada_language_data): Delete la_print_type
1724 initializer.
1725 (ada_language::print_type): New member function.
1726 * c-lang.c (c_language_data): Delete la_print_type initializer.
1727 (c_language::print_type): New member function.
1728 (cplus_language_data): Delete la_print_type initializer.
1729 (cplus_language::print_type): New member function.
1730 (asm_language_data): Delete la_print_type initializer.
1731 (asm_language::print_type): New member function.
1732 (minimal_language_data): Delete la_print_type initializer.
1733 (minimal_language::print_type): New member function.
1734 * d-lang.c (d_language_data): Delete la_print_type initializer.
1735 (d_language::print_type): New member function.
1736 * f-lang.c (f_language_data): Delete la_print_type initializer.
1737 (f_language::print_type): New member function.
1738 * go-lang.c (go_language_data): Delete la_print_type initializer.
1739 (go_language::print_type): New member function.
1740 * language.c (unk_lang_print_type): Delete.
1741 (unknown_language_data): Delete la_print_type initializer.
1742 (unknown_language::print_type): New member function.
1743 (auto_language_data): Delete la_print_type initializer.
1744 (auto_language::print_type): New member function.
1745 * language.h (language_data): Delete la_print_type field.
1746 (language_defn::print_type): New function.
1747 (LA_PRINT_TYPE): Update.
1748 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1749 (m2_language::print_type): New member function.
1750 * objc-lang.c (objc_language_data): Delete la_print_type
1751 initializer.
1752 (objc_language::print_type): New member function.
1753 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1754 to opencl_language::print_type.
1755 (opencl_language_data): Delete la_print_type initializer.
1756 (opencl_language::print_type): New member function, implementation
1757 from opencl_print_type.
1758 * p-lang.c (pascal_language_data): Delete la_print_type
1759 initializer.
1760 (pascal_language::print_type): New member function.
1761 * rust-lang.c (rust_print_type): Delete, implementation moved to
1762 rust_language::print_type.
1763 (rust_language_data): Delete la_print_type initializer.
1764 (rust_language::print_type): New member function, implementation
1765 from rust_print_type.
1766
6f827019
AB
17672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1770 implementation moves to...
1771 (ada_language::sniff_from_mangled_name): ...here. Update return
1772 type.
1773 (ada_language_data): Delete la_sniff_from_mangled_name
1774 initializer.
1775 * c-lang.c (c_language_data): Likewise.
1776 (cplus_language_data): Likewise.
1777 (cplus_language::sniff_from_mangled_name): New member function,
1778 implementation taken from gdb_sniff_from_mangled_name.
1779 (asm_language_data): Delete la_sniff_from_mangled_name
1780 initializer.
1781 (minimal_language_data): Likewise.
1782 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1783 implementation moves to cplus_language::sniff_from_mangled_name.
1784 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1785 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1786 moves to...
1787 (d_language::sniff_from_mangled_name): ...here.
1788 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1789 * f-lang.c (f_language_data): Likewise.
1790 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1791 moves to...
1792 (go_language::sniff_from_mangled_name): ...here.
1793 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1794 * language.c (language_sniff_from_mangled_name): Delete.
1795 (unknown_language_data): Delete la_sniff_from_mangled_name
1796 initializer.
1797 (auto_language_data): Likewise.
1798 * language.h (language_data): Delete la_sniff_from_mangled_name
1799 field.
1800 (language_defn::sniff_from_mangled_name): New function.
1801 (language_sniff_from_mangled_name): Delete declaration.
1802 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1803 field.
1804 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1805 implementation moves to...
1806 (objc_language::sniff_from_mangled_name): ...here.
1807 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1808 * opencl-lang.c (opencl_language_data): Likewise.
1809 * p-lang.c (pascal_language_data): Likewise.
1810 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1811 implementation moves to...
1812 (rust_language::sniff_from_mangled_name): ...here.
1813 (rust_language_data): Delete la_sniff_from_mangled_name
1814 initializer.
1815 * symtab.c (symbol_find_demangled_name): Call
1816 sniff_from_mangled_name member function.
1817
fb8006fd
AB
18182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1821 initializer.
1822 * c-lang.c (c_language_data): Likewise.
1823 (cplus_language_data): Likewise.
1824 (cplus_language::search_name_hash): New member function.
1825 (asm_language_data): Delete la_search_name_hash initializer.
1826 (minimal_language_data): Likewise.
1827 * d-lang.c (d_language_data): Likewise.
1828 * dictionary.c (default_search_name_hash): Rename to...
1829 (language_defn::search_name_hash): ...this.
1830 * f-lang.c (f_language_data): Likewise.
1831 (f_language::search_name_hash): New member function.
1832 * go-lang.c (go_language_data): Delete la_search_name_hash
1833 initializer.
1834 * language.c (unknown_language_data): Likewise.
1835 (auto_language_data): Likewise.
1836 * language.h (struct language_data): Delete la_search_name_hash
1837 field.
1838 (language_defn::search_name_hash): Declare new member function.
1839 (default_search_name_hash): Delete declaration.
1840 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1841 initializer.
1842 * objc-lang.c (objc_language_data): Likewise.
1843 * opencl-lang.c (opencl_language_data): Likewise.
1844 * p-lang.c (pascal_language_data): Likewise.
1845 * rust-lang.c (rust_language_data): Likewise.
1846 * symtab.c (search_name_hash): Update call.
1847
8e25bafe
AB
18482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1849
1850 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1851 initializer.
1852 * c-lang.c (class compile_instance): Declare.
1853 (c_language_data): Delete la_get_compile_instance initializer.
1854 (c_language::get_compile_instance): New member function.
1855 (cplus_language_data): Delete la_get_compile_instance initializer.
1856 (cplus_language::get_compile_instance): New member function.
1857 (asm_language_data): Delete la_get_compile_instance initializer.
1858 (minimal_language_data): Likewise.
1859 * c-lang.h (c_get_compile_context): Update comment.
1860 (cplus_get_compile_context): Update comment.
1861 * compile/compile.c (compile_to_object): Update calls, don't rely
1862 on function pointer being NULL.
1863 * d-lang.c (d_language_data): Delete la_get_compile_instance
1864 initializer.
1865 * f-lang.c (f_language_data): Likewise.
1866 * go-lang.c (go_language_data): Likewise.
1867 * language.c (unknown_language_data): Likewise.
1868 (auto_language_data): Likewise.
1869 * language.h (language_data): Delete la_get_compile_instance field.
1870 (language_defn::get_compile_instance): New member function.
1871 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1872 initializer.
1873 * objc-lang.c (objc_language_data): Likewise.
1874 * opencl-lang.c (opencl_language_data): Likewise.
1875 * p-lang.c (pascal_language_data): Likewise.
1876 * rust-lang.c (rust_language_data): Likewise.
1877
4009ee92
AB
18782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * ada-lang.c (ada_add_all_symbols): Update comment.
1881 (ada_iterate_over_symbols): Delete, move implementation to...
1882 (ada_language::iterate_over_symbols): ...here, a new member
1883 function, rewrite to use range based for loop.
1884 (ada_language_data): Delete la_iterate_over_symbols initializer.
1885 * c-lang.c (c_language_data): Likewise.
1886 (cplus_language_data): Likewise.
1887 (asm_language_data): Likewise.
1888 (minimal_language_data): Likewise.
1889 * d-lang.c (d_language_data): Likewise.
1890 * f-lang.c (f_language_data): Likewise.
1891 * go-lang.c (go_language_data): Likewise.
1892 * language.c (unknown_language_data): Likewise.
1893 (auto_language_data): Likewise.
1894 * language.h (language_data): Delete la_iterate_over_symbols field.
1895 (language_defn::iterate_over_symbols): New member function.
1896 (LA_ITERATE_OVER_SYMBOLS): Update.
1897 * linespec.c (iterate_over_all_matching_symtabs): Update.
1898 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1899 initializer.
1900 * objc-lang.c (objc_language_data): Likewise.
1901 * opencl-lang.c (opencl_language_data): Likewise.
1902 * p-lang.c (pascal_language_data): Likewise.
1903 * rust-lang.c (rust_language_data): Likewise.
1904
54f4ca46
AB
19052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1906
1907 * ada-lang.c (ada_language_data): Delete
1908 la_lookup_transparent_type initializer.
1909 * c-lang.c (c_language_data): Likewise.
1910 (cplus_language_data): Likewise.
1911 (cplus_language::lookup_transparent_type): New member function.
1912 (asm_language_data): Delete la_lookup_transparent_type
1913 initializer.
1914 (minimal_language_data): Likewise.
1915 * d-lang.c (d_language_data): Likewise.
1916 * f-lang.c (f_language_data): Likewise.
1917 * go-lang.c (go_language_data): Likewise.
1918 * language.c (unknown_language_data): Likewise.
1919 (auto_language_data): Likewise.
1920 * language.h (struct language_data): Delete
1921 la_lookup_transparent_type field.
1922 (language_defn::lookup_transparent_type): New member function.
1923 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1924 initializer.
1925 * objc-lang.c (objc_language_data): Likewise.
1926 * opencl-lang.c (opencl_language_data): Likewise.
1927 * p-lang.c (pascal_language_data): Likewise.
1928 * rust-lang.c (rust_language_data): Likewise.
1929 * symtab.c (symbol_matches_domain): Update call.
1930
1fb314aa
AB
19312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * ada-lang.c (ada_language_arch_info): Delete function, move
1934 implementation to...
1935 (ada_language::language_arch_info): ...here, a new member
1936 function.
1937 (ada_language_data): Delete la_language_arch_info.
1938 * c-lang.c (c_language_data): Likewise.
1939 (c_language::language_arch_info): New member function.
1940 (cplus_language_arch_info): Delete function, move
1941 implementation to...
1942 (cplus_language::language_arch_info): ...here, a new member
1943 function.
1944 (cplus_language_data): Delete la_language_arch_info.
1945 (asm_language_data): Likewise.
1946 (asm_language::language_arch_info): New member function.
1947 (minimal_language_data): Delete la_language_arch_info.
1948 (minimal_language::language_arch_info): New member function.
1949 * d-lang.c (d_language_arch_info): Delete function, move
1950 implementation to...
1951 (d_language::language_arch_info): ...here, a new member
1952 function.
1953 (d_language_data): Delete la_language_arch_info.
1954 * f-lang.c (f_language_arch_info): Delete function, move
1955 implementation to...
1956 (f_language::language_arch_info): ...here, a new member
1957 function.
1958 (f_language_data): Delete la_language_arch_info.
1959 * go-lang.c (go_language_arch_info): Delete function, move
1960 implementation to...
1961 (go_language::language_arch_info): ...here, a new member
1962 function.
1963 (go_language_data): Delete la_language_arch_info.
1964 * language.c (unknown_language_data): Likewise.
1965 (unknown_language::language_arch_info): New member function.
1966 (auto_language_data): Delete la_language_arch_info.
1967 (auto_language::language_arch_info): New member function.
1968 (language_gdbarch_post_init): Update call to
1969 la_language_arch_info.
1970 * language.h (language_data): Delete la_language_arch_info
1971 function pointer.
1972 (language_defn::language_arch_info): New function.
1973 * m2-lang.c (m2_language_arch_info): Delete function, move
1974 implementation to...
1975 (m2_language::language_arch_info): ...here, a new member
1976 function.
1977 (m2_language_data): Delete la_language_arch_info.
1978 * objc-lang.c (objc_language_arch_info): Delete function, move
1979 implementation to...
1980 (objc_language::language_arch_info): ...here, a new member
1981 function.
1982 (objc_language_data): Delete la_language_arch_info.
1983 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1984 implementation to...
1985 (opencl_language::language_arch_info): ...here, a new member
1986 function.
1987 (opencl_language_data): Delete la_language_arch_info.
1988 * p-lang.c (pascal_language_arch_info): Delete function, move
1989 implementation to...
1990 (pascal_language::language_arch_info): ...here, a new member
1991 function.
1992 (pascal_language_data): Delete la_language_arch_info.
1993 * rust-lang.c (rust_language_arch_info): Delete function, move
1994 implementation to...
1995 (rust_language::language_arch_info): ...here, a new member
1996 function.
1997 (rust_language_data): Delete la_language_arch_info.
1998
48448202
AB
19992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2002 initializer.
2003 * c-lang.c (c_language_data): Likewise.
2004 (cplus_language_data): Likewise.
2005 (cplus_language::pass_by_reference_info): New method.
2006 (asm_language_data): Delete la_pass_by_reference initializer.
2007 (minimal_language_data): Likewise.
2008 * cp-abi.c (cp_pass_by_reference): Remove use of
2009 default_pass_by_reference.
2010 * d-lang.c (d_language_data): Likewise.
2011 * f-lang.c (f_language_data): Likewise.
2012 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2013 default_pass_by_reference.
2014 * go-lang.c (go_language_data): Likewise.
2015 * language.c (language_pass_by_reference): Update.
2016 (default_pass_by_reference): Delete.
2017 (unknown_language_data): Delete la_pass_by_reference
2018 initializer.
2019 (auto_language_data): Likewise.
2020 * language.h (struct language_data): Delete la_pass_by_reference
2021 field.
2022 (language_defn::pass_by_reference_info): New member function.
2023 (default_pass_by_reference): Delete declaration.
2024 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2025 initializer.
2026 * objc-lang.c (objc_language_data): Likewise.
2027 * opencl-lang.c (opencl_language_data): Likewise.
2028 * p-lang.c (pascal_language_data): Likewise.
2029 * rust-lang.c (rust_language_data): Likewise.
2030
15e5fd35
AB
20312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 * ada-lang.c (ada_read_var_value): Delete function, move
2034 implementation to...
2035 (ada_language::read_var_value): ...here.
2036 (ada_language_data): Delete la_read_var_value initializer.
2037 * c-lang.c (c_language_data): Likewise.
2038 (cplus_language_data): Likewise.
2039 (minimal_language_data): Likewise.
2040 * d-lang.c (d_language_data): Likewise.
2041 * f-lang.c (f_language_data): Likewise.
2042 * findvar.c (default_read_var_value): Rename to...
2043 (language_defn::read_var_value): ...this.
2044 * findvar.c (read_var_value): Update header comment, and change to
2045 call member function instead of function pointer.
2046 * go-lang.c (go_language_data): Likewise.
2047 * language.c (unknown_language_data): Delete la_read_var_value
2048 initializer.
2049 (auto_language_data): Likewise.
2050 * language.h (struct language_data): Delete la_read_var_value
2051 field.
2052 (language_defn::read_var_value): New member function.
2053 (default_read_var_value): Delete declaration.
2054 * m2-lang.c (m2_language_data): Delete la_read_var_value
2055 initializer.
2056 * objc-lang.c (objc_language_data): Likewise.
2057 * opencl-lang.c (opencl_language_data): Likewise.
2058 * p-lang.c (pascal_language_data): Likewise.
2059 * rust-lang.c (rust_language_data): Likewise.
2060 * value.h (default_read_var_value): Delete declaration.
2061
5bd40f2a
AB
20622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * ada-lang.c (ada_print_array_index): Delete function, move
2065 implementation to...
2066 (ada_language::print_array_index): ...here.
2067 (ada_language_data): Delete la_print_array_index initializer.
2068 * c-lang.c (c_language_data): Likewise.
2069 (cplus_language_data): Likewise.
2070 (minimal_language_data): Likewise.
2071 * d-lang.c (d_language_data): Likewise.
2072 * f-lang.c (f_language_data): Likewise.
2073 * go-lang.c (go_language_data): Likewise.
2074 * language.c (default_print_array_index): Delete function, move
2075 implementation to...
2076 (language_defn::print_array_index): ...here.
2077 (unknown_language_data): Delete la_print_array_index initializer.
2078 (auto_language_data): Likewise.
2079 * language.h (struct language_data): Delete la_print_array_index
2080 field.
2081 (language_defn::print_array_index): New member function.
2082 (LA_PRINT_ARRAY_INDEX): Update.
2083 (default_print_array_index): Delete declaration.
2084 * m2-lang.c (m2_language_data): Delete la_print_array_index
2085 initializer.
2086 * objc-lang.c (objc_language_data): Likewise.
2087 * opencl-lang.c (opencl_language_data): Likewise.
2088 * p-lang.c (pascal_language_data): Likewise.
2089 * rust-lang.c (rust_language_data): Likewise.
2090
0874fd07
AB
20912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * gdb/ada-lang.c (ada_language_defn): Convert to...
2094 (ada_language_data): ...this.
2095 (class ada_language): New class.
2096 (ada_language_defn): New static global.
2097 * gdb/c-lang.c (c_language_defn): Convert to...
2098 (c_language_data): ...this.
2099 (class c_language): New class.
2100 (c_language_defn): New static global.
2101 (cplus_language_defn): Convert to...
2102 (cplus_language_data): ...this.
2103 (class cplus_language): New class.
2104 (cplus_language_defn): New static global.
2105 (asm_language_defn): Convert to...
2106 (asm_language_data): ...this.
2107 (class asm_language): New class.
2108 (asm_language_defn): New static global.
2109 (minimal_language_defn): Convert to...
2110 (minimal_language_data): ...this.
2111 (class minimal_language): New class.
2112 (minimal_language_defn): New static global.
2113 * gdb/d-lang.c (d_language_defn): Convert to...
2114 (d_language_data): ...this.
2115 (class d_language): New class.
2116 (d_language_defn): New static global.
2117 * gdb/f-lang.c (f_language_defn): Convert to...
2118 (f_language_data): ...this.
2119 (class f_language): New class.
2120 (f_language_defn): New static global.
2121 * gdb/go-lang.c (go_language_defn): Convert to...
2122 (go_language_data): ...this.
2123 (class go_language): New class.
2124 (go_language_defn): New static global.
2125 * gdb/language.c (unknown_language_defn): Remove declaration.
2126 (current_language): Initialize to nullptr, real initialization is
2127 moved to _initialize_language.
2128 (languages): Delete global.
2129 (language_defn::languages): Define.
2130 (set_language_command): Use language_defn::languages.
2131 (set_language): Likewise.
2132 (range_error): Likewise.
2133 (language_enum): Likewise.
2134 (language_def): Likewise.
2135 (add_set_language_command): Use language_def::languages for the
2136 language list, and language_def to lookup language pointers.
2137 (skip_language_trampoline): Use language_defn::languages.
2138 (unknown_language_defn): Convert to...
2139 (unknown_language_data): ...this.
2140 (class unknown_language): New class.
2141 (unknown_language_defn): New static global.
2142 (auto_language_defn): Convert to...
2143 (auto_language_data): ...this.
2144 (class auto_language): New class.
2145 (auto_language_defn): New static global.
2146 (language_gdbarch_post_init): Use language_defn::languages.
2147 (_initialize_language): Initialize current_language.
2148 * gdb/language.h (struct language_defn): Rename to...
2149 (struct language_data): ...this.
2150 (struct language_defn): New.
2151 (auto_language_defn): Delete.
2152 (unknown_language_defn): Delete.
2153 (minimal_language_defn): Delete.
2154 (ada_language_defn): Delete.
2155 (asm_language_defn): Delete.
2156 (c_language_defn): Delete.
2157 (cplus_language_defn): Delete.
2158 (d_language_defn): Delete.
2159 (f_language_defn): Delete.
2160 (go_language_defn): Delete.
2161 (m2_language_defn): Delete.
2162 (objc_language_defn): Delete.
2163 (opencl_language_defn): Delete.
2164 (pascal_language_defn): Delete.
2165 (rust_language_defn): Delete.
2166 * gdb/m2-lang.c (m2_language_defn): Convert to...
2167 (m2_language_data): ...this.
2168 (class m2_language): New class.
2169 (m2_language_defn): New static global.
2170 * gdb/objc-lang.c (objc_language_defn): Convert to...
2171 (objc_language_data): ...this.
2172 (class objc_language): New class.
2173 (objc_language_defn): New static global.
2174 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2175 (opencl_language_data): ...this.
2176 (class opencl_language): New class.
2177 (opencl_language_defn): New static global.
2178 * gdb/p-lang.c (pascal_language_defn): Convert to...
2179 (pascal_language_data): ...this.
2180 (class pascal_language): New class.
2181 (pascal_language_defn): New static global.
2182 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2183 language pointer, update comment format.
2184 * gdb/rust-lang.c (rust_language_defn): Convert to...
2185 (rust_language_data): ...this.
2186 (class rust_language): New class.
2187 (rust_language_defn): New static global.
2188
1313c56e
AB
21892020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2190
2191 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2192 member variable.
2193 <m_stmt_at_address>: New member variable.
2194 (lnp_state_machine::record_line): Don't record some lines, update
2195 tracking of is_stmt at the same address.
2196 (lnp_state_machine::lnp_state_machine): Initialise new member
2197 variables.
2198
b7ed9f3d
ST
21992020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2200
2201 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2202 "-include gnu-nat-mig.h".
2203 * gnu-nat-mig.h: New file.
2204 * gnu-nat.c: Include "gnu-nat-mig.h".
2205 (exc_server, msg_reply_server, notify_server,
2206 process_reply_server): Remove declarations.
2207
14a8ad62
ST
22082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2209
2210 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2211 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2212 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2213 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2214 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2215 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2216 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2217 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2218 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2219 to gnu_nat_target class.
2220 * gnu-nat.c: Likewise.
2221 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2222 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2223 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2224 object.
2225 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2226 instead of `gnu_target'.
2227
0af5e106
ST
22282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2229
2230 * i386-gnu-tdep.c: Include "gdbcore.h"
2231 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2232 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2233 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2234 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2235 i386_gnu_sigcontext_addr): New functions
2236 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2237 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2238 tdep.
2239
078f2fc9
ST
22402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2241
2242 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2243 before fork_inferior call. Avoid calling it if target_is_pushed returns
2244 true.
2245
53dff92c
ST
22462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2247
2248 * gnu-nat.h (gnu_target): New variable declaration.
2249 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2250 gnu_target.
2251 * gnu-nat.c (gnu_target): New variable.
2252 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2253 add_thread_silent, and add_thread calls.
2254 (gnu_nat_target::create_inferior): Pass gnu_target to
2255 add_thread_silent, thread_change_ptid call.
2256 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2257 call.
2258
5a8b8627
ST
22592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2260
2261 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2262 (gnu_nat_target::find_memory_regions): Remove unused
2263 `old_address' variable.
2264
366f550a
ST
22652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2266
2267 * gnu-nat.c: Include "gdbarch.h".
2268
f14871bf
ST
22692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2270
2271 * reply_mig_hack.awk (Error return): Cast function through
2272 void *, to bypass compiler function call check.
2273
c6887cfb
ST
22742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2275
2276 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2277 $(srcdir)/reply_mig_hack.awk.
2278
6930bffe
ST
22792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2280
2281 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2282
112c22ed
JG
22832020-05-30 Jonny Grant <jg@jguk.org>
2284
2285 * configure.ac (ACX_BUGURL): change bug URL to https.
2286
f68f85b5
PA
22872020-05-30 Pedro Alves <palves@redhat.com>
2288
2289 * cp-support.c (replace_typedefs_template): New.
2290 (replace_typedefs_qualified_name): Handle
2291 DEMANGLE_COMPONENT_TEMPLATE.
2292
976ca316
SM
22932020-05-29 Simon Marchi <simon.marchi@efficios.com>
2294
2295 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2296 dwarf2/index-cache.h, dwarf2/index-write.c,
2297 dwarf2/index-write.h, dwarf2/line-header.c,
2298 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2299 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2300 variables and fields from `dwarf2_per_objfile` to just
2301 `per_objfile` throughout.
2302
989ade05
SM
23032020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2304
2305 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2306 <push_dwarf_reg_entry_value>: Add comment.
2307
c47bae85
KB
23082020-05-28 Kevin Buettner <kevinb@redhat.com>
2309 Keith Seitz <keiths@redhat.com>
2310
2311 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2312 instead of PyEval_ReleaseLock.
2313 (class gdbpy_gil): Move to earlier in file.
2314 (finalize_python): Set gdb_python_initialized.
2315 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2316 when not initialized.
2317
44486dcf
SM
23182020-05-28 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2321 <push_dwarf_reg_entry_value>: Remove assert. Override
2322 per_objfile with caller_per_objfile.
2323
f030440d
TV
23242020-05-28 Tom de Vries <tdevries@suse.de>
2325
2326 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2327 PR gold/15646 workaround to symbol kind "type".
2328
f0fbb768
TT
23292020-05-27 Tom Tromey <tromey@adacore.com>
2330
2331 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2332
af0b2a3e
TT
23332020-05-27 Tom Tromey <tromey@adacore.com>
2334
2335 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2336 Use htab_find_with_hash.
2337 <add_abbrev>: Remove "abbrev_number" parameter.
2338 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2339 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2340 (hash_abbrev): Add comment.
2341 (abbrev_table::lookup_abbrev): Move to header file.
2342 (abbrev_table::read): Update.
2343
7d00ffec
TT
23442020-05-27 Tom Tromey <tromey@adacore.com>
2345
2346 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2347 method.
2348 <canonical_name>: New member.
2349 <raw_name>: Rename from "name".
2350 (partial_die_info): Initialize canonical_name.
2351 (scan_partial_symbols): Check raw_name.
2352 (partial_die_parent_scope, partial_die_full_name)
2353 (add_partial_symbol, add_partial_subprogram)
2354 (add_partial_enumeration, load_partial_dies): Use "name" method.
2355 (partial_die_info::name): New method.
2356 (partial_die_info::read, guess_partial_die_structure_name)
2357 (partial_die_info::fixup): Update.
2358
697bba18
TT
23592020-05-27 Tom Tromey <tromey@adacore.com>
2360
2361 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2362 <get_ref_die_offset>: Inline.
2363 <get_ref_die_offset_complaint>: New method.
2364 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2365 (attribute::get_ref_die_offset_complaint): Rename from
2366 get_ref_die_offset. Just issue complaint.
2367
c17ace43
HD
23682020-05-27 Hannes Domani <ssbssa@yahoo.de>
2369
2370 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2371
96445f0b
HD
23722020-05-27 Hannes Domani <ssbssa@yahoo.de>
2373
2374 * exec.c (exec_file_attach): Use errno value of first openp failure.
2375
ac637ec3
HD
23762020-05-27 Hannes Domani <ssbssa@yahoo.de>
2377
2378 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2379 Don't close thread handle.
2380
17ee85fc
TT
23812020-05-27 Tom Tromey <tom@tromey.com>
2382 Simon Marchi <simon.marchi@efficios.com>
2383
2384 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2385 shared_ptr.
2386 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2387 member.
2388 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2389 dwarf2_per_bfd_objfile_data_key>: New globals.
2390 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2391 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2392 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2393 shared.
2394 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2395 short-circuit when sharing.
2396 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2397 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2398
39b16f87
SM
23992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2402 to...
2403 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2404 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2405
fcf23d5b
SM
24062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2409 build_name_components, find_name_components_bounds>:
2410 Add per_objfile parameter.
2411 (struct mapped_index) <symbol_name_at>: Likewise.
2412 (struct mapped_debug_names): Remove constructor.
2413 <dwarf2_per_objfile>: Remove field.
2414 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2415 (mapped_index_base::find_name_components_bounds,
2416 mapped_index_base::build_name_components,
2417 dw2_expand_symtabs_matching_symbol): Likewise.
2418 (class mock_mapped_index) <symbol_name_at>: Likewise.
2419 (check_match): Likewise.
2420 (check_find_bounds_finds): Likewise.
2421 (test_mapped_index_find_name_component_bounds): Update.
2422 (CHECK_MATCH): Update.
2423 (dw2_expand_symtabs_matching): Update.
2424 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2425 per_objfile parameter.
2426 <find_vec_in_debug_names>: Likewise.
2427 <m_per_objfile>: New field.
2428 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2429 parameter.
2430 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2431 (dw2_debug_names_iterator::next): Update.
2432 (dw2_debug_names_lookup_symbol): Update.
2433 (dw2_debug_names_expand_symtabs_for_function): Update.
2434 (dw2_debug_names_map_matching_symbols): Update.
2435 (dw2_debug_names_expand_symtabs_matching): Update.
2436 (dwarf2_read_debug_names): Update.
2437
7188ed02
SM
24382020-05-27 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2441 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2442 move to dwarf2_per_objfile.
2443 <read_in_chain>: Remove.
2444 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2445 remove_all_cus, age_comp_units>: New methods.
2446 <m_dwarf2_cus>: New member.
2447 (struct dwarf2_per_cu_data) <cu>: Remove.
2448 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2449 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2450 moved to methods of dwarf2_per_objfile.
2451 (dwarf2_clear_marks): Remove.
2452 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2453 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2454 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2455 (dwarf2_per_objfile::remove_all_cus): New.
2456 (class free_cached_comp_units) <~free_cached_comp_units>:
2457 Update.
2458 (load_cu): Update.
2459 (dw2_do_instantiate_symtab): Adjust.
2460 (fill_in_sig_entry_from_dwo_entry): Adjust.
2461 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2462 (cutu_reader::cutu_reader): Likewise.
2463 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2464 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2465 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2466 and dwarf2_per_objfile::age_comp_units.
2467 (load_partial_comp_unit): Update.
2468 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2469 (process_queue): Likewise.
2470 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2471 backlink.
2472 (dwarf2_read_addr_index): Likewise.
2473 (follow_die_offset): Likewise.
2474 (dwarf2_fetch_die_loc_sect_off): Likewise.
2475 (dwarf2_fetch_constant_bytes): Likewise.
2476 (dwarf2_fetch_die_type_sect_off): Likewise.
2477 (follow_die_sig_1): Likewise.
2478 (load_full_type_unit): Likewise.
2479 (read_signatured_type): Likewise.
2480 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2481 (dwarf2_cu::~dwarf2_cu): Remove.
2482 (dwarf2_per_objfile::get_cu): New.
2483 (dwarf2_per_objfile::set_cu): New.
2484 (age_cached_comp_units): Rename to...
2485 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2486 to std::unordered_map.
2487 (free_one_cached_comp_unit): Rename to...
2488 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2489 to std::unordered_map.
2490 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2491 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2492 a dwarf2_per_objfile in data.
2493 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2494 (dwarf2_clear_marks): Remove.
2495
2e671100
SM
24962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2497
2498 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2499 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2500 (init_tu_and_read_dwo_dies): Likewise.
2501 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2502 (cutu_reader::cutu_reader): Likewise.
2503 (load_partial_comp_unit): Likewise.
2504 (process_psymtab_comp_unit): Update.
2505 (build_type_psymtabs_1): Update.
2506 (process_skeletonless_type_unit): Update.
2507 (load_full_comp_unit): Update.
2508 (find_partial_die): Update.
2509 (dwarf2_read_addr_index): Update.
2510 (read_signatured_type): Update.
2511
2e6a9f79
SM
25122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2515 m_header_read_in>: New fields.
2516 <get_header>: New method.
2517 * dwarf2/read.c (per_cu_header_read_in): Remove.
2518 (dwarf2_per_cu_data::get_header): New.
2519 (dwarf2_per_cu_data::addr_size): Update.
2520 (dwarf2_per_cu_data::offset_size): Update.
2521 (dwarf2_per_cu_data::ref_addr_size): Update.
2522
1b555f17
SM
25232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2526 (dw2_do_instantiate_symtab): Update.
2527 (queue_and_load_all_dwo_tus): Change parameter from
2528 dwarf2_per_cu_data to dwarf2_cu.
2529 (dwarf2_fetch_die_loc_sect_off): Update.
2530 (dwarf2_fetch_constant_bytes): Update.
2531 (dwarf2_fetch_die_type_sect_off): Update.
2532
8fc0b21d
SM
25332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2534
2535 * dwarf2/read.c (process_full_comp_unit,
2536 process_full_type_unit): Remove per_cu, per_objfile paramters.
2537 Add dwarf2_cu parameter.
2538 (process_queue): Update.
2539
168c9250
SM
25402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * dwarf2/read.c (create_cu_from_index_list): Replace
2543 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2544 (create_cus_from_index_list): Likewise.
2545 (create_cus_from_index): Likewise.
2546 (create_signatured_type_table_from_index): Likewise.
2547 (create_cus_from_debug_names_list): Likewise.
2548 (create_cus_from_debug_names): Likewise.
2549 (dwarf2_read_gdb_index): Update.
2550 (dwarf2_read_debug_names): Update.
2551
e286671b
TT
25522020-05-27 Tom Tromey <tom@tromey.com>
2553 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * dwarf2/read.h (struct dwarf2_per_objfile)
2556 <get_type_for_signatured_type, set_type_for_signatured_type>:
2557 New methods.
2558 <m_type_map>: New member.
2559 (struct signatured_type) <type>: Remove.
2560 * dwarf2/read.c
2561 (dwarf2_per_objfile::get_type_for_signatured_type,
2562 dwarf2_per_objfile::set_type_for_signatured_type): New.
2563 (get_signatured_type): Use new methods.
2564
8adb8487
TT
25652020-05-27 Tom Tromey <tom@tromey.com>
2566 Simon Marchi <simon.marchi@efficios.com>
2567
2568 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2569 (struct dwarf2_per_objfile) <type_units>: New member.
2570 <get_type_unit_group_unshareable>: New method.
2571 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2572 num_symtabs, symtabs>: Remove; move to
2573 type_unit_group_unshareable.
2574 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2575 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2576 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2577
127bbf4b
SM
25782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * dwarf2/read.h (struct dwarf2_per_cu_data):
2581 <dwarf2_per_objfile>: Remove.
2582 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2583 dwarf2_per_objfile.
2584 (create_signatured_type_table_from_index): Likewise.
2585 (create_signatured_type_table_from_debug_names): Likewise.
2586 (create_debug_type_hash_table): Likewise.
2587 (fill_in_sig_entry_from_dwo_entry): Likewise.
2588 (create_type_unit_group): Likewise.
2589 (read_comp_units_from_section): Likewise.
2590 (create_cus_hash_table): Likewise.
2591
f6e649dd
SM
25922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2593
2594 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2595 dwarf2_per_cu_data::dwarf2_per_objfile.
2596 (compute_compunit_symtab_includes): Likewise.
2597 (dwarf2_cu::start_symtab): Likewise.
2598
aa66c379
SM
25992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2602 parameter.
2603 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2604 (read_namespace_alias): Update.
2605 (lookup_die_type): Update.
2606 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2607 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2608 Update.
2609 (disassemble_dwarf_expression): Update.
2610
120ce1b5
SM
26112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * dwarf2/read.h (struct dwarf2_queue_item): Add
2614 dwarf2_per_objfile parameter, assign new parameter.
2615 <per_objfile>: New field.
2616 * dwarf2/read.c (free_one_cached_comp_unit): Add
2617 dwarf2_per_objfile parameter.
2618 (queue_comp_unit): Likewise.
2619 (dw2_do_instantiate_symtab): Update.
2620 (process_psymtab_comp_unit): Update.
2621 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2622 (process_imported_unit_die): Update.
2623 (queue_and_load_dwo_tu): Update.
2624 (follow_die_offset): Update.
2625 (follow_die_sig_1): Update.
2626
9f47c707
SM
26272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2628
2629 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2630 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2631 (read_call_site_scope): Assign per_objfile.
2632 (dwarf2_per_cu_data::objfile): Remove.
2633 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2634 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2635 dwarf2_per_objfile parameter.
2636 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2637 dwarf2_per_objfile parameter.
2638 (dwarf_expr_reg_to_entry_parameter): Add output
2639 dwarf2_per_objfile parameter.
2640 (locexpr_get_frame_base): Update.
2641 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2642 <push_dwarf_reg_entry_value>: Update.
2643 <call_site_to_target_addr>: Update.
2644 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2645 parameter.
2646 (value_of_dwarf_reg_entry): Update.
2647 (rw_pieced_value): Update.
2648 (indirect_synthetic_pointer): Update.
2649 (dwarf2_evaluate_property): Update.
2650 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2651 parameter.
2652 (locexpr_read_variable): Update.
2653 (locexpr_get_symbol_read_needs): Update.
2654 (loclist_read_variable): Update.
2655
14095eb3
SM
26562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2657
2658 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2659 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2660 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2661 parameter.
2662 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2663 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2664 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2665 parameter.
2666 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2667 sect_variable_value): Add dwarf2_per_objfile parameter.
2668 (class dwarf_evaluate_loc_desc) <dwarf_call,
2669 dwarf_variable_value>: Update.
2670 (fetch_const_value_from_synthetic_pointer): Add
2671 dwarf2_per_objfile parameter.
2672 (fetch_const_value_from_synthetic_pointer): Update.
2673 (coerced_pieced_ref): Update.
2674 (class symbol_needs_eval_context) <dwarf_call,
2675 dwarf_variable_value>: Update.
2676 (dwarf2_compile_expr_to_ax): Update.
2677
3c3cd3d4
SM
26782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2681 parameter.
2682 (dwarf2_evaluate_loc_desc_full): Update.
2683
82ca3f51
SM
26842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2685
2686 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2687 parameter.
2688 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2689 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2690 dwarf2_per_objfile parameter.
2691 (decode_debug_loc_dwo_addresses): Likewise.
2692 (dwarf2_find_location_expression): Update.
2693 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2694 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2695 parameter.
2696 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2697 parameter.
2698 (locexpr_describe_location_1): Likewise.
2699 (locexpr_describe_location): Update.
2700
4b167ea1
SM
27012020-05-27 Simon Marchi <simon.marchi@efficios.com>
2702
2703 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2704 Remove.
2705 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2706 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2707 (dwarf2_compile_property_to_c): Update.
2708 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2709 use text offset from objfile.
2710 (locexpr_tracepoint_var_ref): Update.
2711 (locexpr_generate_c_location): Update.
2712 (loclist_describe_location): Update.
2713 (loclist_tracepoint_var_ref): Update.
2714 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2715 dwarf2_per_objfile parameter.
2716 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2717 use text offset from objfile.
2718 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2719
89b07335
SM
27202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * dwarf2/expr.h (struct dwarf_expr_context)
2723 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2724 <offset>: Remove.
2725 <per_objfile>: New member.
2726 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2727 dwarf2_per_objfile parameter. Don't set offset, set
2728 per_objfile.
2729 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2730 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2731 a dwarf2_per_objfile object instead of an offset.
2732 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2733 constructor.
2734 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2735 to dwarf2_expr_executor constructor. Don't set offset.
2736 (dwarf2_fetch_cfa_info): Update.
2737 (struct dwarf2_frame_cache) <text_offset>: Remove.
2738 <per_objfile>: New field.
2739 (dwarf2_frame_cache): Update.
2740 (dwarf2_frame_prev_register): Update.
2741 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2742 <dwarf_evaluate_loc_desc>: Add constructor.
2743 (dwarf2_evaluate_loc_desc_full): Update.
2744 (dwarf2_locexpr_baton_eval): Update.
2745 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2746 Add constructor.
2747 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2748
293e7e51
SM
27492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2752 addr_sized_int_type>: Move to dwarf2_cu.
2753 <int_type>: Move to dwarf2_per_objfile.
2754 (struct dwarf2_per_objfile) <int_type>: Move here.
2755 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2756 addr_sized_int_type>: Move here.
2757 (read_func_scope): Update.
2758 (read_array_type): Update.
2759 (read_tag_string_type): Update.
2760 (attr_to_dynamic_prop): Update.
2761 (dwarf2_per_cu_data::int_type): Rename to...
2762 (dwarf2_per_objfile::int_type): ... this.
2763 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2764 (dwarf2_cu::addr_sized_int_type): ... this.
2765 (read_subrange_type): Update.
2766 (dwarf2_per_cu_data::addr_type): Rename to...
2767 (dwarf2_cu::addr_type): ... this.
2768 (set_die_type): Update.
2769
64874a40
SM
27702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2773 data through per_cu->cu.
2774
4ab09049
SM
27752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2778 dwarf2_per_cu_data parameter fo dwarf2_cu.
2779 (lookup_dwo_type_unit): Likewise.
2780 (read_cutu_die_from_dwo): Likewise.
2781 (lookup_dwo_unit): Likewise.
2782 (open_and_init_dwo_file): Likewise.
2783 (lookup_dwo_cutu): Likewise.
2784 (lookup_dwo_comp_unit): Likewise.
2785 (lookup_dwo_type_unit): Likewise.
2786 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2787 (cutu_reader::cutu_reader): Update.
2788
47b14e86
SM
27892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2792 parameter.
2793 (process_full_type_unit): Likewise.
2794 (process_queue): Update.
2795
43182c09
SM
27962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * dwarf2/read.c (recursively_compute_inclusions): Add
2799 dwarf2_per_objfile parameter.
2800 (compute_compunit_symtab_includes): Likewise.
2801 (process_cu_includes): Update.
2802
7aa104c4
SM
28032020-05-27 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2806 parameter.
2807 (create_type_unit_group): Update.
2808 (process_psymtab_comp_unit_reader): Update.
2809 (build_type_psymtabs_reader): Update.
2810
e3beb21d
SM
28112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2814 object through m_this_cu->cu.
2815
d460f660
SM
28162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2819 the info parameter.
2820 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2821
ab432490
SM
28222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2823
2824 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2825 per_objfile parameter.
2826 (load_full_type_unit): Add per_objfile parameter.
2827 (read_signatured_type): Likewise.
2828 (load_full_comp_unit): Likewise.
2829 (load_cu): Likewise.
2830 (dw2_do_instantiate_symtab): Likewise.
2831 (dw2_get_file_names): Likewise.
2832 (dw2_map_symtabs_matching_filename): Update.
2833 (dw_expand_symtabs_matching_file_matcher): Update.
2834 (dw2_map_symbol_filenames): Update.
2835 (process_psymtab_comp_unit): Add per_objfile parameter.
2836 (build_type_psymtabs_1): Update.
2837 (process_skeletonless_type_unit): Update.
2838 (dwarf2_build_psymtabs_hard): Update.
2839 (load_partial_comp_unit): Add per_objfile parameter.
2840 (scan_partial_symbols): Update.
2841 (load_full_comp_unit): Add per_objfile parameter.
2842 (process_imported_unit_die): Update.
2843 (create_cus_hash_table): Update.
2844 (find_partial_die): Update.
2845 (dwarf2_read_addr_index): Update.
2846 (follow_die_offset): Update.
2847 (dwarf2_fetch_die_loc_sect_off): Update.
2848 (dwarf2_fetch_constant_bytes): Update.
2849 (dwarf2_fetch_die_type_sect_off): Update.
2850 (follow_die_sig_1): Update.
2851 (load_full_type_unit): Add per_objfile parameter.
2852 (read_signatured_type): Likewise.
2853
313bad1b
SM
28542020-05-27 Simon Marchi <simon.marchi@efficios.com>
2855
2856 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2857 of objfile_name.
2858
c3699833
SM
28592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2860
2861 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2862 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2863 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2864 field.
2865 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2866 (create_cus_from_index): Update.
2867 (dwarf2_read_gdb_index): Update.
2868 (create_cus_from_debug_names): Update.
2869 (dwarf2_read_debug_names): Update.
2870 (get_abbrev_section_for_cu): Update.
2871 (create_all_comp_units): Update.
2872 (read_attribute_value): Update.
2873 (get_debug_line_section): Update.
2874 * dwarf2/index-cache.c (index_cache::store): Update.
2875 * dwarf2/index-write.c (save_gdb_index_command): Update.
2876 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2877
1859c670
SM
28782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2879
2880 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2881 member.
2882 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2883 dwarf2_per_cu_data::per_bfd.
2884 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2885 (create_type_unit_group): Likewise.
2886 (queue_comp_unit): Remove reference to
2887 per_cu->dwarf2_per_objfile.
2888 (maybe_queue_comp_unit): Likewise.
2889 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2890 (create_cus_hash_table): Assign new field.
2891
5e22e966
SM
28922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2893
2894 * dwarf2/read.c: Replace
2895 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2896 dwarf2_cu->per_objfile throughout.
2897
97a1449a
SM
28982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2899
2900 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2901 parameter, don't use per_cu->dwarf2_per_objfile.
2902 (dw2_instantiate_symtab): Likewise.
2903 (dw2_find_last_source_symtab): Update.
2904 (dw2_map_expand_apply): Update.
2905 (dw2_lookup_symbol): Update.
2906 (dw2_expand_symtabs_for_function): Update.
2907 (dw2_expand_all_symtabs): Update.
2908 (dw2_expand_symtabs_with_fullname): Update.
2909 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2910 don't use per_cu->dwarf2_per_objfile.
2911 (dw2_expand_marked_cus): Update.
2912 (dw2_find_pc_sect_compunit_symtab): Update.
2913 (dw2_debug_names_lookup_symbol): Update.
2914 (dw2_debug_names_expand_symtabs_for_function): Update.
2915 (dw2_debug_names_map_matching_symbols): Update.
2916 (dwarf2_psymtab::expand_psymtab): Update.
2917
9e021579
SM
29182020-05-27 Simon Marchi <simon.marchi@efficios.com>
2919
2920 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2921 <per_objfile>: New member.
2922 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2923 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2924 call to dwarf2_cu.
2925 (cutu_reader::cutu_reader): Update.
2926 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2927
ae090bdb
SM
29282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2931 struct dwarf2_per_objfile.
2932 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2933 dwarf2_per_bfd.
2934 * dwarf2/read.c (set_die_type): Update.
2935 (get_die_type_at_offset): Update.
2936
af758d11
SM
29372020-05-27 Tom Tromey <tom@tromey.com>
2938 Simon Marchi <simon.marchi@efficios.com>
2939
2940 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2941 method.
2942 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2943 get_symtab, set_symtab>: New methods.
2944 <m_symtabs>: New field.
2945 (struct dwarf2_psymtab): Derive from partial_symtab.
2946 <readin_p, get_compunit_symtab>: Declare methods.
2947 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2948 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2949 New methods.
2950 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2951 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2952 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2953 (dw2_symtab_iter_next, dw2_print_stats)
2954 (dw2_expand_symtabs_with_fullname)
2955 (dw2_expand_symtabs_matching_one)
2956 (dw_expand_symtabs_matching_file_matcher)
2957 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2958 (dw2_debug_names_iterator::next)
2959 (dw2_debug_names_map_matching_symbols)
2960 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2961 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2962 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2963 New methods.
2964 (get_compunit_symtab, process_full_comp_unit)
2965 (process_full_type_unit): Update.
2966 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2967
5989a64e
SM
29682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2971 then introduce a new dwarf2_per_objfile type.
2972 <read_line_string>: Move to the new dwarf2_per_objfile type.
2973 <objfile>: Likewise.
2974 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2975 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2976 dwarf2_per_objfile->per_bfd.
2977 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2978 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2979 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2980 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2981 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2982 (dwarf2_per_objfile::locate_sections): Rename to...
2983 (dwarf2_per_bfd::locate_sections): ... this.
2984 (dwarf2_per_objfile::get_cutu): Rename to...
2985 (dwarf2_per_bfd::get_cutu): ... this.
2986 (dwarf2_per_objfile::get_cu): Rename to...
2987 (dwarf2_per_bfd::get_cu): ... this.
2988 (dwarf2_per_objfile::get_tu): Rename to...
2989 (dwarf2_per_bfd::get_tu): ... this.
2990 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2991 (dwarf2_per_bfd::allocate_per_cu): ... this.
2992 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2993 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2994 (get_gdb_index_contents_ftype): Change parameter from
2995 dwarf2_per_objfile to dwarf2_per_bfd.
2996 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2997 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2998
a50264ba
TT
29992020-05-27 Tom Tromey <tom@tromey.com>
3000 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3003 (allocate_piece_closure): Set "per_objfile" member.
3004 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3005 (locexpr_describe_location, loclist_describe_location): Use new
3006 member.
3007 * dwarf2/read.c (read_call_site_scope)
3008 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3009 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3010 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3011 handle_data_member_location): Set per_objfile member.
3012 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3013 member.
3014 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3015
d3473f0c
TT
30162020-05-27 Tom Tromey <tom@tromey.com>
3017
3018 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3019 allocate_signatured_type>: Declare new methods.
3020 <m_num_psymtabs>: New member.
3021 (struct dwarf2_per_cu_data) <index>: New member.
3022 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3023 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3024 (create_cu_from_index_list): Use allocate_per_cu.
3025 (create_signatured_type_table_from_index)
3026 (create_signatured_type_table_from_debug_names)
3027 (create_debug_type_hash_table, add_type_unit)
3028 (read_comp_units_from_section): Use allocate_signatured_type.
3029
5717c425
TT
30302020-05-27 Tom Tromey <tom@tromey.com>
3031
3032 * psymtab.c (partial_map_expand_apply)
3033 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3034 (psym_lookup_global_symbol_language)
3035 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3036 (psym_print_stats, psym_expand_symtabs_for_function)
3037 (psym_map_symbol_filenames, psym_map_matching_symbols)
3038 (psym_expand_symtabs_matching)
3039 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3040 (maintenance_check_psymtabs): Update.
3041 * psympriv.h (struct partial_symtab) <readin_p,
3042 get_compunit_symtab>: Add objfile parameter.
3043 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3044 Likewise.
3045 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3046 get_compunit_symtab>: Likewise.
3047 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3048
45940949
TT
30492020-05-27 Tom Tromey <tom@tromey.com>
3050
3051 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3052 member.
3053 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3054 (create_cu_from_index_list)
3055 (create_signatured_type_table_from_index)
3056 (create_signatured_type_table_from_debug_names)
3057 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3058 (dwarf2_create_include_psymtab)
3059 (create_debug_type_hash_table, add_type_unit)
3060 (create_type_unit_group, read_comp_units_from_section)
3061 (dwarf2_compute_name, create_cus_hash_table)
3062 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3063 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3064 obstack.
3065 (dw2_get_real_path): Likewise. Change argument to
3066 dwarf2_per_objfile.
3067
f8c6d152
LM
30682020-05-27 Luis Machado <luis.machado@linaro.org>
3069
3070 PR tdep/26000
3071 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3072 for ldrd (immediate).
3073
e98d2e6d
PW
30742020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3075
3076 * command.h: Add comment giving the name of class_tui.
3077 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3078 create the fake command for the help for class_tui.
3079
53a47a3e
TT
30802020-05-26 Tom Tromey <tromey@adacore.com>
3081
3082 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3083 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3084 (val_atr): New function.
3085 (value_val_atr): Use it.
3086 * ada-valprint.c (print_optional_low_bound): Change low bound
3087 handling for enums.
3088 (val_print_packed_array_elements): Don't call discrete_position.
3089 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3090 discrete_position for enum types.
3091 * language.c (default_print_array_index): Change type.
3092 * language.h (struct language_defn) <la_print_array_index>: Add
3093 index_type parameter, change type of index_value.
3094 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3095 (default_print_array_index): Update.
3096 * valprint.c (maybe_print_array_index): Don't call
3097 value_from_longest. Update.
3098 (value_print_array_elements): Don't call discrete_position.
3099
0bc2354b
TT
31002020-05-26 Tom Tromey <tromey@adacore.com>
3101
3102 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3103 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3104
1218a4bf
CDA
31052020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3106
3107 PR gdb/13519
3108 * avr-tdep.c (avr_integer_to_address): Return data or code
3109 address accordingly to the second 'type' argument of the
3110 function.
3111
92651b1d
MW
31122020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3113
3114 * infcmd.c, inferior.h: (construct_inferior_arguments):
3115 Moved function from here to gdbsupport/common-inferior.{h,cc}
3116
0a4f5f8c
TT
31172020-05-23 Tom Tromey <tom@tromey.com>
3118
3119 Revert commit eca1f90c:
3120 * NEWS: Remove entry for completion styling.
3121 * completer.c (_rl_completion_prefix_display_length): Move
3122 declaration later.
3123 (gdb_fnprint): Revert.
3124 (gdb_display_match_list_1): Likewise.
3125 * cli/cli-style.c (completion_prefix_style)
3126 (completion_difference_style, completion_suffix_style): Remove.
3127 (_initialize_cli_style): Revert.
3128 * cli/cli-style.h (completion_prefix_style)
3129 (completion_difference_style, completion_suffix_style): Don't
3130 declare.
3131
e08bd6c5
PA
31322020-05-24 Pedro Alves <palves@redhat.com>
3133
3134 * symtab.c (completion_list_add_name): Return boolean indication
3135 of whether the symbol matched.
3136 (completion_list_add_symbol): Don't try to remove C++ aliases if
3137 the symbol didn't match in the first place.
3138 * symtab.h (completion_list_add_name): Return bool.
3139
ceacbf6e
SM
31402020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3141
3142 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3143 type::field.
3144
26f16254
JB
31452020-05-23 Joel Brobecker <brobecker@adacore.com>
3146
3147 GDB 9.2 released.
3148
eca1f90c
TT
31492020-05-23 Tom Tromey <tom@tromey.com>
3150
3151 * NEWS: Add entry for completion styling.
3152 * completer.c (_rl_completion_prefix_display_length): Move
3153 declaration earlier.
3154 (gdb_fnprint): Use completion_style.
3155 (gdb_display_match_list_1): Likewise.
3156 * cli/cli-style.c (completion_prefix_style)
3157 (completion_difference_style, completion_suffix_style): New
3158 globals.
3159 (_initialize_cli_style): Register new globals.
3160 * cli/cli-style.h (completion_prefix_style)
3161 (completion_difference_style, completion_suffix_style): Declare.
3162
51e2cfa2
PA
31632020-05-23 Pedro Alves <palves@redhat.com>
3164
3165 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3166 (parse_escape): Use ISDIGIT instead of isdigit.
3167 (puts_debug): Use gdb_isprint instead of isprint.
3168 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3169 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3170 ISSPACE instead of isspace.
3171 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3172 instead of isspace.
3173 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3174 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3175 instead of isxdigit and ISDIGIT instead of isdigit.
3176
80fc5e77
SM
31772020-05-22 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * gdbtypes.h (struct type) <field>: New method.
3180 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3181 or type::field.
3182
3cabb6b0
SM
31832020-05-22 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3186 (TYPE_FIELDS): Use type::fields. Change all call sites that
3187 modify the propery to use type::set_fields instead.
3188
1f704f76
SM
31892020-05-22 Simon Marchi <simon.marchi@efficios.com>
3190
3191 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3192 type::num_fields instead.
3193
5e33d5f4
SM
31942020-05-22 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3197 methods.
3198 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3199 that modify the number of fields to use type::set_num_fields
3200 instead.
3201
9392ebb3
TT
32022020-05-22 Tom Tromey <tromey@adacore.com>
3203
3204 * compile/compile-object-load.h (munmap_list_free): Don't
3205 declare.
3206
7c13f4e8
AB
32072020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 * annotate.c (annotate_source_line): Update return type, add call
3210 to update current symtab and line.
3211 * annotate.h (annotate_source_line): Update return type, and
3212 extend header comment.
3213 * source.c (info_line_command): Check annotation_level before
3214 calling annotate_source_line.
3215 * stack.c (print_frame_info): If calling annotate_source_line
3216 returns true, then don't print any other source line information.
3217
aa370940
SM
32182020-05-21 Simon Marchi <simon.marchi@efficios.com>
3219
3220 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3221
84d53fa9
SM
32222020-05-21 Simon Marchi <simon.marchi@efficios.com>
3223
3224 * coffread.c (patch_type): Remove NULL check before xfree.
3225 * corefile.c (set_gnutarget): Likewise.
3226 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3227 * exec.c (build_section_table): Likewise.
3228 * remote.c (remote_target::pass_signals): Likewise.
3229 * utils.c (n_spaces): Likewise.
3230 * cli/cli-script.c (document_command): Likewise.
3231 * i386-windows-tdep.c (core_process_module_section): Likewise.
3232 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3233
9d428aae
SM
32342020-05-20 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * symfile.c (reread_symbols): Clear objfile's section_offsets
3237 vector and section indices, re-compute them by calling
3238 sym_offsets.
3239
250106a7
TT
32402020-05-20 Tom Tromey <tromey@adacore.com>
3241
3242 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3243 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3244
9a0bacfb
TV
32452020-05-20 Tom de Vries <tdevries@suse.de>
3246
3247 PR symtab/25833
3248 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3249
7b958a48
AM
32502020-05-20 Alan Modra <amodra@gmail.com>
3251
3252 PR 25993
3253 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3254 bfd_set_filename.
3255 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3256 passed to bfd_set_filename.
3257 * symfile-mem.c (add_vsyscall_page): Likewise for string
3258 passed to symbol_file_add_from_memory.
3259 (symbol_file_add_from_memory): Make name param a const char* and
3260 don't strdup.
3261
c7e97679
AM
32622020-05-20 Alan Modra <amodra@gmail.com>
3263
3264 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3265 rather than accessing bfd->filename directly.
3266 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3267 and use bfd_section_name.
3268 * dwarf2/frame.c (decode_frame_entry): Likewise.
3269 * exec.c (exec_set_section_address): Likewise.
3270 * solib-aix.c (solib_aix_bfd_open): Likewise.
3271 * stap-probe.c (get_stap_base_address): Likewise.
3272 * symfile.c (reread_symbols): Likewise.
3273
563c591b
TT
32742020-05-19 Tom Tromey <tromey@adacore.com>
3275
3276 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3277
f408d82c
SM
32782020-05-19 Simon Marchi <simon.marchi@efficios.com>
3279
3280 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3281
98c59b52
PA
32822020-05-19 Pedro Alves <palves@redhat.com>
3283
3284 * NEWS (set exec-file-mismatch): Adjust entry.
3285 * exec.c: Include "build-id.h".
3286 (validate_exec_file): Try to match build IDs instead of filenames.
3287 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3288 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3289 and pass down 'warn_if_slow'.
3290 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3291 gdb_bfd_open_closure to pass it down.
3292 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3293
4111f652
PA
32942020-05-19 Pedro Alves <palves@redhat.com>
3295
3296 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3297 * target.c (target_fileio_open_1): Rename to target_fileio_open
3298 and make extern. Use bool.
3299 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3300 (target_fileio_read_alloc_1): Adjust.
3301 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3302 (target_fileio_open_warn_if_slow): Delete declaration.
3303
ad80db5b
PA
33042020-05-19 Pedro Alves <palves@redhat.com>
3305
3306 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3307 Adjust all callers.
3308
1d6ce4d3
YS
33092020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3310
3311 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3312 whether disp is negative.
3313
9005fbbb
SM
33142020-05-19 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * symfile.h (struct symfile_segment_data)
3317 <~symfile_segment_data>: Remove.
3318 <segment_info>: Change to std::vector.
3319 * symfile.c (default_symfile_segments): Update.
3320 * elfread.c (elf_symfile_segments): Update.
3321
68b888ff
SM
33222020-05-19 Simon Marchi <simon.marchi@efficios.com>
3323
3324 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3325 <segments>: New.
3326 <segment_bases, segment_sizes>: Remove.
3327 * symfile.c (default_symfile_segments): Update.
3328 * elfread.c (elf_symfile_segments): Update.
3329 * remote.c (remote_target::get_offsets): Update.
3330 * solib-target.c (solib_target_relocate_section_addresses):
3331 Update.
3332
62982abd
SM
33332020-05-19 Simon Marchi <simon.marchi@efficios.com>
3334
3335 * symfile.h (struct symfile_segment_data): Initialize fields.
3336 <~symfile_segment_data>: Add.
3337 (symfile_segment_data_up): New.
3338 (struct sym_fns) <sym_segments>: Return a
3339 symfile_segment_data_up.
3340 (default_symfile_segments): Return a symfile_segment_data_up.
3341 (free_symfile_segment_data): Remove.
3342 (get_symfile_segment_data): Return a symfile_segment_data_up.
3343 * symfile.c (default_symfile_segments): Likewise.
3344 (get_symfile_segment_data): Likewise.
3345 (free_symfile_segment_data): Remove.
3346 (symfile_find_segment_sections): Update.
3347 * elfread.c (elf_symfile_segments): Return a
3348 symfile_segment_data_up.
3349 * remote.c (remote_target::get_offsets): Update.
3350 * solib-target.c (solib_target_relocate_section_addresses):
3351 Update.
3352 * symfile-debug.c (debug_sym_segments): Return a
3353 symfile_segment_data_up.
3354
7f204339
RO
33552020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3356
e52a0f1b
RO
3357 PR build/25981
3358 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3359 Hardcode register numbers.
3360
7f204339
RO
3361 PR build/25981
3362 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3363 procfs_find_LDT_entry): Remove.
3364 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3365 procfs_find_LDT_entry): Remove.
3366 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3367 Remove.
3368
7f32a4d5
PA
33692020-05-17 Pedro Alves <palves@redhat.com>
3370 Andrew Burgess <andrew.burgess@embecosm.com>
3371 Keno Fischer <keno@juliacomputing.com>
3372
3373 PR gdb/25741
3374 * breakpoint.c (build_target_condition_list): Update comments.
3375 (build_target_command_list): Update comments and skip matching
3376 locations.
3377 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3378 a separate function. Simplify "set breakpoint auto-hw off"
3379 handling.
3380 (insert_breakpoints): Update comment.
3381 (tracepoint_locations_match): New parameter. For breakpoints,
3382 compare location types too, if the caller wants to.
3383 (handle_automatic_hardware_breakpoints): New functions.
3384 (bp_location_is_less_than): Also sort by location type and
3385 hardware breakpoint length.
3386 (update_global_location_list): Handle "set breakpoint auto-hw on"
3387 here.
3388 (update_breakpoint_locations): Ask breakpoint_locations_match to
3389 ignore location types.
3390
7d93a1e0
SM
33912020-05-16 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3394 type::name instead.
3395
d0e39ea2
SM
33962020-05-16 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * gdbtypes.h (struct type) <name, set_name>: New methods.
3399 (TYPE_CODE): Use type::name. Change all call sites used to set
3400 the name to use type::set_name instead.
3401
2dab0c7b
TT
34022020-05-16 Tom Tromey <tom@tromey.com>
3403
3404 * top.c (quit_force): Update.
3405 * infrun.c (handle_no_resumed): Update.
3406 * top.h (all_uis): New function.
3407 (ALL_UIS): Remove.
3408
59f7bd8d
SM
34092020-05-16 Simon Marchi <simon.marchi@efficios.com>
3410
3411 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3412
9bf058f0
PA
34132020-05-16 Pedro Alves <palves@redhat.com>
3414
3415 * ia64-linux-nat.c
3416 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3417 Declare method.
3418 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3419
8f86ae1a
SM
34202020-05-15 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3423 (sparc64_adi_info): Likewise.
3424
d6bc0792
TT
34252020-05-15 Tom Tromey <tom@tromey.com>
3426
3427 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3428 block_objfile.
3429 (lookup_objfile_from_block): Remove.
3430 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3431 (lookup_global_symbol): Use block_objfile.
3432 * symtab.h (lookup_objfile_from_block): Don't declare.
3433 * printcmd.c (clear_dangling_display_expressions): Use
3434 block_objfile.
3435 * parse.c (operator_check_standard): Use block_objfile.
3436
8c14c3a3
TT
34372020-05-15 Tom Tromey <tom@tromey.com>
3438
3439 * language.c (language_alloc_type_symbol): Set
3440 SYMBOL_SECTION.
3441 * symtab.c (initialize_objfile_symbol): Remove.
3442 (allocate_symbol): Remove.
3443 (allocate_template_symbol): Remove.
3444 * dwarf2/read.c (fixup_go_packaging): Use "new".
3445 (new_symbol): Use "new".
3446 (read_variable): Don't call initialize_objfile_symbol. Use
3447 "new".
3448 (read_func_scope): Use "new".
3449 * xcoffread.c (process_xcoff_symbol): Don't call
3450 initialize_objfile_symbol.
3451 (SYMBOL_DUP): Remove.
3452 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3453 "new".
3454 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3455 (allocate_template_symbol): Don't declare.
3456 (struct symbol): Add copy constructor. Change defaults.
3457 * jit.c (finalize_symtab): Use "new".
3458 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3459 Use "new".
3460 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3461 (common_block_end): Use "new".
3462 * mdebugread.c (parse_symbol): Use "new".
3463 (new_symbol): Likewise.
3464
5b4a1a8d
PW
34652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3466
3467 * NEWS: Mention changes to help and apropos.
3468
57b4f16e
PW
34692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3470
3471 * command.h (enum command_class): Improve comments, document
3472 that class_alias is for user-defined aliases, give the class
3473 name for each class, remove unused class_xdb.
3474 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3475 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3476 by a precise class.
3477 * infcmd.c (_initialize_infcmd): Likewise.
3478 * reverse.c (_initialize_reverse): Likewise.
3479 * stack.c (_initialize_stack): Likewise.
3480 * symfile.c (_initialize_symfile): Likewise.
3481 * tracepoint.c (_initialize_tracepoint): Likewise.
3482
7c05caf7
PW
34832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3484
3485 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3486 when their aliased command is traversed.
3487 (help_cmd): Add fput_command_names_styled call to
3488 output command name and aliases when command has an alias.
3489
3b3aaacb
PW
34902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3491
3492 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3493 * cli/cli-decode.c (help_cmd_list): Declare as static,
3494 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3495 a command together with the command.
3496 (fput_command_name_styled, fput_command_names_styled): New functions.
3497 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3498 fput_command_name_styled.
3499 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3500 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3501
7aa1b46f
PW
35022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3503
3504 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3505 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3506 * command.h (cmd_show_list): Likewise.
3507 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3508 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3509
89bcba74
PW
35102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3511
3512 * unittests/command-def-selftests.c (traverse_command_structure):
3513 Verify all commands of a list have the same prefix command and
3514 that only the top cmdlist commands have a null prefix.
3515
3f4d92eb
PW
35162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3517
3518 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3519 as prefix, not one of its aliases.
3520 (set_cmd_prefix): Remove.
3521 (do_add_cmd): Centralize the setting of the prefix of a command, when
3522 command is defined after its full chain of prefix commands.
3523 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3524 (add_setshow_cmd_full): Likewise.
3525 (update_prefix_field_of_prefixed_commands): New function.
3526 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3527 update_prefix_field_of_prefixed_commands.
3528 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3529 addresses of remote_set_cmdlist and remote_show_cmdlist given
3530 as argument, not the address of an argument.
3531 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3532 * gdb/remote.c (_initialize_remote): Likewise.
3533
0605465f
PW
35342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3535
3536 * cli/cli-cmds.c (alias_command): Check for an existing alias
3537 using lookup_cmd_composition, as valid_command_p is too strict
3538 and forbids aliases that are the prefix of an existing alias
3539 or command.
3540 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3541 command is properly recognised as a valid command.
3542
58e6ac70
PW
35432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3544
3545 * unittests/help-doc-selftests.c: Rename to
3546 unittests/command-def-selftests.c
3547 * unittests/command-def-selftests.c (help_doc_tests): Update some
3548 comments.
3549 (command_structure_tests, traverse_command_structure): New namespace
3550 and function.
3551 (command_structure_invariants_tests): New function.
3552 (_initialize_command_def_selftests) Renamed from
3553 _initialize_help_doc_selftests, register command_structure_invariants
3554 selftest.
3555
a7b9ceb8
PW
35562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3557
3558 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3559 an alias of 'show'.
3560
b2188a06
JB
35612020-05-15 Joel Brobecker <brobecker@adacore.com>
3562
3563 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3564 ada_is_fixed_point_type. Update all callers.
3565 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3566 all callers.
3567 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3568 Update all callers.
3569 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3570 print_fixed_point_type. Update all callers.
3571 * ada-valprint.c (ada_value_print_num): Replace call to
3572 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3573
a51951c2
KB
35742020-05-14 Kevin Buettner <kevinb@redhat.com>
3575
3576 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3577 processors.
3578 (cpu_supports_bts): Add CV_AMD case.
3579
29d6859f
LM
35802020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3581 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * infrun.c (stop_all_threads): Collect multiple wait events at
3584 each pass.
3585
78134374
SM
35862020-05-14 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3589 type::code instead.
3590
67607e24
SM
35912020-05-14 Simon Marchi <simon.marchi@efficios.com>
3592
3593 * gdbtypes.h (struct type) <code, set_code>: New methods.
3594 (TYPE_CODE): Use type::code. Change all call sites used to set
3595 the code to use type::set_code instead.
3596
a05575d3
TBA
35972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3598 Tom de Vries <tdevries@suse.de>
3599 Pedro Alves <palves@redhat.com>
3600
3601 PR threads/25478
3602 * infrun.c (stop_all_threads): Do NOT ignore
3603 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3604 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3605 received.
3606 (handle_no_resumed): Remove code handling a live inferior with no
3607 threads.
3608 * remote.c (has_single_non_exited_thread): New.
3609 (remote_target::update_thread_list): Do not delete a thread if is
3610 the last thread of the process.
3611 * thread.c (thread_select): Call delete_exited_threads instead of
3612 prune_threads.
3613
6ad82919
TBA
36142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615
3616 * infrun.c (stop_all_threads): Enable/disable thread events of all
3617 targets. Move a debug message denoting the end of the function
3618 into the SCOPED_EXIT block.
3619
d890404b
TBA
36202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3621
3622 * process-stratum-target.h: Include <set>.
3623 (all_non_exited_process_targets, switch_to_target_no_thread): New
3624 function declarations.
3625 * process-stratum-target.c (all_non_exited_process_targets)
3626 (switch_to_target_no_thread): New function implementations.
3627
293b3ebc
TBA
36282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3629
3630 * infrun.c (handle_inferior_event): Extract out a piece of code
3631 into...
3632 (mark_non_executing_threads): ...this new function.
3633
7ca9b62a
TBA
36342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3635
3636 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3637 use.
3638
fc75c28b
TBA
36392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3640
3641 * regcache.c (regcache_read_pc_protected): New function
3642 implementation that returns 0 if the PC cannot read via
3643 'regcache_read_pc'.
3644 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3645 instead of 'regcache_read_pc'.
3646 (keep_going_pass_signal): Ditto.
3647
a89febbd
TT
36482020-05-13 Tom Tromey <tromey@adacore.com>
3649
3650 * ada-lang.c (align_value): Remove.
3651 (ada_template_to_fixed_record_type_1): Use align_up.
3652
f7e23710
TBA
36532020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3654
3655 * async-event.c: Update the copyright year.
3656 * async-event.h: Update the copyright year.
3657
02ff80c2
SM
36582020-05-12 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * objfiles.h (is_addr_in_objfile,
3661 shared_objfile_contains_address_p): Return bool.
3662 * objfile.c (is_addr_in_objfile,
3663 shared_objfile_contains_address_p): Return bool.
3664
4fd6c7e8
TT
36652020-05-11 Tom Tromey <tromey@adacore.com>
3666
3667 * cli/cli-cmds.c (info_command): Restore.
3668 (_initialize_cli_cmds): Use add_prefix_command for "info".
3669 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3670
5eb68a39
TT
36712020-05-11 Tom Tromey <tromey@adacore.com>
3672
3673 * ada-lang.c (ada_value_primitive_field): Now public.
3674 * ada-lang.h (ada_value_primitive_field): Declare.
3675 * ada-valprint.c (print_field_values): Use
3676 ada_value_primitive_field for wrapper fields.
3677
7666722f
TV
36782020-05-11 Tom de Vries <tdevries@suse.de>
3679
3680 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3681 MODULE_DOMAIN.
3682
3ee6bb11
TV
36832020-05-11 Tom de Vries <tdevries@suse.de>
3684
3685 PR symtab/25941
3686 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3687 with length 0, if not gdb-produced.
3688 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3689
43434996
TV
36902020-05-09 Tom de Vries <tdevries@suse.de>
3691
3692 PR gdb/25955
3693 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3694 calculation.
3695
2f78cffc
TT
36962020-05-09 Tom Tromey <tom@tromey.com>
3697
3698 * top.c (server_command): Now bool.
3699 * top.h (server_command): Now bool.
3700
4f7bc5ed
TT
37012020-05-08 Tom Tromey <tromey@adacore.com>
3702
3703 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3704 already being processed.
3705
8be4b118
TT
37062020-05-08 Tom Tromey <tom@tromey.com>
3707
3708 * printcmd.c (struct display) <next>: Remove.
3709 <display>: New constructor.
3710 <exp_string>: Now a std::string.
3711 <enabled_p>: Now a bool.
3712 (display_number): Move definition earlier.
3713 (displays): Rename from display_chain. Now a std::vector.
3714 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3715 (display_command): Update.
3716 (do_one_display, disable_display)
3717 (enable_disable_display_command, do_enable_disable_display):
3718 Update.
3719 (free_display): Remove.
3720 (clear_displays): Rewrite.
3721 (delete_display): Update.
3722 (map_display_numbers): Use function_view. Remove "data"
3723 parameter. Update.
3724 (do_delete_display): Remove.
3725 (undisplay_command): Update.
3726 (do_one_display, do_displays, disable_display)
3727 (info_display_command): Update.
3728 (do_enable_disable_display): Remove.
3729 (enable_disable_display_command)
3730 (clear_dangling_display_expressions): Update.
3731
94c93c35
TT
37322020-05-08 Tom Tromey <tom@tromey.com>
3733
3734 * symtab.c (set_symbol_cache_size)
3735 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3736 (maintenance_print_symbol_cache_statistics): Update.
3737 * symmisc.c (print_symbol_bcache_statistics)
3738 (print_objfile_statistics, maintenance_print_objfiles)
3739 (maintenance_info_symtabs, maintenance_check_symtabs)
3740 (maintenance_expand_symtabs, maintenance_info_line_tables):
3741 Update.
3742 * symfile-debug.c (set_debug_symfile): Update.
3743 * source.c (forget_cached_source_info): Update.
3744 * python/python.c (gdbpy_progspaces): Update.
3745 * psymtab.c (maintenance_info_psymtabs): Update.
3746 * probe.c (parse_probes): Update.
3747 * linespec.c (iterate_over_all_matching_symtabs)
3748 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3749 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3750 * exec.c (exec_target::close): Update.
3751 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3752 * breakpoint.c (print_one_breakpoint_location)
3753 (create_longjmp_master_breakpoint)
3754 (create_std_terminate_master_breakpoint): Update.
3755 * progspace.c (program_spaces): Now a std::vector.
3756 (maybe_new_address_space): Update.
3757 (add_program_space): Remove.
3758 (program_space::program_space): Update.
3759 (remove_program_space): Update.
3760 (number_of_program_spaces): Remove.
3761 (print_program_space, update_address_spaces): Update.
3762 * progspace.h (program_spaces): Change type.
3763 (ALL_PSPACES): Remove.
3764 (number_of_program_spaces): Don't declare.
3765 (struct program_space) <next>: Remove.
3766
a1fd1ac9
TT
37672020-05-08 Tom Tromey <tom@tromey.com>
3768
3769 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3770 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3771 (enable_break): Update.
3772 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3773 (frv_fdpic_find_canonical_descriptor): Update.
3774 (frv_fetch_objfile_link_map): Update.
3775 * progspace.c (program_space::free_all_objfiles): Update.
3776 (program_space::solibs): New method.
3777 * progspace.h (struct program_space) <solibs>: New method.
3778 * solist.h (master_so_list): Don't declare.
3779 (ALL_SO_LIBS): Remove.
3780 * solib.h (so_list_head): Remove.
3781 (update_solib_list): Update comment.
3782 * solib.c (master_so_list): Remove.
3783 (solib_used, update_solib_list, solib_add)
3784 (info_sharedlibrary_command, clear_solib)
3785 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3786
38eae084
TT
37872020-05-08 Tom Tromey <tom@tromey.com>
3788
3789 * extension.c (extension_languages): Now a std::array.
3790 (ALL_EXTENSION_LANGUAGES): Remove.
3791 (get_ext_lang_defn, get_ext_lang_of_file)
3792 (eval_ext_lang_from_control_command): Update.
3793 (finish_ext_lang_initialization)
3794 (auto_load_ext_lang_scripts_for_objfile)
3795 (ext_lang_type_printers::ext_lang_type_printers)
3796 (apply_ext_lang_type_printers)
3797 (ext_lang_type_printers::~ext_lang_type_printers)
3798 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3799 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3800 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3801 (get_matching_xmethod_workers, ext_lang_colorize)
3802 (ext_lang_before_prompt): Update.
3803 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3804
596dc4ad
TT
38052020-05-08 Tom Tromey <tom@tromey.com>
3806
3807 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3808 overload.
3809 <swap_string, m_string>: Remove.
3810 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3811 Update.
3812 * stabsread.c (define_symbol, read_type): Update.
3813 * linespec.c (find_linespec_symbols): Update.
3814 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3815 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3816 * dbxread.c (read_dbx_symtab): Update.
3817 * cp-support.h (cp_canonicalize_string_full)
3818 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3819 Return unique_xmalloc_ptr.
3820 * cp-support.c (inspect_type): Update.
3821 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3822 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3823 Likewise.
3824 * c-typeprint.c (print_name_maybe_canonical): Update.
3825 * break-catch-throw.c (check_status_exception_catchpoint):
3826 Update.
3827
bf4cb9be
TV
38282020-05-08 Tom de Vries <tdevries@suse.de>
3829
3830 * infrun.c (follow_fork): Copy current_line and current_symtab to
3831 child thread.
3832
a1b68f28
SM
38332020-05-07 Simon Marchi <simon.marchi@efficios.com>
3834
3835 * async-event.c (struct async_signal_handler, struct
3836 async_event_handler): Reformat, remove typedef.
3837
98d48915
SM
38382020-05-07 Simon Marchi <simon.marchi@efficios.com>
3839
3840 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3841 access thistype->main_type->dyn_prop_list directly.
3842
7aa91313
SM
38432020-05-07 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3846 (remove_dyn_prop): Remove. Update all users to use
3847 type::remove_dyn_prop.
3848 * gdbtypes.c (remove_dyn_prop): Rename to...
3849 (type::remove_dyn_prop): ... this.
3850
5c54719c
SM
38512020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3852
3853 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3854 (add_dyn_prop): Remove. Update all users to use
3855 type::add_dyn_prop.
3856 * gdbtypes.c (add_dyn_prop): Rename to...
3857 (type::add_dyn_prop): ... this.
3858
24e99c6c
SM
38592020-05-07 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3862 (get_dyn_prop): Remove. Update all users to use
3863 type::dyn_prop.
3864 * gdbtypes.c (get_dyn_prop): Rename to...
3865 (type::dyn_prop): ... this.
3866
0d4bf016
SM
38672020-05-06 Simon Marchi <simon.marchi@efficios.com>
3868
3869 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3870
ac4a4f1c
SM
38712020-05-06 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3874 instruction, skip it if it's there.
3875
a3bbacc1
SM
38762020-05-05 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3879
c3236f84
SM
38802020-05-04 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3883 * gdbtypes.c (recursive_dump_type): Remove use of
3884 TYPE_INCOMPLETE.
3885
3b6acaee
TT
38862020-05-03 Tom Tromey <tom@tromey.com>
3887
3888 * breakpoint.c (catch_command, tcatch_command): Remove.
3889 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3890 add_show_prefix_cmd.
3891 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3892 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3893 Remove.
3894 (add_internal_problem_command): Use add_basic_prefix_cmd,
3895 add_show_prefix_cmd.
3896 * mips-tdep.c (set_mipsfpu_command): Remove.
3897 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3898 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3899 (_initialize_index_cache): Use add_basic_prefix_cmd.
3900 * memattr.c (dummy_cmd): Remove.
3901 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3902 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3903 (_initialize_tui_win): Use add_basic_prefix_cmd,
3904 add_show_prefix_cmd.
3905 * cli/cli-logging.c (set_logging_command): Remove.
3906 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3907 add_show_prefix_cmd.
3908 (show_logging_command): Remove.
3909 * target.c (target_command): Remove.
3910 (add_target): Use add_basic_prefix_cmd.
3911
a51119cd
HD
39122020-05-02 Hannes Domani <ssbssa@yahoo.de>
3913
3914 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3915
652fc23a 39162020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3917
652fc23a
PW
3918 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3919 info_command.
3920
117539e6
KR
39212020-04-30 Kamil Rytarowski <n54@gmx.com>
3922
3923 * nbsd-nat.c (nbsd_enable_proc_events)
3924 (nbsd_nat_target::post_startup_inferior): Add.
3925 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3926 (nbsd_nat_target::update_thread_list): Rewrite.
3927 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3928 "PTRACE_LWP_CREATE".
3929 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3930
102e38eb 39312020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3932
102e38eb
PW
3933 * stack.c (_initialize_stack): Remove duplicated creation
3934 of "frame" command and "f" alias.
3935
ee9d1e5f
HD
39362020-04-30 Hannes Domani <ssbssa@yahoo.de>
3937
3938 PR gdb/18706
3939 * gdbtypes.c (check_typedef): Calculate size of array of
3940 stubbed type.
3941
627c7fb8
HD
39422020-04-30 Hannes Domani <ssbssa@yahoo.de>
3943
3944 PR gdb/15559
3945 * i386-tdep.c (i386_push_dummy_call): Call
3946 i386_thiscall_push_dummy_call.
3947 (i386_thiscall_push_dummy_call): New function.
3948 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3949 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3950 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3951
ffc2844e
SM
39522020-04-29 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * gdbarch.sh (do_read): Add shellcheck disable directive for
3955 warning SC2162.
3956
1207375d
SM
39572020-04-29 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3960 "referenced but not assigned" warning.
3961
9fdb2916
SM
39622020-04-29 Simon Marchi <simon.marchi@efficios.com>
3963
3964 * gdbarch.sh: Remove code that sets fallbackdefault.
3965
759cea5e
SM
39662020-04-29 Simon Marchi <simon.marchi@efficios.com>
3967
3968 * gdbarch.sh: Use shell operators && and || instead of
3969 -a and -o.
3970
cb02ab24
SM
39712020-04-29 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * gdbarch.sh: Use $(...) instead of `...`.
3974
a6fc5ffc
SM
39752020-04-29 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * gdbarch.sh: Use double quotes around variables.
3978
8d113d13
SM
39792020-04-29 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * gdbarch.sh: Use %s with printf, instead of variables in the
3982 format string.
3983
ed6acedd
TT
39842020-04-29 Tom Tromey <tromey@adacore.com>
3985
3986 PR ada/25875:
3987 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3988 type fields here.
3989 (read_enumeration_type): Call
3990 update_enumeration_type_from_children later. Update comments.
3991 (process_enumeration_scope): Don't create type fields.
3992
b68b1b58
KR
39932020-04-29 Kamil Rytarowski <n54@gmx.com>
3994
3995 * nbsd-tdep.c: Include "xml-syscall.h".
3996 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3997
f94b2e03
KR
39982020-04-29 Kamil Rytarowski <n54@gmx.com>
3999
4000 * nbsd-nat.c: Include "sys/wait.h".
4001 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4002 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4003 (nbsd_nat_target::remove_exec_catchpoint)
4004 (nbsd_nat_target::set_syscall_catchpoint): Add.
4005 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4006 (nbsd_nat_target::insert_exec_catchpoint)
4007 (nbsd_nat_target::remove_exec_catchpoint)
4008 (nbsd_nat_target::set_syscall_catchpoint): Add.
4009 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4010 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4011 `nbsd_get_syscall_number'.
4012
fc49bc72
TT
40132020-04-29 Tom Tromey <tom@tromey.com>
4014
4015 * stack.c (print_block_frame_labels): Remove.
4016
d642b692
HD
40172020-04-29 Hannes Domani <ssbssa@yahoo.de>
4018
4019 PR gdb/17320
4020 * ada-valprint.c (val_print_packed_array_elements): Move array
4021 end bracket to new line.
4022 (ada_val_print_string): Remove extra spaces before first array
4023 element.
4024 * c-valprint.c (c_value_print_array): Likewise.
4025 * m2-valprint.c (m2_print_array_contents): Likewise.
4026 (m2_value_print_inner): Likewise.
4027 * p-valprint.c (pascal_value_print_inner): Likewise.
4028 * valprint.c (generic_val_print_array): Likewise.
4029 (value_print_array_elements): Move first array element and array
4030 end bracket to new line.
4031
ea90f227
TV
40322020-04-29 Tom de Vries <tdevries@suse.de>
4033
4034 PR symtab/25889
4035 * linespec.c (find_method): Fix ix calculation.
4036
4498ef4f
KR
40372020-04-28 Kamil Rytarowski <n54@gmx.com>
4038
4039 * syscalls/update-netbsd.sh: New file.
4040 * syscalls/netbsd.xml: Regenerate.
4041 * data-directory/Makefile.in: Register `netbsd.xml' in
4042 `SYSCALLS_FILES'.
4043
a55e30b5
SM
40442020-04-28 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * syscalls/update-freebsd.sh: Add double quotes.
4047
2b2fbab8
TT
40482020-04-28 Tom Tromey <tom@tromey.com>
4049
4050 * NEWS: Update.
4051 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4052 (cmdpy_init): Allow class_tui.
4053
a65189c9
TV
40542020-04-28 Mark Williams <mark@myosotissp.com>
4055
4056 PR gdb/24480
4057 * dwarf2read.c: Add missing assingments to list_in_scope when
4058 start_symtab was already called.
4059
1b95cdb7
SM
40602020-04-28 Simon Marchi <simon.marchi@efficios.com>
4061
4062 PR gdb/25881
4063 * dwarf2/read.c (offset_map_type): Use
4064 gdb:hash_enum<sect_offset> as hash function.
4065
15cd93d0
TV
40662020-04-28 Tom de Vries <tdevries@suse.de>
4067
4068 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4069 with DW_AT_signature.
4070
1eb39914
SM
40712020-04-27 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * configure.ac: Remove check for fs_base/gs_base in
4074 user_regs_struct.
4075 * configure: Re-generate.
4076 * config.in: Re-generate.
4077 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4078 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4079 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4080
991a3e2e
LM
40812020-04-27 Luis Machado <luis.machado@linaro.org>
4082
4083 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4084 problematic inline frame unwinding situation.
4085 * frame.c (frame_id_computed_p): New function.
4086 * frame.h (frame_id_computed_p): New prototype.
4087
361ba0e8
TT
40882020-04-26 Tom Tromey <tom@tromey.com>
4089
4090 * command.h (enum command_class) <class_pseudo>: Remove.
4091
bc3609fd
PW
40922020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4093
4094 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4095 and whitespace.
4096
b9771db7
KR
40972020-04-25 Kamil Rytarowski <n54@gmx.com>
4098
ec16513e
SM
4099 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4100 `PT_GET_PROCESS_STATE' block.
b9771db7 4101
7151c1af
TT
41022020-04-24 Tom Tromey <tom@tromey.com>
4103
4104 * symtab.h (symbol_get_demangled_name): Don't declare.
4105 * symtab.c (symbol_get_demangled_name): Remove.
4106 (general_symbol_info::natural_name)
4107 (general_symbol_info::demangled_name): Update.
4108
906bb4c5
TT
41092020-04-24 Tom Tromey <tom@tromey.com>
4110
4111 PR rust/25025:
4112 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4113
bcfe6157
TT
41142020-04-24 Tom Tromey <tom@tromey.com>
4115
4116 PR symtab/12707:
4117 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4118 exists.
4119 (new_symbol): Likewise.
4120 * compile/compile-object-load.c (get_out_value_type): Use
4121 symbol_matches_search_name.
4122
f049a313
TT
41232020-04-24 Tom Tromey <tom@tromey.com>
4124
4125 * dwarf2/read.c (add_partial_symbol): Do not call
4126 compute_and_set_names.
4127
76e288d1
TT
41282020-04-24 Tom Tromey <tom@tromey.com>
4129
4130 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4131 overload.
4132
2467f4f6
TT
41332020-04-24 Tom Tromey <tom@tromey.com>
4134
4135 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4136 (add_psymbol_to_list): New overload. Make old overload call new
4137 one.
4138 * psympriv.h (add_psymbol_to_list): New overload.
4139
e61108c9
TT
41402020-04-24 Tom Tromey <tom@tromey.com>
4141
4142 * dwarf2/read.c (partial_die_info::read) <case
4143 DW_AT_linkage_name>: Use value_as_string.
4144 (dwarf2_string_attr): Use value_as_string.
4145 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4146 method.
4147 * dwarf2/attribute.c (attribute::value_as_string): New method.
4148
8c87a452
TT
41492020-04-24 Tom Tromey <tom@tromey.com>
4150
4151 * symtab.c (general_symbol_info::natural_name)
4152 (general_symbol_info::demangled_name): Check for language_rust.
4153
787de330
TT
41542020-04-24 Tom Tromey <tom@tromey.com>
4155
4156 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4157 (dwarf2_physname): ... from here.
4158 (partial_die_info::read): Add Rust "{" hack.
4159
ff985671
TT
41602020-04-24 Tom Tromey <tom@tromey.com>
4161
4162 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4163 method.
4164 (symbol_set_demangled_name): Don't declare.
4165 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4166 symbol_set_demangled_name.
4167 (general_symbol_info::set_language)
4168 (general_symbol_info::compute_and_set_names): Update.
4169 * minsyms.c (minimal_symbol_reader::install): Update.
4170 * dwarf2/read.c (new_symbol): Update.
4171
1acda803
TT
41722020-04-24 Tom Tromey <tromey@adacore.com>
4173
4174 PR python/23662:
4175 * python/py-type.c (convert_field): Handle
4176 FIELD_LOC_KIND_DWARF_BLOCK.
4177 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4178 (typy_get_dynamic): Nw function.
4179 (type_object_getset): Add "dynamic".
4180 * NEWS: Add entry.
4181
d656f129
TT
41822020-04-24 Tom Tromey <tromey@adacore.com>
4183
4184 * ada-typeprint.c (print_choices, print_variant_part)
4185 (print_record_field_types_dynamic): New functions.
4186 (print_record_field_types): Use print_record_field_types_dynamic.
4187
7d79de9a
TT
41882020-04-24 Tom Tromey <tromey@adacore.com>
4189
4190 * dwarf2/read.c (handle_data_member_location): New overload.
4191 (dwarf2_add_field): Use it.
4192 (decode_locdesc): Add "computed" parameter. Update comment.
4193 * gdbtypes.c (is_dynamic_type_internal): Also look for
4194 FIELD_LOC_KIND_DWARF_BLOCK.
4195 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4196 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4197 virtual base classes.
4198 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4199 FIELD_LOC_KIND_DWARF_BLOCK.
4200
f8e89861
TT
42012020-04-24 Tom Tromey <tromey@adacore.com>
4202
4203 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4204 * gdbtypes.c (is_dynamic_type_internal): Check
4205 TYPE_HAS_DYNAMIC_LENGTH.
4206 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4207 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4208 New macros.
4209 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4210 constant.
4211
9c6a1327
TT
42122020-04-24 Tom Tromey <tromey@adacore.com>
4213
4214 * dwarf2/read.c (struct variant_field): Rewrite.
4215 (struct variant_part_builder): New.
4216 (struct nextfield): Remove "variant" field. Add "offset".
4217 (struct field_info): Add "current_variant_part" and
4218 "variant_parts".
4219 (alloc_discriminant_info): Remove.
4220 (alloc_rust_variant): New function.
4221 (quirk_rust_enum): Update.
4222 (dwarf2_add_field): Set "offset" member. Don't handle
4223 DW_TAG_variant_part.
4224 (offset_map_type): New typedef.
4225 (convert_variant_range, create_one_variant)
4226 (create_one_variant_part, create_variant_parts)
4227 (add_variant_property): New functions.
4228 (dwarf2_attach_fields_to_type): Call add_variant_property.
4229 (read_structure_type): Don't handle DW_TAG_variant_part.
4230 (handle_variant_part, handle_variant): New functions.
4231 (handle_struct_member_die): Use them.
4232 (process_structure_scope): Don't handle variant parts.
4233 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4234 (struct discriminant_info): Remove.
4235 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4236 (struct main_type) <flag_discriminated_union>: Remove.
4237 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4238 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4239 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4240 Update.
4241 * valops.c (value_union_variant): Remove.
4242 * value.h (value_union_variant): Don't declare.
4243
b249d2c2
TT
42442020-04-24 Tom Tromey <tromey@adacore.com>
4245
4246 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4247 (ada_value_primitive_packed_val): Update.
4248 * ada-valprint.c (ada_value_print_1): Update.
4249 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4250 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4251 just an address. Use evaluate_for_locexpr_baton.
4252 (dwarf2_evaluate_property): Update.
4253 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4254 array_view.
4255 * findvar.c (default_read_var_value): Update.
4256 * gdbtypes.c (compute_variant_fields_inner)
4257 (resolve_dynamic_type_internal): Update.
4258 (resolve_dynamic_type): Change type of valaddr parameter.
4259 * gdbtypes.h (resolve_dynamic_type): Update.
4260 * valarith.c (value_subscripted_rvalue): Update.
4261 * value.c (value_from_contents_and_address): Update.
4262
61122aa9
TT
42632020-04-24 Tom Tromey <tromey@adacore.com>
4264
4265 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4266 "push_initial_value" parameter.
4267 (dwarf2_evaluate_property): Likewise.
4268 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4269
ef83a141
TT
42702020-04-24 Tom Tromey <tromey@adacore.com>
4271
4272 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4273 (variant::matches, compute_variant_fields_recurse)
4274 (compute_variant_fields_inner, compute_variant_fields): New
4275 functions.
4276 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4277 Use resolved_type after type is made.
4278 (operator==): Add new cases.
4279 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4280 (struct discriminant_range, struct variant, struct variant_part):
4281 New.
4282 (union dynamic_prop_data) <variant_parts, original_type>: New
4283 members.
4284 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4285 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4286 constants.
4287 * value.c (unpack_bits_as_long): Now public.
4288 * value.h (unpack_bits_as_long): Declare.
4289
675127ec
TT
42902020-04-24 Tom Tromey <tromey@adacore.com>
4291
4292 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4293 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4294
9852ceef
HD
42952020-04-24 Hannes Domani <ssbssa@yahoo.de>
4296
4297 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4298
7632c6ce
KR
42992020-04-24 Kamil Rytarowski <n54@gmx.com>
4300
4301 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4302 (remove_fork_catchpoint, post_startup_inferior)
4303 (post_attach): Move...
4304 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4305 (remove_fork_catchpoint, post_startup_inferior)
4306 (post_attach): ...here.
4307 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4308 (remove_fork_catchpoint, post_startup_inferior)
4309 (post_attach): Move...
4310 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4311 (remove_fork_catchpoint, post_startup_inferior)
4312 (post_attach): ...here.
4313
7be2bb4f
TT
43142020-04-24 Tom Tromey <tromey@adacore.com>
4315
4316 * nat/windows-nat.h (struct windows_thread_info)
4317 <pc_adjusted>: New member.
4318 * windows-nat.c (windows_fetch_one_register): Check
4319 pc_adjusted.
4320 (windows_nat_target::get_windows_debug_event)
4321 (windows_nat_target::wait): Set pc_adjusted.
4322
f80cb3b4
TV
43232020-04-24 Tom de Vries <tdevries@suse.de>
4324
4325 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4326 Run gdb-add-index inside temp dir.
4327
29514b87
TT
43282020-04-23 Tom Tromey <tromey@adacore.com>
4329
4330 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4331 in loop.
4332
5939967b
LM
43332020-04-23 Luis Machado <luis.machado@linaro.org>
4334
4335 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4336 get_frame_register instead of gdbarch_unwind_pc.
4337
70bc38f5
TV
43382020-04-23 Tom de Vries <tdevries@suse.de>
4339
4340 * symtab.c (lookup_global_symbol): Prefer def over decl.
4341
de82891c
TV
43422020-04-23 Tom de Vries <tdevries@suse.de>
4343
4344 PR symtab/25807
4345 * block.c (best_symbol, better_symbol): Promote to external.
4346 * block.h (best_symbol, better_symbol): Declare.
4347 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4348 decl.
4349
ecc6c606
TT
43502020-04-23 Tom Tromey <tromey@adacore.com>
4351
4352 PR ada/25837:
4353 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4354 "const char *", not a "const std::string &".
4355 <name_and_matcher::operator==>: Update.
4356 * unittests/lookup_name_info-selftests.c: Change type of
4357 "result".
4358
740480b8
TT
43592020-04-23 Tom Tromey <tom@tromey.com>
4360
4361 * inferior.h (iterate_over_inferiors): Don't declare.
4362 * inferior.c (iterate_over_inferiors): Remove.
4363 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4364 Remove.
4365 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4366 use iterate_over_inferiors.
4367 (darwin_resume_inferior_it)
4368 (struct resume_inferior_threads_param)
4369 (darwin_resume_inferior_threads_it): Remove.
4370 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4371
ae3ab1f0
TV
43722020-04-23 Tom de Vries <tdevries@suse.de>
4373
4374 * blockframe.c (find_pc_partial_function): Use
4375 find_pc_sect_compunit_symtab rather than
4376 objfile->sf->qf->find_pc_sect_compunit_symtab.
4377
317d2668
TV
43782020-04-22 Tom de Vries <tdevries@suse.de>
4379
4380 PR symtab/25764
4381 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4382 in psymtabs.
4383
eea9e357
TV
43842020-04-22 Tom de Vries <tdevries@suse.de>
4385
4386 PR symtab/25801
4387 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4388 symtabs.
4389
3d5afab3
TV
43902020-04-22 Tom de Vries <tdevries@suse.de>
4391
4392 PR symtab/25700
4393 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4394 CU if already created.
4395
d43b7a2d
TBA
43962020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4397
4398 * infrun.c (displaced_step_fixup): Switch to the event_thread
4399 before calling displaced_step_restore, not after.
4400
d89edf9b
MM
44012020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4402
4403 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4404 its inferior is not recorded by us.
4405 (record_btrace_target_open): Replace call to
4406 all_non_exited_threads () with call to current_inferior
4407 ()->non_exited_threads ().
4408 (record_btrace_target::stop_recording): Likewise.
4409 (record_btrace_target::close): Likewise.
4410 (record_btrace_target::wait): Likewise.
4411 (record_btrace_target::record_stop_replaying): Likewise.
4412
5897fd49
MM
44132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4414
4415 * btrace.c (btrace_enable): Throw an error on double enables and
4416 when enabling recording fails.
4417 (btrace_disable): Throw an error if the thread is not recorded.
4418
1a476b6d
MM
44192020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4420
4421 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4422 request if we do not have a thread_info.
4423
4778a5f8
TV
44242020-04-21 Tom de Vries <tdevries@suse.de>
4425
4426 PR gdb/25471
4427 * thread.c
4428 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4429 exception in get_frame_id.
4430
0fa7617d
TT
44312020-04-20 Tom Tromey <tromey@adacore.com>
4432
4433 * python/python.c (struct gdbpy_event): Mark move constructor as
4434 noexcept.
4435 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4436 constructor as noexcept.
4437 * completer.h (struct completion_result): Mark move constructor as
4438 noexcept.
4439 * completer.c (completion_result::completion_result): Use
4440 initialization style. Don't call reset_match_list.
4441
ad23bda0
MS
44422020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4443
4444 * MAINTAINERS (Write After Approval): Add myself.
4445
45e1f031
TT
44462020-04-18 Tom Tromey <tom@tromey.com>
4447
4448 * windows-tdep.c (init_w32_command_list)
4449 (w32_prefix_command_valid): Restore.
4450 (_initialize_windows_tdep): Call init_w32_command_list.
4451
08feed99
TT
44522020-04-18 Tom Tromey <tom@tromey.com>
4453
4454 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4455 * value.c (value_fn_field): Update.
4456 * valops.c (find_function_in_inferior)
4457 (value_allocate_space_in_inferior): Update.
4458 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4459 Update.
4460 * tui/tui-source.c (tui_source_window::set_contents): Update.
4461 * symtab.c (lookup_global_or_static_symbol)
4462 (find_function_start_sal_1, skip_prologue_sal)
4463 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4464 * symmisc.c (dump_msymbols, dump_symtab_1)
4465 (maintenance_print_one_line_table): Update.
4466 * symfile.c (init_entry_point_info, section_is_mapped)
4467 (list_overlays_command, simple_read_overlay_table)
4468 (simple_overlay_update_1): Update.
4469 * stap-probe.c (handle_stap_probe): Update.
4470 * stabsread.c (dbx_init_float_type, define_symbol)
4471 (read_one_struct_field, read_enum_type, read_range_type): Update.
4472 * source.c (info_line_command): Update.
4473 * python/python.c (gdbpy_source_objfile_script)
4474 (gdbpy_execute_objfile_script): Update.
4475 * python/py-type.c (save_objfile_types): Update.
4476 * python/py-objfile.c (py_free_objfile): Update.
4477 * python/py-inferior.c (python_new_objfile): Update.
4478 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4479 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4480 (maintenance_check_psymtabs): Update.
4481 * printcmd.c (info_address_command): Update.
4482 * objfiles.h (struct objfile) <arch>: New method, from
4483 get_objfile_arch.
4484 (get_objfile_arch): Don't declare.
4485 * objfiles.c (get_objfile_arch): Remove.
4486 (filter_overlapping_sections): Update.
4487 * minsyms.c (msymbol_is_function): Update.
4488 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4489 (output_nondebug_symbol): Update.
4490 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4491 (mdebug_expand_psymtab): Update.
4492 * machoread.c (macho_add_oso_symfile): Update.
4493 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4494 Update.
4495 * linux-fork.c (checkpoint_command): Update.
4496 * linespec.c (convert_linespec_to_sals): Update.
4497 * jit.c (finalize_symtab): Update.
4498 * infrun.c (insert_exception_resume_from_probe): Update.
4499 * ia64-tdep.c (ia64_find_unwind_table): Update.
4500 * hppa-tdep.c (internalize_unwinds): Update.
4501 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4502 Update.
4503 * gcore.c (call_target_sbrk): Update.
4504 * elfread.c (record_minimal_symbol, elf_symtab_read)
4505 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4506 (elf_gnu_ifunc_resolve_by_got): Update.
4507 * dwarf2/read.c (create_addrmap_from_index)
4508 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4509 (read_debug_names_from_section)
4510 (process_psymtab_comp_unit_reader, add_partial_symbol)
4511 (add_partial_subprogram, process_full_comp_unit)
4512 (read_file_scope, read_func_scope, read_lexical_block_scope)
4513 (read_call_site_scope, dwarf2_ranges_read)
4514 (dwarf2_record_block_ranges, dwarf2_add_field)
4515 (mark_common_block_symbol_computed, read_tag_pointer_type)
4516 (read_tag_string_type, dwarf2_init_float_type)
4517 (dwarf2_init_complex_target_type, read_base_type)
4518 (partial_die_info::read, partial_die_info::read)
4519 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4520 (dwarf2_fetch_die_loc_sect_off): Update.
4521 * dwarf2/loc.c (dwarf2_find_location_expression)
4522 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4523 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4524 (dwarf2_loc_desc_get_symbol_read_needs)
4525 (locexpr_describe_location_piece, locexpr_describe_location_1)
4526 (loclist_describe_location): Update.
4527 * dwarf2/index-write.c (write_debug_names): Update.
4528 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4529 * dtrace-probe.c (dtrace_process_dof): Update.
4530 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4531 (process_one_symbol): Update.
4532 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4533 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4534 (coff_read_enum_type): Update.
4535 * cli/cli-cmds.c (edit_command, list_command): Update.
4536 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4537 * breakpoint.c (create_overlay_event_breakpoint)
4538 (create_longjmp_master_breakpoint)
4539 (create_std_terminate_master_breakpoint)
4540 (create_exception_master_breakpoint, get_sal_arch): Update.
4541 * block.c (block_gdbarch): Update.
4542 * annotate.c (annotate_source_line): Update.
4543
0743fc83
TT
45442020-04-17 Tom Tromey <tromey@adacore.com>
4545
4546 * auto-load.c (show_auto_load_cmd): Remove.
4547 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4548 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4549 (maintenance_print_arc_command): Remove.
4550 * tui/tui-win.c (tui_command): Remove.
4551 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4552 * tui/tui-layout.c (tui_layout_command): Remove.
4553 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4554 * python/python.c (user_set_python, user_show_python): Remove.
4555 (_initialize_python): Use add_basic_prefix_cmd,
4556 add_show_prefix_cmd.
4557 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4558 (install_gdb_commands): Use add_basic_prefix_cmd,
4559 add_show_prefix_cmd.
4560 (info_guile_command): Remove.
4561 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4562 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4563 add_show_prefix_cmd.
4564 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4565 Remove do_set and do_show parameters.
4566 * cli/cli-style.c (set_style, show_style): Remove.
4567 (_initialize_cli_style): Use add_basic_prefix_cmd,
4568 add_show_prefix_cmd.
4569 (cli_style_option::add_setshow_commands): Remove do_set and
4570 do_show parameters.
4571 (cli_style_option::add_setshow_commands): Use
4572 add_basic_prefix_cmd, add_show_prefix_cmd.
4573 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4574 (set_style_name): Remove.
4575 * cli/cli-dump.c (dump_command, append_command): Remove.
4576 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4577 (tekhex_dump_command, binary_dump_command)
4578 (binary_append_command): Remove.
4579 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4580 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4581 (init_w32_command_list): Remove; move into ...
4582 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4583 * valprint.c (set_print, show_print, set_print_raw)
4584 (show_print_raw): Remove.
4585 (_initialize_valprint): Use add_basic_prefix_cmd,
4586 add_show_prefix_cmd.
4587 * typeprint.c (set_print_type, show_print_type): Remove.
4588 (_initialize_typeprint): Use add_basic_prefix_cmd,
4589 add_show_prefix_cmd.
4590 * record.c (set_record_command, show_record_command): Remove.
4591 (_initialize_record): Use add_basic_prefix_cmd,
4592 add_show_prefix_cmd.
4593 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4594 add_show_prefix_cmd.
4595 (info_command, show_command, set_debug, show_debug): Remove.
4596 * top.h (set_history, show_history): Don't declare.
4597 * top.c (set_history, show_history): Remove.
4598 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4599 (unset_tdesc_cmd): Remove.
4600 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4601 add_show_prefix_cmd.
4602 * symtab.c (info_module_command): Remove.
4603 (_initialize_symtab): Use add_basic_prefix_cmd.
4604 * symfile.c (overlay_command): Remove.
4605 (_initialize_symfile): Use add_basic_prefix_cmd.
4606 * sparc64-tdep.c (info_adi_command): Remove.
4607 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4608 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4609 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4610 add_show_prefix_cmd.
4611 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4612 (_initialize_serial): Use add_basic_prefix_cmd,
4613 add_show_prefix_cmd.
4614 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4615 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4616 add_show_prefix_cmd.
4617 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4618 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4619 add_show_prefix_cmd.
4620 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4621 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4622 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4623 add_show_prefix_cmd.
4624 * remote.c (remote_command, set_remote_cmd): Remove.
4625 (_initialize_remote): Use add_basic_prefix_cmd.
4626 * record-full.c (set_record_full_command)
4627 (show_record_full_command): Remove.
4628 (_initialize_record_full): Use add_basic_prefix_cmd,
4629 add_show_prefix_cmd.
4630 * record-btrace.c (cmd_set_record_btrace)
4631 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4632 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4633 (cmd_show_record_btrace_pt): Remove.
4634 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4635 add_show_prefix_cmd.
4636 * ravenscar-thread.c (set_ravenscar_command)
4637 (show_ravenscar_command): Remove.
4638 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4639 add_show_prefix_cmd.
4640 * mips-tdep.c (show_mips_command, set_mips_command)
4641 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4642 add_show_prefix_cmd.
4643 * maint.c (maintenance_command, maintenance_info_command)
4644 (maintenance_check_command, maintenance_print_command)
4645 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4646 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4647 add_show_prefix_cmd.
4648 (show_per_command_cmd): Remove.
4649 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4650 Remove.
4651 (maintenance_show_test_settings_cmd): Remove.
4652 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4653 add_show_prefix_cmd.
4654 * maint-test-options.c (maintenance_test_options_command):
4655 Remove.
4656 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4657 * macrocmd.c (macro_command): Remove
4658 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4659 * language.c (set_check, show_check): Remove.
4660 (_initialize_language): Use add_basic_prefix_cmd,
4661 add_show_prefix_cmd.
4662 * infcmd.c (unset_command): Remove.
4663 (_initialize_infcmd): Use add_basic_prefix_cmd.
4664 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4665 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4666 add_show_prefix_cmd.
4667 * go32-nat.c (go32_info_dos_command): Remove.
4668 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4669 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4670 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4671 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4672 (_initialize_frame): Use add_basic_prefix_cmd,
4673 add_show_prefix_cmd.
4674 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4675 (_initialize_dcache): Use add_basic_prefix_cmd,
4676 add_show_prefix_cmd.
4677 * cp-support.c (maint_cplus_command): Remove.
4678 (_initialize_cp_support): Use add_basic_prefix_cmd.
4679 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4680 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4681 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4682 add_basic_prefix_cmd, add_show_prefix_cmd.
4683 * breakpoint.c (save_command): Remove.
4684 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4685 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4686 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4687 add_show_prefix_cmd.
4688 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4689 (set_ada_command, show_ada_command): Remove.
4690 (_initialize_ada_language): Use add_basic_prefix_cmd,
4691 add_show_prefix_cmd.
4692 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4693
3557f442
KR
46942020-04-16 Kamil Rytarowski <n54@gmx.com>
4695
4696 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4697 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4698
16197208
SM
46992020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4700
4701 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4702 warning messages.
4703
00ac85d3
SM
47042020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4705
4706 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4707 import table is not at beginning of .idata section.
4708
381ce63f
PA
47092020-04-16 Pedro Alves <palves@redhat.com>
4710
4711 * inferior.c (delete_inferior): Use delete operator directly
4712 instead of delete_program_space.
4713 * progspace.c (add_program_space): New, factored out from
4714 program_space::program_space.
4715 (remove_program_space): New, factored out from
4716 delete_program_space.
4717 (program_space::program_space): Remove intro comment. Rewrite.
4718 (program_space::~program_space): Remove intro comment. Call
4719 remove_program_space.
4720 (delete_program_space): Delete.
4721 * progspace.h (program_space::program_space): Make explicit. Move
4722 intro comment here, adjusted.
4723 (program_space::~program_space): Move intro comment here,
4724 adjusted.
4725 (delete_program_space): Remove.
4726
a010605f
TT
47272020-04-16 Tom Tromey <tromey@adacore.com>
4728
4729 * windows-nat.c (windows_nat::handle_access_violation): New
4730 function.
4731 * nat/windows-nat.h (handle_access_violation): Declare.
4732 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4733 windows-nat.c. Call handle_access_violation.
4734
efba5c23
TV
47352020-04-16 Tom de Vries <tdevries@suse.de>
4736
4737 PR symtab/25791
4738 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4739 CUs without psymtab.
4740
97ed802d
KB
47412020-04-16 Kevin Buettner <kevinb@redhat.com>
4742
4743 * python/python.c (do_start_initialization): Don't call
4744 PyEval_InitThreads for Python 3.9 and beyond.
4745
c7d64809
KR
47462020-04-15 Kamil Rytarowski <n54@gmx.com>
4747
4748 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4749 thread functions.
4750 (obsd_nat_target::wait): Likewise.
4751
ce127a96
TT
47522020-04-15 Tom Tromey <tromey@adacore.com>
4753
4754 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4755 (DEBUG_EXCEPT): Use debug_printf.
4756
99f1bc6a
AB
47572020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * completer.c (class completion_tracker::completion_hash_entry)
4760 <hash_name>: New member function.
4761 (completion_tracker::discard_completions): New callback to hash a
4762 completion_hash_entry, pass this to htab_create_alloc.
4763
a0e9b532
JT
47642016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4765
4766 * windows-nat.c (windows_make_so): Warn rather than stopping with
4767 an error if realpath() fails.
4768
06ca5dd4
KR
47692020-04-14 Kamil Rytarowski <n54@gmx.com>
4770
4771 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4772 (nbsd_nat_target::info_proc): Add do_status.
4773
194d088f
TV
47742020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4775 Tom de Vries <tdevries@suse.de>
4776
4777 PR symtab/25718
4778 * psympriv.h (struct partial_symtab::read_symtab)
4779 (struct partial_symtab::expand_psymtab)
4780 (struct partial_symtab::read_dependencies): Update comments.
4781 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4782 read_symtab for includer.
4783 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4784 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4785 (struct dwarf2_include_psymtab::m_readin): Remove.
4786 (struct dwarf2_include_psymtab::includer): New member function.
4787 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4788
c1a66c06
TV
47892020-04-14 Tom de Vries <tdevries@suse.de>
4790
4791 PR symtab/25720
4792 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4793 with NULL symbol_matcher and lookup_name.
4794 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4795 and lookup_name.
4796 * dwarf2/read.c (dw2_expand_symtabs_matching)
4797 (dw2_debug_names_expand_symtabs_matching): Same.
4798 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4799 Make lookup_name a pointer. Update comment.
4800 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4801 lookup_name being a pointer.
4802 * symfile.c (expand_symtabs_matching): Same.
4803 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4804 * linespec.c (iterate_over_all_matching_symtabs): Same.
4805
400b5eca
TT
48062020-04-13 Tom Tromey <tom@tromey.com>
4807
4808 * run-on-main-thread.c: Update include.
4809 * unittests/main-thread-selftests.c: Update include.
4810 * tui/tui-win.c: Update include.
4811 * tui/tui-io.c: Update include.
4812 * tui/tui-interp.c: Update include.
4813 * tui/tui-hooks.c: Update include.
4814 * top.h: Update include.
4815 * top.c: Update include.
4816 * ser-base.c: Update include.
4817 * remote.c: Update include.
4818 * remote-notif.c: Update include.
4819 * remote-fileio.c: Update include.
4820 * record-full.c: Update include.
4821 * record-btrace.c: Update include.
4822 * python/python.c: Update include.
4823 * posix-hdep.c: Update include.
4824 * mingw-hdep.c: Update include.
4825 * mi/mi-main.c: Update include.
4826 * mi/mi-interp.c: Update include.
4827 * main.c: Update include.
4828 * linux-nat.c: Update include.
4829 * interps.c: Update include.
4830 * infrun.c: Update include.
4831 * inf-loop.c: Update include.
4832 * event-top.c: Update include.
4833 * event-loop.c: Move to ../gdbsupport/.
4834 * event-loop.h: Move to ../gdbsupport/.
4835 * async-event.h: Update include.
4836 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4837
93b54c8e
TT
48382020-04-13 Tom Tromey <tom@tromey.com>
4839
4840 * tui/tui-win.c: Include async-event.h.
4841 * remote.c: Include async-event.h.
4842 * remote-notif.c: Include async-event.h.
4843 * record-full.c: Include async-event.h.
4844 * record-btrace.c: Include async-event.h.
4845 * infrun.c: Include async-event.h.
4846 * event-top.c: Include async-event.h.
4847 * event-loop.h: Move some declarations to async-event.h.
4848 * event-loop.c: Don't include ser-event.h or top.h. Move some
4849 code to async-event.c.
4850 * async-event.h: New file.
4851 * async-event.c: New file.
4852 * Makefile.in (COMMON_SFILES): Add async-event.c.
4853 (HFILES_NO_SRCDIR): Add async-event.h.
4854
c1cd3163
TT
48552020-04-13 Tom Tromey <tom@tromey.com>
4856
4857 * utils.c (flush_streams): New function.
4858 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4859
29f2bf4f
TT
48602020-04-13 Tom Tromey <tom@tromey.com>
4861
4862 * event-loop.c (handle_file_event): Use warning, not
4863 printf_unfiltered.
4864
98029d02
TT
48652020-04-13 Tom Tromey <tom@tromey.com>
4866
4867 * event-loop.c: Include <chrono>.
4868
06cc9596
TT
48692020-04-13 Tom Tromey <tom@tromey.com>
4870
4871 * gdb_select.h: Move to ../gdbsupport/.
4872 * event-loop.c: Update include path.
4873 * top.c: Update include path.
4874 * ser-base.c: Update include path.
4875 * ui-file.c: Update include path.
4876 * ser-tcp.c: Update include path.
4877 * guile/scm-ports.c: Update include path.
4878 * posix-hdep.c: Update include path.
4879 * ser-unix.c: Update include path.
4880 * gdb_usleep.c: Update include path.
4881 * mingw-hdep.c: Update include path.
4882 * inflow.c: Update include path.
4883 * infrun.c: Update include path.
4884 * event-top.c: Update include path.
4885
8ae8e197
TT
48862020-04-13 Tom Tromey <tom@tromey.com>
4887
4888 * configure: Rebuild.
4889 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4890
58cf28e8
TT
48912020-04-13 Tom Tromey <tom@tromey.com>
4892
4893 * event-loop.h (start_event_loop): Don't declare.
4894 * event-loop.c (start_event_loop): Move...
4895 * main.c (start_event_loop): ...here. Now static.
4896
b7f999ae
SDJ
48972020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4898
4899 * MAINTAINERS: Update my email address.
4900
1085dfd4
KR
49012020-04-12 Kamil Rytarowski <n54@gmx.com>
4902
4903 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4904 IP_ALL.
4905
49d1d1f5
KR
49062020-04-12 Kamil Rytarowski <n54@gmx.com>
4907
4908 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4909 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4910
b4848d2a
KR
49112020-04-12 Kamil Rytarowski <n54@gmx.com>
4912
4913 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4914 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4915
51c133d5
KR
49162020-04-12 Kamil Rytarowski <n54@gmx.com>
4917
4918 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4919
54b8cbd0
KR
49202020-04-11 Kamil Rytarowski <n54@gmx.com>
4921
4922 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4923 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4924 (nbsd_nat_target::info_proc): New functions.
4925 * nbsd-nat.c (kinfo_get_vmmap): New function.
4926 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4927 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4928 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4929 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4930 functions.
4931 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4932 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4933 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4934 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4935 (KINFO_VME_FLAG_GROWS_DOWN): New.
4936
cf83625d
AS
49372020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4938
4939 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4940 bit shift.
4941
0c4311ab
TT
49422020-04-10 Tom Tromey <tromey@adacore.com>
4943
4944 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4945
3e65b3e9
TT
49462020-04-10 Tom Tromey <tromey@adacore.com>
4947
4948 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4949 separate debug files.
4950
13302e95
HD
49512020-04-10 Hannes Domani <ssbssa@yahoo.de>
4952
4953 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4954 Move to...
4955 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4956 ... here.
4957 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4958 Check for STATUS_WX86_BREAKPOINT.
4959 (windows_nat_target::wait): Same.
4960
bdfc1e8a
TV
49612020-04-10 Tom de Vries <tdevries@suse.de>
4962
4963 PR cli/25808
4964 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4965
f4460aec
SM
49662020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4969 (Write After Approval): Remove Tom de Vries.
4970
a25198bb
BE
49712020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4972
4973 revert partially:
4974 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4975
aac66a4c
SM
4976 * buildsym.c (record_line): Fix undefined behavior and preserve
4977 lines at eof.
a25198bb 4978
206c98a6
KR
49792020-04-09 Kamil Rytarowski <n54@gmx.com>
4980
4981 * auxv.h (svr4_auxv_parse): New.
4982 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4983 and generic_auxv_parse.
4984 (svr4_auxv_parse): Add.
4985 * obsd-tdep.c: Include "auxv.h".
4986 (obsd_auxv_parse): Remove.
4987 (obsd_init_abi): Remove comment.
4988 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4989 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4990 * nbsd-tdep.c: Include "auxv.h".
4991 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4992
71fbdbaf
TT
49932020-04-08 Tom Tromey <tromey@adacore.com>
4994
4995 * nat/windows-nat.h (last_wait_event): Don't declare.
4996 (wait_for_debug_event): Update comment.
4997 * nat/windows-nat.c (last_wait_event): Now static.
4998
2c1d95e8
TT
49992020-04-08 Tom Tromey <tromey@adacore.com>
5000
5001 * windows-nat.c (wait_for_debug_event): Move to
5002 nat/windows-nat.c.
5003 * nat/windows-nat.h (wait_for_debug_event): Declare.
5004 * nat/windows-nat.c (wait_for_debug_event): Move from
5005 windows-nat.c. No longer static.
5006
d2977bc4
TT
50072020-04-08 Tom Tromey <tromey@adacore.com>
5008
5009 * windows-nat.c (get_windows_debug_event): Use
5010 fetch_pending_stop.
5011 * nat/windows-nat.h (fetch_pending_stop): Declare.
5012 * nat/windows-nat.c (fetch_pending_stop): New function.
5013
e758e19c
TT
50142020-04-08 Tom Tromey <tromey@adacore.com>
5015
5016 * windows-nat.c (windows_continue): Use matching_pending_stop and
5017 continue_last_debug_event.
5018 * nat/windows-nat.h (matching_pending_stop)
5019 (continue_last_debug_event): Declare.
5020 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5021 (matching_pending_stop, continue_last_debug_event): New
5022 functions.
5023
8d30e395
TT
50242020-04-08 Tom Tromey <tromey@adacore.com>
5025
5026 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5027 (handle_exception_result): Move to nat/windows-nat.h.
5028 (DEBUG_EXCEPTION_SIMPLE): Remove.
5029 (windows_nat::handle_ms_vc_exception): New function.
5030 (handle_exception): Move to nat/windows-nat.c.
5031 (get_windows_debug_event): Update.
5032 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5033 nat/windows-nat.c.
5034 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5035 (handle_exception_result): Move from windows-nat.c.
5036 (handle_exception): Declare.
5037 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5038 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5039 windows-nat.c.
5040
29de418d
TT
50412020-04-08 Tom Tromey <tromey@adacore.com>
5042
5043 * windows-nat.c (exception_count, event_count): Remove.
5044 (handle_exception, get_windows_debug_event)
5045 (do_initial_windows_stuff): Update.
5046
a816ba18
TT
50472020-04-08 Tom Tromey <tromey@adacore.com>
5048
5049 * windows-nat.c (windows_nat::handle_load_dll)
5050 (windows_nat::handle_unload_dll): Rename. No longer static.
5051 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5052 Declare.
5053
a00caa12
TT
50542020-04-08 Tom Tromey <tromey@adacore.com>
5055
5056 * complaints.h (stop_whining): Declare at top-level.
5057 (complaint): Don't declare stop_whining.
5058
d41b524f
TT
50592020-04-08 Tom Tromey <tromey@adacore.com>
5060
5061 * windows-nat.c (windows_nat::handle_output_debug_string):
5062 Rename. No longer static.
5063 * nat/windows-nat.h (handle_output_debug_string): Declare.
5064
3c76026d
TT
50652020-04-08 Tom Tromey <tromey@adacore.com>
5066
5067 * windows-nat.c (current_process_handle, current_process_id)
5068 (main_thread_id, last_sig, current_event, last_wait_event)
5069 (current_windows_thread, desired_stop_thread_id, pending_stops)
5070 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5071 (display_selectors, fake_create_process)
5072 (get_windows_debug_event): Update.
5073 * nat/windows-nat.h (current_process_handle, current_process_id)
5074 (main_thread_id, last_sig, current_event, last_wait_event)
5075 (current_windows_thread, desired_stop_thread_id, pending_stops)
5076 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5077 * nat/windows-nat.c (current_process_handle, current_process_id)
5078 (main_thread_id, last_sig, current_event, last_wait_event)
5079 (current_windows_thread, desired_stop_thread_id, pending_stops)
5080 (siginfo_er): New globals. Move from windows-nat.c.
5081
9d8679cc
TT
50822020-04-08 Tom Tromey <tromey@adacore.com>
5083
5084 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5085 (handle_load_dll): Update.
5086 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5087
28688adf
TT
50882020-04-08 Tom Tromey <tromey@adacore.com>
5089
5090 * windows-nat.c (enum thread_disposition_type): Move to
5091 nat/windows-nat.h.
5092 (windows_nat::thread_rec): Rename from thread_rec. No longer
5093 static.
5094 (windows_add_thread, windows_nat_target::fetch_registers)
5095 (windows_nat_target::store_registers, handle_exception)
5096 (windows_nat_target::resume, get_windows_debug_event)
5097 (windows_nat_target::get_tib_address)
5098 (windows_nat_target::thread_name)
5099 (windows_nat_target::thread_alive): Update.
5100 * nat/windows-nat.h (enum thread_disposition_type): Move from
5101 windows-nat.c.
5102 (thread_rec): Declare.
5103
4834dad0
TT
51042020-04-08 Tom Tromey <tromey@adacore.com>
5105
5106 * windows-nat.c: Add "using namespace".
5107 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5108 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5109
65bafd5b
TT
51102020-04-08 Tom Tromey <tromey@adacore.com>
5111
5112 * nat/windows-nat.h (struct windows_thread_info): Declare
5113 destructor.
5114 * nat/windows-nat.c (~windows_thread_info): New.
5115
0a4afda3
TT
51162020-04-08 Tom Tromey <tromey@adacore.com>
5117
5118 PR gdb/22992
5119 * windows-nat.c (current_event): Update comment.
5120 (last_wait_event, desired_stop_thread_id): New globals.
5121 (struct pending_stop): New.
5122 (pending_stops): New global.
5123 (windows_nat_target) <stopped_by_sw_breakpoint>
5124 <supports_stopped_by_sw_breakpoint>: New methods.
5125 (windows_fetch_one_register): Add assertions. Adjust PC.
5126 (windows_continue): Handle pending stops. Suspend other threads
5127 when stepping. Use last_wait_event
5128 (wait_for_debug_event): New function.
5129 (get_windows_debug_event): Use wait_for_debug_event. Handle
5130 pending stops. Queue spurious stops.
5131 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5132 (windows_nat_target::kill): Use wait_for_debug_event.
5133 * nat/windows-nat.h (struct windows_thread_info)
5134 <stopped_at_software_breakpoint>: New field.
5135 * nat/windows-nat.c (windows_thread_info::resume): Clear
5136 stopped_at_software_breakpoint.
5137
8e61ebec
TT
51382020-04-08 Tom Tromey <tromey@adacore.com>
5139
5140 * windows-nat.c (enum thread_disposition_type): New.
5141 (thread_rec): Replace "get_context" parameter with "disposition";
5142 change type.
5143 (windows_add_thread, windows_nat_target::fetch_registers)
5144 (windows_nat_target::store_registers, handle_exception)
5145 (windows_nat_target::resume, get_windows_debug_event)
5146 (windows_nat_target::get_tib_address)
5147 (windows_nat_target::thread_name)
5148 (windows_nat_target::thread_alive): Update.
5149
98a03287
TT
51502020-04-08 Tom Tromey <tromey@adacore.com>
5151
5152 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5153 (windows_continue): Use windows_continue::resume.
5154 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5155 resume>: Declare new methods.
5156 * nat/windows-nat.c: New file.
5157 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5158
7c7411bc
TT
51592020-04-08 Tom Tromey <tromey@adacore.com>
5160
5161 * windows-nat.c (windows_add_thread, windows_delete_thread)
5162 (windows_nat_target::fetch_registers)
5163 (windows_nat_target::store_registers, fake_create_process)
5164 (windows_nat_target::resume, windows_nat_target::resume)
5165 (get_windows_debug_event, windows_nat_target::wait)
5166 (windows_nat_target::pid_to_str)
5167 (windows_nat_target::get_tib_address)
5168 (windows_nat_target::get_ada_task_ptid)
5169 (windows_nat_target::thread_name)
5170 (windows_nat_target::thread_alive): Use lwp, not tid.
5171
2950fdf7
TT
51722020-04-08 Tom Tromey <tromey@adacore.com>
5173
5174 * windows-nat.c (handle_exception)
5175 (windows_nat_target::thread_name): Update.
5176 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5177 <name>: Now unique_xmalloc_ptr.
5178
62fe396b
TT
51792020-04-08 Tom Tromey <tromey@adacore.com>
5180
5181 * windows-nat.c (thread_rec)
5182 (windows_nat_target::fetch_registers): Update.
5183 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5184 Update comment.
5185 <debug_registers_changed, reload_context>: Now bool.
5186
e9534bd2
TT
51872020-04-08 Tom Tromey <tromey@adacore.com>
5188
5189 * windows-nat.c (windows_add_thread): Use new.
5190 (windows_init_thread_list, windows_delete_thread): Use delete.
5191 (get_windows_debug_event): Update.
5192 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5193 destructor, and initializers.
5194
ae1f8880
TT
51952020-04-08 Tom Tromey <tromey@adacore.com>
5196
5197 * windows-nat.c (struct windows_thread_info): Remove.
5198 * nat/windows-nat.h: New file.
5199
55a1e039
TT
52002020-04-08 Tom Tromey <tromey@adacore.com>
5201
5202 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5203 (thread_rec, windows_add_thread, windows_delete_thread)
5204 (windows_continue): Update.
5205
93366324
TT
52062020-04-08 Tom Tromey <tromey@adacore.com>
5207
5208 * windows-nat.c (struct windows_thread_info): Remove typedef.
5209 (thread_head): Remove.
5210 (thread_list): New global.
5211 (thread_rec, windows_add_thread, windows_init_thread_list)
5212 (windows_delete_thread, windows_continue): Update.
5213
0f2265e2
SM
52142020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * windows-tdep.h (windows_init_abi): Add comment.
5217 (cygwin_init_abi): New declaration.
5218 * windows-tdep.c: Split signal enumeration in two, one for
5219 Windows and one for Cygwin.
5220 (windows_gdb_signal_to_target): Only deal with signal of the
5221 Windows OS ABI.
5222 (cygwin_gdb_signal_to_target): New function.
5223 (windows_init_abi): Rename to windows_init_abi_common, don't set
5224 gdb_signal_to_target gdbarch method. Add new new function with
5225 this name.
5226 (cygwin_init_abi): New function.
5227 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5228 comment. Don't call windows_init_abi.
5229 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5230 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5231 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5232 i386_windows_init_abi_common, don't call windows_init_abi. Add
5233 a new function of this name.
5234 (i386_cygwin_init_abi): New function.
5235 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5236 OS ABI Cygwin.
5237
3810f182
SM
52382020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5239
5240 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5241 parameter.c.
5242 (dwarf2_read_gdb_index): Update.
5243
063f8e80
KR
52442020-04-07 Kamil Rytarowski <n54@gmx.com>
5245
5246 * nbsd-tdep.c: Include "objfiles.h".
5247 (nbsd_skip_solib_resolver): New.
5248 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5249
85a9510c 52502020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5251
5252 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5253 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5254 with DW_LLE_base_addressx are being emitted in DWARFv5.
5255 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5256 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5257 unsigned integer.
5258
9fc3eaae 52592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5260
5261 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5262 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5263 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5264 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5265 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5266 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5267 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5268
5269
41144253 52702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5271
5272 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5273 (read_loclist_index): New function definition.
5274 (lookup_loclist_base): New function definition.
5275 (read_loclist_header): New function definition.
5276 (dwarf2_cu): Add loclist_base and loclist_header field.
5277 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5278 (read_full_die_1): Read the value of DW_AT_loclists_base.
5279 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5280 (read_attribute_value): Handle DW_FORM_loclistx.
5281 (skip_one_die): Handle DW_FORM_loclistx.
5282 (loclist_header): New structure declaration.
5283 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5284
9f4e76a4
SM
52852020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5288 constructor. Remove `addr` parameter from other constructor and
5289 add `per_cu` parameter.
5290 * dwarf2/read.c (create_partial_symtab): Update.
5291
25c11aca
TV
52922020-04-07 Tom de Vries <tdevries@suse.de>
5293
5294 PR symtab/25796
5295 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5296 (partial_die_info::fixup): Inherit has_const_value.
5297
5707e24b
TV
52982020-04-07 Tom de Vries <tdevries@suse.de>
5299
5300 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5301 symbols without address.
5302
05f00e22
KR
53032020-04-06 Kamil Rytarowski <n54@gmx.com>
5304
5305 * nbsd-nat.h (struct thread_info): Add forward declaration.
5306 (nbsd_nat_target::thread_alive): Add.
5307 (nbsd_nat_target::thread_name): Likewise.
5308 (nbsd_nat_target::update_thread_list): Likewise.
5309 (update_thread_list::post_attach): Likewise.
5310 (post_attach::pid_to_str): Likewise.
5311 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5312 (nbsd_thread_lister): Add.
5313 (nbsd_nat_target::thread_alive): Likewise.
5314 (nbsd_nat_target::thread_name): Likewise.
5315 (nbsd_add_threads): Likewise.
5316 (update_thread_list::post_attach): Likewise.
5317 (nbsd_nat_target::update_thread_list): Likewise.
5318 (post_attach::pid_to_str): Likewise.
5319
6ee448cc
TT
53202020-04-06 Tom Tromey <tromey@adacore.com>
5321
5322 * ada-valprint.c (print_variant_part): Extract the variant field.
5323 (print_field_values): Use the field as the outer value when
5324 recursing.
5325
dea34e8c
TT
53262020-04-06 Tom Tromey <tromey@adacore.com>
5327
5328 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5329 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5330 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5331 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5332 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5333
93689ce9
TT
53342020-04-06 Tom Tromey <tromey@adacore.com>
5335
5336 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5337 TYPE_CODE_ERROR.
5338
79743962
KR
53392020-04-06 Kamil Rytarowski <n54@gmx.com>
5340
5341 * nbsd-tdep.c: Include "gdbarch.h".
5342 Define enum with NetBSD signal numbers.
5343 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5344 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5345 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5346 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5347 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5348 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5349 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5350 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5351 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5352 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5353 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5354 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5355
9e7c9a03
HD
53562020-04-03 Hannes Domani <ssbssa@yahoo.de>
5357
5358 PR gdb/25325
5359 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5360
d9e49b61
TT
53612020-04-03 Tom Tromey <tromey@adacore.com>
5362
5363 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5364 Read constant block.
5365
e0fc5c3f
SM
53662020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5369 (gdb_bfd_get_full_section_contents): New declaration.
5370 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5371 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5372 gdb_bfd_get_full_section_contents.
5373
e2ff18a0
SM
53742020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5375
5376 * exec.c (build_section_table): Replace internal_error with
5377 gdb_assert.
5378 (section_table_xfer_memory_partial): Likewise.
5379 * mdebugread.c (parse_partial_symbols): Likewise.
5380 * psymtab.c (lookup_partial_symbol): Likewise.
5381 * utils.c (wrap_here): Likewise.
5382
0830d301
TT
53832020-04-02 Tom Tromey <tromey@adacore.com>
5384
5385 * f-lang.c (build_fortran_types): Use arch_type to initialize
5386 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5387
e7da7f8f
TT
53882020-04-02 Tom Tromey <tromey@adacore.com>
5389
5390 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5391 of attributes.
5392
c90d28ac
AB
53932020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5394 Bernd Edlinger <bernd.edlinger@hotmail.de>
5395 Tom Tromey <tromey@adacore.com>
5396
5397 * buildsym.c (buildsym_compunit::record_line): Remove
5398 deduplication code.
5399
1aa98955
TV
54002020-04-02 Tom de Vries <tdevries@suse.de>
5401
5402 PR ada/24671
5403 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5404
d3214198
TV
54052020-04-02 Tom de Vries <tdevries@suse.de>
5406
5407 * dwarf2/read.c (dwarf2_gdb_index_functions,
5408 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5409 NULL.
5410 * psymtab.c (psym_lookup_global_symbol_language): New function.
5411 (psym_functions): Init psym_lookup_global_symbol_language with
5412 psym_lookup_global_symbol_language.
5413 * symfile-debug.c (debug_sym_quick_functions): Init
5414 lookup_global_symbol_language with NULL.
5415 * symfile.c (set_initial_language): Remove fixme comment.
5416 * symfile.h (struct quick_symbol_functions): Add
5417 lookup_global_symbol_language.
5418 * symtab.c (find_quick_global_symbol_language): New function.
5419 (find_main_name): Use find_quick_global_symbol_language.
5420
2836752f
SM
54212020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5422
5423 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5424
64dc2d4b
BE
54252020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5426
5427 * buildsym.c (record_line): Fix undefined behavior and preserve
5428 lines at eof.
5429
bbe3dc41
BE
54302020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5431
5432 * buildsym.c (record_line): Fix the resizing condition.
5433
6b4a335b
TT
54342020-04-01 Tom Tromey <tom@tromey.com>
5435
5436 * value.h (value_literal_complex): Add comment.
5437 * valops.c (value_literal_complex): Refer to value.h.
5438
3638a098
TT
54392020-04-01 Tom Tromey <tom@tromey.com>
5440
5441 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5442 (scalar_type): New rule, from typebase.
5443 (typebase): Use scalar_type. Recognize complex types.
5444 (field_name): Handle FLOAT_KEYWORD.
5445 (ident_tokens): Add _Complex and __complex__.
5446
c34e8714
TT
54472020-04-01 Tom Tromey <tom@tromey.com>
5448
5449 PR exp/25299:
5450 * valarith.c (promotion_type, complex_binop): New functions.
5451 (scalar_binop): Handle complex numbers. Use promotion_type.
5452 (value_pos, value_neg, value_complement): Handle complex numbers.
5453
fa649bb7
TT
54542020-04-01 Tom Tromey <tom@tromey.com>
5455
5456 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5457 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5458 (parse_number): Handle complex numbers.
5459
981c08ce
TT
54602020-04-01 Tom Tromey <tom@tromey.com>
5461
5462 * c-valprint.c (c_decorations): Change complex suffix to "i".
5463
4c99290d
TT
54642020-04-01 Tom Tromey <tom@tromey.com>
5465
5466 * valprint.c (generic_value_print_complex): Use accessors.
5467 * value.h (value_real_part, value_imaginary_part): Declare.
5468 * valops.c (value_real_part, value_imaginary_part): New
5469 functions.
5470 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5471
5b930b45
TT
54722020-04-01 Tom Tromey <tom@tromey.com>
5473
5474 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5475 (read_range_type): Update.
5476 * mdebugread.c (basic_type): Update.
5477 * go-lang.c (build_go_types): Use init_complex_type.
5478 * gdbtypes.h (struct main_type) <complex_type>: New member.
5479 (init_complex_type): Update.
5480 (arch_complex_type): Don't declare.
5481 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5482 Make name if none given. Use alloc_type_copy. Look for cached
5483 complex type.
5484 (arch_complex_type): Remove.
5485 (gdbtypes_post_init): Use init_complex_type.
5486 * f-lang.c (build_fortran_types): Use init_complex_type.
5487 * dwarf2/read.c (read_base_type): Update.
5488 * d-lang.c (build_d_types): Use init_complex_type.
5489 * ctfread.c (read_base_type): Update.
5490
53cccef1
TBA
54912020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5492
5493 * infrun.c (stop_all_threads): Update assertion, plus when
5494 stopping threads, take into account that we might be trying
5495 to stop an all-stop target.
5496 (stop_waiting): Call 'stop_all_threads' if there exists a
5497 non-stop target.
5498
a0714d30
TBA
54992020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5500
5501 * target.h (exists_non_stop_target): New function declaration.
5502 * target.c (exists_non_stop_target): New function.
5503
60e22c1e
HD
55042020-04-01 Hannes Domani <ssbssa@yahoo.de>
5505
5506 PR gdb/24789
5507 * eval.c (is_integral_or_integral_reference): New function.
5508 (evaluate_subexp_standard): Allow integer references in
5509 pointer arithmetic.
5510
e139a727
TBA
55112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5512
5513 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5514 check for no ptid in the stop reply when the target is non-stop.
5515
e0802d59
TT
55162020-04-01 Tom Tromey <tromey@adacore.com>
5517
5518 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5519 "name" parameter to rvalue reference. Initialize m_name_holder.
5520 <lookup_name_info>: New overloads.
5521 <name>: Return gdb::string_view.
5522 <c_str>: New method.
5523 <make_ignore_params>: Update.
5524 <search_name_hash>: Update.
5525 <language_lookup_name>: Return const char *.
5526 <m_name>: Change type.
5527 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5528 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5529 (lookup_name_info::match_any): Update.
5530 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5531 Update.
5532 * minsyms.c (linkage_name_str): Update.
5533 * language.c (default_symbol_name_matcher): Update.
5534 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5535 Update.
5536 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5537 (ada_lookup_name_info::ada_lookup_name_info): Update.
5538 (literal_symbol_name_matcher): Update.
5539
8c072cb6
TT
55402020-04-01 Tom Tromey <tromey@adacore.com>
5541
5542 * psymtab.c (psymtab_search_name): Remove function.
5543 (psym_lookup_symbol): Create search name and lookup name here.
5544 (lookup_partial_symbol): Remove "name" parameter; add
5545 lookup_name.
5546 (psym_expand_symtabs_for_function): Update.
5547
6f29a534
TT
55482020-03-31 Joel Jones <joelkevinjones@gmail.com>
5549
5550 PR tui/25597:
5551 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5552
af62665e
TT
55532020-03-31 Tom Tromey <tromey@adacore.com>
5554
5555 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5556 memcpy.
5557
d1a89da5
NC
55582020-03-30 Nelson Chu <nelson.chu@sifive.com>
5559
5560 * features/riscv/32bit-csr.xml: Regenerated.
5561 * features/riscv/64bit-csr.xml: Regenerated.
5562
d8af9068
TT
55632020-03-30 Tom Tromey <tromey@adacore.com>
5564
5565 * ada-valprint.c (print_variant_part): Update.
5566 * ada-lang.h (ada_which_variant_applies): Update.
5567 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5568 outer_valaddr parameters; replace with "outer" value parameter.
5569 (to_fixed_variant_branch_type): Update.
5570
227c0bf4
PFC
55712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5572
5573 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5574 <list>. Remove inclusion of observable.h.
5575 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5576 (struct arch_lwp_info): New struct.
5577 (class ppc_linux_dreg_interface): New class.
5578 (struct ppc_linux_process_info): New struct.
5579 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5580 <low_new_clone, low_forget_process, low_prepare_to_resume>
5581 <copy_thread_dreg_state, mark_thread_stale>
5582 <mark_debug_registers_changed, register_hw_breakpoint>
5583 <clear_hw_breakpoint, register_wp, clear_wp>
5584 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5585 <num_memory_accesses, get_trigger_type>
5586 <create_watchpoint_request, hwdebug_point_cmp>
5587 <init_arch_lwp_info, get_arch_lwp_info>
5588 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5589 methods.
5590 <struct ptid_hash>: New inner struct.
5591 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5592 members.
5593 (saved_dabr_value, hwdebug_info, max_slots_number)
5594 (struct hw_break_tuple, struct thread_points, ppc_threads)
5595 (have_ptrace_hwdebug_interface)
5596 (hwdebug_find_thread_points_by_tid)
5597 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5598 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5599 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5600 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5601 use m_dreg_interface.
5602 (hwdebug_point_cmp): Change to...
5603 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5604 reference arguments instead of pointers.
5605 (ppc_linux_nat_target::ranged_break_num_registers): Use
5606 m_dreg_interface.
5607 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5608 m_dreg_interface. Call register_hw_breakpoint.
5609 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5610 m_dreg_interface. Call clear_hw_breakpoint.
5611 (get_trigger_type): Change to...
5612 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5613 comment.
5614 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5615 use m_dreg_interface. Call register_hw_breakpoint.
5616 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5617 use m_dreg_interface. Call clear_hw_breakpoint.
5618 (can_use_watchpoint_cond_accel): Change to...
5619 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5620 method. Update comment, use m_dreg_interface and
5621 m_process_info.
5622 (calculate_dvc): Change to...
5623 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5624 m_dreg_interface.
5625 (num_memory_accesses): Change to...
5626 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5627 (check_condition): Change to...
5628 (ppc_linux_nat_target::check_condition): ...this method.
5629 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5630 comment, use m_dreg_interface.
5631 (create_watchpoint_request): Change to...
5632 (ppc_linux_nat_target::create_watchpoint_request): ...this
5633 method. Use m_dreg_interface.
5634 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5635 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5636 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5637 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5638 (ppc_linux_nat_target::low_forget_process)
5639 (ppc_linux_nat_target::low_new_fork)
5640 (ppc_linux_nat_target::low_new_clone)
5641 (ppc_linux_nat_target::low_delete_thread)
5642 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5643 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5644 only call mark_thread_stale.
5645 (ppc_linux_thread_exit): Remove.
5646 (ppc_linux_nat_target::stopped_data_address): Change to...
5647 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5648 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5649 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5650 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5651 comment. Call low_stopped_data_address.
5652 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5653 m_dreg_interface.
5654 (ppc_linux_nat_target::masked_watch_num_registers): Use
5655 m_dreg_interface.
5656 (ppc_linux_nat_target::copy_thread_dreg_state)
5657 (ppc_linux_nat_target::mark_thread_stale)
5658 (ppc_linux_nat_target::mark_debug_registers_changed)
5659 (ppc_linux_nat_target::register_hw_breakpoint)
5660 (ppc_linux_nat_target::clear_hw_breakpoint)
5661 (ppc_linux_nat_target::register_wp)
5662 (ppc_linux_nat_target::clear_wp)
5663 (ppc_linux_nat_target::init_arch_lwp_info)
5664 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5665 (_initialize_ppc_linux_nat): Remove observer callback.
5666
4db10d8f
PFC
56672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5668
5669 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5670 (ppc_linux_nat_target::auxv_parse)
5671 (ppc_linux_nat_target::read_description)
5672 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5673 Move up.
5674
1310c1b0
PFC
56752020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5676
5677 * linux-nat.h (low_new_clone): New method.
5678 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5679
69b037c3
SM
56802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5681
5682 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5683 (dbx_expand_psymtab): ... this.
5684 (start_psymtab): Update.
5685 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5686 (mdebug_expand_psymtab): ... this.
5687 (parse_partial_symbols): Update.
5688 (new_psymtab): Update.
5689 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5690 (xcoff_expand_psymtab): ... this.
5691 (xcoff_start_psymtab): Update.
5692
48993951
SM
56932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5694
5695 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5696 <expand_dependencies>: ... this.
5697 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5698 (partial_symtab::expand_dependencies): ... this.
5699 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5700 Update.
5701 (dwarf2_psymtab::expand_psymtab): Update.
5702 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5703 * mdebugread.c (psymtab_to_symtab_1): Update.
5704 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5705
3ad83046
SM
57062020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5707
5708 * psympriv.h (discard_psymtab): Remove.
5709 * dbxread.c (dbx_end_psymtab): Update.
5710 * xcoffread.c (xcoff_end_psymtab): Update.
5711
4d1b9ab6
TT
57122020-03-28 Tom Tromey <tom@tromey.com>
5713
5714 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5715 comment.
5716
f1749218
TT
57172020-03-28 Tom Tromey <tom@tromey.com>
5718
5719 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5720
ebea7626
HD
57212020-03-27 Hannes Domani <ssbssa@yahoo.de>
5722
5723 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5724
a879b4d5
JB
57252020-03-26 John Baldwin <jhb@FreeBSD.org>
5726
5727 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5728
0826b30a
TT
57292020-03-26 Tom Tromey <tom@tromey.com>
5730
5731 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5732 (mark_common_block_symbol_computed, read_tag_string_type)
5733 (attr_to_dynamic_prop, read_subrange_type): Update.
5734 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5735 to be methods on struct attribute.
5736 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5737 (read_call_site_scope, partial_die_info::read)
5738 (partial_die_info::read, lookup_die_type, follow_die_ref):
5739 Update.
5740 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5741 from dwarf2_get_ref_die_offset.
5742 (attribute::constant_value): New method, from
5743 dwarf2_get_attr_constant_value.
5744 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5745 Declare method.
5746 <constant_value>: New method.
5747
2b2558bf
TT
57482020-03-26 Tom Tromey <tom@tromey.com>
5749
5750 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5751 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5752 (dwarf_type_encoding_name): Move to stringify.c.
5753 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5754 * dwarf2/stringify.c: New file.
5755 * dwarf2/stringify.h: New file.
5756
eeb64781
TT
57572020-03-26 Tom Tromey <tom@tromey.com>
5758
5759 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5760 Rewrite.
5761
a39fdb41
TT
57622020-03-26 Tom Tromey <tom@tromey.com>
5763
5764 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5765 methods.
5766 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5767 (lookup_ranges_base): Likewise.
5768 (read_cutu_die_from_dwo, read_full_die_1): Update.
5769
436c571c
TT
57702020-03-26 Tom Tromey <tom@tromey.com>
5771
5772 * dwarf2/read.c (read_import_statement, read_file_scope)
5773 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5774 (read_lexical_block_scope, read_call_site_scope)
5775 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5776 (handle_struct_member_die, process_structure_scope)
5777 (update_enumeration_type_from_children)
5778 (process_enumeration_scope, read_array_type, read_common_block)
5779 (read_namespace, read_module, read_subroutine_type): Update.
5780 (sibling_die): Remove.
5781
052c8bb8
TT
57822020-03-26 Tom Tromey <tom@tromey.com>
5783
5784 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5785 (build_type_psymtabs_reader, read_structure_type)
5786 (read_enumeration_type, read_full_die_1): Update.
5787 (dwarf2_attr_no_follow): Move to die.h.
5788 * dwarf2/die.h (struct die_info) <attr>: New method.
5789
2b24b6e4
TT
57902020-03-26 Tom Tromey <tom@tromey.com>
5791
5792 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5793 <base_address>: Now an optional.
5794 (dwarf2_find_base_address, dwarf2_rnglists_process)
5795 (dwarf2_ranges_process, fill_in_loclist_baton)
5796 (dwarf2_symbol_mark_computed): Update.
5797
c2d50fd0
TT
57982020-03-26 Tom Tromey <tom@tromey.com>
5799
5800 * dwarf2/read.c (struct die_info): Move to die.h.
5801 * dwarf2/die.h: New file.
5802
0df7ad3a
TT
58032020-03-26 Tom Tromey <tom@tromey.com>
5804
5805 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5806 * dwarf2/read.c
5807 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5808 Move to line-header.c.
5809 (read_checked_initial_length_and_offset, read_formatted_entries):
5810 Likewise.
5811 (dwarf_decode_line_header): Split into two.
5812 * dwarf2/line-header.c
5813 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5814 Move from read.c.
5815 (read_checked_initial_length_and_offset, read_formatted_entries):
5816 Likewise.
5817 (dwarf_decode_line_header): New function, split from read.c.
5818
86c0bb4c
TT
58192020-03-26 Tom Tromey <tom@tromey.com>
5820
5821 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5822 Declare method.
5823 * dwarf2/read.c (read_attribute_value): Update.
5824 (dwarf2_per_objfile::read_line_string): Rename from
5825 read_indirect_line_string.
5826 (read_formatted_entries): Update.
5827
2ef46c2f
TT
58282020-03-26 Tom Tromey <tom@tromey.com>
5829
5830 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5831 variable.
5832
4f9c1eda
TT
58332020-03-26 Tom Tromey <tom@tromey.com>
5834
5835 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5836 const.
5837 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5838 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5839 parameter const.
5840
5a0e026f
TT
58412020-03-26 Tom Tromey <tom@tromey.com>
5842
5843 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5844 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5845 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5846 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5847
8844c11b
TT
58482020-03-26 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5851 file_names_size, file_full_name, file_file_name>: Use const.
5852 <file_name_at, file_names>: Add const overload.
5853 * dwarf2/line-header.c (line_header::file_file_name)
5854 (line_header::file_full_name): Update.
5855
c90ec28a
TT
58562020-03-26 Tom Tromey <tom@tromey.com>
5857
5858 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5859 (macro_start_file, consume_improper_spaces)
5860 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5861 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5862 (dwarf_decode_macros): Move to macro.c.
5863 * dwarf2/macro.c: New file.
5864 * dwarf2/macro.h: New file.
5865 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5866
4f44ae6c
TT
58672020-03-26 Tom Tromey <tom@tromey.com>
5868
5869 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5870 method.
5871 * dwarf2/section.c: New method. From
5872 read_indirect_string_at_offset_from.
5873 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5874 (read_indirect_string_at_offset_from): Move to section.c.
5875 (read_indirect_string_at_offset): Rewrite.
5876 (read_indirect_line_string_at_offset): Remove.
5877 (read_indirect_string, read_indirect_line_string)
5878 (dwarf_decode_macro_bytes): Update.
5879
a0194fa8
TT
58802020-03-26 Tom Tromey <tom@tromey.com>
5881
5882 * dwarf2/section.h (struct dwarf2_section_info)
5883 <overload_complaint>: Declare.
5884 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5885 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5886 Rename from dwarf2_section_buffer_overflow_complaint.
5887 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5888 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5889
3d27bbdb
TT
58902020-03-26 Tom Tromey <tom@tromey.com>
5891
5892 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5893 Declare.
5894 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5895 Move from read.c.
5896 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5897 to section.c.
5898
9eac9650
TT
58992020-03-26 Tom Tromey <tom@tromey.com>
5900
5901 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5902
bf80d710
TT
59032020-03-26 Tom Tromey <tom@tromey.com>
5904
5905 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5906 "builder".
5907 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5908 parameter.
5909 (dwarf_decode_macros): Update.
5910
0314b390
TT
59112020-03-26 Tom Tromey <tom@tromey.com>
5912
5913 * dwarf2/read.c (read_attribute_value): Update.
5914 (read_indirect_string_from_dwz): Move to dwz.c; change into
5915 method.
5916 (dwarf_decode_macro_bytes): Update.
5917 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5918 * dwarf2/dwz.c: New file.
5919 * Makefile.in (COMMON_SFILES): Add dwz.c.
5920
9fda78b6
TT
59212020-03-26 Tom Tromey <tom@tromey.com>
5922
5923 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5924 * dwarf2/read.c: Add include.
5925 * dwarf2/index-write.c: Add include.
5926 * dwarf2/index-cache.c: Add include.
5927 * dwarf2/dwz.h: New file.
5928
33aa3c10
TT
59292020-03-25 Tom Tromey <tom@tromey.com>
5930
5931 * compile/compile-object-load.c (get_out_value_type): Mention
5932 correct symbol name in error message.
5933
d503b685
HD
59342020-03-25 Hannes Domani <ssbssa@yahoo.de>
5935
5936 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5937
7b1eff95
TV
59382020-03-25 Tom de Vries <tdevries@suse.de>
5939
5940 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5941 * symmisc.c (dump_symtab_1): Print user and includes fields.
5942 (maintenance_info_symtabs): Same.
5943
dd895392
AB
59442020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 PR gdb/25534
5947 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5948 (riscv_regcache_cooked_write): New function.
5949 (riscv_push_dummy_call): Use new function.
5950 (riscv_return_value): Likewise.
5951
5ab2fbf1
SM
59522020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5953
5954 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5955 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5956 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5957 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5958 * infrun.c (follow_fork): Likewise.
5959 (follow_fork_inferior): Likewise.
5960 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5961 * linux-nat.h (class linux_nat_target): Likewise.
5962 * remote.c (class remote_target) <follow_fork>: Likewise.
5963 (remote_target::follow_fork): Likewise.
5964 * target-delegates.c: Re-generate.
5965 * target.c (default_follow_fork): Likewise.
5966 (target_follow_fork): Likewise.
5967 * target.h (struct target_ops) <follow_fork>: Likewise.
5968 (target_follow_fork): Likewise.
5969
a64fafb5
TV
59702020-03-24 Tom de Vries <tdevries@suse.de>
5971
5972 * psymtab.c (maintenance_info_psymtabs): Print user field.
5973
fe26d3a3
TT
59742020-03-20 Tom Tromey <tromey@adacore.com>
5975
5976 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5977 const.
5978 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5979 const.
5980
c884cc46
SM
59812020-03-20 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * ptrace.m4: Don't check for ptrace declaration.
5984 * config.in: Re-generate.
5985 * configure: Re-generate.
5986 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5987 not defined.
5988
1ff700c2
KR
59892020-03-20 Kamil Rytarowski <n54@gmx.com>
5990
5991 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5992 `PTRACE_TYPE_RET'.
5993 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5994 * sparc-nat.c (gdb_ptrace): Likewise.
5995 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5996
f7d4f0b1
TT
59972020-03-20 Tom Tromey <tromey@adacore.com>
5998
5999 * c-exp.y (lex_one_token): Fix assert.
6000
f67210ff
TT
60012020-03-20 Tom Tromey <tromey@adacore.com>
6002
6003 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6004 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6005 strncpy call.
6006
1773be9e
TT
60072020-03-20 Tom Tromey <tromey@adacore.com>
6008
6009 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6010
70304be9
TT
60112020-03-20 Tom Tromey <tromey@adacore.com>
6012
6013 * ada-valprint.c (print_variant_part): Remove parameters; switch
6014 to value-based API.
6015 (print_field_values): Likewise.
6016 (ada_val_print_struct_union): Likewise.
6017 (ada_value_print_1): Update.
6018
9faa006d
KR
60192020-03-20 Kamil Rytarowski <n54@gmx.com>
6020
6021 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6022 nbsd_nat_target instead of inf_ptrace_target.
6023 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6024 nbsd_nat_target.
6025
4a90f062
KR
60262020-03-20 Kamil Rytarowski <n54@gmx.com>
6027
6028 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6029 it to the ptrace call.
6030 * (store_registers): Likewise.
6031
60322020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6033
6034 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6035 it to the ptrace call.
6036 * (store_registers): Likewise.
6037
2d07da27
LM
60382020-03-19 Luis Machado <luis.machado@linaro.org>
6039
6040 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6041 valid, fetch vg value from ptrace.
6042
f09db380
KR
60432020-03-19 Kamil Rytarowski <n54@gmx.com>
6044 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6045 * inf-ptrace.c: Likewise.
6046 * (gdb_ptrace): Add.
6047 * (inf_ptrace_target::resume): Update.
6048 * (inf_ptrace_target::xfer_partial): Likewise.
6049 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6050 * (inf_ptrace_peek_poke): Update.
6051
fcc7376e
KR
60522020-03-19 Kamil Rytarowski <n54@gmx.com>
6053
6054 * x86-bsd-nat.c (gdb_ptrace): New.
6055 * (x86bsd_dr_set): Add new argument `ptid'.
6056 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6057 x86bsd_dr_set_addr): Update.
6058
cada5fc9
AB
60592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6060
6061 * remote.c (remote_target::process_stop_reply): Handle events for
6062 all threads differently.
6063
19a2740f
AB
60642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6065
6066 * completer.c (completion_tracker::remove_completion): Define new
6067 function.
6068 * completer.h (completion_tracker::remove_completion): Declare new
6069 function.
6070 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6071 when adding a C++ function symbol.
6072
724fd9ba
AB
60732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6074
6075 * completer.c (completion_tracker::completion_hash_entry): Define
6076 new class.
6077 (advance_to_filename_complete_word_point): Call
6078 recompute_lowest_common_denominator.
6079 (completion_tracker::completion_tracker): Call discard_completions
6080 to setup the hash table.
6081 (completion_tracker::discard_completions): Allow for being called
6082 from the constructor, pass new equal function, and element deleter
6083 when constructing the hash table. Initialise new class member
6084 variables.
6085 (completion_tracker::maybe_add_completion): Remove use of
6086 m_entries_vec, and store more information into m_entries_hash.
6087 (completion_tracker::recompute_lcd_visitor): New function, most
6088 content taken from...
6089 (completion_tracker::recompute_lowest_common_denominator):
6090 ...here, this now just visits each item in the hash calling the
6091 above visitor.
6092 (completion_tracker::build_completion_result): Remove use of
6093 m_entries_vec, call recompute_lowest_common_denominator.
6094 * completer.h (completion_tracker::have_completions): Remove use
6095 of m_entries_vec.
6096 (completion_tracker::completion_hash_entry): Declare new class.
6097 (completion_tracker::recompute_lowest_common_denominator): Change
6098 function signature.
6099 (completion_tracker::recompute_lcd_visitor): Declare new function.
6100 (completion_tracker::m_entries_vec): Delete.
6101 (completion_tracker::m_entries_hash): Initialize to NULL.
6102 (completion_tracker::m_lowest_common_denominator_valid): New
6103 member variable.
6104 (completion_tracker::m_lowest_common_denominator_max_length): New
6105 member variable.
6106
5a82b8a1
KR
61072020-03-17 Kamil Rytarowski <n54@gmx.com>
6108
6109 * regformats/regdef.h: Put reg in gdb namespace.
6110
fb516a69
KR
61112020-03-17 Kamil Rytarowski <n54@gmx.com>
6112
6113 * i386-bsd-nat.c (gdb_ptrace): New.
6114 * (i386bsd_fetch_inferior_registers,
6115 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6116 * (i386bsd_fetch_inferior_registers,
6117 i386bsd_store_inferior_registers) Use gdb_ptrace.
6118
1c0aa1fb
KR
61192020-03-17 Kamil Rytarowski <n54@gmx.com>
6120
6121 * amd64-bsd-nat.c (gdb_ptrace): New.
6122 * (amd64bsd_fetch_inferior_registers,
6123 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6124 * (amd64bsd_fetch_inferior_registers,
6125 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6126
5ccd2fb7
KR
61272020-03-17 Kamil Rytarowski <n54@gmx.com>
6128
6129 * user-regs.c (user_reg::read): Rename to...
6130 (user_reg::xread): ...this.
6131 * (append_user_reg): Rename argument `read' to `xread'.
6132 * (user_reg_add_builtin): Likewise.
6133 * (user_reg_add): Likewise.
6134 * (value_of_user_reg): Likewise.
6135
2108a63a
KR
61362020-03-17 Kamil Rytarowski <n54@gmx.com>
6137
6138 * sparc-nat.c (gdb_ptrace): New.
6139 * sparc-nat.c (sparc_fetch_inferior_registers)
6140 (sparc_store_inferior_registers) Remove obsolete comment.
6141 * sparc-nat.c (sparc_fetch_inferior_registers)
6142 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6143 * sparc-nat.c (sparc_fetch_inferior_registers)
6144 (sparc_store_inferior_registers) Use gdb_ptrace.
6145
a225c9a8
KR
61462020-03-17 Kamil Rytarowski <n54@gmx.com>
6147
6148 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6149 it to the ptrace call.
6150 * sh-nbsd-nat.c (store_registers): Likewise.
6151
98097623
KR
61522020-03-17 Kamil Rytarowski <n54@gmx.com>
6153
6154 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6155 nbsd_nat_target instead of inf_ptrace_target.
6156 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6157 nbsd_nat_target.
6158
9e38d619
KR
61592020-03-17 Kamil Rytarowski <n54@gmx.com>
6160
6161 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6162
a2ecbe9f
KR
61632020-03-17 Kamil Rytarowski <n54@gmx.com>
6164
6165 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6166 <sys/sysctl.h>.
6167 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6168
58990295
TV
61692020-03-17 Tom de Vries <tdevries@suse.de>
6170
6171 PR gdb/23710
6172 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6173 fields.
6174 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6175 fields.
6176 (process_imported_unit_die): Skip import of c++ CUs.
6177
771dd3a8
TT
61782020-03-16 Tom Tromey <tom@tromey.com>
6179
6180 * p-valprint.c (pascal_object_print_value): Initialize
6181 base_value.
6182
817a7585
AK
61832020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6184 Shahab Vahedi <shahab@synopsys.com>
6185
6186 * Makefile.in: Add arch/arc.o
6187 * configure.tgt: Likewise.
6188 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6189 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6190 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6191 * arc-tdep.h (arc_read_description): Add proto type.
6192 * arch/arc.c: New file.
6193 * arch/arc.h: Likewise.
6194 * features/Makefile: Replace old target descriptions with new.
6195 * features/arc-arcompact.c: Remove.
6196 * features/arc-arcompact.xml: Likewise.
6197 * features/arc-v2.c: Likewise
6198 * features/arc-v2.xml: Likewise
6199 * features/arc/aux-arcompact.xml: New file.
6200 * features/arc/aux-v2.xml: Likewise.
6201 * features/arc/core-arcompact.xml: Likewise.
6202 * features/arc/core-v2.xml: Likewise.
6203 * features/arc/aux-arcompact.c: Generate.
6204 * features/arc/aux-v2.c: Likewise.
6205 * features/arc/core-arcompact.c: Likewise.
6206 * features/arc/core-v2.c: Likewise.
6207 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6208
67430cd0
TT
62092020-03-16 Tom Tromey <tromey@adacore.com>
6210
6211 PR gdb/25663:
6212 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6213 putting value into bcache.
6214
30efb6c7
SM
62152020-03-16 Simon Marchi <simon.marchi@efficios.com>
6216
6217 PR gdb/21500
6218 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6219 to...
6220 (amd64_windows_init_abi_common): ... this. Don't set size of
6221 long type.
6222 (amd64_windows_init_abi): New function.
6223 (amd64_cygwin_init_abi): New function.
6224 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6225 the Cygwin OS ABI.
6226 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6227 comment.
6228
8db52437
SM
62292020-03-16 Simon Marchi <simon.marchi@efficios.com>
6230
6231 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6232 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6233 (pe_import_directory_entry): New struct type.
6234 (is_linked_with_cygwin_dll): New function.
6235 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6236 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6237 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6238
5982a56a
SM
62392020-03-16 Simon Marchi <simon.marchi@efficios.com>
6240
6241 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6242 i386_cygwin_core_osabi_sniffer.
6243
7a1998df
SM
62442020-03-16 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * i386-cygwin-tdep.c: Rename to...
6247 * i386-windows-tdep.c: ... this.
6248 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6249 i386-windows-tdep.c.
6250 * configure.tgt: Likewise.
6251
053205cc
SM
62522020-03-16 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6255 * osabi.c (gdb_osabi_names): Add "Windows".
6256 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6257 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6258 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6259 i386_cygwin_osabi_sniffer.
6260 (_initialize_i386_cygwin_tdep): Register OS ABI
6261 GDB_OSABI_WINDOWS for i386.
6262 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6263 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6264 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6265 for x86-64.
6266 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6267 when the target matches '*-*-mingw*'.
6268
fe4b2ee6
SM
62692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * defs.h (enum gdb_osabi): Move to...
6272 * osabi.h (enum gdb_osabi): ... here.
6273 * gdbarch.sh: Include osabi.h in gdbarch.h.
6274 * gdbarch.h: Re-generate.
6275
cb9b645d
SM
62762020-03-16 Simon Marchi <simon.marchi@efficios.com>
6277
6278 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6279 function.
6280 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6281
3293bbaf
TT
62822020-03-14 Tom Tromey <tom@tromey.com>
6283
6284 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6285 for C++.
6286 (c_type_print_modifier): Likewise. Add "language" parameter.
6287 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6288 (c_type_print_base_1): Update.
6289 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6290 constants.
6291 * type-stack.c (type_stack::insert): Handle tp_atomic and
6292 tp_restrict.
6293 (type_stack::follow_type_instance_flags): Likewise.
6294 (type_stack::follow_types): Likewise. Merge type-following code.
6295 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6296 (space_identifier, cv_with_space_id)
6297 (const_or_volatile_or_space_identifier_noopt)
6298 (const_or_volatile_or_space_identifier): Remove.
6299 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6300 rules.
6301 (ptr_operator, typebase): Update.
6302 (enum token_flag) <FLAG_C>: New constant.
6303 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6304 "_Atomic".
6305 (lex_one_token): Handle FLAG_C.
6306
154151a6
KR
63072020-03-14 Kamil Rytarowski <n54@gmx.com>
6308
6309 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6310 it to the ptrace call.
6311 * m68k-bsd-nat.c (store_registers): Likewise.
6312
bc107784
KR
63132020-03-14 Kamil Rytarowski <n54@gmx.com>
6314
6315 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6316 gdb_byte *.
6317 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6318 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6319 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6320
01a80117
KR
63212020-03-14 Kamil Rytarowski <n54@gmx.com>
6322
6323 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6324 nbsd_nat_target instead of inf_ptrace_target.
6325 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6326 nbsd_nat_target.
6327
f90280ca
KR
63282020-03-14 Kamil Rytarowski <n54@gmx.com>
6329
6330 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6331 register_t.
6332
6def66f1
KR
63332020-03-14 Kamil Rytarowski <n54@gmx.com>
6334
6335 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6336 it to the ptrace call.
6337 * alpha-bsd-nat.c (store_registers): Likewise.
6338
66eaca97
KR
63392020-03-14 Kamil Rytarowski <n54@gmx.com>
6340
6341 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6342 includes.
6343 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6344 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6345 fill_fpregset): Likewise.
6346
4fed520b
KR
63472020-03-14 Kamil Rytarowski <n54@gmx.com>
6348
6349 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6350 nbsd_nat_target instead of inf_ptrace_target.
6351 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6352 nbsd_nat_target.
6353
2190cf06
KR
63542020-03-14 Kamil Rytarowski <n54@gmx.com>
6355
6356 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6357 register_t.
6358
75c56d3d
KR
63592020-03-14 Kamil Rytarowski <n54@gmx.com>
6360
6361 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6362 it to the ptrace call.
6363 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6364 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6365 * arm-nbsd-nat.c (store_register): Likewise.
6366 * arm-nbsd-nat.c (store_regs): Likewise.
6367 * arm-nbsd-nat.c (store_fp_register): Likewise.
6368 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6369
6018d381
KR
63702020-03-14 Kamil Rytarowski <n54@gmx.com>
6371
6372 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6373 nbsd_nat_target instead of inf_ptrace_target.
6374 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6375 nbsd_nat_target.
6376
013f99f0
KR
63772020-03-14 Kamil Rytarowski <n54@gmx.com>
6378
6379 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6380 it to the ptrace call.
6381 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6382
12753073
KR
63832020-03-14 Kamil Rytarowski <n54@gmx.com>
6384
6227b330
KR
6385 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6386 it to the ptrace call.
6387 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6388
63892020-03-14 Kamil Rytarowski <n54@gmx.com>
6390
6391 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6392 gdb_byte *.
12753073
KR
6393 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6394
d5be5fa4
KR
63952020-03-14 Kamil Rytarowski <n54@gmx.com>
6396
6397 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6398 instead of inf_ptrace_target.
6399 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6400 nbsd_nat_target.
6401
8110f842
KR
64022020-03-14 Kamil Rytarowski <n54@gmx.com>
6403
6404 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6405 register_t.
6406
52feded7
KR
64072020-03-14 Kamil Rytarowski <n54@gmx.com>
6408
6409 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6410 register_t.
6411
25567eee
KR
64122020-03-14 Kamil Rytarowski <n54@gmx.com>
6413
6414 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6415 register_t.
6416
426a9c18
TT
64172020-03-13 Tom Tromey <tom@tromey.com>
6418
6419 * value.h (val_print): Don't declare.
6420 * valprint.h (val_print_array_elements)
6421 (val_print_scalar_formatted, generic_val_print): Don't declare.
6422 * valprint.c (generic_val_print_array): Take a struct value.
6423 (generic_val_print_ptr, generic_val_print_memberptr)
6424 (generic_val_print_bool, generic_val_print_int)
6425 (generic_val_print_char, generic_val_print_complex)
6426 (generic_val_print): Remove.
6427 (generic_value_print): Update.
6428 (do_val_print): Remove unused parameters. Don't call
6429 la_val_print.
6430 (val_print): Remove.
6431 (common_val_print): Update. Don't call value_check_printable.
6432 (val_print_scalar_formatted, val_print_array_elements): Remove.
6433 * rust-lang.c (rust_val_print): Remove.
6434 (rust_language_defn): Update.
6435 * p-valprint.c (pascal_val_print): Remove.
6436 (pascal_value_print_inner): Update.
6437 (pascal_object_print_val_fields, pascal_object_print_val):
6438 Remove.
6439 (pascal_object_print_static_field): Update.
6440 * p-lang.h (pascal_val_print): Don't declare.
6441 * p-lang.c (pascal_language_defn): Update.
6442 * opencl-lang.c (opencl_language_defn): Update.
6443 * objc-lang.c (objc_language_defn): Update.
6444 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6445 * m2-lang.h (m2_val_print): Don't declare.
6446 * m2-lang.c (m2_language_defn): Update.
6447 * language.h (struct language_defn) <la_val_print>: Remove.
6448 * language.c (unk_lang_value_print_inner): Rename. Change
6449 argument types.
6450 (unknown_language_defn, auto_language_defn): Update.
6451 * go-valprint.c (go_val_print): Remove.
6452 * go-lang.h (go_val_print): Don't declare.
6453 * go-lang.c (go_language_defn): Update.
6454 * f-valprint.c (f_val_print): Remove.
6455 * f-lang.h (f_value_print): Don't declare.
6456 * f-lang.c (f_language_defn): Update.
6457 * d-valprint.c (d_val_print): Remove.
6458 * d-lang.h (d_value_print): Don't declare.
6459 * d-lang.c (d_language_defn): Update.
6460 * cp-valprint.c (cp_print_value_fields)
6461 (cp_print_value_fields_rtti, cp_print_value): Remove.
6462 (cp_print_static_field): Update.
6463 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6464 (c_val_print_struct, c_val_print_union, c_val_print_int)
6465 (c_val_print_memberptr, c_val_print): Remove.
6466 * c-lang.h (c_val_print_array, cp_print_value_fields)
6467 (cp_print_value_fields_rtti): Don't declare.
6468 * c-lang.c (c_language_defn, cplus_language_defn)
6469 (asm_language_defn, minimal_language_defn): Update.
6470 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6471 (ada_val_print_enum): Take a struct value.
6472 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6473 (ada_val_print): Remove.
6474 (ada_value_print_1): Update.
6475 (printable_val_type): Remove.
6476 * ada-lang.h (ada_val_print): Don't declare.
6477 * ada-lang.c (ada_language_defn): Update.
6478
42331a1e
TT
64792020-03-13 Tom Tromey <tom@tromey.com>
6480
6481 * valprint.c (do_val_print): Update.
6482 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6483 a struct value.
6484 (value_to_value_object_no_release): Declare.
6485 * python/py-value.c (value_to_value_object_no_release): New
6486 function.
6487 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6488 struct value.
6489 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6490 function.
6491 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6492 a struct value.
6493 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6494 Declare.
6495 (gdbscm_apply_val_pretty_printer): Take a struct value.
6496 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6497 value.
6498 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6499 value.
6500 * extension-priv.h (struct extension_language_ops)
6501 <apply_val_pretty_printer>: Take a struct value.
6502 * cp-valprint.c (cp_print_value): Create a struct value.
6503 (cp_print_value): Update.
6504
3a916a97
TT
65052020-03-13 Tom Tromey <tom@tromey.com>
6506
6507 * ada-valprint.c (print_field_values): Call common_val_print.
6508
b59eac37
TT
65092020-03-13 Tom Tromey <tom@tromey.com>
6510
6511 * ada-valprint.c (val_print_packed_array_elements): Remove
6512 bitoffset and val parameters. Call common_val_print.
6513 (ada_val_print_string): Remove offset, address, and original_value
6514 parameters.
6515 (ada_val_print_array): Update.
6516 (ada_value_print_array): New function.
6517 (ada_value_print_1): Call it.
6518
03371129
TT
65192020-03-13 Tom Tromey <tom@tromey.com>
6520
6521 * ada-valprint.c (ada_value_print): Use common_val_print.
6522
2e088f8b
TT
65232020-03-13 Tom Tromey <tom@tromey.com>
6524
6525 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6526
39ef85a8
TT
65272020-03-13 Tom Tromey <tom@tromey.com>
6528
6529 * ada-valprint.c (ada_value_print_num): New function.
6530 (ada_value_print_1): Use it.
6531
b9fa6e07
TT
65322020-03-13 Tom Tromey <tom@tromey.com>
6533
6534 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6535
416595d6
TT
65362020-03-13 Tom Tromey <tom@tromey.com>
6537
6538 * ada-valprint.c (ada_value_print_ptr): New function.
6539 (ada_value_print_1): Use it.
6540
5b5e15ec
TT
65412020-03-13 Tom Tromey <tom@tromey.com>
6542
6543 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6544 call common_val_print.
6545 (ada_val_print_1): Update.
6546 (ada_value_print_1): New function.
6547 (ada_value_print_inner): Rewrite.
6548
fbf54e75
TT
65492020-03-13 Tom Tromey <tom@tromey.com>
6550
6551 * cp-valprint.c (cp_print_value_fields): Update.
6552 (cp_print_value): New function.
6553
64b653ca
TT
65542020-03-13 Tom Tromey <tom@tromey.com>
6555
6556 * m2-valprint.c (m2_value_print_inner): Use
6557 cp_print_value_fields.
6558 * cp-valprint.c (cp_print_value_fields): New function.
6559 * c-valprint.c (c_value_print_struct): New function.
6560 (c_value_print_inner): Use c_value_print_struct.
6561 * c-lang.h (cp_print_value_fields): Declare.
6562
6999f067
TT
65632020-03-13 Tom Tromey <tom@tromey.com>
6564
6565 * c-valprint.c (c_value_print_array): New function.
6566 (c_value_print_inner): Use it.
6567
ce80b8bd
TT
65682020-03-13 Tom Tromey <tom@tromey.com>
6569
6570 * c-valprint.c (c_value_print_memberptr): New function.
6571 (c_value_print_inner): Use it.
6572
2faac269
TT
65732020-03-13 Tom Tromey <tom@tromey.com>
6574
6575 * c-valprint.c (c_value_print_int): New function.
6576 (c_value_print_inner): Use it.
6577
da3e2c29
TT
65782020-03-13 Tom Tromey <tom@tromey.com>
6579
6580 * c-valprint.c (c_value_print_ptr): New function.
6581 (c_value_print_inner): Use it.
6582
50836231
TT
65832020-03-13 Tom Tromey <tom@tromey.com>
6584
6585 * c-valprint.c (c_value_print_inner): Rewrite.
6586
4f412b6e
TT
65872020-03-13 Tom Tromey <tom@tromey.com>
6588
6589 * valprint.c (generic_value_print_complex): New function.
6590 (generic_value_print): Use it.
6591
f5354008
TT
65922020-03-13 Tom Tromey <tom@tromey.com>
6593
6594 * valprint.c (generic_val_print_float): Don't call
6595 val_print_scalar_formatted.
6596 (generic_val_print, generic_value_print): Update.
6597
3eec3b05
TT
65982020-03-13 Tom Tromey <tom@tromey.com>
6599
6600 * valprint.c (generic_value_print_char): New function
6601 (generic_value_print): Use it.
6602
fdddfccb
TT
66032020-03-13 Tom Tromey <tom@tromey.com>
6604
6605 * valprint.c (generic_value_print_int): New function.
6606 (generic_value_print): Use it.
6607
6dde7521
TT
66082020-03-13 Tom Tromey <tom@tromey.com>
6609
6610 * valprint.c (generic_value_print_bool): New function.
6611 (generic_value_print): Use it.
6612
4112d2e6
TT
66132020-03-13 Tom Tromey <tom@tromey.com>
6614
6615 * valprint.c (generic_val_print_func): Simplify.
6616 (generic_val_print, generic_value_print): Update.
6617
65786af6
TT
66182020-03-13 Tom Tromey <tom@tromey.com>
6619
6620 * valprint.c (generic_val_print_flags): Remove.
6621 (generic_val_print, generic_value_print): Update.
6622 (val_print_type_code_flags): Add original_value parameter.
6623
40f3ce18
TT
66242020-03-13 Tom Tromey <tom@tromey.com>
6625
6626 * valprint.c (generic_val_print): Update.
6627 (generic_value_print): Update.
6628 * valprint.c (generic_val_print_enum): Don't call
6629 val_print_scalar_formatted.
6630
2a5b130b
TT
66312020-03-13 Tom Tromey <tom@tromey.com>
6632
6633 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6634 * valprint.c (generic_value_print_ptr): New function.
6635
abc66ce9
TT
66362020-03-13 Tom Tromey <tom@tromey.com>
6637
6638 * valprint.c (generic_value_print): Rewrite.
6639
07a32858
TT
66402020-03-13 Tom Tromey <tom@tromey.com>
6641
6642 * p-valprint.c (pascal_object_print_value_fields)
6643 (pascal_object_print_value): New functions.
6644
64d64d3a
TT
66452020-03-13 Tom Tromey <tom@tromey.com>
6646
6647 * p-valprint.c (pascal_value_print_inner): Rewrite.
6648
6a95a1f5
TT
66492020-03-13 Tom Tromey <tom@tromey.com>
6650
6651 * f-valprint.c (f_value_print_innner): Rewrite.
6652
59fcdac6
TT
66532020-03-13 Tom Tromey <tom@tromey.com>
6654
6655 * m2-valprint.c (m2_print_unbounded_array): New overload.
6656 (m2_print_unbounded_array): Update.
6657 (m2_print_array_contents): Take a struct value.
6658 (m2_value_print_inner): Rewrite.
6659
d133c3e1
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6663 (d_value_print_inner): New function.
6664 * d-lang.h (d_value_print_inner): Declare.
6665 * d-lang.c (d_language_defn): Use d_value_print_inner.
6666
23b0f06b
TT
66672020-03-13 Tom Tromey <tom@tromey.com>
6668
6669 * go-valprint.c (go_value_print_inner): New function.
6670 * go-lang.h (go_value_print_inner): Declare.
6671 * go-lang.c (go_language_defn): Use go_value_print_inner.
6672
5f56f7cb
TT
66732020-03-13 Tom Tromey <tom@tromey.com>
6674
6675 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6676 API.
6677 (rust_val_print): Rewrite.
6678 (rust_value_print_inner): New function, from rust_val_print.
6679 (rust_language_defn): Use rust_value_print_inner.
6680
26792ee0
TT
66812020-03-13 Tom Tromey <tom@tromey.com>
6682
6683 * ada-valprint.c (ada_value_print_inner): New function.
6684 * ada-lang.h (ada_value_print_inner): Declare.
6685 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6686
24051bbe
TT
66872020-03-13 Tom Tromey <tom@tromey.com>
6688
6689 * f-valprint.c (f_value_print_innner): New function.
6690 * f-lang.h (f_value_print_innner): Declare.
6691 * f-lang.c (f_language_defn): Use f_value_print_innner.
6692
c0941be6
TT
66932020-03-13 Tom Tromey <tom@tromey.com>
6694
6695 * p-valprint.c (pascal_value_print_inner): New function.
6696 * p-lang.h (pascal_value_print_inner): Declare.
6697 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6698
62c4663d
TT
66992020-03-13 Tom Tromey <tom@tromey.com>
6700
6701 * m2-valprint.c (m2_value_print_inner): New function.
6702 * m2-lang.h (m2_value_print_inner): Declare.
6703 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6704
62182190
TT
67052020-03-13 Tom Tromey <tom@tromey.com>
6706
6707 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6708 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6709 * c-valprint.c (c_value_print_inner): New function.
6710 * c-lang.h (c_value_print_inner): Declare.
6711 * c-lang.c (c_language_defn, cplus_language_defn)
6712 (asm_language_defn, minimal_language_defn): Use
6713 c_value_print_inner.
6714
1e592a8a
TT
67152020-03-13 Tom Tromey <tom@tromey.com>
6716
6717 * p-valprint.c (pascal_object_print_value_fields): Now static.
6718 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6719
7fe471e9
TT
67202020-03-13 Tom Tromey <tom@tromey.com>
6721
6722 * c-valprint.c (c_val_print_array): Simplify.
6723
d121c6ce
TT
67242020-03-13 Tom Tromey <tom@tromey.com>
6725
6726 * valprint.c (value_print_array_elements): New function.
6727 * valprint.h (value_print_array_elements): Declare.
6728
4dba70ee
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6732 * mips-tdep.c (mips_print_register): Use
6733 value_print_scalar_formatted.
6734
4f9ae810
TT
67352020-03-13 Tom Tromey <tom@tromey.com>
6736
6737 * valprint.h (value_print_scalar_formatted): Declare.
6738 * valprint.c (value_print_scalar_formatted): New function.
6739
156bfec9
TT
67402020-03-13 Tom Tromey <tom@tromey.com>
6741
6742 * valprint.h (generic_value_print): Declare.
6743 * valprint.c (generic_value_print): New function.
6744
2b4e573d
TT
67452020-03-13 Tom Tromey <tom@tromey.com>
6746
6747 * valprint.c (do_val_print): Call la_value_print_inner, if
6748 available.
6749 * rust-lang.c (rust_language_defn): Update.
6750 * p-lang.c (pascal_language_defn): Update.
6751 * opencl-lang.c (opencl_language_defn): Update.
6752 * objc-lang.c (objc_language_defn): Update.
6753 * m2-lang.c (m2_language_defn): Update.
6754 * language.h (struct language_defn) <la_value_print_inner>: New
6755 member.
6756 * language.c (unknown_language_defn, auto_language_defn): Update.
6757 * go-lang.c (go_language_defn): Update.
6758 * f-lang.c (f_language_defn): Update.
6759 * d-lang.c (d_language_defn): Update.
6760 * c-lang.c (c_language_defn, cplus_language_defn)
6761 (asm_language_defn, minimal_language_defn): Update.
6762 * ada-lang.c (ada_language_defn): Update.
6763
a1f6a07c
TT
67642020-03-13 Tom Tromey <tom@tromey.com>
6765
6766 * c-valprint.c (c_value_print): Use common_val_print.
6767
410cf315
TT
67682020-03-13 Tom Tromey <tom@tromey.com>
6769
6770 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6771
72a45c93
TT
67722020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * f-valprint.c (f77_print_array_1, f_val_print): Use
6775 common_val_print.
6776
040f66bd
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * riscv-tdep.c (riscv_print_one_register_info): Use
6780 common_val_print.
6781
a6e05a6c
TT
67822020-03-13 Tom Tromey <tom@tromey.com>
6783
6784 * mi/mi-main.c (output_register): Use common_val_print.
6785
3444c526
TT
67862020-03-13 Tom Tromey <tom@tromey.com>
6787
6788 * infcmd.c (default_print_one_register_info): Use
6789 common_val_print.
6790
c2a44efe
TT
67912020-03-13 Tom Tromey <tom@tromey.com>
6792
6793 * valprint.h (common_val_print_checked): Declare.
6794 * valprint.c (common_val_print_checked): New function.
6795 * stack.c (print_frame_arg): Use common_val_print_checked.
6796
b0c26e99
TT
67972020-03-13 Tom Tromey <tom@tromey.com>
6798
6799 * valprint.c (do_val_print): New function, from val_print.
6800 (val_print): Use do_val_print.
6801 (common_val_print): Use do_val_print.
6802
ce3acbe9
TT
68032020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * valprint.c (value_print): Use scoped_value_mark.
6806
96c7f873
TV
68072020-03-13 Tom de Vries <tdevries@suse.de>
6808
6809 PR symtab/25646
6810 * psymtab.c (partial_symtab::partial_symtab): Don't set
6811 globals_offset and statics_offset. Push element onto
6812 current_global_psymbols and current_static_psymbols stacks.
6813 (concat): New function.
6814 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6815 element from current_global_psymbols and current_static_psymbols
6816 stacks. Concat popped elements to global_psymbols and
6817 static_symbols.
6818 (add_psymbol_to_list): Use current_global_psymbols and
6819 current_static_psymbols stacks.
6820 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6821 current_static_psymbols fields.
6822
6ba0a321
CB
68232020-03-12 Christian Biesinger <cbiesinger@google.com>
6824
6825 * corelow.c (sniff_core_bfd): Remove.
6826 (class core_target) <m_core_vec>: Remove.
6827 (core_target::core_target): Update.
6828 (core_file_fns): Remove.
6829 (deprecated_add_core_fns): Remove.
6830 (default_core_sniffer): Remove.
6831 (sniff_core_bfd): Remove.
6832 (default_check_format): Remove.
6833 (gdb_check_format): Remove.
6834 (core_target_open): Update.
6835 (core_target::get_core_register_section): Update.
6836 (get_core_registers_cb): Update.
6837 (core_target::fetch_registers): Update.
6838 * gdbcore.h (struct core_fns): Remove.
6839 (deprecated_add_core_fns): Remove.
6840 (default_core_sniffer): Remove.
6841 (default_check_format): Remove.
6842
227031b2
TT
68432020-03-12 Tom Tromey <tom@tromey.com>
6844
6845 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6846 CORE_ADDR.
6847 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6848
53807e9f
TT
68492020-03-12 Tom Tromey <tom@tromey.com>
6850
6851 * remote.c (remote_target::download_tracepoint)
6852 (remote_target::enable_tracepoint)
6853 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6854 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6855 sprintf_vma.
6856
64f25102
TT
68572020-03-12 Tom Tromey <tom@tromey.com>
6858
6859 * symfile-mem.c: Update CORE_ADDR size assert.
6860
272cd5a3
SM
68612020-03-12 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * selftest.m4: Move to gdbsupport/.
6864 * acinclude.m4: Update path to selftest.m4.
6865
74cd3f9d
SM
68662020-03-12 Simon Marchi <simon.marchi@efficios.com>
6867
6868 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6869 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6870 gdbarch-selfselftests.c and selftest-arch.c.
6871 (SUBDIR_UNITTESTS_OBS): Rename to...
6872 (SELFTESTS_OBS): ... this.
6873 (COMMON_SFILES): Remove disasm-selftests.c and
6874 gdbarch-selftests.c.
6875 * configure.ac: Don't add selftest-arch.{c,o} to
6876 CONFIG_{SRCS,OBS}.
6877 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6878 preprocessor conditions.
6879
db6878ac
SM
68802020-03-12 Simon Marchi <simon.marchi@efficios.com>
6881
6882 * configure.ac: Don't source bfd/development.sh.
6883 * selftest.m4: Modify comment.
6884 * configure: Re-generate.
6885
4d696a5c
SM
68862020-03-12 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6889 not "true" or "false".
6890 * configure: Re-generate.
6891
8dd8e1c7
CB
68922020-03-12 Christian Biesinger <cbiesinger@google.com>
6893
6894 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6895 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6896 renamed to arm_nbsd_supply_gregset.
6897 (fetch_register): Update to call arm_nbsd_supply_gregset.
6898 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6899 (arm_netbsd_nat_target::fetch_registers): Update.
6900 (fetch_elfcore_registers): Removed.
6901 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6902 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6903 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6904 not require NetBSD system headers.
6905 (arm_nbsd_regset): New struct.
6906 (arm_nbsd_iterate_over_regset_sections): New function.
6907 (arm_netbsd_init_abi_common): Updated to call
6908 set_gdbarch_iterate_over_regset_sections.
6909 * arm-nbsd-tdep.h: New file.
6910
dd69bf7a
KB
69112020-03-11 Kevin Buettner <kevinb@redhat.com>
6912
6913 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6914 recursion.
6915
a0761e34
SM
69162020-03-11 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * configure: Re-generate.
6919
e7a82140
TT
69202020-03-11 Tom Tromey <tromey@adacore.com>
6921
6922 * ada-typeprint.c (print_choices): Fix comment.
6923
dcc050c8
AB
69242020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6925
6926 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6927 previous item in the list, when the list has no items.
6928
1c33af77
TV
69292020-03-11 Tom de Vries <tdevries@suse.de>
6930
6931 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6932 PROP_LOCLIST handling code.
6933
8c95582d
AB
69342020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 * buildsym-legacy.c (record_line): Pass extra parameter to
6937 record_line.
6938 * buildsym.c (buildsym_compunit::record_line): Take an extra
6939 parameter, reduce duplication in the line table, and record the
6940 is_stmt flag in the line table.
6941 * buildsym.h (buildsym_compunit::record_line): Add extra
6942 parameter.
6943 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6944 non-statement lines.
6945 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6946 this to the symtab builder.
6947 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6948 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6949 through to dwarf_record_line_1.
6950 * infrun.c (process_event_stop_test): When stepping, don't stop at
6951 a non-statement instruction, and only refresh the step info when
6952 we land in the middle of a line's range. Also add an extra
6953 comment.
6954 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6955 field.
6956 * record-btrace.c (btrace_find_line_range): Only record lines
6957 marked as is-statement.
6958 * stack.c (frame_show_address): Show the frame address if we are
6959 in a non-statement sal.
6960 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6961 (maintenance_print_one_line_table): Print a header for the is_stmt
6962 column, and include is_stmt information in the output.
6963 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6964 preference to non-statements.
6965 (find_pcs_for_symtab_line): Prefer is-statement entries.
6966 (find_line_common): Likewise.
6967 * symtab.h (struct linetable_entry): Add is_stmt field.
6968 (struct symtab_and_line): Likewise.
6969 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6970 arranging the line table.
6971
e4003a34
TV
69722020-03-07 Tom de Vries <tdevries@suse.de>
6973
6974 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6975 DIE.
6976
e8932576
TT
69772020-03-07 Tom Tromey <tom@tromey.com>
6978
6979 * valops.c (value_literal_complex): Remove obsolete comment.
6980 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6981 comment.
6982
29734269
SM
69832020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6984
6985 * infrun.h: Forward-declare thread_info.
6986 (set_step_info): Add thread_info parameter, add doc.
6987 * infrun.c (set_step_info): Add thread_info parameter, move doc
6988 to header.
6989 * infrun.c (process_event_stop_test): Pass thread to
6990 set_step_info call.
6991 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6992 set_step_info.
6993 (prepare_one_step): Add thread_info parameter, pass it to
6994 set_step_frame and prepare_one_step (recursive) call.
6995 (step_1): Pass thread to prepare_one_step call.
6996 (step_command_fsm::should_stop): Pass thread to
6997 prepare_one_step.
6998 (until_next_fsm): Pass thread to set_step_frame call.
6999 (finish_command): Pass thread to set_step_info call.
7000
b7d64b29
HD
70012020-03-06 Hannes Domani <ssbssa@yahoo.de>
7002
7003 * windows-tdep.c (windows_solib_create_inferior_hook):
7004 Check if inferior is running.
7005
09f2921c
TV
70062020-03-06 Tom de Vries <tdevries@suse.de>
7007
7008 * NEWS: Fix "the the".
7009 * ctfread.c: Same.
7010
fd760e79
TV
70112020-03-06 Tom de Vries <tdevries@suse.de>
7012
7013 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7014
20ea4a60
AB
70152020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * .dir-locals.el: Add a comment referencing the other copies of
7018 this file.
7019
0afbabf0
JB
70202020-03-05 John Baldwin <jhb@FreeBSD.org>
7021
7022 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7023 psargs.
7024
842806cb
TBA
70252020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7026
7027 * .gitattributes: New file.
7028
be1e3d3e
TT
70292020-03-04 Tom Tromey <tom@tromey.com>
7030
7031 * symmisc.c (print_symbol_bcache_statistics)
7032 (print_objfile_statistics): Update.
7033 * symfile.c (allocate_symtab): Use intern.
7034 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7035 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7036 macro_cache>: Remove.
7037 <string_cache>: New member.
7038 (struct objfile) <intern>: New methods.
7039 * elfread.c (elf_symtab_read): Use intern.
7040 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7041 (dwarf2_compute_name, dwarf2_physname)
7042 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7043 names.
7044 (guess_partial_die_structure_name): Update.
7045 (partial_die_info::fixup): Intern name.
7046 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7047 name.
7048 (dwarf2_name): Intern name. Update.
7049 * buildsym.c (buildsym_compunit::get_macro_table): Use
7050 string_cache.
7051
4e7625fd
TT
70522020-03-04 Tom Tromey <tom@tromey.com>
7053
7054 * jit.c (bfd_open_from_target_memory): Make "target" const.
7055 * corefile.c (gnutarget): Now const.
7056 * gdbcore.h (gnutarget): Now const.
7057
46f9f931
HD
70582020-03-04 Hannes Domani <ssbssa@yahoo.de>
7059
7060 * NEWS: Mention support for WOW64 processes.
7061 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7062 (amd64_windows_segment_register_p): Remove static.
7063 (_initialize_amd64_windows_nat): Update.
7064 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7065 * i386-windows-nat.c (context_offset): Update.
7066 (i386_mappings): Rename and remove static.
7067 (i386_windows_segment_register_p): Remove static.
7068 (_initialize_i386_windows_nat): Update.
7069 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7070 (STATUS_WX86_SINGLE_STEP): New macro.
7071 (EnumProcessModulesEx): New macro.
7072 (Wow64SuspendThread): New macro.
7073 (Wow64GetThreadContext): New macro.
7074 (Wow64SetThreadContext): New macro.
7075 (Wow64GetThreadSelectorEntry): New macro.
7076 (windows_set_context_register_offsets): Add static.
7077 (windows_set_segment_register_p): Likewise.
7078 (windows_add_thread): Adapt for WOW64 processes.
7079 (windows_fetch_one_register): Likewise.
7080 (windows_nat_target::fetch_registers): Likewise.
7081 (windows_store_one_register): Likewise.
7082 (display_selector): Likewise.
7083 (display_selectors): Likewise.
7084 (handle_exception): Likewise.
7085 (windows_continue): Likewise.
7086 (windows_nat_target::resume): Likewise.
7087 (windows_add_all_dlls): Likewise.
7088 (do_initial_windows_stuff): Likewise.
7089 (windows_nat_target::attach): Likewise.
7090 (windows_get_exec_module_filename): Likewise.
7091 (windows_nat_target::create_inferior): Likewise.
7092 (windows_xfer_siginfo): Likewise.
7093 (_initialize_loadable): Initialize Wow64SuspendThread,
7094 Wow64GetThreadContext, Wow64SetThreadContext,
7095 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7096 * windows-nat.h (windows_set_context_register_offsets):
7097 Remove declaration.
7098 (windows_set_segment_register_p): Likewise.
7099 (i386_windows_segment_register_p): Add declaration.
7100 (amd64_windows_segment_register_p): Likewise.
7101
440cf44e
LM
71022020-03-04 Luis Machado <luis.machado@linaro.org>
7103
7104 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7105 in "info registers" for AArch64/ARM.
7106
7107 The change caused "info registers" to not print GPR's.
7108
7109 gdb/ChangeLog:
7110
7111 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7112
7113 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7114 when reg->group is empty and reggroup is not.
7115
1009d92f
TT
71162020-03-03 Tom Tromey <tromey@adacore.com>
7117
7118 * dwarf2/frame.c (struct dwarf2_frame_cache)
7119 <checked_tailcall_bottom, entry_cfa_sp_offset,
7120 entry_cfa_sp_offset_p>: Remove members.
7121 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7122 (dwarf2_frame_prev_register): Don't call
7123 dwarf2_tailcall_sniffer_first.
7124 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7125 * frame-unwind.c (add_unwinder): New fuction.
7126 (frame_unwind_init): Use it. Add tailcall unwinder.
7127
5e5d66b6
AB
71282020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7129 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7130
7131 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7132 value should be printed as true.
7133
584cf46d
HD
71342020-03-03 Hannes Domani <ssbssa@yahoo.de>
7135
7136 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7137 (windows_init_abi): Set and use windows_so_ops.
7138
7b973adc
SDJ
71392020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7140
7141 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7142 when verifying if dealing with a convenience variable.
7143
bb7b70ab
LM
71442020-03-03 Luis Machado <luis.machado@linaro.org>
7145
7146 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7147
9822cb57
SM
71482020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7149
7150 * infrun.c (gdbarch_supports_displaced_stepping): New.
7151 (use_displaced_stepping): Break up conditions in smaller pieces.
7152 Use gdbarch_supports_displaced_stepping.
7153 (displaced_step_prepare_throw): Use
7154 gdbarch_supports_displaced_stepping.
7155
63e163f2
AB
71562020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7157
7158 * NEWS: Mention new behaviour of the history filename.
7159 * top.c (write_history_p): Add comment.
7160 (show_write_history_p): Add header comment, give a different
7161 message when history writing is on, but the history filename is
7162 empty.
7163 (history_filename): Add comment.
7164 (history_filename_empty): New function.
7165 (show_history_filename): Add header comment, give a different
7166 message when the filename is empty.
7167 (init_history): Compare history_filename against nullptr, and only
7168 read history if the filename is not empty.
7169 (set_history_filename): Add header comment, and only make
7170 non-empty filenames absolute.
7171 (init_main): Make the filename argument to 'set history filename'
7172 optional.
7173
81b86b97
CB
71742020-03-02 Christian Biesinger <cbiesinger@google.com>
7175
7176 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7177 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7178 (fetch_fp_register): Update.
7179 (fetch_fp_regs): Update.
7180 (store_fp_register): Update.
7181 (store_fp_regs): Update.
7182 (arm_netbsd_nat_target::read_description): New function.
7183 (fetch_elfcore_registers): Update.
7184
24ed6739
AB
71852020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7186
7187 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7188 general_thread if the stop reply is missing a thread-id.
7189 (remote_target::process_stop_reply): Use the first non-exited
7190 thread if the target didn't pass a thread-id.
7191 * infrun.c (do_target_wait): Move call to
7192 switch_to_inferior_no_thread to ....
7193 (do_target_wait_1): ... here.
7194
a84bb2a0
JT
71952020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7196
7197 * debuginfod-support.c: Include defs.h first.
7198
658dadf0
TV
71992020-02-28 Tom de Vries <tdevries@suse.de>
7200
7201 * symfile.c (set_initial_language): Use default language for lookup.
7202
4ebe4877
SM
72032020-02-28 Simon Marchi <simon.marchi@efficios.com>
7204
7205 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7206 reader variable, pass `this` to read_cutu_die_from_dwo.
7207
e5da1139
AM
72082020-02-27 Aaron Merey <amerey@redhat.com>
7209
7210 * source.c (open_source_file): Check for nullptr when computing
7211 srcpath.
7212
317f7127
TT
72132020-02-27 Tom Tromey <tromey@adacore.com>
7214
7215 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7216 member.
7217 (dwarf2_add_field): Don't update nfields.
7218 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7219
3104d9ee
AB
72202020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7221
7222 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7223 abs.
7224
b83470bf
TT
72252020-02-26 Tom Tromey <tom@tromey.com>
7226
7227 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7228 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7229 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7230 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7231 per_cu_data.
7232
edfe0a0c
TT
72332020-02-26 Tom Tromey <tom@tromey.com>
7234
7235 * dwarf2/index-write.c (psym_index_map): Change type.
7236 (add_address_entry_worker, write_one_signatured_type)
7237 (recursively_count_psymbols, recursively_write_psymbols)
7238 (class debug_names, psyms_seen_size, write_gdbindex)
7239 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7240
0d79cdc4
AM
72412020-02-26 Aaron Merey <amerey@redhat.com>
7242
7243 * Makefile.in: Handle optional debuginfod support.
7244 * NEWS: Update.
7245 * README: Add --with-debuginfod summary.
7246 * config.in: Regenerate.
7247 * configure: Regenerate.
7248 * configure.ac: Handle optional debuginfod support.
7249 * debuginfod-support.c: debuginfod helper functions.
7250 * debuginfod-support.h: Ditto.
7251 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7252 summary.
7253 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7254 when a dwz file cannot be found.
7255 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7256 debuginfo file cannot be found.
7257 * source.c (open_source_file): Query debuginfod servers when a
7258 source file cannot be found.
7259 * top.c (print_gdb_configuration): Include
7260 --{with,without}-debuginfod in the output.
7261
b65ce565
JG
72622020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7263
7264 * thread.c (thr_try_catch_cmd): Print thread name.
7265
d4c9a4f8
SM
72662020-02-26 Simon Marchi <simon.marchi@efficios.com>
7267
7268 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7269 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7270 dwarf2_fetch_die_type_sect_off): Move to...
7271 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7272 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7273 dwarf2_fetch_die_type_sect_off): ... here.
7274 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7275 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7276 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7277
0dce4280
TV
72782020-02-26 Tom de Vries <tdevries@suse.de>
7279
7280 PR gdb/25603
7281 * symfile.c (set_initial_language): Exit-early if
7282 language_mode == language_mode_manual.
7283
450a1bfc
SM
72842020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7285
7286 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7287 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7288 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7289
9e80cfa1
AB
72902020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7291
7292 * gdbtypes.c (create_array_type_with_stride): Handle negative
7293 array strides.
7294 * valarith.c (value_subscripted_rvalue): Likewise.
7295
09624f1f
LM
72962020-02-25 Luis Machado <luis.machado@linaro.org>
7297
7298 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7299
8cb5117c
SM
73002020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7301
7302 * loc.h (dwarf2_get_die_type): Move to...
7303 * read.h (dwarf2_get_die_type): ... here.
7304 * read.c (dwarf2_get_die_type): Move doc to header.
7305
c325c44e
JB
73062020-02-25 Joel Brobecker <brobecker@adacore.com>
7307
7308 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7309 'gnulib/Makefile.in' to the list.
7310
4ac93832
TT
73112020-02-24 Tom Tromey <tom@tromey.com>
7312
7313 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7314 Remove.
7315 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7316 XOBNEWVEC.
7317
197400e8
TT
73182020-02-24 Tom Tromey <tom@tromey.com>
7319
7320 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7321 New method.
7322 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7323 (dw2_do_instantiate_symtab, dw2_get_file_names)
7324 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7325
76935768
TT
73262020-02-24 Tom Tromey <tom@tromey.com>
7327
7328 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7329 make_scoped_restore.
7330 (dwarf2_psymtab::read_symtab): Don't clear
7331 reading_partial_symbols.
7332
a88ef40d
TV
73332020-02-24 Tom de Vries <tdevries@suse.de>
7334
7335 PR gdb/25592
7336 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7337
c9af6521
TV
73382020-02-24 Tom de Vries <tdevries@suse.de>
7339
7340 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7341 commands layout next/prev/regs.
7342
5707a07a
TT
73432020-02-22 Tom Tromey <tom@tromey.com>
7344
7345 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7346 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7347
3b0fb49e
TT
73482020-02-22 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7351
283be8bf
TT
73522020-02-22 Tom Tromey <tom@tromey.com>
7353
7354 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7355 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7356 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7357 * tui/tui.c (_initialize_tui): Add usage text.
7358
ca793b96
TT
73592020-02-22 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-win.c (tui_set_focus_command)
7362 (tui_set_win_height_command): Use error_no_arg.
7363 (_initialize_tui_win): Update help text.
7364 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7365
432b5c40
TT
73662020-02-22 Tom Tromey <tom@tromey.com>
7367
7368 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7369 * tui/tui-disasm.h (struct tui_disasm_window)
7370 <display_start_addr>: Declare.
7371 * tui/tui-source.h (struct tui_source_window)
7372 <display_start_addr>: Declare.
7373 * tui/tui-winsource.h (struct tui_source_window_base)
7374 <show_source_line, display_start_addr>: New methods.
7375 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7376 Rename and move to protected section.
7377 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7378 (tui_source_window_base::do_erase_source_content): Update.
7379 (tui_source_window_base::show_source_line): Now a method.
7380 (tui_source_window_base::show_source_content)
7381 (tui_source_window_base::tui_source_window_base)
7382 (tui_source_window_base::rerender)
7383 (tui_source_window_base::refill)
7384 (tui_source_window_base::do_scroll_horizontal)
7385 (tui_source_window_base::set_is_exec_point_at)
7386 (tui_source_window_base::update_breakpoint_info)
7387 (tui_source_window_base::update_exec_info): Update.
7388 * tui/tui-source.c (tui_source_window::set_contents)
7389 (tui_source_window::showing_source_p)
7390 (tui_source_window::do_scroll_vertical)
7391 (tui_source_window::location_matches_p)
7392 (tui_source_window::line_is_displayed): Update.
7393 (tui_source_window::display_start_addr): New method.
7394 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7395 (tui_disasm_window::do_scroll_vertical)
7396 (tui_disasm_window::location_matches_p): Update.
7397 (tui_disasm_window::display_start_addr): New method.
7398
01b1af32
TT
73992020-02-22 Tom Tromey <tom@tromey.com>
7400
7401 * NEWS: Add entry for gdb.register_window_type.
7402 * tui/tui-layout.h (window_factory): New typedef.
7403 (tui_register_window): Declare.
7404 * tui/tui-layout.c (saved_tui_windows): New global.
7405 (tui_apply_current_layout): Use it.
7406 (tui_register_window): New function.
7407 * python/python.c (do_start_initialization): Call
7408 gdbpy_initialize_tui.
7409 (python_GdbMethods): Add "register_window_type" function.
7410 * python/python-internal.h (gdbpy_register_tui_window)
7411 (gdbpy_initialize_tui): Declare.
7412 * python/py-tui.c: New file.
7413 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7414
fc96d20b
TT
74152020-02-22 Tom Tromey <tom@tromey.com>
7416
7417 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7418
935c78c0
TT
74192020-02-22 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7422 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7423 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7424 (tui_set_win_focus_to): Move from tui-win.c.
7425
0240c8f1
TT
74262020-02-22 Tom Tromey <tom@tromey.com>
7427
7428 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7429 functions.
7430 (known_window_types): New global.
7431 (tui_get_window_by_name): Reimplement.
7432 (initialize_known_windows): New function.
7433 (validate_window_name): Rewrite.
7434 (_initialize_tui_layout): Call initialize_known_windows.
7435
fdb01f0c
TT
74362020-02-22 Tom Tromey <tom@tromey.com>
7437
7438 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7439 Remove constants.
7440 * tui/tui-winsource.h (struct tui_source_window_base)
7441 <tui_source_window_base>: Remove parameter.
7442 * tui/tui-winsource.c
7443 (tui_source_window_base::tui_source_window_base): Remove
7444 parameter.
7445 (tui_source_window_base::refill): Update.
7446 * tui/tui-stack.h (struct tui_locator_window)
7447 <tui_locator_window>: Update.
7448 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7449 Default the constructor.
7450 * tui/tui-regs.h (struct tui_data_item_window)
7451 <tui_data_item_window>: Default the constructor.
7452 (struct tui_data_window) <tui_data_window>: Likewise.
7453 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7454 Default the constructor.
7455 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7456 Default the constructor.
7457 <type>: Remove.
7458 (struct tui_win_info) <tui_win_info>: Default the constructor.
7459 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7460 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7461 Default the constructor.
7462
865a5aec
TT
74632020-02-22 Tom Tromey <tom@tromey.com>
7464
7465 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7466 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7467 * tui/tui-win.c (tui_resize_all): Don't call
7468 tui_delete_invisible_windows.
7469 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7470 done.
7471 (tui_set_layout): Update.
7472 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7473 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7474 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7475
e098d18c
TT
74762020-02-22 Tom Tromey <tom@tromey.com>
7477
7478 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7479 correctly.
7480
eb9c8874
TT
74812020-02-22 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7484
7eed1a8e
TT
74852020-02-22 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-winsource.h (struct tui_source_window_iterator)
7488 <inner_iterator>: New etytypedef.
7489 <tui_source_window_iterator>: Take "end" parameter.
7490 <tui_source_window_iterator>: Take iterator.
7491 <operator*, advance>: Update.
7492 <m_iter>: Change type.
7493 <m_end>: New field.
7494 (struct tui_source_windows) <begin, end>: Update.
7495 * tui/tui-layout.c (tui_windows): New global.
7496 (tui_apply_current_layout): Clear tui_windows.
7497 (tui_layout_window::apply): Update tui_windows.
7498 * tui/tui-data.h (tui_windows): Declare.
7499 (all_tui_windows): Now inline function.
7500 (class tui_window_iterator, struct all_tui_windows): Remove.
7501
7c043ba6
TT
75022020-02-22 Tom Tromey <tom@tromey.com>
7503
7504 PR tui/17850:
7505 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7506 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7507 "height" argument.
7508 (class tui_layout_window) <get_sizes>: Likewise.
7509 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7510 argument.
7511 <get_sizes>: Add "height" argument.
7512 <m_vertical>: New field.
7513 * tui/tui-layout.c (tui_layout_split::clone): Update.
7514 (tui_layout_split::get_sizes): Add "height" argument.
7515 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7516 (tui_new_layout_command): Parse "-horizontal".
7517 (_initialize_tui_layout): Update help string.
7518 (tui_layout_split::specification): Add "-horizontal" when needed.
7519 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7520 argument.
7521 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7522 New methods.
7523
6bc56648
TT
75242020-02-22 Tom Tromey <tom@tromey.com>
7525
7526 * tui/tui-layout.h (enum tui_adjust_result): New.
7527 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7528 (class tui_layout_window) <adjust_size>: Return
7529 tui_adjust_result. Rewrite.
7530 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7531 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7532
c22fef7e
TT
75332020-02-22 Tom Tromey <tom@tromey.com>
7534
7535 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7536 parameter and return types.
7537 (class tui_layout_base) <specification>: Add "depth".
7538 (class tui_layout_window) <specification>: Add "depth".
7539 (class tui_layout_split) <specification>: Add "depth".
7540 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7541 and return types.
7542 (tui_new_layout_command): Parse sub-layouts.
7543 (_initialize_tui_layout): Update help string.
7544 (tui_layout_window::specification): Add "depth".
7545 (add_layout_command): Update.
7546
ee325b61
TT
75472020-02-22 Tom Tromey <tom@tromey.com>
7548
7549 * NEWS: Add "tui new-layout" item.
7550 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7551 Add new-layout command to help text.
7552 (validate_window_name): New function.
7553 (tui_new_layout_command): New function.
7554 (_initialize_tui_layout): Register "new-layout".
7555 (tui_layout_window::specification): New method.
7556 (tui_layout_window::specification): New method.
7557 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7558 method.
7559 (class tui_layout_window) <specification>: New method.
7560 (class tui_layout_split) <specification>: New method.
7561
416eb92d
TT
75622020-02-22 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7565 * tui/tui-win.c (window_name_completer): Update comment.
7566 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7567 Declare method.
7568 (class tui_layout_window) <replace_window>: Likewise.
7569 (class tui_layout_split) <replace_window>: Likewise.
7570 (tui_set_layout): Don't declare.
7571 (tui_set_initial_layout): Declare function.
7572 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7573 (asm_regs_layout): New globals.
7574 (tui_current_layout, show_layout): Remove.
7575 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7576 (find_layout, tui_apply_layout): New function.
7577 (layout_completer): Remove.
7578 (tui_next_layout): Reimplement.
7579 (tui_next_layout_command): New function.
7580 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7581 (tui_regs_layout): Reimplement.
7582 (tui_regs_layout_command): New function.
7583 (extract_display_start_addr): Rewrite.
7584 (next_layout, prev_layout): Remove.
7585 (tui_layout_window::replace_window): New method.
7586 (tui_layout_split::replace_window): New method.
7587 (destroy_layout): New function.
7588 (layout_list): New global.
7589 (add_layout_command): New function.
7590 (initialize_layouts): Update.
7591 (tui_layout_command): New function.
7592 (_initialize_tui_layout): Install "layout" commands.
7593 * tui/tui-data.h (enum tui_layout_type): Remove.
7594 (tui_current_layout): Don't declare.
7595
0dbc2fc7
TT
75962020-02-22 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui-regs.c (tui_reg_layout): Remove.
7599 (tui_reg_command): Use tui_regs_layout.
7600 * tui/tui-layout.h (tui_reg_command): Declare.
7601 * tui/tui-layout.c (tui_reg_command): New function.
7602
5afe342e
TT
76032020-02-22 Tom Tromey <tom@tromey.com>
7604
7605 * tui/tui.c (tui_rl_delete_other_windows): Call
7606 tui_remove_some_windows.
7607 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7608 Declare method.
7609 (class tui_layout_window) <remove_windows>: New method.
7610 (class tui_layout_split) <remove_windows>: Declare.
7611 (tui_remove_some_windows): Declare.
7612 * tui/tui-layout.c (tui_remove_some_windows): New function.
7613 (tui_layout_split::remove_windows): New method.
7614
427326a8
TT
76152020-02-22 Tom Tromey <tom@tromey.com>
7616
7617 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7618 * tui/tui-layout.h (tui_next_layout): Declare.
7619 * tui/tui-layout.c (tui_next_layout): New function.
7620
3fe12b6d
TT
76212020-02-22 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7624 correct coordinates.
7625
59b8b5d2
TT
76262020-02-22 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7629 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7630 DATA_WIN case.
7631
2a3d458b
TT
76322020-02-22 Tom Tromey <tom@tromey.com>
7633
7634 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7635 TUI_DISASM_WIN, not tui_win_list.
7636
3f0cbb04
TT
76372020-02-22 Tom Tromey <tom@tromey.com>
7638
7639 * valprint.c (generic_val_print_enum_1)
7640 (val_print_type_code_flags): Style member names.
7641 * rust-lang.c (val_print_struct, rust_print_enum)
7642 (rust_print_struct_def, rust_internal_print_type): Style member
7643 names.
7644 * p-valprint.c (pascal_object_print_value_fields): Style member
7645 names. Only call fprintf_symbol_filtered for static members.
7646 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7647 * f-valprint.c (f_val_print): Style member names.
7648 * f-typeprint.c (f_type_print_base): Style member names.
7649 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7650 call fprintf_symbol_filtered for static members.
7651 (cp_print_class_member): Style member names.
7652 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7653 member names.
7654 * ada-valprint.c (ada_print_scalar): Style enum names.
7655 (ada_val_print_enum): Likewise.
7656 * ada-typeprint.c (print_enum_type): Style enum names.
7657
d4d947ae
TT
76582020-02-21 Tom Tromey <tom@tromey.com>
7659
7660 * psympriv.h (struct partial_symtab): Update comment.
7661
e94e944b
TT
76622020-02-21 Tom Tromey <tromey@adacore.com>
7663
7664 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7665 type is CORE_ADDR.
7666
1eb73179
TV
76672020-02-21 Tom de Vries <tdevries@suse.de>
7668
7669 PR gdb/25534
7670 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7671 if dependencies[i]->user != NULL.
7672
4f180d53
AT
76732020-02-21 Ali Tamur <tamur@google.com>
7674
7675 * dwarf2/read.c (dwarf2_name): Add null check.
7676
22b6cd70
TT
76772020-02-20 Tom Tromey <tom@tromey.com>
7678
7679 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7680 ">=", in binary search.
7681 (dwarf2_find_containing_comp_unit): New overload.
7682 (run_test): New self-test.
7683 (_initialize_dwarf2_read): Register new test.
7684
bd0cf5a6
NC
76852020-02-20 Nelson Chu <nelson.chu@sifive.com>
7686
7687 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7688 * riscv-tdep.h: Likewise.
7689 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7690 rv32-only CSR.
7691 * features/riscv/64bit-csr.xml: Regenerated.
7692
3f702acd
SDJ
76932020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7694 Tom Tromey <tom@tromey.com>
7695
7696 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7697 of 'fputc_unfiltered'.
7698 (putchar_unfiltered): Call 'fputc_unfiltered'.
7699 (fputc_unfiltered): Call 'fputs_unfiltered'.
7700
d13c7322
AB
77012020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7702
7703 * config.in: Regenerate.
7704 * configure: Regenerate.
7705 * configure.ac: Add --with-python-libdir option.
7706 * main.c: Use WITH_PYTHON_LIBDIR.
7707
869d8950
TT
77082020-02-19 Tom Tromey <tom@tromey.com>
7709
7710 * symtab.c (general_symbol_info::compute_and_set_names): Use
7711 obstack_strndup. Simplify call to symbol_set_demangled_name.
7712
298e9637
SM
77132020-02-19 Simon Marchi <simon.marchi@efficios.com>
7714
7715 * dwarf2/read.c (allocate_signatured_type_table,
7716 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7717 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7718 Remove objfile parameter, update all callers.
7719
08410482
DE
77202020-02-19 Doug Evans <dje@google.com>
7721
7722 PR rust/25535
7723 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7724 rust_enum_variant calculation.
7725
dfdeeca1
TT
77262020-02-19 Tom Tromey <tromey@adacore.com>
7727
7728 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7729
2ef5453b
TT
77302020-02-19 Tom Tromey <tromey@adacore.com>
7731
7732 * ada-lang.c (cache_symbol): Use obstack_strdup.
7733
9f1528a1
AB
77342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * configure: Regenerate.
7737
d3c22fa8
TT
77382020-02-19 Tom Tromey <tromey@adacore.com>
7739
7740 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7741 NULL check.
7742
bf84f706
MR
77432020-02-19 Maciej W. Rozycki <macro@wdc.com>
7744
7745 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7746
d1c9b20f
AB
77472020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7748
7749 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7750 if GDBSERVER is not defined.
7751 (riscv_tdesc_cache): Likewise, also store const target_desc.
7752 (STATIC_IN_GDB): Define.
7753 (riscv_create_target_description): Update declaration with
7754 STATIC_IN_GDB.
7755 (riscv_lookup_target_description): New function, only define if
7756 GDBSERVER is not defined.
7757 * arch/riscv.h (riscv_create_target_description): Declare only
7758 when GDBSERVER is defined.
7759 (riscv_lookup_target_description): New declaration when GDBSERVER
7760 is not defined.
7761 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7762 (riscv_linux_read_features): ...this, and return
7763 riscv_gdbarch_features instead of target_desc.
7764 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7765 (riscv_linux_read_description): Rename to...
7766 (riscv_linux_read_features): ...this.
7767 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7768 Update to use riscv_gdbarch_features and
7769 riscv_lookup_target_description.
7770 * riscv-tdep.c (riscv_find_default_target_description): Use
7771 riscv_lookup_target_description instead of
7772 riscv_create_target_description.
7773
373d7ac0
SM
77742020-02-18 Simon Marchi <simon.marchi@efficios.com>
7775
7776 * valprint.c (generic_val_print_enum_1): When printing a flag
7777 enum with value 0 and there is no enumerator with value 0, print
7778 just "0" instead of "(unknown: 0x0)".
7779
b29a2df0
SM
77802020-02-18 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * valprint.c (generic_val_print_enum_1): Print unknown part of
7783 flag enum in hex.
7784
6740f0cc
SM
77852020-02-18 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7788 flag enums to contain duplicate enumerators.
7789 * valprint.c (generic_val_print_enum_1): Update comment.
7790
edd45eb0
SM
77912020-02-18 Simon Marchi <simon.marchi@efficios.com>
7792
7793 * dwarf2/read.c: Include "count-one-bits.h".
7794 (update_enumeration_type_from_children): If an enumerator has
7795 multiple bits set, don't treat the enumeration as a "flag enum".
7796 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7797 of flag enums have 0 or 1 bit set.
7798
6d0cf446
BE
77992020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7800
7801 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7802 conversion.
7803 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7804 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7805 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7806 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7807 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7808
7001c1b7
SM
78092020-02-18 Simon Marchi <simon.marchi@efficios.com>
7810
7811 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7812
fdb61c6c
SM
78132020-02-14 Simon Marchi <simon.marchi@efficios.com>
7814
7815 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7816 displaced_step_closure_up.
7817 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7818 (struct displaced_step_closure_up):
7819 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7820 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7821 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7822 Likewise.
7823 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7824 * gdbarch.c, gdbarch.h: Re-generate.
7825 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7826 displaced_step_closure_up.
7827 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7828 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7829 * infrun.h (displaced_step_closure_up): New type alias.
7830 (struct displaced_step_inferior_state) <step_closure>: Change
7831 type to displaced_step_closure_up.
7832 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7833 displaced_step_closure_up.
7834 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7835
a4a38eb4
TT
78362020-02-14 Tom Tromey <tom@tromey.com>
7837
7838 * minidebug.c (gnu_debug_key): New global.
7839 (find_separate_debug_file_in_section): Use it.
7840
e8217e61
SM
78412020-02-14 Simon Marchi <simon.marchi@efficios.com>
7842
7843 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7844 std::unique_ptr.
7845 * gdbarch.c: Re-generate.
7846 * gdbarch.h: Re-generate.
7847 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7848 change.
7849 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7850 type to std::unique_ptr.
7851 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7852 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7853 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7854 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7855 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7856 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7857 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7858 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7859 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7860
d8d83535
SM
78612020-02-14 Simon Marchi <simon.marchi@efficios.com>
7862
7863 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7864 std::unique_ptr.
7865 (displaced_step_clear): Rename to...
7866 (displaced_step_reset): ... this. Just call displaced->reset ().
7867 (displaced_step_clear_cleanup): Rename to...
7868 (displaced_step_reset_cleanup): ... this.
7869 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7870 (displaced_step_fixup): Likewise.
7871 (resume_1): Likewise.
7872 (handle_inferior_event): Restore child's memory before calling
7873 displaced_step_fixup on the parent.
7874 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7875 to std::unique_ptr.
7876 <step_closure>: Change type to std::unique_ptr.
7877
5f661e03
SM
78782020-02-14 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * arm-tdep.c: Include count-one-bits.h.
7881 (cleanup_block_store_pc): Use count_one_bits.
7882 (cleanup_block_load_pc): Use count_one_bits.
7883 (arm_copy_block_xfer): Use count_one_bits.
7884 (thumb2_copy_block_xfer): Use count_one_bits.
7885 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7886 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7887 (thumb_get_next_pcs_raw): Use count_one_bits.
7888 (arm_get_next_pcs_raw): Use count_one_bits_l.
7889 * arch/arm.c (bitcount): Remove.
7890 * arch/arm.h (bitcount): Remove.
7891
8084e579
TT
78922020-02-14 Tom Tromey <tromey@adacore.com>
7893
7894 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7895 Update.
7896 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7897 * dwarf2/loc.c (call_site_find_chain_1): Return
7898 unique_xmalloc_ptr.
7899 (call_site_find_chain): Likewise.
7900
258bf0ee
RB
79012020-02-14 Richard Biener <rguenther@suse.de>
7902
7903 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7904 on expression with division operators.
7905
f98a8458
AKS
79062020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7907
7908 * MAINTAINERS (Write After Approval): Adding myself.
7909
d1437c0e
TT
79102020-02-12 Tom Tromey <tom@tromey.com>
7911
7912 * event-loop.c (event_data, gdb_event, event_handler_func):
7913 Remove.
7914
3d4560f7
TT
79152020-02-12 Tom Tromey <tom@tromey.com>
7916
7917 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7918 (dwarf2_frame_objfile_data): Add comment.
7919 (find_comp_unit, set_comp_unit): New functions.
7920 (dwarf2_frame_find_fde): Use find_comp_unit.
7921 (dwarf2_build_frame_info): Use set_comp_unit.
7922
21982304
TT
79232020-02-12 Tom Tromey <tom@tromey.com>
7924
7925 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7926 (comp_unit): Don't initialize objfile.
7927 (execute_cfa_program): Add text_offset parameter.
7928 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7929 (dwarf2_frame_cache): Update.
7930 (dwarf2_build_frame_info): Don't set "objfile" member.
7931
4debb237
TT
79322020-02-12 Tom Tromey <tom@tromey.com>
7933
7934 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7935 (decode_frame_entry): Likewise.
7936 (dwarf2_build_frame_info): Update.
7937
0d404d44
TT
79382020-02-12 Tom Tromey <tom@tromey.com>
7939
7940 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7941 (decode_frame_entry_1): Use the comp_unit obstack.
7942
a7a3ae5c
TT
79432020-02-12 Tom Tromey <tom@tromey.com>
7944
7945 * dwarf2/frame.c (struct comp_unit): Add initializers and
7946 constructor.
7947 (dwarf2_frame_objfile_data): Store a comp_unit.
7948 (dwarf2_frame_find_fde): Update.
7949 (dwarf2_build_frame_info): Use "new".
7950
a9d65418
TT
79512020-02-12 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7954 (dwarf2_fde_table): Typedef for std::vector.
7955 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7956 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7957 (decode_frame_entry): Update.
7958 (dwarf2_build_frame_info): Use "new".
7959
7559c217
CB
79602020-02-12 Christian Biesinger <cbiesinger@google.com>
7961
7962 * arm-tdep.c (arm_gdbarch_init): Update.
7963 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7964 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7965 have_neon, is_m>: Change to bool.
7966
aeefc73c
CB
79672020-02-12 Christian Biesinger <cbiesinger@google.com>
7968
7969 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7970
d27b8e5f
TT
79712020-02-12 Tom Tromey <tom@tromey.com>
7972
7973 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7974
cd5900f3
HD
79752020-02-12 Hannes Domani <ssbssa@yahoo.de>
7976
7977 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7978 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7979
f056b22b
TT
79802020-02-11 Tom Tromey <tom@tromey.com>
7981
7982 * psymtab.h: Update comment.
7983
f92ff6b5
TT
79842020-02-11 Tom Tromey <tom@tromey.com>
7985
7986 * gdb_obstack.h (struct auto_obstack): Use
7987 DISABLE_COPY_AND_ASSIGN.
7988
3fd6912b
TT
79892020-02-11 Tom Tromey <tom@tromey.com>
7990
7991 * dwarf2/frame.h (struct objfile): Don't forward declare.
7992
69ed9b74
CB
79932020-02-11 Christian Biesinger <cbiesinger@google.com>
7994
7995 * cris-tdep.c (cris_supply_gregset): Change signature to match
7996 what struct regset expects.
7997 (cris_regset): New struct.
7998 (fetch_core_registers): Remove.
7999 (cris_iterate_over_regset_sections): New function.
8000 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8001 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8002
bda874f6
CB
80032020-02-11 Christian Biesinger <cbiesinger@google.com>
8004
8005 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8006 registers.
8007
754e1564
CB
80082020-02-11 Christian Biesinger <cbiesinger@google.com>
8009
8010 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8011
8ddd8e0e
SM
80122020-02-11 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * configure: Re-generate.
8015
898e7f60
SM
80162020-02-11 Simon Marchi <simon.marchi@efficios.com>
8017
8018 * configure: Re-generate.
8019
58df732b
SM
80202020-02-11 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * acinclude: Update warning.m4 path.
8023 * warning.m4: Move to gdbsupport.
8024
da5bd37e
TT
80252020-02-11 Tom Tromey <tromey@adacore.com>
8026
8027 * remote.c (remote_console_output): Update.
8028 * printcmd.c (printf_command): Update.
8029 * event-loop.c (gdb_wait_for_event): Update.
8030 * linux-nat.c (sigchld_handler): Update.
8031 * remote-sim.c (gdb_os_write_stdout): Update.
8032 (gdb_os_flush_stdout): Update.
8033 (gdb_os_flush_stderr): Update.
8034 (gdb_os_write_stderr): Update.
8035 * exceptions.c (print_exception): Update.
8036 * remote-fileio.c (remote_fileio_func_read): Update.
8037 (remote_fileio_func_write): Update.
8038 * tui/tui.c (tui_enable): Update.
8039 * tui/tui-interp.c (tui_interp::init): Update.
8040 * utils.c (init_page_info): Update.
8041 (putchar_unfiltered, fputc_unfiltered): Update.
8042 (gdb_flush): Update.
8043 (emit_style_escape): Update.
8044 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8045 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8046 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8047 (stderr_file::write): Update.
8048 (stderr_file::puts): Update.
8049 * ui-file.h (ui_file_isatty, ui_file_write)
8050 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8051 (ui_file_puts): Don't declare.
8052
85f0dd3c
TV
80532020-02-10 Tom de Vries <tdevries@suse.de>
8054
8055 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8056 sentinel to char *.
8057
2e927613
TV
80582020-02-09 Tom de Vries <tdevries@suse.de>
8059
8060 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8061 filename if it matches "<artificial>".
8062
6bafc845
HD
80632020-02-09 Hannes Domani <ssbssa@yahoo.de>
8064
8065 * windows-tdep.c (struct enum_value_name): New struct.
8066 (create_enum): New function.
8067 (windows_get_siginfo_type): Create and use enum types.
8068
7928d571
HD
80692020-02-09 Hannes Domani <ssbssa@yahoo.de>
8070
8071 * NEWS: Mention $_siginfo support for Windows.
8072 * windows-nat.c (handle_exception): Set siginfo_er.
8073 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8074 (windows_xfer_siginfo): New function.
8075 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8076 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8077 (init_windows_gdbarch_data): New function.
8078 (get_windows_gdbarch_data): New function.
8079 (windows_get_siginfo_type): New function.
8080 (windows_init_abi): Register windows_get_siginfo_type.
8081 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8082
6751ebae
TT
80832020-02-08 Tom Tromey <tom@tromey.com>
8084
8085 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8086 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8087 <keep>: Declare method.
8088 <m_keep>: Remove member.
8089 <~cutu_reader>: Remove.
8090 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8091 (cutu_reader::cutu_reader): Update.
8092 (cutu_reader::keep): Rename from ~cutu_reader.
8093 (process_psymtab_comp_unit, build_type_psymtabs_1)
8094 (process_skeletonless_type_unit, load_partial_comp_unit)
8095 (load_full_comp_unit, dwarf2_read_addr_index)
8096 (read_signatured_type): Update.
8097
135f5437
TT
80982020-02-08 Tom Tromey <tom@tromey.com>
8099
8100 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8101 "want_partial_unit" parameter.
8102 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8103 Inline check for DW_TAG_partial_unit.
8104 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8105
9f66ff1c
TT
81062020-02-08 Tom Tromey <tom@tromey.com>
8107
8108 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8109 read.c.
8110 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8111 read.c.
8112
c8a7a66f
TT
81132020-02-08 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/read.c (read_address): Move to comp-unit.c.
8116 (dwarf2_rnglists_process, dwarf2_ranges_process)
8117 (read_attribute_value, dwarf_decode_lines_1)
8118 (var_decode_location, decode_locdesc): Update.
8119 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8120 read.c. Remove "cu" parameter.
8121 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8122 method.
8123
8266302d
TT
81242020-02-08 Tom Tromey <tom@tromey.com>
8125
8126 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8127 (read_indirect_line_string): Update.
8128 * dwarf2/comp-unit.c (read_offset): Remove.
8129 (read_comp_unit_head): Update.
8130 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8131 method.
8132 (read_offset): Don't declare.
8133
4057dfde
TT
81342020-02-08 Tom Tromey <tom@tromey.com>
8135
8136 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8137 * dwarf2/read.c (struct comp_unit_head): Move to
8138 dwarf2/comp-unit.h.
8139 (enum class rcuh_kind): Move to comp-unit.h.
8140 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8141 (read_comp_unit_head, error_check_comp_unit_head)
8142 (read_and_check_comp_unit_head): Move to comp-unit.c.
8143 (read_offset, dwarf_unit_type_name): Likewise.
8144 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8145 (cutu_reader::cutu_reader, read_call_site_scope)
8146 (find_partial_die, follow_die_offset): Update.
8147 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8148
24aa364d
TT
81492020-02-08 Tom Tromey <tom@tromey.com>
8150
8151 * dwarf2/read.c (read_offset_1): Move to leb.c.
8152 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8153 (dwarf_decode_macro_bytes): Update.
8154 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8155 * dwarf2/leb.h (read_offset): Declare.
8156
2c7d5afc
TT
81572020-02-08 Tom Tromey <tom@tromey.com>
8158
8159 * dwarf2/read.c (dwarf2_section_size): Remove.
8160 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8161 Update.
8162 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8163
4075cb26
TT
81642020-02-08 Tom Tromey <tom@tromey.com>
8165
8166 * dwarf2/read.c (read_initial_length): Move to leb.c.
8167 * dwarf2/leb.h (read_initial_length): Declare.
8168 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8169 handle_nonstd parameter.
8170 * dwarf2/frame.c (read_initial_length): Remove.
8171 (decode_frame_entry_1): Update.
8172
09ba997f
TT
81732020-02-08 Tom Tromey <tom@tromey.com>
8174
8175 * dwarf2/loc.c (dwarf2_find_location_expression)
8176 (dwarf_evaluate_loc_desc::get_tls_address)
8177 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8178 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8179 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8180 (dwarf2_compile_property_to_c)
8181 (dwarf2_loc_desc_get_symbol_read_needs)
8182 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8183 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8184 (loclist_describe_location, loclist_tracepoint_var_ref)
8185 (loclist_generate_c_location): Update.
8186 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8187 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8188 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8189 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8190 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8191 (dwarf2_per_cu_data::addr_size)
8192 (dwarf2_per_cu_data::ref_addr_size)
8193 (dwarf2_per_cu_data::text_offset)
8194 (dwarf2_per_cu_data::addr_type): Now methods.
8195 (per_cu_header_read_in): Make per_cu "const".
8196 (dwarf2_version): Remove.
8197 (dwarf2_per_cu_data::int_type): Now a method.
8198 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8199 (set_die_type, read_array_type, read_subrange_index_type)
8200 (read_tag_string_type, read_subrange_type): Update.
8201 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8202 offset_size, ref_addr_size, text_offset, addr_type, version,
8203 objfile, int_type, addr_sized_int_type>: Declare methods.
8204
96c738c0
TT
82052020-02-08 Tom Tromey <tom@tromey.com>
8206
8207 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8208 Move earlier.
8209
8fdd972c
TT
82102020-02-08 Tom Tromey <tom@tromey.com>
8211
8212 * dwarf2/read.h (dwarf_line_debug): Declare.
8213 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8214 * dwarf2/read.c: Move line_header code to new files.
8215 (dwarf_line_debug): No longer static.
8216 * dwarf2/line-header.c: New file.
8217 * dwarf2/line-header.h: New file.
8218
03075812
TT
82192020-02-08 Tom Tromey <tom@tromey.com>
8220
8221 * dwarf2/read.c (struct line_header) <file_full_name,
8222 file_file_name>: Return unique_xmalloc_ptr.
8223 (line_header::file_file_name): Update.
8224 (line_header::file_full_name): Update.
8225 (dw2_get_file_names_reader): Update.
8226 (macro_start_file): Update.
8227
bb822404
TT
82282020-02-08 Tom Tromey <tom@tromey.com>
8229
8230 * dwarf2/read.c (struct line_header) <file_full_name,
8231 file_file_name>: Declare methods.
8232 (dw2_get_file_names_reader): Update.
8233 (file_file_name): Now a method.
8234 (file_full_name): Likewise.
8235 (macro_start_file): Update.
8236
009b64fc
TT
82372020-02-08 Tom Tromey <tom@tromey.com>
8238
8239 * dwarf2/read.c (dwarf_always_disassemble)
8240 (show_dwarf_always_disassemble): Move to loc.c.
8241 (_initialize_dwarf2_read): Move "always-disassemble" registration
8242 to loc.c.
8243 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8244 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8245 static.
8246 (show_dwarf_always_disassemble): Move from read.c.
8247 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8248
5895093f
TT
82492020-02-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8252 (create_quick_file_names_table): Return htab_up.
8253 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8254 Update.
8255 * dwarf2/read.h (struct dwarf2_per_objfile)
8256 <quick_file_names_table>: Now htab_up.
8257
b3b32279
TT
82582020-02-08 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8261
1d33d811
TT
82622020-02-08 Tom Tromey <tom@tromey.com>
8263
8264 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8265 Rewrite.
8266 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8267 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8268 (abbrev_table::abbrev_table): No longer inline.
8269 (ABBREV_HASH_SIZE): Remove.
8270 (abbrev_table::m_abbrevs): Now an htab_up.
8271
86de1d91
TT
82722020-02-08 Tom Tromey <tom@tromey.com>
8273
8274 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8275 (cutu_reader): Update.
8276 (build_type_psymtabs_1): Update.
8277 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8278 (abbrev_table::alloc_abbrev): Update.
8279 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8280 (abbrev_table::read): New static method, renamed from
8281 abbrev_table_read_table.
8282 (abbrev_table::alloc_abbrev)
8283 (abbrev_table::add_abbrev): Now private.
8284 (abbrev_table::abbrev_table): Now private.
8285 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8286
0335378b
TT
82872020-02-08 Tom Tromey <tom@tromey.com>
8288
8289 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8290 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8291 htab_up.
8292
48b490f2
TT
82932020-02-08 Tom Tromey <tom@tromey.com>
8294
8295 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8296 htab_up.
8297 (lookup_dwo_unit_in_dwp): Update.
8298 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8299 on obstack.
8300
bc68fb19
TT
83012020-02-08 Tom Tromey <tom@tromey.com>
8302
8303 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8304 obstack.
8305
d15acc42
TT
83062020-02-08 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8309 line_header_hash.
8310 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8311 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8312 Change type to htab_up.
8313
eaa5fa8b
TT
83142020-02-08 Tom Tromey <tom@tromey.com>
8315
8316 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8317 htab_up. Don't allocate on obstack.
8318 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8319 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8320 Change type to htab_up.
8321
b0b6a987
TT
83222020-02-08 Tom Tromey <tom@tromey.com>
8323
8324 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8325 Change type to htab_up.
8326 * dwarf2/read.c (create_signatured_type_table_from_index)
8327 (create_signatured_type_table_from_debug_names)
8328 (create_all_type_units, add_type_unit)
8329 (lookup_dwo_signatured_type, lookup_signatured_type)
8330 (process_skeletonless_type_unit): Update.
8331 (create_debug_type_hash_table, create_debug_types_hash_table):
8332 Change type of types_htab.
8333 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8334 htab_up. Don't allocate on obstack.
8335 (create_cus_hash_table): Change type of cus_htab parameter.
8336 (struct dwo_file) <cus, tus>: Now htab_up.
8337 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8338 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8339 (queue_and_load_all_dwo_tus): Update.
8340 * dwarf2/index-write.c (write_gdbindex): Update.
8341 (write_debug_names): Update.
8342
39856def
TT
83432020-02-08 Tom Tromey <tom@tromey.com>
8344
8345 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8346 dwarf2/read.c. Remove "next" member. Add constructor ntad
8347 destructor.
8348 (struct dwarf2_per_objfile) <queue>: New member.
8349 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8350 dwarf2/read.h.
8351 (dwarf2_queue, dwarf2_queue_tail): Remove.
8352 (class dwarf2_queue_guard): Add parameter to constructor. Use
8353 DISABLE_COPY_AND_ASSIGN.
8354 <m_per_objfile>: New member.
8355 <~dwarf2_queue_guard>: Rewrite.
8356 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8357 Update.
8358 (~dwarf2_queue_item): New.
8359
3e225074
TT
83602020-02-08 Tom Tromey <tom@tromey.com>
8361
8362 * dwarf2/read.c (struct die_info) <has_children>: New member.
8363 (dw2_get_file_names_reader): Remove has_children.
8364 (dw2_get_file_names): Update.
8365 (read_cutu_die_from_dwo): Remove has_children.
8366 (cutu_reader::init_tu_and_read_dwo_dies)
8367 (cutu_reader::cutu_reader): Update.
8368 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8369 Remove has_children.
8370 (build_type_psymtabs_1, process_skeletonless_type_unit)
8371 (load_partial_comp_unit, load_full_comp_unit): Update.
8372 (create_dwo_cu_reader): Remove has_children.
8373 (create_cus_hash_table, read_die_and_children): Update.
8374 (read_full_die_1,read_full_die): Remove has_children.
8375 (read_signatured_type): Update.
8376 (class cutu_reader) <has_children>: Remove.
8377
82ca8957
TT
83782020-02-08 Tom Tromey <tom@tromey.com>
8379
8380 * dwarf2/expr.c: Rename from dwarf2expr.c.
8381 * dwarf2/expr.h: Rename from dwarf2expr.h.
8382 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8383 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8384 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8385 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8386 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8387 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8388 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8389 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8390 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8391 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8392 * dwarf2/loc.c: Rename from dwarf2loc.c.
8393 * dwarf2/loc.h: Rename from dwarf2loc.h.
8394 * dwarf2/read.c: Rename from dwarf2read.c.
8395 * dwarf2/read.h: Rename from dwarf2read.h.
8396 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8397 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8398 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8399 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8400 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8401 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8402 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8403 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8404 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8405 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8406 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8407 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8408 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8409 Update.
8410 * Makefile.in (COMMON_SFILES): Update.
8411 (HFILES_NO_SRCDIR): Update.
8412
9e35d499
TT
84132020-02-08 Tom Tromey <tom@tromey.com>
8414
8415 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8416 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8417
1eba2311
TT
84182020-02-08 Tom Tromey <tom@tromey.com>
8419
8420 * dwarf2read.h (struct die_info): Don't declare.
8421
e41c2da2
TT
84222020-02-08 Tom Tromey <tom@tromey.com>
8423
8424 * dwarf2read.h (die_info_ptr): Remove typedef.
8425
4fc6c0d5
TT
84262020-02-08 Tom Tromey <tom@tromey.com>
8427
8428 * dwarf2read.c (read_call_site_scope)
8429 (handle_data_member_location, dwarf2_add_member_fn)
8430 (mark_common_block_symbol_computed, read_common_block)
8431 (attr_to_dynamic_prop, partial_die_info::read)
8432 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8433 (dwarf2_symbol_mark_computed, set_die_type): Update.
8434 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8435 method.
8436 (attr_form_is_block): Don't declare.
8437 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8438
cd6c91b4
TT
84392020-02-08 Tom Tromey <tom@tromey.com>
8440
8441 * dwarf2read.c (dwarf2_find_base_address, )
8442 (read_call_site_scope, rust_containing_type)
8443 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8444 (handle_data_member_location, dwarf2_add_member_fn)
8445 (get_alignment, read_structure_type, process_structure_scope)
8446 (mark_common_block_symbol_computed, read_common_block)
8447 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8448 (partial_die_info::read, read_attribute_value, new_symbol)
8449 (lookup_die_type, dwarf2_get_ref_die_offset)
8450 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8451 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8452 (dwarf2_symbol_mark_computed): Update.
8453 * dwarf2/attribute.h (struct attribute) <value_as_address,
8454 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8455 methods.
8456 (value_as_address, attr_form_is_section_offset)
8457 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8458 * dwarf2/attribute.c (attribute::value_as_address)
8459 (attribute::form_is_section_offset, attribute::form_is_constant)
8460 (attribute::form_is_ref): Now methods.
8461
162dce55
TT
84622020-02-08 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2read.c (struct attribute, DW_STRING)
8465 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8466 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8467 (attr_form_is_block, attr_form_is_section_offset)
8468 (attr_form_is_constant, attr_form_is_ref): Move.
8469 * dwarf2/attribute.h: New file.
8470 * dwarf2/attribute.c: New file, from dwarf2read.c.
8471 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8472
3054dd54
TT
84732020-02-08 Tom Tromey <tom@tromey.com>
8474
8475 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8476 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8477 Move.
8478 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8479 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8480 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8481 abbrev.c.
8482 * dwarf2/abbrev.h: New file.
8483 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8484 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8485
96b79293
TT
84862020-02-08 Tom Tromey <tom@tromey.com>
8487
8488 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8489 (dwarf2_section_size, dwarf2_get_section_info)
8490 (create_signatured_type_table_from_debug_names)
8491 (create_addrmap_from_aranges, read_debug_names_from_section)
8492 (get_gdb_index_contents_from_section, read_comp_unit_head)
8493 (error_check_comp_unit_head, read_abbrev_offset)
8494 (create_debug_type_hash_table, init_cu_die_reader)
8495 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8496 (read_comp_units_from_section, create_cus_hash_table)
8497 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8498 (create_dwp_v2_section, dwarf2_rnglists_process)
8499 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8500 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8501 (read_indirect_string_from_dwz, read_addr_index_1)
8502 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8503 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8504 (fill_in_loclist_baton): Update.
8505 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8506 get_containing_section, get_bfd_owner, get_bfd_section,
8507 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8508 (dwarf2_read_section, get_section_name, get_section_file_name)
8509 (get_containing_section, get_section_bfd_owner)
8510 (get_section_bfd_section, get_section_name, get_section_file_name)
8511 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8512 declare.
8513 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8514 (dwarf2_section_info::get_bfd_owner)
8515 (dwarf2_section_info::get_bfd_section)
8516 (dwarf2_section_info::get_name)
8517 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8518 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8519 (dwarf2_section_info::read): Now methods.
8520 * dwarf-index-write.c (class debug_names): Update.
8521
2c86cff9
TT
85222020-02-08 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8525 Move to dwarf2/section.h.
8526 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8527 (get_section_bfd_section, get_section_name)
8528 (get_section_file_name, get_section_id, get_section_flags)
8529 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8530 dwarf2/section.c.
8531 * dwarf2/section.h: New file.
8532 * dwarf2/section.c: New file, from dwarf2read.c.
8533 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8534
f4382c45
TT
85352020-02-08 Tom Tromey <tom@tromey.com>
8536
8537 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8538 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8539 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8540 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8541 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8542 * dwarf2/leb.h: New file, from dwarf2read.c.
8543 * dwarf2/leb.c: New file, from dwarf2read.c.
8544 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8545 Remove.
8546 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8547 (COMMON_SFILES): Add dwarf2/leb.c.
8548
01840b7a
JB
85492020-02-08 Joel Brobecker <brobecker@adacore.com>
8550
8551 GDB 9.1 released.
8552
dfcb27e4
IB
85532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8554
8555 PR gdb/25190:
aac66a4c
SM
8556 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8557 * gdb/remote.c (remote_console_output): Update.
8558 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8559 (ui_file_puts): ...this.
8560 * gdb/ui-file.h (ui_file_puts): Add declaration.
8561 * gdb/utils.c (emit_style_escape): Update.
8562 (flush_wrap_buffer): Update.
8563 (fputs_maybe_filtered): Update.
8564 (fputs_unfiltered): Add function.
dfcb27e4 8565
faa17681
IB
85662020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8567
aac66a4c
SM
8568 * gdb/event-loop.c (gdb_wait_for_event): Update.
8569 * gdb/printcmd.c (printf_command): Update.
8570 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8571 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8572 (gdb_os_flush_stderr): Update.
8573 * gdb/remote.c (remote_console_output): Update.
8574 * gdb/ui-file.c (gdb_flush): Rename to...
8575 (ui_file_flush): ...this.
8576 (stderr_file::write): Update.
8577 (stderr_file::puts): Update.
8578 * gdb/ui-file.h (gdb_flush): Rename to...
8579 (ui_file_flush): ...this.
8580 * gdb/utils.c (gdb_flush): Add function.
8581 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8582
5abbbe1d
TT
85832020-02-07 Tom Tromey <tromey@adacore.com>
8584
8585 PR breakpoints/24915:
8586 * source.c (find_and_open_source): Do not check basenames_may_differ.
8587
919adfe8
TT
85882020-02-07 Tom Tromey <tom@tromey.com>
8589
8590 * README: Update gdbserver documentation.
8591 * gdbserver: Move to top level.
8592 * configure.tgt (build_gdbserver): Remove.
8593 * configure.ac: Remove --enable-gdbserver.
8594 * configure: Rebuild.
8595 * Makefile.in (distclean): Don't mention gdbserver.
8596
1d5d29e7
SV
85972020-02-06 Shahab Vahedi <shahab@synopsys.com>
8598
8599 * source-cache.c (source_cache::ensure): Surround
8600 get_plain_source_lines with a try/catch.
8601 (source_cache::get_line_charpos): Get rid of try/catch
8602 and only check for the return value of "ensure".
8603 * tui/tui-source.c (tui_source_window::set_contents):
8604 Simplify "nlines" calculation.
8605
6eb1129c
SV
86062020-02-06 Shahab Vahedi <shahab@synopsys.com>
8607
8608 * MAINTAINERS (Write After Approval): Add myself.
8609
c6a42d11
CB
86102020-02-05 Christian Biesinger <cbiesinger@google.com>
8611
8612 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8613 function call.
8614
c8ecdda6
CB
86152020-02-05 Christian Biesinger <cbiesinger@google.com>
8616
8617 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8618
f6480e70
MR
86192020-02-05 Maciej W. Rozycki <macro@wdc.com>
8620
8621 * nat/riscv-linux-tdesc.h: New file.
8622 * nat/riscv-linux-tdesc.c: New file, taking code from...
8623 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8624 ... here.
8625 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8626 NATDEPFILES.
8627
dcc9fbc6
AB
86282020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8631 we don't set the fake simulator ptid to the null_ptid.
8632
719546c4
SM
86332020-02-03 Simon Marchi <simon.marchi@efficios.com>
8634
8635 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8636 * gdbthread.h (class thread_info) <resumed>: Likewise.
8637 * infrun.c (resume_1): Likewise.
8638 (proceed): Likewise.
8639 (infrun_thread_stop_requested): Likewise.
8640 (stop_all_threads): Likewise.
8641 (handle_inferior_event): Likewise.
8642 (restart_threads): Likewise.
8643 (finish_step_over): Likewise.
8644 (keep_going_stepped_thread): Likewise.
8645 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8646 (linux_handle_extended_wait): Likewise.
8647 * record-btrace.c (get_thread_current_frame_id): Likewise.
8648 * record-full.c (record_full_wait_1): Likewise.
8649 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8650 * target.c (target_resume): Likewise.
8651 * thread.c (set_running_thread): Likewise.
8652
e409c542
AKS
86532020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8654
8655 * f-valprint.c (f77_print_array_1): Changed datatype of index
8656 variable to LONGEST from int to enable it to contain bound
8657 values correctly.
8658
ee98c0da
MR
86592020-02-03 Maciej W. Rozycki <macro@wdc.com>
8660
8661 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8662 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8663 offsets according to FLEN determined.
8664 (riscv_linux_nat_target::read_description): Determine FLEN
8665 dynamically.
8666 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8667 according to FLEN determined.
8668 (riscv_linux_nat_target::store_registers): Likewise.
8669
aa66aac4
SV
86702020-02-01 Shahab Vahedi <shahab@synopsys.com>
8671
8672 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8673 when reg->group is empty and reggroup is not.
8674
fd9faca8
TT
86752020-01-31 Tom Tromey <tromey@adacore.com>
8676
8677 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8678 Call beneath target's mourn_inferior after unpushing.
8679
42330a68
AB
86802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8681
8682 PR tui/9765
8683 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8684 have enough lines to fill the screen, still return the lowest
8685 address we found.
8686
7a27a45b
AB
86872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8688
8689 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8690 '-', '<', and '>' commands.
8691
c47f70e2
PA
86922020-01-29 Pedro Alves <palves@redhat.com>
8693 Sergio Durigan Junior <sergiodj@redhat.com>
8694
8695 * infcmd.c (construct_inferior_arguments): Assert that
8696 'argc' is greater than 0.
8697
5133a315
LM
86982020-01-29 Luis Machado <luis.machado@linaro.org>
8699
8700 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8701 (BRK_INSN_MASK): Define to 0xd4200000.
8702 (aarch64_program_breakpoint_here_p): New function.
8703 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8704 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8705 breakpoint.c.
8706 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8707 breakpoint.h
8708 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8709 call gdbarch_program_breakpoint_here_p.
8710 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8711 default_program_breakpoint_here_p, changed return type to bool and
8712 simplified.
8713 * breakpoint.h (program_breakpoint_here): Moved prototype to
8714 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8715 return type to bool.
8716 * gdbarch.c: Regenerate.
8717 * gdbarch.h: Regenerate.
8718 * gdbarch.sh (program_breakpoint_here_p): New method.
8719 * infrun.c (handle_signal_stop): Call
8720 gdbarch_program_breakpoint_here_p.
8721
168f8c6b
TT
87222020-01-26 Tom Tromey <tom@tromey.com>
8723
8724 * ctfread.c (struct ctf_fp_info): Reindent.
8725 (_initialize_ctfread): Remove.
8726
128a391f
TT
87272020-01-26 Tom Tromey <tom@tromey.com>
8728
8729 * psymtab.c (partial_map_expand_apply)
8730 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8731 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8732 (psym_print_stats, psym_expand_symtabs_for_function)
8733 (psym_map_symbol_filenames, psym_map_matching_symbols)
8734 (psym_expand_symtabs_matching)
8735 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8736 (maintenance_check_psymtabs): Use new methods.
8737 * psympriv.h (struct partial_symtab) <readin_p,
8738 get_compunit_symtab>: New methods.
8739 <readin, compunit_symtab>: Remove members.
8740 (struct standard_psymtab): New.
8741 (struct legacy_psymtab): Derive from standard_psymtab.
8742 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8743 standard_psymtab.
8744 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8745
0494dbec
TT
87462020-01-26 Tom Tromey <tom@tromey.com>
8747
8748 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8749 read_dependencies. Add assert.
8750 * psymtab.c (partial_symtab::read_dependencies): New method.
8751 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8752 method.
8753 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8754 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8755 read_dependencies.
8756 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8757 Add assert.
8758
8566b89b
TT
87592020-01-26 Tom Tromey <tom@tromey.com>
8760
8761 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8762 Call expand_psymtab.
8763 (xcoff_read_symtab): Call expand_psymtab.
8764 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8765 legacy_expand_psymtab.
8766 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8767 method.
8768 (struct legacy_psymtab) <expand_psymtab>: Implement.
8769 <legacy_expand_psymtab>: New member.
8770 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8771 (parse_partial_symbols): Set legacy_expand_psymtab.
8772 (psymtab_to_symtab_1): Change argument order. Call
8773 expand_psymtab.
8774 (new_psymtab): Set legacy_expand_psymtab.
8775 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8776 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8777 expand_psymtab.
8778 (dwarf2_psymtab::expand_psymtab): Rename from
8779 psymtab_to_symtab_1. Call expand_psymtab.
8780 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8781 (dbx_end_psymtab): Likewise.
8782 (dbx_psymtab_to_symtab_1): Change argument order. Call
8783 expand_psymtab.
8784 (dbx_read_symtab): Call expand_psymtab.
8785 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8786 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8787 (ctf_psymtab::read_symtab): Call expand_psymtab.
8788
077cbab2
TT
87892020-01-26 Tom Tromey <tom@tromey.com>
8790
8791 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8792 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8793 messages.
8794 * mdebugread.c (mdebug_read_symtab): Remove prints.
8795 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8796 assert.
8797 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8798
891813be
TT
87992020-01-26 Tom Tromey <tom@tromey.com>
8800
8801 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8802 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8803 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8804 legacy_symtab.
8805 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8806 * psymtab.c (psymtab_to_symtab): Call method.
8807 (dump_psymtab): Update.
8808 * psympriv.h (struct partial_symtab): Add virtual destructor.
8809 <read_symtab>: New method.
8810 (struct legacy_symtab): New.
8811 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8812 (struct pst_map) <pst>: Now a legacy_psymtab.
8813 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8814 (new_psymtab): Use legacy_psymtab.
8815 * dwarf2read.h (struct dwarf2_psymtab): New.
8816 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8817 * dwarf2read.c (dwarf2_create_include_psymtab)
8818 (dwarf2_build_include_psymtabs, create_type_unit_group)
8819 (create_partial_symtab, process_psymtab_comp_unit_reader)
8820 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8821 (set_partial_user): Use dwarf2_psymtab.
8822 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8823 (psymtab_to_symtab_1, process_full_comp_unit)
8824 (process_full_type_unit, dwarf2_ranges_read)
8825 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8826 (dwarf_decode_lines): Use dwarf2_psymtab.
8827 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8828 (add_address_entry_worker, write_one_signatured_type)
8829 (recursively_count_psymbols, recursively_write_psymbols)
8830 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8831 (write_debug_names): Likewise.
8832 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8833 <pst>: Now a legacy_psymtab.
8834 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8835 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8836 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8837 * ctfread.c (struct ctf_psymtab): New.
8838 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8839 ctf_psymtab.
8840 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8841 (create_partial_symtab): Return a ctf_psymtab.
8842 (scan_partial_symbols): Update.
8843
c3693a1d
TT
88442020-01-26 Tom Tromey <tom@tromey.com>
8845
8846 * xcoffread.c (xcoff_start_psymtab): Use new.
8847 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8848 renamed from start_psymtab_common.
8849 * psympriv.h (struct partial_symtab): Add new constructor.
8850 (start_psymtab_common): Don't declare.
8851 * mdebugread.c (parse_partial_symbols): Use new.
8852 * dwarf2read.c (create_partial_symtab): Use new.
8853 * dbxread.c (start_psymtab): Use new.
8854 * ctfread.c (create_partial_symtab): Use new.
8855
32caafd0
TT
88562020-01-26 Tom Tromey <tom@tromey.com>
8857
8858 * xcoffread.c (xcoff_end_psymtab): Use new.
8859 * psymtab.c (start_psymtab_common): Use new.
8860 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8861 Update.
8862 * psympriv.h (struct partial_symtab): Add parameters to
8863 constructor. Don't inline.
8864 (allocate_psymtab): Don't declare.
8865 * mdebugread.c (new_psymtab): Use new.
8866 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8867 * dbxread.c (dbx_end_psymtab): Use new.
8868
abaa2f23
TT
88692020-01-26 Tom Tromey <tom@tromey.com>
8870
8871 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8872 allocate_psymtab. Update documentation.
8873 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8874 allocate_psymtab. Do not use new.
8875 (allocate_psymtab): Use new. Update.
8876
6d94535f
TT
88772020-01-26 Tom Tromey <tom@tromey.com>
8878
8879 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8880 * psymtab.c (psym_print_stats): Update.
8881 * psympriv.h (struct partial_symtab) <readin,
8882 psymtabs_addrmap_supported, anonymous>: Now bool.
8883 * mdebugread.c (psymtab_to_symtab_1): Update.
8884 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8885 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8886 (process_full_comp_unit, process_full_type_unit): Update.
8887 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8888 * ctfread.c (psymtab_to_symtab): Update.
8889
6f17252b
TT
88902020-01-26 Tom Tromey <tom@tromey.com>
8891
8892 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8893 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8894 * psymtab.c (psymtab_storage): Delete psymtabs.
8895 (psymtab_storage::allocate_psymtab): Use new.
8896 (psymtab_storage::discard_psymtab): Use delete.
8897 * psympriv.h (struct partial_symtab): Add constructor and
8898 initializers.
8899
f6f1cebc
TT
89002020-01-26 Tom Tromey <tom@tromey.com>
8901
8902 * machoread.c: Do not include psympriv.h.
8903
e47e48f6
PW
89042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8905
8906 * NEWS: Mention the new option and the set/show commands.
8907
a2fedca9
PW
89082020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8909
8910 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8911 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8912 (validate_exec_file): New variables, enums, functions.
8913 (exec_file_locate_attach, print_section_info): Style the filenames.
8914 (_initialize_exec): Install show_exec_file_mismatch_command and
8915 set_exec_file_mismatch_command.
8916 * gdbcore.h (validate_exec_file): Declare.
8917 * infcmd.c (attach_command): Call validate_exec_file.
8918 * remote.c ( remote_target::remote_add_inferior): Likewise.
8919
7ffa82e1
AB
89202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8921
8922 * frame.c (find_frame_sal): Move call to get_next_frame into more
8923 inner scope.
8924 * inline-frame.c (inilne_state) <inline_state>: Update argument
8925 types.
8926 (inilne_state) <skipped_symbol>: Rename to...
8927 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8928 (skip_inline_frames): Build vector of skipped symbols and use this
8929 to reate the inline_state.
8930 (inline_skipped_symbol): Add a comment and some assertions, fetch
8931 skipped symbol from the list.
8932
3d92a3e3
AB
89332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8934
8935 * buildsym.c (lte_is_less_than): Delete.
8936 (buildsym_compunit::end_symtab_with_blockvector): Create local
8937 lambda function to sort line table entries, and use
8938 std::stable_sort instead of std::sort.
8939 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8940 markers when looking for a previous line.
8941
94a72be7
AB
89422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8943
8944 * dwarf2read.c (lnp_state_machine::record_line): Include
8945 end_sequence parameter in debug print out. Record the line if we
8946 are at an end_sequence marker even if it's not the start of a
8947 statement.
8948 * symmisc.c (maintenance_print_one_line_table): Print end of
8949 sequence markers with 'END' not '0'.
8950
53af73bf
PA
89512020-01-24 Pedro Alves <palves@redhat.com>
8952
8953 PR gdb/25410
8954 * thread.c (scoped_restore_current_thread::restore): Use
8955 switch_to_inferior_no_thread.
8956 * exec.c: Include "progspace-and-thread.h".
8957 (add_target_sections, remove_target_sections):
8958 scoped_restore_current_pspace_and_thread instead of
8959 scoped_restore_current_thread.
8960 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8961 and aspace to the inferior before calling clone_program_space.
8962 Remove stale comment.
8963
3050c6f4
CB
89642020-01-24 Christian Biesinger <cbiesinger@google.com>
8965
8966 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8967 (arm_netbsd_nat_target::fetch_registers): ...this.
8968 (arm_nbsd_nat_target::store_registers): Rename to...
8969 (arm_netbsd_nat_target::store_registers): ...this.
8970
73685c7e
CB
89712020-01-24 Christian Biesinger <cbiesinger@google.com>
8972
8973 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8974 register_t.
8975
89203d40
CB
89762020-01-24 Christian Biesinger <cbiesinger@google.com>
8977
8978 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8979 Update comment.
8980 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8981 Likewise.
8982 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8983 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8984 the correct replacement (iterate_over_regset_sections).
8985 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8986 Update comment.
8987
1ba1ac88
AB
89882020-01-24 Graham Markall <graham.markall@embecosm.com>
8989
8990 PR gdb/23718
8991 * gdb/python/python.c (execute_gdb_command): Call
8992 async_enable_stdin in catch block.
8993
f3364a6d
AB
89942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8995
8996 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8997 SWITCH_THRU_ALL_UIS.
8998
733d0a67
AB
89992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9000
9001 PR tui/9765
9002 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9003 comment, add extra parameter, and update to store previous symbol
9004 when appropriate.
9005 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9006 add extra parameter.
9007 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9008 remove unneeded parameter, add try/catch around gdb_print_insn,
9009 rewrite to add items to asm_lines vector.
9010 (tui_find_backward_disassembly_start_address): New function.
9011 (tui_find_disassembly_address): Updated throughout.
9012 (tui_disasm_window::set_contents): Update for changes to
9013 tui_disassemble.
9014 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9015 number of lines to scroll.
9016
b3b3bada
SM
90172020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9018
9019 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9020 (SECT_OFF_DATA): Likewise.
9021 (SECT_OFF_RODATA): Likewise.
9022 (SECT_OFF_TEXT): Likewise.
9023 (SECT_OFF_BSS): Likewise.
9024 (struct objfile) <text_section_offset, data_section_offset>: New
9025 methods.
9026 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9027 objfile::text_section_offset.
9028 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9029 * coffread.c (coff_symtab_read): Likewise.
9030 (enter_linenos): Likewise.
9031 (process_coff_symbol): Likewise.
9032 * ctfread.c (get_objfile_text_range): Likewise.
9033 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9034 Use objfile::data_section_offset.
9035 * dwarf2-frame.c (execute_cfa_program): Use
9036 objfile::text_section_offset.
9037 (dwarf2_frame_find_fde): Likewise.
9038 * dwarf2read.c (create_addrmap_from_index): Likewise.
9039 (create_addrmap_from_aranges): Likewise.
9040 (dw2_find_pc_sect_compunit_symtab): Likewise.
9041 (process_psymtab_comp_unit_reader): Likewise.
9042 (add_partial_symbol): Likewise.
9043 (add_partial_subprogram): Likewise.
9044 (process_full_comp_unit): Likewise.
9045 (read_file_scope): Likewise.
9046 (read_func_scope): Likewise.
9047 (read_lexical_block_scope): Likewise.
9048 (read_call_site_scope): Likewise.
9049 (dwarf2_rnglists_process): Likewise.
9050 (dwarf2_ranges_process): Likewise.
9051 (dwarf2_ranges_read): Likewise.
9052 (dwarf_decode_lines_1): Likewise.
9053 (new_symbol): Likewise.
9054 (dwarf2_fetch_die_loc_sect_off): Likewise.
9055 (dwarf2_per_cu_text_offset): Likewise.
9056 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9057 * hppa-tdep.c (read_unwind_info): Likewise.
9058 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9059 * psympriv.h (struct partial_symtab): Likewise.
9060 * psymtab.c (find_pc_sect_psymtab): Likewise.
9061 * solib-svr4.c (enable_break): Likewise.
9062 * stap-probe.c (relocate_address): Use
9063 objfile::data_section_offset.
9064 * xcoffread.c (enter_line_range): Use
9065 objfile::text_section_offset.
9066 (read_xcoff_symtab): Likewise.
9067
ab53f382
SM
90682020-01-23 Simon Marchi <simon.marchi@efficios.com>
9069
9070 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9071 declaration to narrower scopes.
9072
e7eee665
SM
90732020-01-23 Simon Marchi <simon.marchi@efficios.com>
9074
9075 * darwin-nat.h (struct darwin_exception_msg, enum
9076 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9077 Move up.
9078 (class darwin_nat_target) <wait_1, check_new_threads,
9079 decode_exception_message, decode_message, stop_inferior,
9080 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9081 * darwin-nat.c (darwin_check_new_threads): Rename to...
9082 (darwin_nat_target::check_new_threads): ... this.
9083 (darwin_suspend_inferior_it): Remove.
9084 (darwin_decode_exception_message): Rename to...
9085 (darwin_nat_target::decode_exception_message): ... this.
9086 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9087 (darwin_decode_message): Rename to...
9088 (darwin_nat_target::decode_message): ... this.
9089 (cancel_breakpoint): Rename to...
9090 (darwin_nat_target::cancel_breakpoint): ... this.
9091 (darwin_wait): Rename to...
9092 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9093 instead of iterate_over_inferiors.
9094 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9095 (darwin_stop_inferior): Rename to...
9096 (darwin_nat_target::stop_inferior): ... this.
9097 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9098 (darwin_init_thread_list): Rename to...
9099 (darwin_nat_target::init_thread_list): ... this.
9100 (darwin_ptrace_him): Rename to...
9101 (darwin_nat_target::ptrace_him): ... this.
9102 (darwin_nat_target::create_inferior): Pass lambda function to
9103 fork_inferior.
9104 (darwin_nat_target::detach): Call stop_inferior instead of
9105 darwin_stop_inferior.
9106 * fork-inferior.h (fork_inferior): Change init_trace_fun
9107 parameter to gdb::function_view.
9108 * fork-inferior.c (fork_inferior): Likewise.
9109
c162ed3e
HD
91102020-01-23 Hannes Domani <ssbssa@yahoo.de>
9111
9112 * i386-cygwin-tdep.c (core_process_module_section): Update.
9113 * windows-nat.c (struct lm_info_windows): Add text_offset.
9114 (windows_xfer_shared_libraries): Update.
9115 * windows-tdep.c (windows_xfer_shared_library):
9116 Add text_offset_cached argument.
9117 * windows-tdep.h (windows_xfer_shared_library): Update.
9118
a1237872
SM
91192020-01-21 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9122
b3ee6dd9
SM
91232020-01-21 Simon Marchi <simon.marchi@efficios.com>
9124
9125 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9126 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9127 replace with range-based for.
9128 (gdbsim_interrupt_inferior): Remove.
9129 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9130 with a range-based for. Inline code from
9131 gdbsim_interrupt_inferior.
9132
f9fac3c8
SM
91332020-01-21 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * infrun.c (proceed): Fix indentation.
9136
f6474de9
TT
91372020-01-21 Tom Tromey <tromey@adacore.com>
9138
9139 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9140 * python/python.c (python_extension_ops): Update.
9141 (gdbpy_colorize): New function.
9142 * python/lib/gdb/__init__.py (colorize): New function.
9143 * extension.h (ext_lang_colorize): Declare.
9144 * extension.c (ext_lang_colorize): New function.
9145 * extension-priv.h (struct extension_language_ops) <colorize>: New
9146 member.
9147 * cli/cli-style.c (_initialize_cli_style): Update help text.
9148
f0c702d4
LM
91492020-01-21 Luis Machado <luis.machado@linaro.org>
9150
9151 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9152 <cond>: Change type to bool.
9153 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9154 (aarch64_displaced_step_cb): Likewise.
9155 (aarch64_displaced_step_tb): Likewise.
9156
1ab139e5
LM
91572020-01-21 Luis Machado <luis.machado@linaro.org>
9158
9159 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9160 output.
9161
0c271889
LM
91622020-01-21 Luis Machado <luis.machado@linaro.org>
9163
9164 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9165 <pc_adjust>: Adjust the documentation.
9166 (aarch64_displaced_step_fixup): Check if PC really moved before
9167 adjusting it.
9168
4d89c1c7
TT
91692020-01-19 Tom Tromey <tom@tromey.com>
9170
9171 * disasm.c (~gdb_disassembler): New destructor.
9172 (gdb_buffered_insn_length): Call disassemble_free_target.
9173 * disasm.h (class gdb_disassembler): Declare destructor. Use
9174 DISABLE_COPY_AND_ASSIGN.
9175
c0ab21c2
TT
91762020-01-19 Tom Tromey <tom@tromey.com>
9177
9178 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9179 (die_reader_func_ftype): Remove.
9180 (cutu_reader): New class.
9181 (dw2_get_file_names_reader): Remove "data" parameter.
9182 (dw2_get_file_names): Use cutu_reader.
9183 (create_debug_type_hash_table): Update.
9184 (read_cutu_die_from_dwo): Update comment.
9185 (lookup_dwo_unit): Add dwo_name parameter.
9186 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9187 die_reader_func_ftype and data parameters.
9188 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9189 Remove die_reader_func_ftype and data parameters.
9190 (~cutu_reader): New; from init_cutu_and_read_dies.
9191 (cutu_reader::cutu_reader): Rename from
9192 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9193 and data parameters.
9194 (init_cutu_and_read_dies_simple): Remove.
9195 (struct process_psymtab_comp_unit_data): Remove.
9196 (process_psymtab_comp_unit_reader): Remove data parameter; add
9197 want_partial_unit and pretend_language parameters.
9198 (process_psymtab_comp_unit): Use cutu_reader.
9199 (build_type_psymtabs_reader): Remove data parameter.
9200 (build_type_psymtabs_1): Use cutu_reader.
9201 (process_skeletonless_type_unit): Likewise.
9202 (load_partial_comp_unit_reader): Remove.
9203 (load_partial_comp_unit): Use cutu_reader.
9204 (load_full_comp_unit_reader): Remove.
9205 (load_full_comp_unit): Use cutu_reader.
9206 (struct create_dwo_cu_data): Remove.
9207 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9208 dwo_unit parameters.
9209 (create_cus_hash_table): Use cutu_reader.
9210 (struct dwarf2_read_addr_index_data): Remove.
9211 (dwarf2_read_addr_index_reader): Remove.
9212 (dwarf2_read_addr_index): Use cutu_reader.
9213 (read_signatured_type_reader): Remove.
9214 (read_signatured_type): Use cutu_reader.
9215
45bbae5c
TT
92162020-01-19 Tom Tromey <tom@tromey.com>
9217
9218 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9219 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9220 (tui_wrefresh): Declare.
9221 * tui/tui-wingeneral.c (suppress_output): New global.
9222 (tui_suppress_output, ~tui_suppress_output): New constructor and
9223 destructor.
9224 (tui_wrefresh): New function.
9225 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9226 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9227 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9228 method.
9229 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9230 tui_wrefresh.
9231 (tui_data_window::no_refresh): New method.
9232 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9233 (tui_reg_command): Use tui_suppress_output
9234 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9235 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9236 method.
9237 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9238
4f13c1c0
TT
92392020-01-19 Tom Tromey <tom@tromey.com>
9240
9241 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9242 Handle case where symtab is null.
9243
fa47e446
SM
92442020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * linux-fork.c (one_fork_p): Simplify.
9247
26f42329
SM
92482020-01-17 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * top.c (struct qt_args): Remove.
9251 (kill_or_detach): Change return type to void, replace `void *`
9252 parameter with a proper one.
9253 (print_inferior_quit_action): Likewise.
9254 (quit_confirm): Use range-based for loop to iterate over inferiors.
9255 (quit_force): Likewise.
9256
a9ac81b1
SM
92572020-01-17 Simon Marchi <simon.marchi@efficios.com>
9258
9259 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9260 `void *` parameter with proper parameters.
9261 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9262 (print_one_inferior): Change return type to void, replace `void *`
9263 parameter with proper parameters.
9264 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9265 inferiors.
9266 (get_other_inferior): Remove.
9267 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9268 inferiors.
9269
788eca49
SM
92702020-01-17 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * mi/mi-interp.c (report_initial_inferior): Remove.
9273 (mi_interp::init): Use range-based for to iterate over inferiors.
9274
d9bc85b6
SM
92752020-01-17 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * python/py-inferior.c (build_inferior_list): Remove.
9278 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9279
40c94099
CB
92802020-01-16 Christian Biesinger <cbiesinger@google.com>
9281
9282 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9283 (btrace_stitch_trace): Likewise.
9284 * charset.c (intermediate_encoding): Likewise (vaild).
9285 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9286 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9287 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9288
e0cdfe3c
HD
92892020-01-16 Hannes Domani <ssbssa@yahoo.de>
9290
9291 * windows-tdep.c (windows_get_tlb_type):
9292 Add rtl_user_process_parameters type.
9293
790f1718 92942020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9295 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9296
9297 PR build/24805
9298 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9299 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9300 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9301 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9302 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9303 (ps_plog): Redeclare exported functions with default visibility.
9304
3112ed97
NA
93052020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9306
9307 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9308 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9309
8dc3273e
SM
93102020-01-15 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * infcmd.c (post_create_inferior): Use get_thread_regcache
9313 instead of get_current_regcache.
9314
ff47f4f0
TT
93152020-01-14 Tom Tromey <tom@tromey.com>
9316
9317 PR symtab/12535:
9318 * python/python.c (gdbpy_decode_line): Treat empty string the same
9319 as no argument.
9320
975f45b7
TT
93212020-01-14 Tom Tromey <tom@tromey.com>
9322
9323 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9324
25e57356
TT
93252020-01-14 Tom Tromey <tom@tromey.com>
9326
9327 * nat/linux-btrace.c: Don't include <config.h>.
9328 * nat/linux-ptrace.c: Don't include <config.h>.
9329 * nat/x86-linux-dregs.c: Don't include <config.h>.
9330
05ea2a05
TT
93312020-01-14 Tom Tromey <tom@tromey.com>
9332
9333 * configure: Rebuild.
9334 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9335
01027315
TT
93362020-01-14 Tom Tromey <tom@tromey.com>
9337
9338 * nat/x86-linux-dregs.c: Include configh.h.
9339 * nat/linux-ptrace.c: Include configh.h.
9340 * nat/linux-btrace.c: Include configh.h.
9341 * defs.h: Include config.h, bfd.h.
9342 * configure.ac: Don't source common.host.
9343 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9344 * configure: Rebuild.
9345 * acinclude.m4: Update path.
9346 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9347 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9348 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9349 (CLIBS): Add LIBSUPPORT.
9350 (CDEPS): Likewise.
9351 (COMMON_SFILES): Remove gdbsupport files.
9352 (HFILES_NO_SRCDIR): Likewise.
9353 (stamp-version): Update path to create-version.sh.
9354 (ALLDEPFILES): Remove gdbsupport files.
9355
b2ceabe8
TT
93562020-01-14 Tom Tromey <tom@tromey.com>
9357
9358 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9359 USE_WIN32API when needed.
9360 * configure.ac (USE_WIN32API): Don't define.
9361 (WIN32LIBS): Use WIN32APILIBS.
9362 * configure: Rebuild.
9363
25c51f71
TT
93642020-01-14 Tom Tromey <tom@tromey.com>
9365
9366 * configure: Rebuild.
9367 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9368
717c684d
BE
93692020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9370
9371 * skip.c (skip_function_command): Make skip w/o arguments use the
9372 name of the inlined function if pc is inside any inlined function.
9373
7da6a5b9
LM
93742020-01-14 Luis Machado <luis.machado@linaro.org>
9375
9376 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9377 * infrun.c (resume_1): Likewise.
9378 (handle_inferior_event): Remove stale comment.
9379 * linux-nat.c (linux_nat_target::resume): Update comments.
9380 (save_stop_reason): Likewise.
9381 (linux_nat_filter_event): Likewise.
9382 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9383
44e4c775
AB
93842020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9385
9386 * elfread.c (record_minimal_symbol): Set section index to 0 for
9387 non-allocatable sections.
9388
18a8505e
AT
9389
93902020-01-13 Ali Tamur <tamur@google.com>
9391
9392 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9393 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9394 to gdb::optional. Update comments.
9395 (dwo_file): Update comments.
9396 (read_attribute): Update API to take an additional out parameter,
9397 need_reprocess. This is used to mark attributes that need other
9398 attributes (e.g. str_offsets_base) for correct computation which may not
9399 have been read yet.
9400 (read_attribute_reprocess): New function declaration.
9401 (read_addr_index): Likewise.
9402 (read_dwo_str_index): Likewise.
9403 (read_stub_str_index): Likewise.
9404 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9405 (lookup_addr_base): New function definition.
9406 (lookup_ranges_base): Likewise.
9407 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9408 lookup_ranges_base.
9409 (init_cutu_and_read_dies): Update comments.
9410 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9411 unit. This is used to inherit parent's str_offsets_base and addr_base.
9412 Update comments.
9413 (init_cutu_and_read_dies_simple): Reflect API changes.
9414 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9415 (create_cus_hash_table): Change API to take parent compile unit.
9416 Reflect API changes.
9417 (open_and_init_dwo_file): Reflect API changes.
9418 (dwarf2_get_pc_bounds): Update comments.
9419 (dwarf2_record_block_ranges): Likewise.
9420 (read_full_die_1): Change implementation to reprocess attributes that
9421 need str_offsets_base and addr_base.
9422 (partial_die_info::read): Likewise.
9423 (read_attribute_reprocess): New function definition.
9424 (read_attribute_value): Change API to take an additional out parameter,
9425 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9426 when a non-dwo compile unit has index based attributes.
9427 (read_attribute): Reflect API changes.
9428 (read_addr_index_1): Reflect API changes. Update comments.
9429 (dwarf2_read_addr_index_data): Reflect API changes.
9430 (dwarf2_read_addr_index): Likewise.
9431 (read_str_index): Change API and implementation. This becomes a helper
9432 to be used by the new string index related methods. Update error
9433 message and comments.
9434 (read_dwo_str_index): New function definition.
9435 (read_stub_str_index): Likewise.
9436 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9437 * symfile.h (dwarf2_debug_sections): Likewise.
9438 * xcoffread.c (dwarf2_debug_sections): Likewise.
9439
0cac9354
SM
94402020-01-13 Simon Marchi <simon.marchi@efficios.com>
9441
9442 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9443 core_reg_sect type to gdb_byte *.
9444 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9445 * cris-tdep.c (fetch_core_registers): Likewise.
9446 * corelow.c (core_target::get_core_register_section): Change
9447 type of `contents` to gdb::byte_vector.
9448
9a6d629c
AB
94492020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9450
9451 * tui/tui-wingeneral.c (box_win): Position the title in the center
9452 of the border.
9453
d8b2f9e3
SM
94542020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9455
9456 * corelow.c (core_target::get_core_register_section): Use
9457 std::vector instead of alloca.
9458
bb564c58
SM
94592020-01-13 Simon Marchi <simon.marchi@efficios.com>
9460
9461 * warning.m4: Add -Wmissing-declarations to build_warnings.
9462 * configure: Re-generate.
9463
6b366111
SM
94642020-01-13 Simon Marchi <simon.marchi@efficios.com>
9465
9466 * python/python.c (init__gdb_module): Add declaration.
9467
6c265988
SM
94682020-01-13 Simon Marchi <simon.marchi@efficios.com>
9469
9470 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9471 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9472 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9473 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9474 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9475 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9476 * ada-exp.y (_initialize_ada_exp): Add declaration.
9477 * ada-lang.c (_initialize_ada_language): Add declaration.
9478 * ada-tasks.c (_initialize_tasks): Add declaration.
9479 * agent.c (_initialize_agent): Add declaration.
9480 * aix-thread.c (_initialize_aix_thread): Add declaration.
9481 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9482 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9483 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9484 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9485 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9486 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9487 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9488 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9489 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9490 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9491 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9492 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9493 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9494 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9495 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9496 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9497 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9498 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9499 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9500 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9501 * annotate.c (_initialize_annotate): Add declaration.
9502 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9503 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9504 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9505 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9506 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9507 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9508 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9509 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9510 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9511 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9512 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9513 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9514 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9515 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9516 * auto-load.c (_initialize_auto_load): Add declaration.
9517 * auxv.c (_initialize_auxv): Add declaration.
9518 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9519 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9520 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9521 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9522 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9523 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9524 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9525 * breakpoint.c (_initialize_breakpoint): Add declaration.
9526 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9527 * btrace.c (_initialize_btrace): Add declaration.
9528 * charset.c (_initialize_charset): Add declaration.
9529 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9530 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9531 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9532 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9533 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9534 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9535 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9536 * coffread.c (_initialize_coffread): Add declaration.
9537 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9538 * compile/compile.c (_initialize_compile): Add declaration.
9539 * complaints.c (_initialize_complaints): Add declaration.
9540 * completer.c (_initialize_completer): Add declaration.
9541 * copying.c (_initialize_copying): Add declaration.
9542 * corefile.c (_initialize_core): Add declaration.
9543 * corelow.c (_initialize_corelow): Add declaration.
9544 * cp-abi.c (_initialize_cp_abi): Add declaration.
9545 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9546 * cp-support.c (_initialize_cp_support): Add declaration.
9547 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9548 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9549 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9550 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9551 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9552 * ctfread.c (_initialize_ctfread): Add declaration.
9553 * d-lang.c (_initialize_d_language): Add declaration.
9554 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9555 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9556 * dbxread.c (_initialize_dbxread): Add declaration.
9557 * dcache.c (_initialize_dcache): Add declaration.
9558 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9559 * disasm.c (_initialize_disasm): Add declaration.
9560 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9561 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9562 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9563 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9564 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9565 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9566 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9567 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9568 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9569 * elfread.c (_initialize_elfread): Add declaration.
9570 * exec.c (_initialize_exec): Add declaration.
9571 * extension.c (_initialize_extension): Add declaration.
9572 * f-lang.c (_initialize_f_language): Add declaration.
9573 * f-valprint.c (_initialize_f_valprint): Add declaration.
9574 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9575 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9576 * filesystem.c (_initialize_filesystem): Add declaration.
9577 * findcmd.c (_initialize_mem_search): Add declaration.
9578 * findvar.c (_initialize_findvar): Add declaration.
9579 * fork-child.c (_initialize_fork_child): Add declaration.
9580 * frame-base.c (_initialize_frame_base): Add declaration.
9581 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9582 * frame.c (_initialize_frame): Add declaration.
9583 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9584 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9585 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9586 * gcore.c (_initialize_gcore): Add declaration.
9587 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9588 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9589 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9590 * gdbarch.c (_initialize_gdbarch): Add declaration.
9591 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9592 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9593 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9594 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9595 * go-lang.c (_initialize_go_language): Add declaration.
9596 * go32-nat.c (_initialize_go32_nat): Add declaration.
9597 * guile/guile.c (_initialize_guile): Add declaration.
9598 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9599 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9600 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9601 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9602 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9603 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9604 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9605 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9606 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9607 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9608 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9609 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9610 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9611 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9612 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9613 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9614 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9615 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9616 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9617 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9618 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9619 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9620 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9621 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9622 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9623 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9624 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9625 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9626 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9627 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9628 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9629 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9630 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9631 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9632 * infcall.c (_initialize_infcall): Add declaration.
9633 * infcmd.c (_initialize_infcmd): Add declaration.
9634 * inflow.c (_initialize_inflow): Add declaration.
9635 * infrun.c (_initialize_infrun): Add declaration.
9636 * interps.c (_initialize_interpreter): Add declaration.
9637 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9638 * jit.c (_initialize_jit): Add declaration.
9639 * language.c (_initialize_language): Add declaration.
9640 * linux-fork.c (_initialize_linux_fork): Add declaration.
9641 * linux-nat.c (_initialize_linux_nat): Add declaration.
9642 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9643 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9644 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9645 * m2-lang.c (_initialize_m2_language): Add declaration.
9646 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9647 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9648 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9649 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9650 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9651 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9652 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9653 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9654 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9655 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9656 * machoread.c (_initialize_machoread): Add declaration.
9657 * macrocmd.c (_initialize_macrocmd): Add declaration.
9658 * macroscope.c (_initialize_macroscope): Add declaration.
9659 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9660 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9661 * maint.c (_initialize_maint_cmds): Add declaration.
9662 * mdebugread.c (_initialize_mdebugread): Add declaration.
9663 * memattr.c (_initialize_mem): Add declaration.
9664 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9665 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9666 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9667 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9668 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9669 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9670 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9671 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9672 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9673 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9674 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9675 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9676 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9677 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9678 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9679 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9680 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9681 * mipsread.c (_initialize_mipsread): Add declaration.
9682 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9683 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9684 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9685 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9686 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9687 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9688 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9689 * nto-procfs.c (_initialize_procfs): Add declaration.
9690 * objc-lang.c (_initialize_objc_language): Add declaration.
9691 * observable.c (_initialize_observer): Add declaration.
9692 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9693 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9694 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9695 * osabi.c (_initialize_gdb_osabi): Add declaration.
9696 * osdata.c (_initialize_osdata): Add declaration.
9697 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9698 * parse.c (_initialize_parse): Add declaration.
9699 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9700 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9701 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9702 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9703 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9704 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9705 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9706 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9707 * printcmd.c (_initialize_printcmd): Add declaration.
9708 * probe.c (_initialize_probe): Add declaration.
9709 * proc-api.c (_initialize_proc_api): Add declaration.
9710 * proc-events.c (_initialize_proc_events): Add declaration.
9711 * proc-service.c (_initialize_proc_service): Add declaration.
9712 * procfs.c (_initialize_procfs): Add declaration.
9713 * producer.c (_initialize_producer): Add declaration.
9714 * psymtab.c (_initialize_psymtab): Add declaration.
9715 * python/python.c (_initialize_python): Add declaration.
9716 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9717 * record-btrace.c (_initialize_record_btrace): Add declaration.
9718 * record-full.c (_initialize_record_full): Add declaration.
9719 * record.c (_initialize_record): Add declaration.
9720 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9721 * regcache.c (_initialize_regcache): Add declaration.
9722 * reggroups.c (_initialize_reggroup): Add declaration.
9723 * remote-notif.c (_initialize_notif): Add declaration.
9724 * remote-sim.c (_initialize_remote_sim): Add declaration.
9725 * remote.c (_initialize_remote): Add declaration.
9726 * reverse.c (_initialize_reverse): Add declaration.
9727 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9728 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9729 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9730 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9731 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9732 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9733 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9734 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9735 Add declaration.
9736 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9737 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9738 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9739 * rust-exp.y (_initialize_rust_exp): Add declaration.
9740 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9741 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9742 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9743 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9744 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9745 * score-tdep.c (_initialize_score_tdep): Add declaration.
9746 * ser-go32.c (_initialize_ser_dos): Add declaration.
9747 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9748 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9749 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9750 * ser-uds.c (_initialize_ser_socket): Add declaration.
9751 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9752 * serial.c (_initialize_serial): Add declaration.
9753 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9754 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9755 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9756 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9757 * skip.c (_initialize_step_skip): Add declaration.
9758 * sol-thread.c (_initialize_sol_thread): Add declaration.
9759 * solib-aix.c (_initialize_solib_aix): Add declaration.
9760 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9761 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9762 * solib-frv.c (_initialize_frv_solib): Add declaration.
9763 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9764 * solib-target.c (_initialize_solib_target): Add declaration.
9765 * solib.c (_initialize_solib): Add declaration.
9766 * source-cache.c (_initialize_source_cache): Add declaration.
9767 * source.c (_initialize_source): Add declaration.
9768 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9769 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9770 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9771 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9772 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9773 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9774 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9775 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9776 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9777 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9778 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9779 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9780 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9781 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9782 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9783 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9784 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9785 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9786 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9787 * stabsread.c (_initialize_stabsread): Add declaration.
9788 * stack.c (_initialize_stack): Add declaration.
9789 * stap-probe.c (_initialize_stap_probe): Add declaration.
9790 * std-regs.c (_initialize_frame_reg): Add declaration.
9791 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9792 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9793 * symfile.c (_initialize_symfile): Add declaration.
9794 * symmisc.c (_initialize_symmisc): Add declaration.
9795 * symtab.c (_initialize_symtab): Add declaration.
9796 * target.c (_initialize_target): Add declaration.
9797 * target-connection.c (_initialize_target_connection): Add
9798 declaration.
9799 * target-dcache.c (_initialize_target_dcache): Add declaration.
9800 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9801 * thread.c (_initialize_thread): Add declaration.
9802 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9803 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9804 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9805 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9806 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9807 * tracectf.c (_initialize_ctf): Add declaration.
9808 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9809 * tracefile.c (_initialize_tracefile): Add declaration.
9810 * tracepoint.c (_initialize_tracepoint): Add declaration.
9811 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9812 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9813 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9814 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9815 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9816 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9817 * tui/tui.c (_initialize_tui): Add declaration.
9818 * typeprint.c (_initialize_typeprint): Add declaration.
9819 * ui-style.c (_initialize_ui_style): Add declaration.
9820 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9821 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9822 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9823 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9824 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9825 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9826 * unittests/filtered_iterator-selftests.c
9827 (_initialize_filtered_iterator_selftests): Add declaration.
9828 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9829 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9830 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9831 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9832 * unittests/main-thread-selftests.c
9833 (_initialize_main_thread_selftests): Add declaration.
9834 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9835 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9836 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9837 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9838 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9839 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9840 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9841 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9842 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9843 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9844 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9845 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9846 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9847 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9848 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9849 declaration.
9850 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9851 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9852 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9853 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9854 * user-regs.c (_initialize_user_regs): Add declaration.
9855 * utils.c (_initialize_utils): Add declaration.
9856 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9857 * valops.c (_initialize_valops): Add declaration.
9858 * valprint.c (_initialize_valprint): Add declaration.
9859 * value.c (_initialize_values): Add declaration.
9860 * varobj.c (_initialize_varobj): Add declaration.
9861 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9862 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9863 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9864 * windows-nat.c (_initialize_windows_nat): Add declaration.
9865 (_initialize_check_for_gdb_ini): Add declaration.
9866 (_initialize_loadable): Add declaration.
9867 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9868 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9869 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9870 * xcoffread.c (_initialize_xcoffread): Add declaration.
9871 * xml-support.c (_initialize_xml_support): Add declaration.
9872 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9873 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9874 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9875 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9876
e2de1eec
SM
98772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9878
9879 * regformats/regdat.sh: Generate declaration for init function.
9880
e0037b4c
SM
98812020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9882
9883 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9884 up.
9885 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9886 close_one_inferior>: New methods.
9887 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9888 pass down target to find_inferior_pid.
9889 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9890 Pass down target to find_inferior_ptid.
9891 (gdbsim_target::create_inferior): Pass down target to
9892 add_thread_silent.
9893 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9894 target down to find_inferior_ptid and switch_to_thread.
9895 (gdbsim_target::close): Update to call close_one_inferior.
9896 (struct resume_data): Remove.
9897 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9898 directly, rather than through a void pointer.
9899 (gdbsim_target::resume): Update to call resume_one_inferior.
9900
58920b5b
SM
99012020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9902
9903 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9904
4ec89149
PA
99052020-01-12 Pedro Alves <palves@redhat.com>
9906
9907 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9908 directly for the current inferior instead of
9909 discard_all_inferiors.
9910 (discard_all_inferiors): Delete.
9911
7c392d1d
TT
99122020-01-11 Tom Tromey <tom@tromey.com>
9913
9914 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9915 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9916 deprecated_safe_get_selected_frame.
9917
d9ebdab7
TBA
99182020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9919
9920 * inferior.c (print_inferior): Switch inferior before printing it.
9921
f3c469b9
PA
99222020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9923 Pedro Alves <palves@redhat.com>
9924
9925 * progspace-and-thread.c (switch_to_program_space_and_thread):
9926 Assert there's an inferior for PSPACE. Use
9927 switch_to_inferior_no_thread to switch the inferior too.
9928 * progspace.c (program_space::~program_space): Call
9929 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9930 (program_space::free_all_objfiles): Don't call clear_symtab_users
9931 here.
9932 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9933
65c574f6
PA
99342020-01-10 Pedro Alves <palves@redhat.com>
9935
9936 * NEWS: Mention multi-target debugging, "info connections", and
9937 "add-inferior -no-connection".
9938
2f4fcf00
PA
99392020-01-10 Pedro Alves <palves@redhat.com>
9940
9941 * infrun.c: Include "target-connection.h".
9942 (check_multi_target_resumption): New.
9943 (proceed): Call it.
9944 * target-connection.c (make_target_connection_string): Make
9945 extern.
9946 * target-connection.h (make_target_connection_string): Declare.
9947
121b3efd
PA
99482020-01-10 Pedro Alves <palves@redhat.com>
9949
9950 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9951 * inferior.c (uiout_field_connection): New function.
9952 (print_inferior): Add new "connection-id" column.
9953 (add_inferior_command): Show connection number/string of added
9954 inferior.
9955 * process-stratum-target.h
9956 (process_stratum_target::connection_string): New virtual method.
9957 (process_stratum_target::connection_number): New field.
9958 * remote.c (remote_target::connection_string): New override.
9959 * target-connection.c: New file.
9960 * target-connection.h: New file.
9961 * target.c (decref_target): Remove process_stratum targets from
9962 the connection list.
9963 (target_stack::push): Add process_stratum targets to the
9964 connection list.
9965
4f837581
PA
99662020-01-10 Pedro Alves <palves@redhat.com>
9967
9968 Revert:
9969 2016-04-12 Pedro Alves <palves@redhat.com>
9970 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9971 Remove references to name.
9972 * serial.h (struct serial) <name>: Delete.
9973
f4ec508e
PA
99742020-01-10 Pedro Alves <palves@redhat.com>
9975
9976 * gdbarch-selftests.c (register_to_value_test): Remove "target
9977 already pushed" check.
9978
5b6d1e4f
PA
99792020-01-10 Pedro Alves <palves@redhat.com>
9980 John Baldwin <jhb@FreeBSD.org>
9981
9982 * aarch64-linux-nat.c
9983 (aarch64_linux_nat_target::thread_architecture): Adjust.
9984 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9985 (task_command_1): Likewise.
9986 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9987 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9988 (aix_thread_target::store_registers)
9989 (aix_thread_target::thread_alive): Adjust.
9990 * amd64-fbsd-tdep.c: Include "inferior.h".
9991 (amd64fbsd_get_thread_local_address): Pass down target.
9992 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9993 thread's gdbarch instead of target_gdbarch.
9994 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9995 get_last_target_status.
9996 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9997 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9998 inferiors.
9999 (update_inserted_breakpoint_locations): Skip if inferiors with no
10000 execution.
10001 (update_global_location_list): When handling moribund locations,
10002 find representative inferior for location's pspace, and use thread
10003 count of its process_stratum target.
10004 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10005 * bsd-uthread.c (bsd_uthread_target::wait): Use
10006 as_process_stratum_target and adjust thread_change_ptid and
10007 add_thread calls.
10008 (bsd_uthread_target::update_thread_list): Use
10009 as_process_stratum_target and adjust find_thread_ptid,
10010 thread_change_ptid and add_thread calls.
10011 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10012 find_thread_ptid call.
10013 * corelow.c (add_to_thread_list): Adjust add_thread call.
10014 (core_target_open): Adjust add_thread_silent and thread_count
10015 calls.
10016 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10017 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10018 * event-top.c (async_disconnect): Pop targets from all inferiors.
10019 * exec.c (add_target_sections): Push exec target on all inferiors
10020 sharing the program space.
10021 (remove_target_sections): Remove the exec target from all
10022 inferiors sharing the program space.
10023 (exec_on_vfork): New.
10024 * exec.h (exec_on_vfork): Declare.
10025 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10026 Pass it down.
10027 (fbsd_nat_target::update_thread_list): Adjust.
10028 (fbsd_nat_target::resume): Adjust.
10029 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10030 down.
10031 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10032 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10033 get_thread_arch_regcache call.
10034 * fork-child.c (gdb_startup_inferior): Pass target down to
10035 startup_inferior and set_executing.
10036 * gdbthread.h (struct process_stratum_target): Forward declare.
10037 (add_thread, add_thread_silent, add_thread_with_info)
10038 (in_thread_list): Add process_stratum_target parameter.
10039 (find_thread_ptid(inferior*, ptid_t)): New overload.
10040 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10041 parameter.
10042 (all_threads()): Delete overload.
10043 (all_threads, all_non_exited_threads): Add process_stratum_target
10044 parameter.
10045 (all_threads_safe): Use brace initialization.
10046 (thread_count): Add process_stratum_target parameter.
10047 (set_resumed, set_running, set_stop_requested, set_executing)
10048 (threads_are_executing, finish_thread_state): Add
10049 process_stratum_target parameter.
10050 (switch_to_thread): Use is_current_thread.
10051 * i386-fbsd-tdep.c: Include "inferior.h".
10052 (i386fbsd_get_thread_local_address): Pass down target.
10053 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10054 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10055 have_inferiors check.
10056 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10057 (inf_ptrace_target::attach): Adjust.
10058 * infcall.c (run_inferior_call): Adjust.
10059 * infcmd.c (run_command_1): Pass target to
10060 scoped_finish_thread_state.
10061 (proceed_thread_callback): Skip inferiors with no execution.
10062 (continue_command): Rename 'all_threads' local to avoid hiding
10063 'all_threads' function. Adjust get_last_target_status call.
10064 (prepare_one_step): Adjust set_running call.
10065 (signal_command): Use user_visible_resume_target. Compare thread
10066 pointers instead of inferior_ptid.
10067 (info_program_command): Adjust to pass down target.
10068 (attach_command): Mark target's 'thread_executing' flag.
10069 (stop_current_target_threads_ns): New, factored out from ...
10070 (interrupt_target_1): ... this. Switch inferior before making
10071 target calls.
10072 * inferior-iter.h
10073 (struct all_inferiors_iterator, struct all_inferiors_range)
10074 (struct all_inferiors_safe_range)
10075 (struct all_non_exited_inferiors_range): Filter on
10076 process_stratum_target too. Remove explicit.
10077 * inferior.c (inferior::inferior): Push dummy target on target
10078 stack.
10079 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10080 Add process_stratum_target parameter, and pass it down.
10081 (have_live_inferiors): Adjust.
10082 (switch_to_inferior_and_push_target): New.
10083 (add_inferior_command, clone_inferior_command): Handle
10084 "-no-connection" parameter. Use
10085 switch_to_inferior_and_push_target.
10086 (_initialize_inferior): Mention "-no-connection" option in
10087 the help of "add-inferior" and "clone-inferior" commands.
10088 * inferior.h: Include "process-stratum-target.h".
10089 (interrupt_target_1): Use bool.
10090 (struct inferior) <push_target, unpush_target, target_is_pushed,
10091 find_target_beneath, top_target, process_target, target_at,
10092 m_stack>: New.
10093 (discard_all_inferiors): Delete.
10094 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10095 (all_inferiors, all_non_exited_inferiors): Add
10096 process_stratum_target parameter.
10097 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10098 (target_last_proc_target): New global.
10099 (follow_fork_inferior): Push target on new inferior. Pass target
10100 to add_thread_silent. Call exec_on_vfork. Handle target's
10101 reference count.
10102 (follow_fork): Adjust get_last_target_status call. Also consider
10103 target.
10104 (follow_exec): Push target on new inferior.
10105 (struct execution_control_state) <target>: New field.
10106 (user_visible_resume_target): New.
10107 (do_target_resume): Call target_async.
10108 (resume_1): Set target's threads_executing flag. Consider resume
10109 target.
10110 (commit_resume_all_targets): New.
10111 (proceed): Also consider resume target. Skip threads of inferiors
10112 with no execution. Commit resumtion in all targets.
10113 (start_remote): Pass current inferior to wait_for_inferior.
10114 (infrun_thread_stop_requested): Consider target as well. Pass
10115 thread_info pointer to clear_inline_frame_state instead of ptid.
10116 (infrun_thread_thread_exit): Consider target as well.
10117 (random_pending_event_thread): New inferior parameter. Use it.
10118 (do_target_wait): Rename to ...
10119 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10120 down.
10121 (threads_are_resumed_pending_p, do_target_wait): New.
10122 (prepare_for_detach): Adjust calls.
10123 (wait_for_inferior): New inferior parameter. Handle it. Use
10124 do_target_wait_1 instead of do_target_wait.
10125 (fetch_inferior_event): Adjust. Switch to representative
10126 inferior. Pass target down.
10127 (set_last_target_status): Add process_stratum_target parameter.
10128 Save target in global.
10129 (get_last_target_status): Add process_stratum_target parameter and
10130 handle it.
10131 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10132 (context_switch): Check inferior_ptid == null_ptid before calling
10133 inferior_thread().
10134 (get_inferior_stop_soon): Pass down target.
10135 (wait_one): Rename to ...
10136 (poll_one_curr_target): ... this.
10137 (struct wait_one_event): New.
10138 (wait_one): New.
10139 (stop_all_threads): Adjust.
10140 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10141 event's target.
10142 (switch_back_to_stepped_thread): Also consider target.
10143 (print_stop_event): Update.
10144 (normal_stop): Update. Also consider the resume target.
10145 * infrun.h (wait_for_inferior): Remove declaration.
10146 (user_visible_resume_target): New declaration.
10147 (get_last_target_status, set_last_target_status): New
10148 process_stratum_target parameter.
10149 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10150 process_stratum_target parameter, and use it.
10151 (clear_inline_frame_state (thread_info*)): New.
10152 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10153 process_stratum_target parameter.
10154 (clear_inline_frame_state (thread_info*)): Declare.
10155 * linux-fork.c (delete_checkpoint_command): Pass target down to
10156 find_thread_ptid.
10157 (checkpoint_command): Adjust.
10158 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10159 instead of just tweaking inferior_ptid.
10160 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10161 (exit_lwp): Pass target down to find_thread_ptid.
10162 (attach_proc_task_lwp_callback): Pass target down to
10163 add_thread/set_running/set_executing.
10164 (linux_nat_target::attach): Pass target down to
10165 thread_change_ptid.
10166 (get_detach_signal): Pass target down to find_thread_ptid.
10167 Consider last target status's target.
10168 (linux_resume_one_lwp_throw, resume_lwp)
10169 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10170 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10171 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10172 (linux_nat_target::async_wait_fd): New.
10173 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10174 target down.
10175 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10176 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10177 * linux-thread-db.c (struct thread_db_info::process_target): New
10178 field.
10179 (add_thread_db_info): Save target.
10180 (get_thread_db_info): New process_stratum_target parameter. Also
10181 match target.
10182 (delete_thread_db_info): New process_stratum_target parameter.
10183 Also match target.
10184 (thread_from_lwp): Adjust to pass down target.
10185 (thread_db_notice_clone): Pass down target.
10186 (check_thread_db_callback): Pass down target.
10187 (try_thread_db_load_1): Always push the thread_db target.
10188 (try_thread_db_load, record_thread): Pass target down.
10189 (thread_db_target::detach): Pass target down. Always unpush the
10190 thread_db target.
10191 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10192 target down. Always unpush the thread_db target.
10193 (find_new_threads_callback, thread_db_find_new_threads_2)
10194 (thread_db_target::update_thread_list): Pass target down.
10195 (thread_db_target::pid_to_str): Pass current inferior down.
10196 (thread_db_target::get_thread_local_address): Pass target down.
10197 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10198 target down.
10199 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10200 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10201 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10202 (procfs_init_inferior): Rename to ...
10203 (procfs_target::procfs_init_inferior): ... this and adjust.
10204 (procfs_target::create_inferior, procfs_notice_thread)
10205 (procfs_do_thread_registers): Adjust.
10206 * ppc-fbsd-tdep.c: Include "inferior.h".
10207 (ppcfbsd_get_thread_local_address): Pass down target.
10208 * proc-service.c (ps_xfer_memory): Switch current inferior and
10209 program space as well.
10210 (get_ps_regcache): Pass target down.
10211 * process-stratum-target.c
10212 (process_stratum_target::thread_address_space)
10213 (process_stratum_target::thread_architecture): Pass target down.
10214 * process-stratum-target.h
10215 (process_stratum_target::threads_executing): New field.
10216 (as_process_stratum_target): New.
10217 * ravenscar-thread.c
10218 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10219 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10220 down.
10221 * record-btrace.c (record_btrace_target::info_record): Adjust.
10222 (record_btrace_target::record_method)
10223 (record_btrace_target::record_is_replaying)
10224 (record_btrace_target::fetch_registers)
10225 (get_thread_current_frame_id, record_btrace_target::resume)
10226 (record_btrace_target::wait, record_btrace_target::stop): Pass
10227 target down.
10228 * record-full.c (record_full_wait_1): Switch to event thread.
10229 Pass target down.
10230 * regcache.c (regcache::regcache)
10231 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10232 process_stratum_target parameter and handle it.
10233 (current_thread_target): New global.
10234 (get_thread_regcache): Add process_stratum_target parameter and
10235 handle it. Switch inferior before calling target method.
10236 (get_thread_regcache): Pass target down.
10237 (get_thread_regcache_for_ptid): Pass target down.
10238 (registers_changed_ptid): Add process_stratum_target parameter and
10239 handle it.
10240 (registers_changed_thread, registers_changed): Pass target down.
10241 (test_get_thread_arch_aspace_regcache): New.
10242 (current_regcache_test): Define a couple local test_target_ops
10243 instances and use them for testing.
10244 (readwrite_regcache): Pass process_stratum_target parameter.
10245 (cooked_read_test, cooked_write_test): Pass mock_target down.
10246 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10247 (get_thread_arch_aspace_regcache): Add process_stratum_target
10248 parameter.
10249 (regcache::target): New method.
10250 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10251 (regcache::registers_changed_ptid): Add process_stratum_target
10252 parameter.
10253 (regcache::m_target): New field.
10254 (registers_changed_ptid): Add process_stratum_target parameter.
10255 * remote.c (remote_state::supports_vCont_probed): New field.
10256 (remote_target::async_wait_fd): New method.
10257 (remote_unpush_and_throw): Add remote_target parameter.
10258 (get_current_remote_target): Adjust.
10259 (remote_target::remote_add_inferior): Push target.
10260 (remote_target::remote_add_thread)
10261 (remote_target::remote_notice_new_inferior)
10262 (get_remote_thread_info): Pass target down.
10263 (remote_target::update_thread_list): Skip threads of inferiors
10264 bound to other targets. (remote_target::close): Don't discard
10265 inferiors. (remote_target::add_current_inferior_and_thread)
10266 (remote_target::process_initial_stop_replies)
10267 (remote_target::start_remote)
10268 (remote_target::remote_serial_quit_handler): Pass down target.
10269 (remote_target::remote_unpush_target): New remote_target
10270 parameter. Unpush the target from all inferiors.
10271 (remote_target::remote_unpush_and_throw): New remote_target
10272 parameter. Pass it down.
10273 (remote_target::open_1): Check whether the current inferior has
10274 execution instead of checking whether any inferior is live. Pass
10275 target down.
10276 (remote_target::remote_detach_1): Pass down target. Use
10277 remote_unpush_target.
10278 (extended_remote_target::attach): Pass down target.
10279 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10280 (remote_target::append_resumption): Pass down target.
10281 (remote_target::append_pending_thread_resumptions)
10282 (remote_target::remote_resume_with_hc, remote_target::resume)
10283 (remote_target::commit_resume): Pass down target.
10284 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10285 (remote_target::interrupt_query)
10286 (remote_target::remove_new_fork_children)
10287 (remote_target::check_pending_events_prevent_wildcard_vcont)
10288 (remote_target::remote_parse_stop_reply)
10289 (remote_target::process_stop_reply): Pass down target.
10290 (first_remote_resumed_thread): New remote_target parameter. Pass
10291 it down.
10292 (remote_target::wait_as): Pass down target.
10293 (unpush_and_perror): New remote_target parameter. Pass it down.
10294 (remote_target::readchar, remote_target::remote_serial_write)
10295 (remote_target::getpkt_or_notif_sane_1)
10296 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10297 down target.
10298 (remote_target::mourn_inferior): Pass down target. Use
10299 remote_unpush_target.
10300 (remote_target::core_of_thread)
10301 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10302 (remote_target::pid_to_exec_file)
10303 (remote_target::thread_handle_to_thread_info): Pass down target.
10304 (remote_target::async_wait_fd): New.
10305 * riscv-fbsd-tdep.c: Include "inferior.h".
10306 (riscv_fbsd_get_thread_local_address): Pass down target.
10307 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10308 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10309 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10310 Adjust.
10311 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10312 * solib-svr4.c (enable_break): Pass down target.
10313 * spu-multiarch.c (parse_spufs_run): Pass down target.
10314 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10315 * target-delegates.c: Regenerate.
10316 * target.c (g_target_stack): Delete.
10317 (current_top_target): Return the current inferior's top target.
10318 (target_has_execution_1): Refer to the passed-in inferior's top
10319 target.
10320 (target_supports_terminal_ours): Check whether the initial
10321 inferior was already created.
10322 (decref_target): New.
10323 (target_stack::push): Incref/decref the target.
10324 (push_target, push_target, unpush_target): Adjust.
10325 (target_stack::unpush): Defref target.
10326 (target_is_pushed): Return bool. Adjust to refer to the current
10327 inferior's target stack.
10328 (dispose_inferior): Delete, and inline parts ...
10329 (target_preopen): ... here. Only dispose of the current inferior.
10330 (target_detach): Hold strong target reference while detaching.
10331 Pass target down.
10332 (target_thread_name): Add assertion.
10333 (target_resume): Pass down target.
10334 (target_ops::beneath, find_target_at): Adjust to refer to the
10335 current inferior's target stack.
10336 (get_dummy_target): New.
10337 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10338 has a thread running.
10339 (initialize_targets): Rename to ...
10340 (_initialize_target): ... this.
10341 * target.h: Include "gdbsupport/refcounted-object.h".
10342 (struct target_ops): Inherit refcounted_object.
10343 (target_ops::shortname, target_ops::longname): Make const.
10344 (target_ops::async_wait_fd): New method.
10345 (decref_target): Declare.
10346 (struct target_ops_ref_policy): New.
10347 (target_ops_ref): New typedef.
10348 (get_dummy_target): Declare function.
10349 (target_is_pushed): Return bool.
10350 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10351 (all_matching_threads_iterator::all_matching_threads_iterator):
10352 Handle filter target.
10353 * thread-iter.h (struct all_matching_threads_iterator, struct
10354 all_matching_threads_range, class all_non_exited_threads_range):
10355 Filter by target too. Remove explicit.
10356 * thread.c (threads_executing): Delete.
10357 (inferior_thread): Pass down current inferior.
10358 (clear_thread_inferior_resources): Pass down thread pointer
10359 instead of ptid_t.
10360 (add_thread_silent, add_thread_with_info, add_thread): Add
10361 process_stratum_target parameter. Use it for thread and inferior
10362 searches.
10363 (is_current_thread): New.
10364 (thread_info::deletable): Use it.
10365 (find_thread_ptid, thread_count, in_thread_list)
10366 (thread_change_ptid, set_resumed, set_running): New
10367 process_stratum_target parameter. Pass it down.
10368 (set_executing): New process_stratum_target parameter. Pass it
10369 down. Adjust reference to 'threads_executing'.
10370 (threads_are_executing): New process_stratum_target parameter.
10371 Adjust reference to 'threads_executing'.
10372 (set_stop_requested, finish_thread_state): New
10373 process_stratum_target parameter. Pass it down.
10374 (switch_to_thread): Also match inferior.
10375 (switch_to_thread): New process_stratum_target parameter. Pass it
10376 down.
10377 (update_threads_executing): Reimplement.
10378 * top.c (quit_force): Pop targets from all inferior.
10379 (gdb_init): Don't call initialize_targets.
10380 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10381 Declare.
10382 (windows_add_thread, windows_delete_thread): Adjust.
10383 (get_windows_debug_event): Rename to ...
10384 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10385 * tracefile-tfile.c (tfile_target_open): Pass down target.
10386 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10387 Forward declare.
10388 (switch_to_thread): Add process_stratum_target parameter.
10389 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10390 parameter. Use it.
10391 (mi_on_resume): Pass target down.
10392 * nat/fork-inferior.c (startup_inferior): Add
10393 process_stratum_target parameter. Pass it down.
10394 * nat/fork-inferior.h (startup_inferior): Add
10395 process_stratum_target parameter.
10396 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10397
75c6c844
PA
103982020-01-10 Pedro Alves <palves@redhat.com>
10399
10400 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10401 directly. Instead find the first thread in the thread list and
10402 use switch_to_thread.
10403
78f2c40a
PA
104042020-01-10 Pedro Alves <palves@redhat.com>
10405
10406 * remote.c (remote_target::remote_add_inferior): Don't bind a
10407 process to the current inferior if the current inferior is already
10408 bound to a process.
10409
e7af6c70
TBA
104102020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10411 Pedro Alves <palves@redhat.com>
10412
10413 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10414 If no process is specified, return null_ptid instead of
10415 inferior_ptid.
10416 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10417 TARGET_WAITKIND_SIGNALLED with no pid.
10418
31ba933e
PA
104192020-01-10 Pedro Alves <palves@redhat.com>
10420
10421 * remote.c (first_remote_resumed_thread): New.
10422 (remote_target::wait_as): Use it as default event_ptid instead of
10423 inferior_ptid.
10424
735fc2ca
PA
104252020-01-10 Pedro Alves <palves@redhat.com>
10426
10427 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10428
c17e02e1
PA
104292020-01-10 Pedro Alves <palves@redhat.com>
10430
10431 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10432 not -1.
10433
ab1ddbcf
PA
104342020-01-10 Pedro Alves <palves@redhat.com>
10435
10436 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10437 ptid to get_last_target_status.
10438 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10439 ptid to get_last_target_status.
10440 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10441 get_last_target_status.
10442 (info_program_command): Don't pass a target_waitstatus to
10443 get_last_target_status.
10444 * infrun.c (init_wait_for_inferior): Use
10445 nullify_last_target_wait_ptid.
10446 (get_last_target_status): Handle nullptr arguments.
10447 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10448 (print_stop_event): Don't pass a ptid to get_last_target_status.
10449 (normal_stop): Don't pass a ptid to get_last_target_status.
10450 * infrun.h (get_last_target_status, set_last_target_status): Move
10451 comments here and update.
10452 (nullify_last_target_wait_ptid): Declare.
10453 * linux-fork.c (fork_load_infrun_state): Remove local extern
10454 declaration of nullify_last_target_wait_ptid.
10455 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10456 to get_last_target_status.
10457
f3f8ece4
PA
104582020-01-10 Pedro Alves <palves@redhat.com>
10459
10460 * gdbthread.h (scoped_restore_current_thread)
10461 <dont_restore, restore, m_dont_restore>: Declare.
10462 * thread.c (thread_alive): Add assertion. Return bool.
10463 (switch_to_thread_if_alive): New.
10464 (prune_threads): Switch inferior/thread.
10465 (print_thread_info_1): Switch thread before calling target methods.
10466 (scoped_restore_current_thread::restore): New, factored out from
10467 ...
10468 (scoped_restore_current_thread::~scoped_restore_current_thread):
10469 ... this.
10470 (scoped_restore_current_thread::scoped_restore_current_thread):
10471 Add assertion.
10472 (thread_apply_all_command, thread_select): Use
10473 switch_to_thread_if_alive.
10474 * infrun.c (proceed, restart_threads, handle_signal_stop)
10475 (switch_back_to_stepped_thread): Switch current thread before
10476 calling target methods.
10477
db2d40f7
PA
104782020-01-10 Pedro Alves <palves@redhat.com>
10479
10480 * inferior.c (switch_to_inferior_no_thread): New function,
10481 factored out from ...
10482 (inferior_command): ... here.
10483 * inferior.h (switch_to_inferior_no_thread): Declare.
10484 * mi/mi-main.c (run_one_inferior): Use
10485 switch_to_inferior_no_thread.
10486
bd420a2d
PA
104872020-01-10 Pedro Alves <palves@redhat.com>
10488
10489 * infcmd.c (kill_command): Remove dead code.
10490
ddf5db90
PA
104912020-01-10 Pedro Alves <palves@redhat.com>
10492
10493 * remote.c (remote_target::mourn_inferior): No longer check
10494 whether the target is running.
10495
5018ce90
PA
104962020-01-10 Pedro Alves <palves@redhat.com>
10497
10498 * corelow.c (core_target::has_execution): Change parameter type to
10499 inferior pointer.
10500 * inferior.c (number_of_live_inferiors): Use
10501 inferior::has_execution instead of target_has_execution_1.
10502 * inferior.h (inferior::has_execution): New.
10503 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10504 inferior::has_execution instead of target_has_execution_1.
10505 * process-stratum-target.c
10506 (process_stratum_target::has_execution): Change parameter type to
10507 inferior pointer. Check the inferior's PID instead of
10508 inferior_ptid.
10509 * process-stratum-target.h
10510 (process_stratum_target::has_execution): Change parameter type to
10511 inferior pointer.
10512 * record-full.c (record_full_core_target::has_execution): Change
10513 parameter type to inferior pointer.
10514 * target.c (target_has_execution_1): Change parameter type to
10515 inferior pointer.
10516 (target_has_execution_current): Adjust.
10517 * target.h (target_ops::has_execution): Change parameter type to
10518 inferior pointer.
10519 (target_has_execution_1): Change parameter type to inferior
10520 pointer. Change return type to bool.
10521 * tracefile.h (tracefile_target::has_execution): Change parameter
10522 type to inferior pointer.
10523
74375d18
PA
105242020-01-10 Pedro Alves <palves@redhat.com>
10525
10526 * exceptions.c (print_flush): Remove current_top_target() check.
10527
acdf84a6
PA
105282020-01-10 Pedro Alves <palves@redhat.com>
10529
10530 * remote.c (show_remote_exec_file): Show the current inferior's
10531 exec-file instead of the command variable's value.
10532
ec506636
PA
105332020-01-10 Pedro Alves <palves@redhat.com>
10534
10535 * record-full.c (record_full_resume_ptid): New global.
10536 (record_full_target::resume): Set it.
10537 (record_full_wait_1): Use record_full_resume_ptid instead of
10538 inferior_ptid.
10539
873657b9
PA
105402020-01-10 Pedro Alves <palves@redhat.com>
10541
10542 * gdbthread.h (scoped_restore_current_thread)
10543 <dont_restore, restore, m_dont_restore>: Declare.
10544 * thread.c (thread_alive): Add assertion. Return bool.
10545 (switch_to_thread_if_alive): New.
10546 (prune_threads): Switch inferior/thread.
10547 (print_thread_info_1): Switch thread before calling target methods.
10548 (scoped_restore_current_thread::restore): New, factored out from
10549 ...
10550 (scoped_restore_current_thread::~scoped_restore_current_thread):
10551 ... this.
10552 (scoped_restore_current_thread::scoped_restore_current_thread):
10553 Add assertion.
10554 (thread_apply_all_command, thread_select): Use
10555 switch_to_thread_if_alive.
10556
7f0ae84c
GB
105572020-01-10 George Barrett <bob@bob131.so>
10558
10559 * stap-probe.c (stap_modify_semaphore): Don't check for null
10560 semaphores.
10561 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10562 for null semaphores.
10563
f5a7c406
AB
105642020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10565
10566 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10567 all source windows, and maintain horizontal scroll status while
10568 doing so.
10569
9ae6bf64
TT
105702020-01-09 Tom Tromey <tom@tromey.com>
10571
10572 PR tui/18932:
10573 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10574 update_source_window, not print_source_lines.
10575
b2efe70c
AB
105762020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10577
10578 * tui/tui.c (tui_enable): Register tui hooks after calling
10579 tui_display_main.
10580
5f23a082
CB
105812020-01-09 Christian Biesinger <cbiesinger@google.com>
10582
10583 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10584
3061113b
SM
105852020-01-08 Simon Marchi <simon.marchi@efficios.com>
10586
10587 * thread.c (print_thread_info_1): Fix indentation.
10588
57d75002
CB
105892020-01-09 Christian Biesinger <cbiesinger@google.com>
10590
10591 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10592 unique_xmalloc_ptr outside the if to always free the demangled name.
10593
6a053cb1
TT
105942020-01-08 Tom Tromey <tromey@adacore.com>
10595
10596 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10597 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10598 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10599 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10600 Remove.
10601 (section_offsets): New typedef.
10602 * symtab.c (fixup_section, get_msymbol_address): Update.
10603 * symmisc.c (dump_msymbols): Update.
10604 * symfile.h (relative_addr_info_to_section_offsets)
10605 (symfile_map_offsets_to_segments): Update.
10606 * symfile.c (build_section_addr_info_from_objfile)
10607 (init_objfile_sect_indices): Update.
10608 (struct place_section_arg): Change type of "offsets".
10609 (place_section): Update.
10610 (relative_addr_info_to_section_offsets): Change type of
10611 "section_offsets". Remove "num_sections" parameter.
10612 (default_symfile_offsets, syms_from_objfile_1)
10613 (set_objfile_default_section_offset): Update.
10614 (reread_symbols): No need to preserve section offsets by hand.
10615 (symfile_map_offsets_to_segments): Change type of "offsets".
10616 * stap-probe.c (relocate_address): Update.
10617 * stabsread.h (process_one_symbol): Update.
10618 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10619 (solib_target_relocate_section_addresses): Update.
10620 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10621 Update.
10622 * solib-frv.c (frv_relocate_main_executable): Update.
10623 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10624 * solib-aix.c (solib_aix_get_section_offsets): Change return
10625 type.
10626 (solib_aix_solib_create_inferior_hook): Update.
10627 * remote.c (remote_target::get_offsets): Update.
10628 * psymtab.c (find_pc_sect_psymtab): Update.
10629 * psympriv.h (struct partial_symbol) <address, text_low,
10630 text_high>: Update.
10631 * objfiles.h (obj_section_offset): Update.
10632 (struct objfile) <section_offsets>: Change type.
10633 <num_sections>: Remove.
10634 (objfile_relocate): Update.
10635 * objfiles.c (entry_point_address_query): Update
10636 (relocate_one_symbol): Change type of "section_offsets".
10637 (objfile_relocate1, objfile_relocate1): Change type of
10638 "new_offsets".
10639 (objfile_rebase1): Update.
10640 * mipsread.c (mipscoff_symfile_read): Update.
10641 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10642 parameter.
10643 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10644 (parse_external, psymtab_to_symtab_1): Update.
10645 * machoread.c (macho_symfile_offsets): Update.
10646 * ia64-tdep.c (ia64_find_unwind_table): Update.
10647 * hppa-tdep.c (read_unwind_info): Update.
10648 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10649 * dwarf2read.c (create_addrmap_from_index)
10650 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10651 (process_psymtab_comp_unit_reader, add_partial_symbol)
10652 (add_partial_subprogram, process_full_comp_unit)
10653 (read_file_scope, read_func_scope, read_lexical_block_scope)
10654 (read_call_site_scope, dwarf2_rnglists_process)
10655 (dwarf2_ranges_process, dwarf2_ranges_read)
10656 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10657 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10658 Update.
10659 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10660 Update.
10661 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10662 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10663 (process_one_symbol): Change type of "section_offsets".
10664 * ctfread.c (get_objfile_text_range): Update.
10665 * coffread.c (coff_symtab_read, enter_linenos)
10666 (process_coff_symbol): Update.
10667 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10668 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10669
456e800a
TT
106702020-01-08 Tom Tromey <tromey@adacore.com>
10671
10672 * dwarf2read.c (parse_macro_definition): Use std::string.
10673 (parse_macro_definition): Likewise.
10674
6dfa2fc2
TT
106752020-01-08 Tom Tromey <tromey@adacore.com>
10676
10677 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10678 (ATTR_ALLOC_CHUNK): Remove.
10679
421d1616
TT
106802020-01-08 Tom Tromey <tromey@adacore.com>
10681
10682 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10683
43816ebc
TT
106842020-01-08 Tom Tromey <tromey@adacore.com>
10685
10686 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10687 (dwarf2_compute_name, open_dwo_file): Likewise.
10688 (process_enumeration_scope): Use std::vector.
10689 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10690 (partial_die_info::fixup, dwarf2_start_subfile)
10691 (guess_full_die_structure_name, dwarf2_name): Likewise.
10692 (determine_prefix): Update.
10693 (guess_full_die_structure_name): Make return type const.
10694 (partial_die_full_name): Return unique_xmalloc_ptr.
10695 (DW_FIELD_ALLOC_CHUNK): Remove.
10696
4212d509
TT
106972020-01-07 Tom Tromey <tromey@adacore.com>
10698
10699 PR build/24937:
10700 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10701
06a6207a
JT
107022020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10703
10704 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10705
153d79c4
AB
107062020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10707
10708 * stack.c (print_frame_info): Move disassemble_next_line code
10709 inside source_print block.
10710
66182876
EZ
107112020-01-06 Eli Zaretskii <eliz@gnu.org>
10712
10713 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10714 gdb/signals.h, as we are now using native signal symbols.
10715
cbfa8581
SV
107162020-01-06 Shahab Vahedi <shahab@synopsys.com>
10717
10718 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10719 overflow by an early check of content vs threshold.
aac66a4c 10720 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10721 Likewise.
10722
3f602821
EZ
107232020-01-06 Eli Zaretskii <eliz@gnu.org>
10724
10725 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10726
a08c904d
JT
107272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10728
10729 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10730 export table if no section contains it's RVA.
10731
89a65580
EZ
107322020-01-06 Eli Zaretskii <eliz@gnu.org>
10733
10734 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10735
8b7fcda2
HD
107362020-01-06 Hannes Domani <ssbssa@yahoo.de>
10737
10738 * source.c (print_source_lines_base): Set last_line_listed.
10739
a61b4f69
SV
107402020-01-06 Shahab Vahedi <shahab@synopsys.com>
10741
10742 * tui/tui-disasm.c: Remove trailing spaces.
10743
559e7e50
EZ
107442020-01-06 Eli Zaretskii <eliz@gnu.org>
10745 Pedro Alves <palves@redhat.com>
10746
10747 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10748 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10749 (windows_gdb_signal_to_target): New function, uses the above
10750 enumeration to convert GDB internal signal codes to equivalent
10751 Windows codes.
10752 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10753 * windows-nat.c: Include "gdb_wait.h".
10754 (get_windows_debug_event): Extract the fatal exception from the
10755 exit status and convert to the equivalent Posix signal number.
10756 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10757 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10758 * gdbsupport/gdb_wait.c: New file, implements
10759 windows_status_to_termsig.
10760 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10761 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10762
f2302a34
AB
107632020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10764
10765 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10766 show_layout.
10767
6a5206eb
LM
107682020-01-05 Luis Machado <luis.machado@linaro.org>
10769
10770 * aarch64-linux-nat.c
10771 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10772 and bfd_mach_aarch64.
10773
6ec1d75e
PW
107742020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10775
10776 * ui-file.c (stdio_file::can_emit_style_escape)
10777 (tee_file::can_emit_style_escape): Ensure style is used also on
10778 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10779 to gdb_stdout.
10780 * main.c (set_gdb_data_directory): Use file style to output the
10781 warning that the given pathname is not a directory.
10782 * top.c (show_history_filename, gdb_safe_append_history)
10783 (show_gdb_datadir): Use file style.
10784
44f81a76
HD
107852020-01-03 Hannes Domani <ssbssa@yahoo.de>
10786
10787 * solib-target.c (struct lm_info_target):
10788 Change offsets to be a unique_xmalloc_ptr.
10789 (solib_target_relocate_section_addresses): Update.
10790
25057eb0
HD
107912020-01-03 Hannes Domani <ssbssa@yahoo.de>
10792
10793 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10794
6e2118f5
BE
107952020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10796
10797 * MAINTAINERS (Write After Approval): Add myself.
10798
8133c7dc
LM
107992020-01-02 Luis Machado <luis.machado@linaro.org>
10800
10801 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10802 Cell BE architecture.
10803 * target.h (struct target_ops) <thread_architecture>: Likewise.
10804
48189bec
HD
108052020-01-01 Hannes Domani <ssbssa@yahoo.de>
10806
10807 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10808
ead1063b
HD
108092020-01-01 Hannes Domani <ssbssa@yahoo.de>
10810
10811 * MAINTAINERS (Write After Approval): Add myself.
10812
e5d78223
JB
108132020-01-01 Joel Brobecker <brobecker@adacore.com>
10814
10815 * gdbarch.sh: Update copyright year range of generated files.
10816
b811d2c2
JB
108172020-01-01 Joel Brobecker <brobecker@adacore.com>
10818
10819 Update copyright year range in all GDB files.
10820
5f4def5c
JB
108212020-01-01 Joel Brobecker <brobecker@adacore.com>
10822
10823 * copyright.py: Convert to Python 3.
10824
51fd4002
JB
108252020-01-01 Joel Brobecker <brobecker@adacore.com>
10826
10827 * copyright.py: Adapt after move of gnulib directory from gdb
10828 directory to toplevel directory.
10829
5fb651f2
JB
108302020-01-01 Joel Brobecker <brobecker@adacore.com>
10831
10832 * copyright.py (main): Exit if run from the wrong directory.
10833
5dd8bf88
JB
108342020-01-01 Joel Brobecker <brobecker@adacore.com>
10835
10836 * top.c (print_gdb_version): Change copyright year to 2020.
10837
9f71dacb 108382020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10839
9f71dacb 10840 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10841
9f71dacb 10842For older changes see ChangeLog-2019.
c906108c
SS
10843\f
10844Local Variables:
10845mode: change-log
10846left-margin: 8
10847fill-column: 74
10848version-control: never
57da7796 10849coding: utf-8
c906108c 10850End: