]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a36158ec
SM
12020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * macroexp.h (macro_stringify): Return
4 gdb::unique_xmalloc_ptr<char>.
5 * macroexp.c (macro_stringify): Likewise.
6 * macrotab.c (fixup_definition): Update.
7
14d960c8
SM
82020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
11 (lex_one_token): Update.
12 * macroexp.c (struct macro_buffer) <release>: Return
13 gdb::unique_xmalloc_ptr<char>.
14 (macro_stringify): Update.
15 (macro_expand): Update.
16 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
17 * macroexp.h (macro_expand_next): Likewise.
18
211d5b1c
SM
192020-07-02 Simon Marchi <simon.marchi@efficios.com>
20
21 * macroexp.h (macro_lookup_ftype): Remove.
22 (macro_expand, macro_expand_once, macro_expand_next): Remove
23 lookup function parameters, add scope parameter.
24 * macroexp.c (scan, substitute_args, expand, maybe_expand,
25 macro_expand, macro_expand_once, macro_expand_next): Likewise.
26 * macroscope.h (standard_macro_lookup): Change parameter type
27 to macro_scope.
28 * macroscope.c (standard_macro_lookup): Likewise.
29 * c-exp.y (lex_one_token): Update.
30 * macrocmd.c (macro_expand_command): Likewise.
31 (macro_expand_once_command): Likewise.
32
b1a35af2
SM
332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * inf-loop.c (inferior_event_handler): Remove client_data param.
36 * inf-loop.h (inferior_event_handler): Likewise.
37 * infcmd.c (step_1): Adjust.
38 * infrun.c (proceed): Adjust.
39 (fetch_inferior_event): Remove client_data param.
40 (infrun_async_inferior_event_handler): Adjust.
41 * infrun.h (fetch_inferior_event): Remove `void *` param.
42 * linux-nat.c (handle_target_event): Adjust.
43 * record-btrace.c (record_btrace_handle_async_inferior_event):
44 Adjust.
45 * record-full.c (record_full_async_inferior_event_handler):
46 Adjust.
47 * remote.c (remote_async_inferior_event_handler): Adjust.
48
1cdf9e33
TT
492020-07-01 Tom Tromey <tom@tromey.com>
50
51 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
52 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
53
32c1e210
TT
542020-07-01 Tom Tromey <tom@tromey.com>
55
56 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
57 tui_gen_win_info.
58 (tui_win_info::make_window): Merge with
59 tui_gen_win_info::make_window.
60 (tui_win_info::make_visible): Move from tui_gen_win_info.
61 * tui/tui-win.c (tui_win_info::max_width): Move from
62 tui_gen_win_info.
63 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
64 type.
65 <window_factory>: Likewise.
66 * tui/tui-layout.c (tui_win_info::resize): Move from
67 tui_gen_win_info.
68 (make_standard_window): Change return type.
69 (get_locator_window, tui_get_window_by_name): Likewise.
70 (tui_layout_window::apply): Remove a cast.
71 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
72 (struct tui_win_info): Merge with tui_gen_win_info.
73 (struct tui_gen_win_info): Remove.
74
a30cb6da
TT
752020-07-01 Tom Tromey <tom@tromey.com>
76
77 * tui/tui-stack.h (struct tui_locator_window): Derive from
78 tui_win_info.
79 <do_scroll_horizontal, do_scroll_vertical>: New methods.
80 <can_box>: New method.
81
1eb2161f
TT
822020-07-01 Tom Tromey <tom@tromey.com>
83
84 * tui/tui-stack.h (struct tui_locator_window): Remove body.
85
7134f2eb
TT
862020-07-01 Tom Tromey <tom@tromey.com>
87
88 * tui/tui-regs.c (tui_data_window::display_registers_from)
89 (tui_data_window::display_registers_from)
90 (tui_data_window::first_data_item_displayed)
91 (tui_data_window::delete_data_content_windows): Update.
92 (tui_data_window::refresh_window, tui_data_window::no_refresh):
93 Remove.
94 (tui_data_window::check_register_values): Update.
95 (tui_data_item_window::rerender): Add parameters. Update.
96 (tui_data_item_window::refresh_window): Remove.
97 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
98 virtual.
99 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
100 tui_gen_win_info.
101 <refresh_window, max_height, min_height>: Remove.
102 <rerender>: Add parameters.
103 <x, y, visible>: New members.
104 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
105 <m_item_width>: New member.
106
22b7b041
TT
1072020-07-01 Tom Tromey <tom@tromey.com>
108
109 * tui/tui-regs.c (tui_data_window::show_register_group)
110 (tui_data_window::check_register_values): Update.
111 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
112 from item_no.
113
c9753adb
TT
1142020-07-01 Tom Tromey <tom@tromey.com>
115
116 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
117 useless "if".
118
9ab26b4a
TT
1192020-07-01 Tom Tromey <tom@tromey.com>
120
121 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
122 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
123
e555083f
TT
1242020-07-01 Tom Tromey <tom@tromey.com>
125
126 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
127 * tui/tui-winsource.h (enum tui_line_or_address_kind)
128 (struct tui_line_or_address): Move from tui-data.h.
129 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
130 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
131 (tui_cmd_window, tui_source_window_base, tui_source_window)
132 (tui_disasm_window): Don't declare.
133 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
134 to tui-winsource.h.
135 (SINGLE_KEY): Move to tui-stack.c.
136
7a02bab7
TT
1372020-07-01 Tom Tromey <tom@tromey.com>
138
139 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
140 std::string.
141 * tui/tui-regs.c (class tab_expansion_file): New.
142 (tab_expansion_file::write): New method.
143 (tui_register_format): Change return type. Use
144 tab_expansion_file.
145 (tui_get_register, tui_data_window::display_registers_from)
146 (tui_data_item_window::rerender): Update.
147 * tui/tui-io.h (tui_expand_tabs): Don't declare.
148 * tui/tui-io.c (tui_expand_tabs): Remove.
149
ea68593b
TT
1502020-07-01 Tom Tromey <tom@tromey.com>
151
152 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
153
a8caed5d
FS
1542020-07-01 Fangrui Song <maskray@google.com>
155
156 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
157
9cdf9820
AKS
1582020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
159
160 * dwarf2/read.c (set_die_type): Removed conditions to restrict
161 forms for DW_AT_associated and DW_AT_allocated attributes,
162 which is already checked in function attr_to_dynamic_prop.
163
a1520ad8
TT
1642020-06-30 Tom Tromey <tromey@adacore.com>
165
166 * dwarf2/read.c (quirk_rust_enum): Correctly call
167 alloc_rust_variant for default-less enum.
168
5ac58899
TT
1692020-06-30 Tom Tromey <tromey@adacore.com>
170
171 PR build/26183:
172 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
173 gdb::to_string.
174
19b187a9
SM
1752020-06-29 Simon Marchi <simon.marchi@efficios.com>
176
177 * gdbarch.sh (displaced_step_copy_insn): Update doc.
178 * gdbarch.h: Re-generate.
179
cd4c4c07
TT
1802020-06-28 Tom Tromey <tom@tromey.com>
181
182 * command.h (cmd_types): Remove.
183 (cmd_type): Don't declare.
184 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
185 typedef.
186 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
187 * cli/cli-decode.c (cmd_type): Remove.
188
05779d57
PA
1892020-06-27 Pedro Alves <palves@redhat.com>
190
191 * fork-child.c (prefork_hook): Adjust.
192 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
193 Delete.
194 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
195 * inferior.c (inferior::set_tty, inferior::tty): New methods.
196 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
197 Remove declarations.
198 (struct inferior) <set_tty, tty>: New methods.
199 (struct inferior) <terminal>: Rename to ...
200 (struct inferior) <m_terminal>: ... this and make private.
201 * main.c (captured_main_1): Adjust.
202 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
203 (mi_cmd_inferior_tty_show): Adjust.
204 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
205 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
206
1776e3e5
NA
2072020-06-26 Nick Alcock <nick.alcock@oracle.com>
208
209 * configure.ac: Add --enable-libctf: handle --disable-static
210 properly.
211 * acinclude.m4: sinclude ../config/enable.m4.
212 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
213 (LIBCTF): Substitute in.
214 (CTF_DEPS): New, likewise.
215 (CLIBS): libctf needs symbols from libbfd: move earlier.
216 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
217 flags.
218 * ctfread.c: Surround in ENABLE_LIBCTF.
219 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
220 * configure: Regenerate.
221 * config.in: Likewise.
222
58373b80
SM
2232020-06-25 Simon Marchi <simon.marchi@efficios.com>
224
225 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
226
277474ee
SM
2272020-06-25 Simon Marchi <simon.marchi@efficios.com>
228
229 * inferior.h (struct inferior) <terminal>: Change type to
230 gdb::unique_xmalloc_ptr<char>.
231 * inferior.c (inferior::~inferior): Don't free inf->terminal.
232 * infcmd.c (set_inferior_io_terminal): Don't free terminal
233 field, adjust to unique pointer.
234 (get_inferior_io_terminal): Adjust to unique pointer.
235
6d74da72
AB
2362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
237
238 * riscv-tdep.c (riscv_print_registers_info): Loop over all
239 registers, not just the known core set of registers.
240
2e52d038
AB
2412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
244 fflags, frm, and fcsr registers.
245 (riscv_register_reggroup_p): Remove unknown CSRs from save and
246 restore groups.
247 (riscv_tdesc_unknown_reg): New function.
248 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
249 tdesc_use_registers.
250 * riscv-tdep.h (struct gdbarch_tdep): Add
251 unknown_csrs_first_regnum, unknown_csrs_count,
252 duplicate_fflags_regnum, duplicate_frm_regnum, and
253 duplicate_fcsr_regnum fields.
254
be64fd07
AB
2552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * target-descriptions.c (tdesc_use_registers): Add new parameter a
258 callback, use the callback (when not null) to help number unknown
259 registers.
260 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
261 (tdesc_use_registers): Add extra parameter to declaration.
262
3b9fce96
AB
2632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
264
265 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
266 in the file.
267 (class riscv_pending_register_alias): Likewise.
268 (riscv_register_feature::register_info): Change 'required_p' field
269 to 'required', and change its type. Add 'check' member function.
270 (riscv_register_feature::register_info::check): Define new member
271 function.
272 (riscv_xreg_feature): Change initialisation of 'required' field.
273 (riscv_freg_feature): Likewise.
274 (riscv_virtual_feature): Likewise.
275 (riscv_csr_feature): Likewise.
276 (riscv_check_tdesc_feature): Take extra parameter, the csr
277 tdesc_feature, rewrite the function to use the new
278 riscv_register_feature::register_info::check function.
279 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
280
865bad26
AB
2812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * features/Makefile: Remove all references to the deleted files
284 below.
285 * features/riscv/32bit-csr.c: Deleted.
286 * features/riscv/32bit-csr.xml: Deleted.
287 * features/riscv/64bit-csr.c: Deleted.
288 * features/riscv/64bit-csr.xml: Deleted.
289 * features/riscv/rebuild-csr-xml.sh: Deleted.
290
ed69cbc8
AB
2912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
294 whitespace error for declaration of names member variable.
295 (struct riscv_register_feature): Add new prefer_first_name member
296 variable, and fix whitespace error in declaration of registers.
297 (riscv_xreg_feature): Initialize prefer_first_name field.
298 (riscv_freg_feature): Likewise.
299 (riscv_virtual_feature): Likewise.
300 (riscv_csr_feature): Likewise.
301 (riscv_register_name): Expand on comments. Remove register name
302 modifications for CSR and virtual registers.
303
4445e8f5
AB
3042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
305
306 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
307 errors.
308
767a879e
AB
3092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
312 riscv-opc.h.
313 (class riscv_pending_register_alias): New class.
314 (riscv_check_tdesc_feature): Take vector of pending aliases and
315 populate it as appropriate.
316 (riscv_setup_register_aliases): Delete.
317 (riscv_gdbarch_init): Create vector of pending aliases and pass it
318 to riscv_check_tdesc_feature in all cases. Use the vector to
319 create the register aliases.
320
bb6e55f3
RO
3212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
322
323 * sol2-tdep.c (sol2_static_transform_name): Remove.
324 (sol2_init_abi): Don't register it.
325 * gdbarch.sh (static_transform_name): Remove.
326 * gdbarch.c, gdbarch.h: Regenerate.
327
328 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
329 gdbarch_static_transform_name.
330 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
331 * stabsread.c (define_symbol) <'X'>: Remove.
332 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
333 handling.
334 <'V'>: Likewise.
335 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
336 <'S'>: Remove call to gdbarch_static_transform_name.
337
c6d36836
RO
3382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
339
340 * procfs.c (procfs_pre_trace): New function.
341 (procfs_target::create_inferior): Pass it to fork_inferior.
342
a7e6196b
RO
3432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
344
345 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
346 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
347 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
348 sol2-tdep.o, sparc-sol2-tdep.o.
349 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
350 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
351 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
352 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
353
d412e696
RO
3542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
355
356 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
357 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
358 Call sol2_init_abi.
359 Remove calls to set_gdbarch_skip_solib_resolver,
360 set_gdbarch_core_pid_to_str.
361 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
362 (i386_sol2_static_transform_name): Remove.
363 (i386_sol2_init_abi): Call sol2_init_abi.
364 Remove calls to set_gdbarch_sofun_address_maybe_missing,
365 set_gdbarch_static_transform_name,
366 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
367 Use sol2_sigtramp_p.
368 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
369 (sol2_sigtramp_p): New function.
370 (sol2_static_transform_name): New function.
371 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
372 (sol2_init_abi): New function.
373 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
374 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
375 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
376 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
377 (sparc_sol2_static_transform_name): Remove.
378 (sparc32_sol2_init_abi): Call sol2_init_abi.
379 Remove calls to set_gdbarch_sofun_address_maybe_missing,
380 set_gdbarch_static_transform_name,
381 set_gdbarch_skip_solib_resolver,
382 set_gdbarch_core_pid_to_str.
383 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
384 (sparc_sol2_static_transform_name): Remove
385 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
386 call sol2_sigtramp_p.
387 (sparc64_sol2_init_abi): Call sol2_init_abi.
388 Remove calls to set_gdbarch_sofun_address_maybe_missing,
389 set_gdbarch_static_transform_name,
390 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
391
a8654e7d
PW
3922020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
393
394 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
395 * exec.c (validate_exec_file): If from_tty, set both
396 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
397 * symfile.c (symbol_file_add_with_addrs): if always_confirm
398 and from_tty, unconditionally ask a confirmation.
399
caa7fd04
AB
4002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
401
402 * target-descriptions.c (tdesc_architecture_name): Protect against
403 NULL pointer dereference.
404 (maint_print_xml_tdesc_cmd): New function.
405 (_initialize_target_descriptions): Register new 'maint print
406 xml-tdesc' command and give it the filename completer.
407 * NEWS: Mention new 'maint print xml-tdesc' command.
408
fbf42f4e
AB
4092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * target-descriptions.c (class tdesc_compatible_info): New class.
412 (struct target_desc): Change type of compatible vector.
413 (tdesc_compatible_p): Update for change in type of
414 target_desc::compatible.
415 (tdesc_compatible_info_list): New function.
416 (tdesc_compatible_info_arch_name): New function.
417 (tdesc_add_compatible): Update for change in type of
418 target_desc::compatible.
419 (print_c_tdesc::visit_pre): Likewise.
420
20821f4e
AB
4212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
424 whitespace to underscore.
425 (maint_print_c_tdesc_cmd): Use fake filename for target
426 descriptions that came from the target.
427 (_initialize_target_descriptions): Add filename command completion
428 for 'maint print c-tdesc'.
429
1fb5ee62
SM
4302020-06-23 Simon Marchi <simon.marchi@efficios.com>
431
432 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
433 lines.
434
fc3ecb3e
SM
4352020-06-23 Simon Marchi <simon.marchi@efficios.com>
436
437 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
438 lines.
439 (dwarf2_find_location_expression): Likewise.
440 (call_site_parameter_matches): Likewise.
441 (dwarf2_compile_expr_to_ax): Likewise.
442 (disassemble_dwarf_expression): Likewise.
443 (loclist_describe_location): Likewise.
444
236ef034
PA
4452020-06-23 Pedro Alves <palves@redhat.com>
446
447 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
448 progspace-and-thread.h. Include scoped-mock-context.h instead.
449 (register_to_value_test): Use scoped_mock_context.
450 * regcache.c: Include "scoped-mock-context.h".
451 (cooked_read_test): Don't error out if a target is already pushed.
452 Use scoped_mock_context. Adjust.
453 * scoped-mock-context.h: New file.
454
39e7ecca
AB
4552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
458 initializer.
459 (ada_language::is_string_type_p): New member function.
460 * c-lang.c (c_language_data): Delete la_is_string_type_p
461 initializer.
462 (cplus_language_data): Likewise.
463 (asm_language_data): Likewise.
464 (minimal_language_data): Likewise.
465 * d-lang.c (d_language_data): Likewise.
466 * f-lang.c (f_is_string_type_p): Delete function, implementation
467 moved to f_language::is_string_type_p.
468 (f_language_data): Delete la_is_string_type_p initializer.
469 (f_language::is_string_type_p): New member function,
470 implementation from f_is_string_type_p.
471 * go-lang.c (go_is_string_type_p): Delete function, implementation
472 moved to go_language::is_string_type_p.
473 (go_language_data): Delete la_is_string_type_p initializer.
474 (go_language::is_string_type_p): New member function,
475 implementation from go_is_string_type_p.
476 * language.c (language_defn::is_string_type_p): Define new member
477 function.
478 (default_is_string_type_p): Make static, add comment copied from
479 header file.
480 (unknown_language_data): Delete la_is_string_type_p initializer.
481 (unknown_language::is_string_type_p): New member function.
482 (auto_language_data): Delete la_is_string_type_p initializer.
483 (auto_language::is_string_type_p): New member function.
484 * language.h (language_data): Delete la_is_string_type_p field.
485 (language_defn::is_string_type_p): Declare new function.
486 (default_is_string_type_p): Delete desclaration, move comment to
487 definition.
488 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
489 moved to m2_language::is_string_type_p.
490 (m2_language_data): Delete la_is_string_type_p initializer.
491 (m2_language::is_string_type_p): New member function,
492 implementation from m2_is_string_type_p.
493 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
494 initializer.
495 * opencl-lang.c (opencl_language_data): Likewise.
496 * p-lang.c (pascal_is_string_type_p): Delete function,
497 implementation moved to pascal_language::is_string_type_p.
498 (pascal_language_data): Delete la_is_string_type_p initializer.
499 (pascal_language::is_string_type_p): New member function,
500 implementation from pascal_is_string_type_p.
501 * rust-lang.c (rust_is_string_type_p): Delete function,
502 implementation moved to rust_language::is_string_type_p.
503 (rust_language_data): Delete la_is_string_type_p initializer.
504 (rust_language::is_string_type_p): New member function,
505 implementation from rust_is_string_type_p.
506 * valprint.c (val_print_scalar_or_string_type_p): Update call to
507 is_string_type_p.
508
4ffc13fb
AB
5092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * ada-lang.c (ada_language_data): Delete la_print_typedef
512 initializer.
513 (ada_language::print_typedef): New member function.
514 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
515 (cplus_language_data): Likewise.
516 (asm_language_data): Likewise.
517 (minimal_language_data): Likewise.
518 * d-lang.c (d_language_data): Likewise.
519 * f-lang.c (f_language_data): Likewise.
520 (f_language::print_typedef): New member function.
521 * go-lang.c (go_language_data): Delete la_print_typedef
522 initializer.
523 * language.c (language_defn::print_typedef): Define member
524 function.
525 (unknown_language_data): Delete la_print_typedef initializer.
526 (unknown_language::print_typedef): New member function.
527 (auto_language_data): Delete la_print_typedef initializer.
528 (auto_language::print_typedef): New member function.
529 * language.h (language_data): Delete la_print_typedef field.
530 (language_defn::print_typedef): Declare new member function.
531 (LA_PRINT_TYPEDEF): Update call to print_typedef.
532 (default_print_typedef): Delete declaration.
533 * m2-lang.c (m2_language_data): Delete la_print_typedef
534 initializer.
535 (m2_language::print_typedef): New member function.
536 * objc-lang.c (objc_language_data): Delete la_print_typedef
537 initializer.
538 * opencl-lang.c (opencl_language_data): Likewise.
539 * p-lang.c (pascal_language_data): Likewise.
540 (pascal_language::print_typedef): New member function.
541 * rust-lang.c (rust_print_typedef): Delete function,
542 implementation moved to rust_language::print_typedef.
543 (rust_language): Delete la_print_typedef initializer.
544 (rust_language::print_typedef): New member function,
545 implementation from rust_print_typedef.
546 * typeprint.c (default_print_typedef): Delete.
547
d711ee67
AB
5482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
551 (ada_language::printstr): New member function.
552 * c-lang.c (c_language_data): Delete la_printstr initializer.
553 (cplus_language_data): Likewise.
554 (asm_language_data): Likewise.
555 (minimal_language_data): Likewise.
556 * d-lang.c (d_language_data): Likewise.
557 * f-lang.c (f_printstr): Rename to f_language::printstr.
558 (f_language_data): Delete la_printstr initializer.
559 (f_language::printstr): New member function, implementation from
560 f_printstr.
561 * go-lang.c (go_language_data): Delete la_printstr initializer.
562 * language.c (language_defn::printstr): Define new member
563 function.
564 (unk_lang_printstr): Delete.
565 (unknown_language_data): Delete la_printstr initializer.
566 (unknown_language::printstr): New member function.
567 (auto_language_data): Delete la_printstr initializer.
568 (auto_language::printstr): New member function.
569 * language.h (language_data): Delete la_printstr field.
570 (language_defn::printstr): Declare new member function.
571 (LA_PRINT_STRING): Update call to printstr.
572 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
573 (m2_language_data): Delete la_printstr initializer.
574 (m2_language::printstr): New member function, implementation from
575 m2_printstr.
576 * objc-lang.c (objc_language_data): Delete la_printstr
577 initializer.
578 * opencl-lang.c (opencl_language_data): Likewise.
579 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
580 (pascal_language_data): Delete la_printstr initializer.
581 (pascal_language::printstr): New member function, implementation
582 from pascal_printstr.
583 * p-lang.h (pascal_printstr): Delete declaration.
584 * rust-lang.c (rust_printstr): Update header comment.
585 (rust_language_data): Delete la_printstr initializer.
586 (rust_language::printstr): New member function.
587
52b50f2c
AB
5882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
591 (ada_language::printchar): New member function.
592 * c-lang.c (c_language_data): Delete la_printchar initializer.
593 (cplus_language_data): Likewise.
594 (asm_language_data): Likewise.
595 (minimal_language_data): Likewise.
596 * d-lang.c (d_language_data): Likewise.
597 * f-lang.c (f_printchar): Rename to f_language::printchar.
598 (f_language_data): Delete la_printchar initializer.
599 (f_language::printchar): New member function, implementation from
600 f_printchar.
601 * go-lang.c (go_language_data): Delete la_printchar initializer.
602 * language.c (unk_lang_printchar): Delete.
603 (language_defn::printchar): Define new member function.
604 (unknown_language_data): Delete la_printchar initializer.
605 (unknown_language::printchar): New member function.
606 (auto_language_data): Delete la_printchar initializer.
607 (auto_language::printchar): New member function.
608 * language.h (language_data): Delete la_printchar field.
609 (language_defn::printchar): Declare new member function.
610 (LA_PRINT_CHAR): Update call to printchar.
611 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
612 (m2_language::printchar): New member function.
613 * objc-lang.c (objc_language_data): Delete la_printchar
614 initializer.
615 * opencl-lang.c (opencl_language_data): Likewise.
616 * p-lang.c (pascal_language_data): Delete la_printchar
617 initializer.
618 (pascal_language::printchar): New member function.
619 * rust-lang.c (rust_printchar): Rename to
620 rust_language::printchar.
621 (rust_language_data): Delete la_printchar initializer.
622 (rust_language::printchar): New member function, implementation
623 from rust_printchar.
624
ec8cec5b
AB
6252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
628 (ada_language_data): Delete la_emitchar initializer.
629 (ada_language::emitchar): New member function, implementation from
630 emit_char.
631 * c-lang.c (c_language_data): Delete la_emitchar initializer.
632 (cplus_language_data): Likewise.
633 (asm_language_data): Likewise.
634 (minimal_language_data): Likewise.
635 * d-lang.c (d_language_data): Likewise.
636 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
637 (f_language_data): Delete la_emitchar initializer.
638 (f_language::emitchar): New member function, implementation from
639 f_emit_char.
640 * go-lang.c (go_language_data): Delete la_emitchar initializer.
641 * language.c (unk_lang_emit_char): Delete.
642 (language_defn::emitchar): New member function definition.
643 (unknown_language_data): Delete la_emitchar initializer.
644 (unknown_language::emitchar): New member function.
645 (auto_language_data): Delete la_emitchar initializer.
646 (auto_language::emitchar): New member function.
647 * language.h (language_data): Delete la_emitchar field.
648 (language_defn::emitchar): New member field declaration.
649 (LA_EMIT_CHAR): Update call to emitchar.
650 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
651 (m2_language_data): Delete la_emitchar initializer.
652 (m2_language::emitchar): New member function, implementation from
653 m2_emit_char.
654 * objc-lang.c (objc_language_data): Delete la_emitchar
655 initializer.
656 * opencl-lang.c (opencl_language_data): Likewise.
657 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
658 (pascal_language_data): Delete la_emitchar initializer.
659 (pascal_language::emitchar): New member function, implementation
660 from pascal_emit_char.
661 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
662 (rust_language_data): Delete la_emitchar initializer.
663 (rust_language::emitchar): New member function, implementation
664 from rust_emitchar.
665
1bf9c363
AB
6662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * ada-lang.c (resolve): Rename to ada_language::post_parser.
669 (ada_language_data): Delete la_post_parser initializer.
670 (ada_language::post_parser): New member function.
671 * c-lang.c (c_language_data): Delete la_post_parser initializer.
672 (cplus_language_data): Likewise.
673 (asm_language_data): Likewise.
674 (minimal_language_data): Likewise.
675 * d-lang.c (d_language_data): Likewise.
676 * f-lang.c (f_language_data): Likewise.
677 * go-lang.c (go_language_data): Likewise.
678 * language.c (unknown_language_data): Likewise.
679 (auto_language_data): Likewise.
680 * language.h (language_data): Delete la_post_parser field.
681 (language_defn::post_parser): New member function.
682 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
683 * objc-lang.c (objc_language_data): Likewise.
684 * opencl-lang.c (opencl_language_data): Likewise.
685 * p-lang.c (pascal_language_data): Likewise.
686 * parse.c (parse_exp_in_context): Update call to post_parser.
687 (null_post_parser): Delete definition.
688 * parser-defs.h (null_post_parser): Delete declaration.
689 * rust-lang.c (rust_language_data): Delete la_post_parser
690 initializer.
691
87afa652
AB
6922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
693
694 * ada-lang.c (parse): Rename to ada_language::parser.
695 (ada_language_data): Delete la_parser initializer.
696 (ada_language::parser): New member function, implementation from
697 parse.
698 * c-lang.c (c_language_data): Delete la_parser initializer.
699 (cplus_language_data): Likewise.
700 (asm_language_data): Likewise.
701 (minimal_language_data): Likewise.
702 * d-lang.c (d_language_data): Likewise.
703 (d_language::parser): New member function.
704 * f-lang.c (f_language_data): Delete la_parser initializer.
705 (f_language::parser): New member function.
706 * go-lang.c (go_language_data): Delete la_parser initializer.
707 (go_language::parser): New member function.
708 * language.c (unk_lang_parser): Delete.
709 (language_defn::parser): Define new member function.
710 (unknown_language_data): Delete la_parser initializer.
711 (unknown_language::parser): New member function.
712 (auto_language_data): Delete la_parser initializer.
713 (auto_language::parser): New member function.
714 * language.h (language_data): Delete la_parser field.
715 (language_defn::parser): Declare new member function.
716 * m2-lang.c (m2_language_data): Delete la_parser initializer.
717 (m2_language::parser): New member function.
718 * objc-lang.c (objc_language_data): Delete la_parser initializer.
719 * opencl-lang.c (opencl_language_data): Likewise.
720 * p-lang.c (pascal_language_data): Likewise.
721 (pascal_language::parser): New member function.
722 * parse.c (parse_exp_in_context): Update call to parser.
723 * rust-lang.c (rust_language_data): Delete la_parser initializer.
724 (rust_language::parser): New member function.
725
37825800
AB
7262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * top.c (print_gdb_configuration): Print --with-python-libdir
729 configuration value.
730
5b860c93
PW
7312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
732
733 * NEWS: Mention change to the alias command.
734
cf00cd6f
PW
7352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
736
737 * cli/cli-cmds.c (lookup_cmd_for_default_args)
738 (alias_command_completer)
739 (make_alias_options_def_group): New functions.
740 (alias_opts, alias_option_defs): New struct and array.
741 (alias_usage_error): Update usage.
742 (alias_command): Handles optional DEFAULT-ARGS... arguments.
743 Use option framework.
744 (_initialize_cli_cmds): Update alias command help.
745 Update aliases command help.
746 (show_user):
747 Add NULL for new default_args lookup_cmd argument.
748 (valid_command_p): Rename to validate_aliased_command.
749 Add NULL for new default_args lookup_cmd argument. Verify that the
750 aliased_command has no default args.
751 * cli/cli-decode.c (help_cmd): Show aliases definitions.
752 (lookup_cmd_1, lookup_cmd): New argument default_args.
753 (add_alias_cmd):
754 Add NULL for new default_args lookup_cmd argument.
755 (print_help_for_command): Show default args under the layout
756 alias some_alias = some_aliased_cmd some_alias_default_arg.
757 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
758 xfree default_args in destructor.
759 * cli/cli-script.c (process_next_line, do_define_command):
760 Add NULL for new default_args lookup_cmd argument.
761 * command.h: Declare new default_args argument in lookup_cmd
762 and lookup_cmd_1.
763 * completer.c (complete_line_internal_1):
764 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
765 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
766 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
767 Likewise.
768 * infcmd.c (_initialize_infcmd): Likewise.
769 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
770 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
771 * python/py-param.c (add_setshow_generic): Likewise.
772 * remote.c (_initialize_remote): Likewise.
773 * top.c (execute_command): Prepend default_args if command has some.
774 (set_verbose):
775 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
776 * tracepoint.c (validate_actionline, encode_actions_1):
777 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
778
bd920864
TBA
7792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
780
781 * jit.c (jit_read_descriptor): Use bool as the return type.
782 (jit_breakpoint_re_set_internal): Use bool as the return type.
783 Invert the return value logic; return true if the jit breakpoint
784 has been successfully initialized.
785 (jit_inferior_init): Update the call to
786 jit_breakpoint_re_set_internal.
787
f8098322
PA
7882020-06-22 Pedro Alves <palves@redhat.com>
789
790 PR gdb/25939
791 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
792 Use the current inferior instead. Don't return
793 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
794 wait again.
795 * sol-thread.c (sol_thread_target::wait): Don't reference
796 inferior_ptid.
797 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
798 (sol_update_thread_list_callback): Use the current inferior's pid
799 instead of inferior_ptid.
800
196535a6
RO
8012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802
803 * procfs.c: Cleanup many comments.
804
805 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
806 (AFTER_WATCHFLAG): Replace by value.
807
808 (MAIN_PROC_NAME_FORMAT): Inline ...
809 (create_procinfo): ... here.
810
811 (procfs_debug_inferior): Remove SYS_exec handling.
812 (syscall_is_exec): Likewise.
813 (procfs_set_exec_trap): Likewise.
814
815 (syscall_is_lwp_exit): Inline in callers.
816 (syscall_is_exit): Likewise.
817 (syscall_is_exec): Likewise.
818 (syscall_is_lwp_create): Likewise.
819
820 (invalidate_cache): Remove #if 0 code.
821
822 (make_signal_thread_runnable): Remove.
823 (procfs_target::resume): Remove #if 0 code.
824
cf6f3e86
RO
8252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
826
827 PR gdb/25939
828 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
829 call ...
830 (procfs_target::create_inferior): ... here.
831
48e9cc84
PW
8322020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
833
834 * exec.c (validate_exec_file): Ensure the build-id is up to
835 date by calling reopen_exec_file (that checks file timestamp
836 to decide to re-read the file).
837
3922b302
PA
8382020-06-18 Pedro Alves <palves@redhat.com>
839
840 PR gdb/25412
841 * gdbthread.h (delete_thread, delete_thread_silent)
842 (find_thread_ptid): Update comments.
843 * thread.c (current_thread_): New global.
844 (is_current_thread): Move higher, and reimplement.
845 (inferior_thread): Reimplement.
846 (set_thread_exited): Use bool. Add assertions.
847 (add_thread_silent): Simplify thread-reuse handling by always
848 calling delete_thread.
849 (delete_thread): Remove intro comment.
850 (find_thread_ptid): Skip exited threads.
851 (switch_to_thread_no_regs): Write to current_thread_.
852 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
853 INFERIOR_PTID. Clear current_thread_.
854
6dbdab44
PA
8552020-06-18 Pedro Alves <palves@redhat.com>
856
857 * aix-thread.c (pd_update): Use switch_to_thread.
858
2da4b788
PA
8592020-06-18 Pedro Alves <palves@redhat.com>
860
861 * ravenscar-thread.c (ravenscar_thread_target): Update.
862 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
863 (ravenscar_thread_target::add_active_thread): ... this. Don't
864 set m_base_ptid here. Update to avoid referencing inferior_ptid.
865 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
866
50838d1b
PA
8672020-06-18 Pedro Alves <palves@redhat.com>
868
869 * nat/windows-nat.c (current_windows_thread): Remove.
870 * nat/windows-nat.h (current_windows_thread): Remove.
871 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
872 Adjust.
873 (display_selectors): Adjust to fetch the current
874 windows_thread_info based on inferior_ptid.
875 (fake_create_process): No longer write to current_windows_thread.
876 (windows_nat_target::get_windows_debug_event):
877 Don't set inferior_ptid or current_windows_thread.
878 (windows_nat_target::wait): Adjust to not rely on
879 current_windows_thread.
880 (do_initial_windows_stuff): Now a method of windows_nat_target.
881 Switch to the last_ptid thread.
882 (windows_nat_target::attach): Adjust.
883 (windows_nat_target::detach): Use switch_to_no_thread instead of
884 writing to inferior_ptid directly.
885 (windows_nat_target::create_inferior): Adjust.
886
31ce04e9
PA
8872020-06-18 Pedro Alves <palves@redhat.com>
888
889 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
890
1ee1a363
PA
8912020-06-18 Pedro Alves <palves@redhat.com>
892
893 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
894 after creating it, instead of writing to inferior_ptid. Don't
895 write to inferior_ptid.
896
6d350754
PA
8972020-06-18 Pedro Alves <palves@redhat.com>
898
899 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
900
5d971d48
PA
9012020-06-18 Pedro Alves <palves@redhat.com>
902
903 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
904 it, instead of writing to inferior_ptid.
905
86e57d1b
PA
9062020-06-18 Pedro Alves <palves@redhat.com>
907
908 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
909 to inferior_ptid.
910
f2e1c129
PA
9112020-06-18 Pedro Alves <palves@redhat.com>
912
913 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
914 instead of writing to inferior_ptid directly.
915
60db1b85
PA
9162020-06-18 Pedro Alves <palves@redhat.com>
917
918 * corelow.c (core_target::close): Use switch_to_no_thread instead
919 of writing to inferior_ptid directly.
920 (add_to_thread_list, core_target_open): Use switch_to_thread
921 instead of writing to inferior_ptid directly.
922
fe7d6a8d
PA
9232020-06-18 Pedro Alves <palves@redhat.com>
924
925 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
926 inferior_ptid.
927 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
928 inferior_ptid.
929 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
930 inferior_ptid directly.
931 (darwin_nat_target::init_thread_list): Switch to thread, instead
932 of writing to inferior_ptid.
933 (darwin_nat_target::attach): Don't write to inferior_ptid.
934 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
935
975f8708
PA
9362020-06-18 Pedro Alves <palves@redhat.com>
937
938 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
939 thread.
940 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
941 Instead use switch_to_thread.
942 (gnu_nat_target::detach): Use switch_to_no_thread
943 instead of writing to inferior_ptid directly. Used passed-in
944 inferior instead of looking up the inferior by pid.
945
1a204730
PA
9462020-06-18 Pedro Alves <palves@redhat.com>
947
948 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
949 inferior_ptid.
950
ebe84f23
PA
9512020-06-18 Pedro Alves <palves@redhat.com>
952
953 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
954 inferior_ptid.
955 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
956 thread.
957 (nto_procfs_target::detach): Avoid referencing
958 inferior_ptid. Use switch_to_no_thread instead of writing to
959 inferior_ptid directly.
960 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
961 instead of writing to inferior_ptid directly.
962 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
963 to thread.
964
191f02e5
PA
9652020-06-18 Pedro Alves <palves@redhat.com>
966
967 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
968 after creating it, instead of writing to inferior_ptid.
969 (gdbsim_target_open): Use switch_to_no_thread instead of writing
970 to inferior_ptid directly.
971 (gdbsim_target::wait): Don't write to inferior_ptid.
972
0ac55310
PA
9732020-06-18 Pedro Alves <palves@redhat.com>
974
975 * remote.c (remote_target::remote_notice_new_inferior): Use
976 switch_to_thread instead of writing to inferior_ptid directly.
977 (remote_target::add_current_inferior_and_thread): Use
978 switch_to_no_thread instead of writing to inferior_ptid directly.
979 (extended_remote_target::attach): Use switch_to_inferior_no_thread
980 and switch_to_thread instead of using set_current_inferior or
981 writing to inferior_ptid directly.
982
5233f39b
PA
9832020-06-18 Pedro Alves <palves@redhat.com>
984
985 * tracectf.c (ctf_target_open): Switch to added thread instead of
986 writing to inferior_ptid directly.
987 (ctf_target::close): Use switch_to_no_thread instead of writing to
988 inferior_ptid directly.
989
087e161b
PA
9902020-06-18 Pedro Alves <palves@redhat.com>
991
992 * tracefile-tfile.c (tfile_target_open): Don't write to
993 inferior_ptid directly, instead switch to added thread.
994 (tfile_target::close): Use switch_to_no_thread instead of writing
995 to inferior_ptid directly.
996
7fb43e53
PA
9972020-06-18 Pedro Alves <palves@redhat.com>
998
999 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1000 (procfs_target::detach): Use switch_to_no_thread
1001 instead of writing to inferior_ptid directly.
1002 (do_attach): Change return type to void. Switch to the added
1003 thread.
1004 (procfs_target::create_inferior): Switch to the added thread.
1005 (procfs_do_thread_registers): Don't write to inferior_ptid.
1006
18493a00
PA
10072020-06-18 Pedro Alves <palves@redhat.com>
1008
1009 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1010 of writing to inferior_ptid.
1011 (scoped_restore_exited_inferior): Delete.
1012 (handle_vfork_child_exec_or_exit): Simplify using
1013 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1014 instead of writing to inferior_ptid.
1015 (THREAD_STOPPED_BY): Delete.
1016 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1017 (thread_stopped_by_hw_breakpoint): Delete.
1018 (save_waitstatus): Use
1019 scoped_restore_current_thread+switch_to_thread, and call
1020 target_stopped_by_watchpoint instead of
1021 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1022 instead of thread_stopped_by_sw_breakpoint, and
1023 target_stopped_by_hw_breakpoint instead of
1024 thread_stopped_by_hw_breakpoint.
1025 (handle_inferior_event)
1026 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1027 inferior_ptid directly, nor
1028 set_current_inferior/set_current_program_space. Use
1029 switch_to_thread / switch_to_inferior_no_thread instead.
1030
a0776b13
PA
10312020-06-18 Pedro Alves <palves@redhat.com>
1032
1033 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1034 instead of writing to inferior_ptid.
1035
6155c136
PA
10362020-06-18 Pedro Alves <palves@redhat.com>
1037
1038 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1039 added thread.
1040 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1041 to the added thread.
1042 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1043 instead of writing to inferior_ptid.
1044
c5316fc6
PA
10452020-06-18 Pedro Alves <palves@redhat.com>
1046
1047 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1048 (register_to_value_test): Mock a program_space too. Heap-allocate
1049 the address space. Don't write to inferior_ptid. Use
1050 switch_to_thread instead.
1051
8df01799
PA
10522020-06-18 Pedro Alves <palves@redhat.com>
1053
1054 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1055 Delete.
1056 (find_signalled_thread()): New, factored out from
1057 linux_make_corefile_notes and adjusted to handle exited threads.
1058 (linux_make_corefile_notes): Adjust to use the new
1059 find_signalled_thread.
1060
41792d68
PA
10612020-06-18 Pedro Alves <palves@redhat.com>
1062
1063 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1064 of saving/restoring inferior_ptid.
1065
612f258a
TT
10662020-06-17 Tom Tromey <tom@tromey.com>
1067
1068 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1069 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1070 declare.
1071 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1072
efb763a5
SM
10732020-06-15 Simon Marchi <simon.marchi@efficios.com>
1074
1075 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1076 of partial symtabs.
1077
2951f6c0
SM
10782020-06-17 Simon Marchi <simon.marchi@efficios.com>
1079
1080 * regformats/reg-arm.dat: Remove.
1081 * regformats/reg-bfin.dat: Remove.
1082 * regformats/reg-cris.dat: Remove.
1083 * regformats/reg-crisv32.dat: Remove.
1084 * regformats/reg-m32r.dat: Remove.
1085 * regformats/reg-tilegx.dat: Remove.
1086 * regformats/reg-tilegx32.dat: Remove.
1087
7d458ea5
SM
10882020-06-17 Simon Marchi <simon.marchi@efficios.com>
1089
1090 * features/Makefile (WHICH): Remove arm files.
1091 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1092 * regformats/arm/arm-with-neon.dat: Remove.
1093 * regformats/arm/arm-with-vfpv2.dat: Remove.
1094 * regformats/arm/arm-with-vfpv3.dat: Remove.
1095
3af96c0d
SM
10962020-06-17 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * features/Makefile (XMLTOC): Remove rx.xml.
1099
b25e22fd
PA
11002020-06-17 Pedro Alves <palves@redhat.com>
1101
1102 * gdbthread.h (thread_control_state) <trap_expected> Update
1103 comments.
1104
a78a19b1
AB
11052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1108 ada_language::lookup_symbol_nonlocal.
1109 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1110 (ada_language::lookup_symbol_nonlocal): New member function,
1111 implementation from ada_lookup_symbol_nonlocal.
1112 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1113 initializer.
1114 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1115 initializer.
1116 (cplus_language::lookup_symbol_nonlocal): New member function.
1117 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1118 (minimal_language_data) Likewise.
1119 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1120 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1121 initializer.
1122 (d_language::lookup_symbol_nonlocal): New member function.
1123 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1124 initializer.
1125 (f_language::lookup_symbol_nonlocal): New member function.
1126 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1127 initializer.
1128 * language.c (unknown_language_data): Likewise.
1129 (auto_language_data): Likewise.
1130 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1131 field.
1132 (language_defn::lookup_symbol_nonlocal): New member function.
1133 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1134 initializer.
1135 * objc-lang.c (objc_language_data): Likewise.
1136 * opencl-lang.c (opencl_language_data): Likewise.
1137 * p-lang.c (pascal_language_data): Likewise.
1138 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1139 rust_language::lookup_symbol_nonlocal.
1140 (rust_language_data): Delete la_lookup_symbol_nonlocal
1141 initializer.
1142 (rust_language::lookup_symbol_nonlocal): New member function,
1143 implementation from rust_lookup_symbol_nonlocal.
1144 * symtab.c (lookup_symbol_aux): Update call to
1145 lookup_symbol_nonlocal.
1146 (basic_lookup_symbol_nonlocal): Rename to...
1147 (language_defn::lookup_symbol_nonlocal): ...this, and update
1148 header comment. Remove language_defn parameter, and replace with
1149 uses of `this'.
1150 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1151
ebe2334e
AB
11522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1155 initializer.
1156 (ada_language::value_print_inner): New member function.
1157 * c-lang.c (c_language_data): Delete la_value_print_inner
1158 initializer.
1159 (cplus_language_data): Likewise.
1160 (asm_language_data): Likewise.
1161 (minimal_language_data): Likewise.
1162 * d-lang.c (d_language_data): Likewise.
1163 (d_language::value_print_inner): New member function.
1164 * f-lang.c (f_language_data): Delete la_value_print_inner
1165 initializer.
1166 (f_language::value_print_inner): New member function.
1167 * f-lang.h (f_value_print_innner): Rename to...
1168 (f_value_print_inner): ...this (note spelling of 'inner').
1169 * f-valprint.c (f_value_print_innner): Rename to...
1170 (f_value_print_inner): ...this (note spelling of 'inner').
1171 * go-lang.c (go_language_data): Delete la_value_print_inner
1172 initializer.
1173 (go_language::value_print_inner): New member function.
1174 * language.c (language_defn::value_print_inner): Define new member
1175 function.
1176 (unk_lang_value_print_inner): Delete.
1177 (unknown_language_data): Delete la_value_print_inner initializer.
1178 (unknown_language::value_print_inner): New member function.
1179 (auto_language_data): Delete la_value_print_inner initializer.
1180 (auto_language::value_print_inner): New member function.
1181 * language.h (language_data): Delete la_value_print_inner field.
1182 (language_defn::value_print_inner): Delcare new member function.
1183 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1184 initializer.
1185 (m2_language::value_print_inner): New member function.
1186 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1187 initializer.
1188 * opencl-lang.c (opencl_language_data): Likewise.
1189 * p-lang.c (pascal_language_data): Likewise.
1190 (pascal_language::value_print_inner): New member function.
1191 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1192 initializer.
1193 (rust_language::value_print_inner): New member function.
1194 * valprint.c (do_val_print): Update call to value_print_inner.
1195
a1d1fa3e
AB
11962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * ada-lang.c (ada_language_data): Delete la_value_print
1199 initializer.
1200 (ada_language::value_print): New member function.
1201 * c-lang.c (c_language_data): Delete la_value_print initializer.
1202 (cplus_language_data): Likewise.
1203 (asm_language_data): Likewise.
1204 (minimal_language_data): Likewise.
1205 * d-lang.c (d_language_data): Likewise.
1206 * f-lang.c (f_language_data): Likewise.
1207 * go-lang.c (go_language_data): Likewise.
1208 * language.c (unk_lang_value_print): Delete.
1209 (language_defn::value_print): Define new member function.
1210 (unknown_language_data): Delete la_value_print initializer.
1211 (unknown_language::value_print): New member function.
1212 (auto_language_data): Delete la_value_print initializer.
1213 (auto_language::value_print): New member function.
1214 * language.h (language_data): Delete la_value_print field.
1215 (language_defn::value_print): Declare new member function.
1216 (LA_VALUE_PRINT): Update call to value_print.
1217 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1218 * objc-lang.c (objc_language_data): Likewise.
1219 * opencl-lang.c (opencl_language_data): Likewise.
1220 * p-lang.c (pascal_language_data): Likewise.
1221 (pascal_language::value_print): New member function.
1222 * rust-lang.c (rust_language_data): Delete la_value_print
1223 initializer.
1224
f16a9f57
AB
12252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * ada-lang.c (ada_watch_location_expression): Rename to
1228 ada_language::watch_location_expression.
1229 (ada_language_data): Delete la_watch_location_expression
1230 initializer.
1231 (ada_language::watch_location_expression): New member function,
1232 implementation from ada_watch_location_expression.
1233 * breakpoint.c (watch_command_1): Update call to
1234 watch_location_expression.
1235 * c-lang.c (c_watch_location_expression): Rename to
1236 language_defn::watch_location_expression.
1237 (c_language_data): Delete la_watch_location_expression
1238 initializer.
1239 (cplus_language_data): Likewise.
1240 (asm_language_data): Likewise.
1241 (minimal_language_data): Likewise.
1242 * c-lang.h (c_watch_location_expression): Delete declaration.
1243 * d-lang.c (d_language_data): Delete la_watch_location_expression
1244 initializer.
1245 * f-lang.c (f_language_data): Likewise.
1246 * go-lang.c (go_language_data): Likewise.
1247 * language.c (language_defn::watch_location_expression): Member
1248 function implementation from c_watch_location_expression.
1249 (unknown_language_data): Delete la_watch_location_expression
1250 initializer.
1251 (auto_language_data): Likewise.
1252 * language.h (language_data): Delete la_watch_location_expression
1253 field.
1254 (language_defn::watch_location_expression): Declare new member
1255 function.
1256 * m2-lang.c (m2_language_data): Delete
1257 la_watch_location_expression initializer.
1258 * objc-lang.c (objc_language_data): Likewise.
1259 * opencl-lang.c (opencl_language_data): Likewise.
1260 * p-lang.c (pascal_language_data): Likewise.
1261 * rust-lang.c (rust_watch_location_expression): Rename to
1262 rust_language::watch_location_expression.
1263 (rust_language_data): Delete la_watch_location_expression
1264 initializer.
1265 (rust_language::watch_location_expression): New member function,
1266 implementation from rust_watch_location_expression.
1267
7e56227d
AB
12682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1271 ada_language::collect_symbol_completion_matches.
1272 (ada_language_data): Delete la_collect_symbol_completion_matches
1273 initializer.
1274 (ada_language::collect_symbol_completion_matches): New member
1275 function, implementation from
1276 ada_collect_symbol_completion_matches.
1277 * c-lang.c (c_language_data): Delete
1278 la_collect_symbol_completion_matches initializer.
1279 (cplus_language_data): Likewise.
1280 (asm_language_data): Likewise.
1281 (minimal_language_data): Likewise.
1282 * d-lang.c (d_language_data): Likewise.
1283 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1284 f_language::collect_symbol_completion_matches.
1285 (f_language_data): Delete la_collect_symbol_completion_matches
1286 initializer.
1287 (f_language::collect_symbol_completion_matches) New member
1288 function, implementation from f_collect_symbol_completion_matches.
1289 * go-lang.c (go_language_data): Delete
1290 la_collect_symbol_completion_matches initializer.
1291 * language.c (unknown_language_data): Likewise.
1292 (auto_language_data): Likewise.
1293 * language.h (language_data): Delete
1294 la_collect_symbol_completion_matches field.
1295 (language_defn::collect_symbol_completion_matches): New member
1296 function.
1297 * m2-lang.c (m2_language_data): Delete
1298 la_collect_symbol_completion_matches initializer.
1299 * objc-lang.c (objc_language_data): Likewise.
1300 * opencl-lang.c (opencl_language_data): Likewise.
1301 * p-lang.c (pascal_language_data): Likewise.
1302 * rust-lang.c (rust_language_data): Likewise.
1303 * symtab.c (default_collect_symbol_completion_matches): Delete.
1304 (collect_symbol_completion_matches): Update call to
1305 collect_symbol_completion_matches.
1306 (collect_symbol_completion_matches_type): Likewise.
1307 * symtab.h (default_collect_symbol_completion_matches): Delete
1308 declaration.
1309
53fc67f8
AB
13102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1313 (ada_language_data): Delete la_word_break_characters initializer.
1314 (ada_language::word_break_characters): New member function.
1315 * c-lang.c (c_language_data): Delete la_word_break_characters
1316 initializer.
1317 (cplus_language_data): Likewise.
1318 (asm_language_data): Likewise.
1319 (minimal_language_data): Likewise.
1320 * completer.c: Update global comment.
1321 (advance_to_expression_complete_word_point): Update call to
1322 word_break_characters.
1323 (complete_files_symbols): Likewise.
1324 (complete_line_internal_1): Likewise.
1325 (default_completer_handle_brkchars): Likewise.
1326 (skip_quoted_chars): Likewise.
1327 * d-lang.c (d_language_data): Delete la_word_break_characters
1328 initializer.
1329 * f-lang.c (f_word_break_characters): Delete.
1330 (f_language_data): Delete la_word_break_characters initializer.
1331 (f_language::word_break_characters): New member function.
1332 * go-lang.c (go_language_data): Delete la_word_break_characters
1333 initializer.
1334 * language.c (unknown_language_data): Likewise.
1335 (auto_language_data): Likewise.
1336 * language.h (default_word_break_characters): Move declaration to
1337 earlier in the file.
1338 (language_data): Delete la_word_break_characters field.
1339 (language_defn::word_break_characters): New member function.
1340 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1341 initializer.
1342 * objc-lang.c (objc_language_data): Likewise.
1343 * opencl-lang.c (opencl_language_data): Likewise.
1344 * p-lang.c (pascal_language_data): Likewise.
1345 * rust-lang.c (rust_language_data): Likewise.
1346
c9debfb9
AB
13472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1350 (ada_language_data): Delete la_get_symbol_name_matcher
1351 initializer.
1352 (language_defn::get_symbol_name_matcher_inner): New member
1353 function.
1354 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1355 initializer.
1356 (cplus_language_data): Likewise.
1357 (cplus_language::get_symbol_name_matcher_inner): New member
1358 function.
1359 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1360 (minimal_language_data): Likewise.
1361 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1362 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1363 initializer.
1364 * dictionary.c (iter_match_first_hashed): Update call to
1365 get_symbol_name_matcher.
1366 (iter_match_next_hashed): Likewise.
1367 (iter_match_next_linear): Likewise.
1368 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1369 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1370 initializer.
1371 (f_language::get_symbol_name_matcher_inner): New member function.
1372 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1373 initializer.
1374 * language.c (default_symbol_name_matcher): Update header comment,
1375 make static.
1376 (language_defn::get_symbol_name_matcher): New definition.
1377 (language_defn::get_symbol_name_matcher_inner): Likewise.
1378 (get_symbol_name_matcher): Delete.
1379 (unknown_language_data): Delete la_get_symbol_name_matcher
1380 initializer.
1381 (auto_language_data): Likewise.
1382 * language.h (language_data): Delete la_get_symbol_name_matcher
1383 field.
1384 (language_defn::get_symbol_name_matcher): New member function.
1385 (language_defn::get_symbol_name_matcher_inner): Likewise.
1386 (default_symbol_name_matcher): Delete declaration.
1387 * linespec.c (find_methods): Update call to
1388 get_symbol_name_matcher.
1389 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1390 initializer.
1391 * minsyms.c (lookup_minimal_symbol): Update call to
1392 get_symbol_name_matcher.
1393 (iterate_over_minimal_symbols): Likewise.
1394 * objc-lang.c (objc_language_data): Delete
1395 la_get_symbol_name_matcher initializer.
1396 * opencl-lang.c (opencl_language_data): Likewise.
1397 * p-lang.c (pascal_language_data): Likewise.
1398 * psymtab.c (psymbol_name_matches): Update call to
1399 get_symbol_name_matcher.
1400 * rust-lang.c (rust_language_data): Delete
1401 la_get_symbol_name_matcher initializer.
1402 * symtab.c (symbol_matches_search_name): Update call to
1403 get_symbol_name_matcher.
1404 (compare_symbol_name): Likewise.
1405
9a49ad8c
AB
14062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * ada-lang.c (ada_language_data): Delete la_compute_program
1409 initializer.
1410 * c-lang.c (c_language_data): Likewise.
1411 (c_language::compute_program): New member function.
1412 (cplus_language_data): Delete la_compute_program initializer.
1413 (cplus_language::compute_program): New member function.
1414 (asm_language_data): Delete la_compute_program initializer.
1415 (minimal_language_data): Likewise.
1416 * c-lang.h (c_compute_program): Update comment.
1417 (cplus_compute_program): Likewise.
1418 * compile/compile-c-support.c (c_compute_program): Likewise.
1419 (cplus_compute_program): Likewise.
1420 * compile/compile.c (compile_to_object): Update call to
1421 la_compute_program.
1422 * d-lang.c (d_language_data): Delete la_compute_program
1423 initializer.
1424 * f-lang.c (f_language_data): Likewise.
1425 * go-lang.c (go_language_data): Likewise.
1426 * language.c (unknown_language_data): Likewise.
1427 (auto_language_data): Likewise.
1428 * language.h (language_data): Delete la_compute_program field.
1429 (language_defn::compute_program): New member function.
1430 * m2-lang.c (m2_language_data): Delete la_compute_program
1431 initializer.
1432 * objc-lang.c (objc_language_data): Likewise.
1433 * opencl-lang.c (opencl_language_data): Likewise.
1434 * p-lang.c (pascal_language_data): Likewise.
1435 * rust-lang.c (rust_language_data): Likewise.
1436
eff93b4d
AB
14372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * ada-lang.c (ada_language_data) Delete
1440 la_class_name_from_physname initializer.
1441 * c-lang.c (c_language_data): Likewise.
1442 (cplus_language_data): Likewise.
1443 (cplus_language::class_name_from_physname): New member function.
1444 (asm_language_data): Delete la_class_name_from_physname
1445 initializer.
1446 (minimal_language_data): Likewise.
1447 * d-lang.c (d_language_data): Likewise.
1448 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1449 method on language_defn class.
1450 (guess_full_die_structure_name): Likewise.
1451 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1452 initializer.
1453 * go-lang.c (go_language_data): Likewise.
1454 * language.c (language_class_name_from_physname): Delete.
1455 (unk_lang_class_name): Delete.
1456 (unknown_language_data): Delete la_class_name_from_physname
1457 initializer.
1458 (auto_language_data): Likewise.
1459 * language.h (language_data): Delete la_class_name_from_physname
1460 field.
1461 (language_defn::class_name_from_physname): New function.
1462 (language_class_name_from_physname): Delete declaration.
1463 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1464 initializer.
1465 * objc-lang.c (objc_language_data): Likewise.
1466 * opencl-lang.c (opencl_language_data): Likewise.
1467 * p-lang.c (pascal_language_data): Likewise.
1468 * rust-lang.c (rust_language_data): Likewise.
1469
de543742
TT
14702020-06-16 Tom Tromey <tom@tromey.com>
1471
1472 * tui/tui-data.h (STATUS_NAME): New macro.
1473 * tui/tui-layout.c (tui_remove_some_windows)
1474 (initialize_known_windows, tui_register_window)
1475 (tui_layout_split::remove_windows, initialize_layouts)
1476 (tui_new_layout_command): Don't use hard-coded window names.
1477
a350efd4
TT
14782020-06-16 Tom Tromey <tom@tromey.com>
1479
1480 PR tui/25348:
1481 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1482 tui_initialize_readline. Only run once. Call rl_initialize.
1483 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1484 tui_initialize_readline.
1485 * tui/tui-io.c (tui_setup_io): Call
1486 tui_ensure_readline_initialized.
1487 * tui/tui-interp.c (tui_interp::init): Update.
1488
39ec0490
TT
14892020-06-16 Tom Tromey <tom@tromey.com>
1490
1491 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1492 Also preserve the status window.
1493
d2d1ea20
TT
14942020-06-16 Tom Tromey <tom@tromey.com>
1495
1496 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1497 where m_window==nullptr.
1498
66920317
TT
14992020-06-15 Tom Tromey <tromey@adacore.com>
1500
1501 * windows-nat.c (windows_nat::handle_output_debug_string):
1502 Update.
1503 (windows_nat::handle_ms_vc_exception): Update.
1504 * target.h (target_read_string): Change API.
1505 * target.c (target_read_string): Change API.
1506 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1507 Update.
1508 * solib-frv.c (frv_current_sos): Update.
1509 * solib-dsbt.c (dsbt_current_sos): Update.
1510 * solib-darwin.c (darwin_current_sos): Update.
1511 * linux-thread-db.c (inferior_has_bug): Update.
1512 * expprint.c (print_subexp_standard): Update.
1513 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1514 (ada_exception_message_1): Update.
1515
a5d871dd
TT
15162020-06-15 Tom Tromey <tromey@adacore.com>
1517
1518 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1519
670e35fa
TT
15202020-06-15 Tom Tromey <tromey@adacore.com>
1521
1522 * valprint.c (read_string): Update comment.
1523 * target.c (MIN): Remove.
1524 (target_read_string): Rewrite.
1525
f5272a3b
TT
15262020-06-15 Tom Tromey <tromey@adacore.com>
1527
1528 * corefile.c (read_memory_string): Remove.
1529 * ada-valprint.c (ada_value_print_ptr): Update.
1530 * ada-lang.h (ada_tag_name): Change return type.
1531 * ada-lang.c (type_from_tag): Update.
1532 (ada_tag_name_from_tsd): Change return type. Use
1533 target_read_string.
1534 (ada_tag_name): Likewise.
1535 * gdbcore.h (read_memory_string): Don't declare.
1536
2c074f49
HD
15372020-06-14 Hannes Domani <ssbssa@yahoo.de>
1538
1539 * symtab.c (rbreak_command): Ignore Windows drive colon.
1540
6a17d503
SM
15412020-06-12 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * NEWS: Mention removed GDBserver host support.
1544
453c733f
NC
15452020-06-12 Nelson Chu <nelson.chu@sifive.com>
1546
1547 * features/riscv/rebuild-csr-xml.sh: Updated.
1548
2b4e6a3f
TT
15492020-06-11 Tom Tromey <tom@tromey.com>
1550
1551 PR gdb/18318:
1552 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1553
4412332f
JG
15542020-06-09 Jonny Grant <jg@jguk.org>
15552020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1556
1557 * main.c (captured_main_1): Don't print new line after help.
1558 (print_gdb_help): add mailing list and IRC channel information
1559 to --help. Add new lines between items in the footer. Remove
1560 quotes around bug url.
1561
2f33032a
KS
15622020-06-11 Keith Seitz <keiths@redhat.com>
1563
1564 PR gdb/21356
1565 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1566 Resolve typedefs for type length calculations.
1567
7ab96794
TV
15682020-06-10 Tom de Vries <tdevries@suse.de>
1569
1570 PR ada/24713
1571 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1572 (write_psymbols): Enable .gdb_index for ada.
1573 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1574 ada.
1575
e5f3ece2
TV
15762020-06-10 Tom de Vries <tdevries@suse.de>
1577
1578 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1579 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1580 namei" instead of "const char *name" argument.
1581 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1582 dw2_symtab_iter_init.
1583
940da03e
SM
15842020-06-08 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1587 to use type::field and field::type instead.
1588
b6cdac4b
SM
15892020-06-08 Simon Marchi <simon.marchi@efficios.com>
1590
1591 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1592 to use field::type instead.
1593
5d14b6e5
SM
15942020-06-08 Simon Marchi <simon.marchi@efficios.com>
1595
1596 * gdbtypes.h (struct field) <type, set_type>: New methods.
1597 Rename `type` field to...
1598 <m_type>: ... this. Change references throughout to use type or
1599 set_type methods.
1600 (FIELD_TYPE): Use field::type. Change call sites that modify
1601 the field's type to use field::set_type instead.
1602
3d967001
SM
16032020-06-08 Simon Marchi <simon.marchi@efficios.com>
1604
1605 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1606 to use type::index_type instead.
1607
262abc0d
SM
16082020-06-08 Simon Marchi <simon.marchi@efficios.com>
1609
1610 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1611 methods.
1612 (TYPE_INDEX_TYPE): Use type::index_type.
1613 * gdbtypes.c (create_array_type_with_stride): Likewise.
1614
82836c92
TT
16152020-06-07 Tom Tromey <tom@tromey.com>
1616
1617 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1618 parameter.
1619 (generic_value_print): Update.
1620
940dace9
AB
16212020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1622
1623 Revert commit 982a38f60b0.
1624 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1625
982a38f6
AB
16262020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1627
1628 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1629 avoid use after free.
1630
82f06518
TV
16312020-06-05 Tom de Vries <tdevries@suse.de>
1632
1633 * NEWS: Fix typos.
1634
f8c41851
SM
16352020-06-04 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1638 the per_bfd object.
1639 (dwarf2_read_debug_names): Likewise.
1640 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1641 object when re-using a per_bfd object with an index.
1642
f9b5d5ea
TV
16432020-06-03 Tom de Vries <tdevries@suse.de>
1644
1645 PR symtab/26046
1646 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1647 children for C++.
1648 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1649 DW_TAG_subprogram.
1650
f6eee2d0
AB
16512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * ada-lang.c (ada_language_data): Delete skip_trampoline
1654 initializer.
1655 * c-lang.c (c_language_data): Likewise.
1656 (cplus_language_data): Likewise.
1657 (cplus_language::skip_trampoline): New member function.
1658 (asm_language_data): Delete skip_trampoline initializer.
1659 (minimal_language_data): Likewise.
1660 * d-lang.c (d_language_data): Likewise.
1661 * f-lang.c (f_language_data): Likewise.
1662 * go-lang.c (go_language_data): Likewise.
1663 * language.c (unk_lang_trampoline): Delete function.
1664 (skip_language_trampoline): Update.
1665 (unknown_language_data): Delete skip_trampoline initializer.
1666 (auto_language_data): Likewise.
1667 * language.h (language_data): Delete skip_trampoline field.
1668 (language_defn::skip_trampoline): New function.
1669 * m2-lang.c (m2_language_data): Delete skip_trampoline
1670 initializer.
1671 * objc-lang.c (objc_skip_trampoline): Delete function, move
1672 implementation to objc_language::skip_trampoline.
1673 (objc_language_data): Delete skip_trampoline initializer.
1674 (objc_language::skip_trampoline): New member function with
1675 implementation from objc_skip_trampoline.
1676 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1677 initializer.
1678 * p-lang.c (pascal_language_data): Likewise.
1679 * rust-lang.c (rust_language_data): Likewise.
1680
0a50df5d
AB
16812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1684 (ada_language::demangle): New member function.
1685 * c-lang.c (c_language_data): Delete la_demangle initializer.
1686 (cplus_language_data): Delete la_demangle initializer.
1687 (cplus_language::demangle): New member function.
1688 (asm_language_data): Delete la_demangle initializer.
1689 (minimal_language_data): Delete la_demangle initializer.
1690 * d-lang.c (d_language_data): Delete la_demangle initializer.
1691 (d_language::demangle): New member function.
1692 * f-lang.c (f_language_data): Delete la_demangle initializer.
1693 (f_language::demangle): New member function.
1694 * go-lang.c (go_language_data): Delete la_demangle initializer.
1695 (go_language::demangle): New member function.
1696 * language.c (language_demangle): Update.
1697 (unk_lang_demangle): Delete.
1698 (unknown_language_data): Delete la_demangle initializer.
1699 (unknown_language::demangle): New member function.
1700 (auto_language_data): Delete la_demangle initializer.
1701 (auto_language::demangle): New member function.
1702 * language.h (language_data): Delete la_demangle field.
1703 (language_defn::demangle): New function.
1704 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1705 * objc-lang.c (objc_language_data): Delete la_demangle
1706 initializer.
1707 (objc_language::demangle): New member function.
1708 * opencl-lang.c (opencl_language_data): Delete la_demangle
1709 initializer.
1710 * p-lang.c (pascal_language_data): Likewise.
1711 * rust-lang.c (rust_language_data): Likewise.
1712 (rust_language::demangle): New member function.
1713
fbfb0a46
AB
17142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * ada-lang.c (ada_language_data): Delete la_print_type
1717 initializer.
1718 (ada_language::print_type): New member function.
1719 * c-lang.c (c_language_data): Delete la_print_type initializer.
1720 (c_language::print_type): New member function.
1721 (cplus_language_data): Delete la_print_type initializer.
1722 (cplus_language::print_type): New member function.
1723 (asm_language_data): Delete la_print_type initializer.
1724 (asm_language::print_type): New member function.
1725 (minimal_language_data): Delete la_print_type initializer.
1726 (minimal_language::print_type): New member function.
1727 * d-lang.c (d_language_data): Delete la_print_type initializer.
1728 (d_language::print_type): New member function.
1729 * f-lang.c (f_language_data): Delete la_print_type initializer.
1730 (f_language::print_type): New member function.
1731 * go-lang.c (go_language_data): Delete la_print_type initializer.
1732 (go_language::print_type): New member function.
1733 * language.c (unk_lang_print_type): Delete.
1734 (unknown_language_data): Delete la_print_type initializer.
1735 (unknown_language::print_type): New member function.
1736 (auto_language_data): Delete la_print_type initializer.
1737 (auto_language::print_type): New member function.
1738 * language.h (language_data): Delete la_print_type field.
1739 (language_defn::print_type): New function.
1740 (LA_PRINT_TYPE): Update.
1741 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1742 (m2_language::print_type): New member function.
1743 * objc-lang.c (objc_language_data): Delete la_print_type
1744 initializer.
1745 (objc_language::print_type): New member function.
1746 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1747 to opencl_language::print_type.
1748 (opencl_language_data): Delete la_print_type initializer.
1749 (opencl_language::print_type): New member function, implementation
1750 from opencl_print_type.
1751 * p-lang.c (pascal_language_data): Delete la_print_type
1752 initializer.
1753 (pascal_language::print_type): New member function.
1754 * rust-lang.c (rust_print_type): Delete, implementation moved to
1755 rust_language::print_type.
1756 (rust_language_data): Delete la_print_type initializer.
1757 (rust_language::print_type): New member function, implementation
1758 from rust_print_type.
1759
6f827019
AB
17602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1763 implementation moves to...
1764 (ada_language::sniff_from_mangled_name): ...here. Update return
1765 type.
1766 (ada_language_data): Delete la_sniff_from_mangled_name
1767 initializer.
1768 * c-lang.c (c_language_data): Likewise.
1769 (cplus_language_data): Likewise.
1770 (cplus_language::sniff_from_mangled_name): New member function,
1771 implementation taken from gdb_sniff_from_mangled_name.
1772 (asm_language_data): Delete la_sniff_from_mangled_name
1773 initializer.
1774 (minimal_language_data): Likewise.
1775 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1776 implementation moves to cplus_language::sniff_from_mangled_name.
1777 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1778 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1779 moves to...
1780 (d_language::sniff_from_mangled_name): ...here.
1781 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1782 * f-lang.c (f_language_data): Likewise.
1783 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1784 moves to...
1785 (go_language::sniff_from_mangled_name): ...here.
1786 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1787 * language.c (language_sniff_from_mangled_name): Delete.
1788 (unknown_language_data): Delete la_sniff_from_mangled_name
1789 initializer.
1790 (auto_language_data): Likewise.
1791 * language.h (language_data): Delete la_sniff_from_mangled_name
1792 field.
1793 (language_defn::sniff_from_mangled_name): New function.
1794 (language_sniff_from_mangled_name): Delete declaration.
1795 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1796 field.
1797 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1798 implementation moves to...
1799 (objc_language::sniff_from_mangled_name): ...here.
1800 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1801 * opencl-lang.c (opencl_language_data): Likewise.
1802 * p-lang.c (pascal_language_data): Likewise.
1803 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1804 implementation moves to...
1805 (rust_language::sniff_from_mangled_name): ...here.
1806 (rust_language_data): Delete la_sniff_from_mangled_name
1807 initializer.
1808 * symtab.c (symbol_find_demangled_name): Call
1809 sniff_from_mangled_name member function.
1810
fb8006fd
AB
18112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1814 initializer.
1815 * c-lang.c (c_language_data): Likewise.
1816 (cplus_language_data): Likewise.
1817 (cplus_language::search_name_hash): New member function.
1818 (asm_language_data): Delete la_search_name_hash initializer.
1819 (minimal_language_data): Likewise.
1820 * d-lang.c (d_language_data): Likewise.
1821 * dictionary.c (default_search_name_hash): Rename to...
1822 (language_defn::search_name_hash): ...this.
1823 * f-lang.c (f_language_data): Likewise.
1824 (f_language::search_name_hash): New member function.
1825 * go-lang.c (go_language_data): Delete la_search_name_hash
1826 initializer.
1827 * language.c (unknown_language_data): Likewise.
1828 (auto_language_data): Likewise.
1829 * language.h (struct language_data): Delete la_search_name_hash
1830 field.
1831 (language_defn::search_name_hash): Declare new member function.
1832 (default_search_name_hash): Delete declaration.
1833 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1834 initializer.
1835 * objc-lang.c (objc_language_data): Likewise.
1836 * opencl-lang.c (opencl_language_data): Likewise.
1837 * p-lang.c (pascal_language_data): Likewise.
1838 * rust-lang.c (rust_language_data): Likewise.
1839 * symtab.c (search_name_hash): Update call.
1840
8e25bafe
AB
18412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1842
1843 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1844 initializer.
1845 * c-lang.c (class compile_instance): Declare.
1846 (c_language_data): Delete la_get_compile_instance initializer.
1847 (c_language::get_compile_instance): New member function.
1848 (cplus_language_data): Delete la_get_compile_instance initializer.
1849 (cplus_language::get_compile_instance): New member function.
1850 (asm_language_data): Delete la_get_compile_instance initializer.
1851 (minimal_language_data): Likewise.
1852 * c-lang.h (c_get_compile_context): Update comment.
1853 (cplus_get_compile_context): Update comment.
1854 * compile/compile.c (compile_to_object): Update calls, don't rely
1855 on function pointer being NULL.
1856 * d-lang.c (d_language_data): Delete la_get_compile_instance
1857 initializer.
1858 * f-lang.c (f_language_data): Likewise.
1859 * go-lang.c (go_language_data): Likewise.
1860 * language.c (unknown_language_data): Likewise.
1861 (auto_language_data): Likewise.
1862 * language.h (language_data): Delete la_get_compile_instance field.
1863 (language_defn::get_compile_instance): New member function.
1864 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1865 initializer.
1866 * objc-lang.c (objc_language_data): Likewise.
1867 * opencl-lang.c (opencl_language_data): Likewise.
1868 * p-lang.c (pascal_language_data): Likewise.
1869 * rust-lang.c (rust_language_data): Likewise.
1870
4009ee92
AB
18712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1872
1873 * ada-lang.c (ada_add_all_symbols): Update comment.
1874 (ada_iterate_over_symbols): Delete, move implementation to...
1875 (ada_language::iterate_over_symbols): ...here, a new member
1876 function, rewrite to use range based for loop.
1877 (ada_language_data): Delete la_iterate_over_symbols initializer.
1878 * c-lang.c (c_language_data): Likewise.
1879 (cplus_language_data): Likewise.
1880 (asm_language_data): Likewise.
1881 (minimal_language_data): Likewise.
1882 * d-lang.c (d_language_data): Likewise.
1883 * f-lang.c (f_language_data): Likewise.
1884 * go-lang.c (go_language_data): Likewise.
1885 * language.c (unknown_language_data): Likewise.
1886 (auto_language_data): Likewise.
1887 * language.h (language_data): Delete la_iterate_over_symbols field.
1888 (language_defn::iterate_over_symbols): New member function.
1889 (LA_ITERATE_OVER_SYMBOLS): Update.
1890 * linespec.c (iterate_over_all_matching_symtabs): Update.
1891 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1892 initializer.
1893 * objc-lang.c (objc_language_data): Likewise.
1894 * opencl-lang.c (opencl_language_data): Likewise.
1895 * p-lang.c (pascal_language_data): Likewise.
1896 * rust-lang.c (rust_language_data): Likewise.
1897
54f4ca46
AB
18982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * ada-lang.c (ada_language_data): Delete
1901 la_lookup_transparent_type initializer.
1902 * c-lang.c (c_language_data): Likewise.
1903 (cplus_language_data): Likewise.
1904 (cplus_language::lookup_transparent_type): New member function.
1905 (asm_language_data): Delete la_lookup_transparent_type
1906 initializer.
1907 (minimal_language_data): Likewise.
1908 * d-lang.c (d_language_data): Likewise.
1909 * f-lang.c (f_language_data): Likewise.
1910 * go-lang.c (go_language_data): Likewise.
1911 * language.c (unknown_language_data): Likewise.
1912 (auto_language_data): Likewise.
1913 * language.h (struct language_data): Delete
1914 la_lookup_transparent_type field.
1915 (language_defn::lookup_transparent_type): New member function.
1916 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1917 initializer.
1918 * objc-lang.c (objc_language_data): Likewise.
1919 * opencl-lang.c (opencl_language_data): Likewise.
1920 * p-lang.c (pascal_language_data): Likewise.
1921 * rust-lang.c (rust_language_data): Likewise.
1922 * symtab.c (symbol_matches_domain): Update call.
1923
1fb314aa
AB
19242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * ada-lang.c (ada_language_arch_info): Delete function, move
1927 implementation to...
1928 (ada_language::language_arch_info): ...here, a new member
1929 function.
1930 (ada_language_data): Delete la_language_arch_info.
1931 * c-lang.c (c_language_data): Likewise.
1932 (c_language::language_arch_info): New member function.
1933 (cplus_language_arch_info): Delete function, move
1934 implementation to...
1935 (cplus_language::language_arch_info): ...here, a new member
1936 function.
1937 (cplus_language_data): Delete la_language_arch_info.
1938 (asm_language_data): Likewise.
1939 (asm_language::language_arch_info): New member function.
1940 (minimal_language_data): Delete la_language_arch_info.
1941 (minimal_language::language_arch_info): New member function.
1942 * d-lang.c (d_language_arch_info): Delete function, move
1943 implementation to...
1944 (d_language::language_arch_info): ...here, a new member
1945 function.
1946 (d_language_data): Delete la_language_arch_info.
1947 * f-lang.c (f_language_arch_info): Delete function, move
1948 implementation to...
1949 (f_language::language_arch_info): ...here, a new member
1950 function.
1951 (f_language_data): Delete la_language_arch_info.
1952 * go-lang.c (go_language_arch_info): Delete function, move
1953 implementation to...
1954 (go_language::language_arch_info): ...here, a new member
1955 function.
1956 (go_language_data): Delete la_language_arch_info.
1957 * language.c (unknown_language_data): Likewise.
1958 (unknown_language::language_arch_info): New member function.
1959 (auto_language_data): Delete la_language_arch_info.
1960 (auto_language::language_arch_info): New member function.
1961 (language_gdbarch_post_init): Update call to
1962 la_language_arch_info.
1963 * language.h (language_data): Delete la_language_arch_info
1964 function pointer.
1965 (language_defn::language_arch_info): New function.
1966 * m2-lang.c (m2_language_arch_info): Delete function, move
1967 implementation to...
1968 (m2_language::language_arch_info): ...here, a new member
1969 function.
1970 (m2_language_data): Delete la_language_arch_info.
1971 * objc-lang.c (objc_language_arch_info): Delete function, move
1972 implementation to...
1973 (objc_language::language_arch_info): ...here, a new member
1974 function.
1975 (objc_language_data): Delete la_language_arch_info.
1976 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1977 implementation to...
1978 (opencl_language::language_arch_info): ...here, a new member
1979 function.
1980 (opencl_language_data): Delete la_language_arch_info.
1981 * p-lang.c (pascal_language_arch_info): Delete function, move
1982 implementation to...
1983 (pascal_language::language_arch_info): ...here, a new member
1984 function.
1985 (pascal_language_data): Delete la_language_arch_info.
1986 * rust-lang.c (rust_language_arch_info): Delete function, move
1987 implementation to...
1988 (rust_language::language_arch_info): ...here, a new member
1989 function.
1990 (rust_language_data): Delete la_language_arch_info.
1991
48448202
AB
19922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1995 initializer.
1996 * c-lang.c (c_language_data): Likewise.
1997 (cplus_language_data): Likewise.
1998 (cplus_language::pass_by_reference_info): New method.
1999 (asm_language_data): Delete la_pass_by_reference initializer.
2000 (minimal_language_data): Likewise.
2001 * cp-abi.c (cp_pass_by_reference): Remove use of
2002 default_pass_by_reference.
2003 * d-lang.c (d_language_data): Likewise.
2004 * f-lang.c (f_language_data): Likewise.
2005 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2006 default_pass_by_reference.
2007 * go-lang.c (go_language_data): Likewise.
2008 * language.c (language_pass_by_reference): Update.
2009 (default_pass_by_reference): Delete.
2010 (unknown_language_data): Delete la_pass_by_reference
2011 initializer.
2012 (auto_language_data): Likewise.
2013 * language.h (struct language_data): Delete la_pass_by_reference
2014 field.
2015 (language_defn::pass_by_reference_info): New member function.
2016 (default_pass_by_reference): Delete declaration.
2017 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2018 initializer.
2019 * objc-lang.c (objc_language_data): Likewise.
2020 * opencl-lang.c (opencl_language_data): Likewise.
2021 * p-lang.c (pascal_language_data): Likewise.
2022 * rust-lang.c (rust_language_data): Likewise.
2023
15e5fd35
AB
20242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2025
2026 * ada-lang.c (ada_read_var_value): Delete function, move
2027 implementation to...
2028 (ada_language::read_var_value): ...here.
2029 (ada_language_data): Delete la_read_var_value initializer.
2030 * c-lang.c (c_language_data): Likewise.
2031 (cplus_language_data): Likewise.
2032 (minimal_language_data): Likewise.
2033 * d-lang.c (d_language_data): Likewise.
2034 * f-lang.c (f_language_data): Likewise.
2035 * findvar.c (default_read_var_value): Rename to...
2036 (language_defn::read_var_value): ...this.
2037 * findvar.c (read_var_value): Update header comment, and change to
2038 call member function instead of function pointer.
2039 * go-lang.c (go_language_data): Likewise.
2040 * language.c (unknown_language_data): Delete la_read_var_value
2041 initializer.
2042 (auto_language_data): Likewise.
2043 * language.h (struct language_data): Delete la_read_var_value
2044 field.
2045 (language_defn::read_var_value): New member function.
2046 (default_read_var_value): Delete declaration.
2047 * m2-lang.c (m2_language_data): Delete la_read_var_value
2048 initializer.
2049 * objc-lang.c (objc_language_data): Likewise.
2050 * opencl-lang.c (opencl_language_data): Likewise.
2051 * p-lang.c (pascal_language_data): Likewise.
2052 * rust-lang.c (rust_language_data): Likewise.
2053 * value.h (default_read_var_value): Delete declaration.
2054
5bd40f2a
AB
20552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 * ada-lang.c (ada_print_array_index): Delete function, move
2058 implementation to...
2059 (ada_language::print_array_index): ...here.
2060 (ada_language_data): Delete la_print_array_index initializer.
2061 * c-lang.c (c_language_data): Likewise.
2062 (cplus_language_data): Likewise.
2063 (minimal_language_data): Likewise.
2064 * d-lang.c (d_language_data): Likewise.
2065 * f-lang.c (f_language_data): Likewise.
2066 * go-lang.c (go_language_data): Likewise.
2067 * language.c (default_print_array_index): Delete function, move
2068 implementation to...
2069 (language_defn::print_array_index): ...here.
2070 (unknown_language_data): Delete la_print_array_index initializer.
2071 (auto_language_data): Likewise.
2072 * language.h (struct language_data): Delete la_print_array_index
2073 field.
2074 (language_defn::print_array_index): New member function.
2075 (LA_PRINT_ARRAY_INDEX): Update.
2076 (default_print_array_index): Delete declaration.
2077 * m2-lang.c (m2_language_data): Delete la_print_array_index
2078 initializer.
2079 * objc-lang.c (objc_language_data): Likewise.
2080 * opencl-lang.c (opencl_language_data): Likewise.
2081 * p-lang.c (pascal_language_data): Likewise.
2082 * rust-lang.c (rust_language_data): Likewise.
2083
0874fd07
AB
20842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * gdb/ada-lang.c (ada_language_defn): Convert to...
2087 (ada_language_data): ...this.
2088 (class ada_language): New class.
2089 (ada_language_defn): New static global.
2090 * gdb/c-lang.c (c_language_defn): Convert to...
2091 (c_language_data): ...this.
2092 (class c_language): New class.
2093 (c_language_defn): New static global.
2094 (cplus_language_defn): Convert to...
2095 (cplus_language_data): ...this.
2096 (class cplus_language): New class.
2097 (cplus_language_defn): New static global.
2098 (asm_language_defn): Convert to...
2099 (asm_language_data): ...this.
2100 (class asm_language): New class.
2101 (asm_language_defn): New static global.
2102 (minimal_language_defn): Convert to...
2103 (minimal_language_data): ...this.
2104 (class minimal_language): New class.
2105 (minimal_language_defn): New static global.
2106 * gdb/d-lang.c (d_language_defn): Convert to...
2107 (d_language_data): ...this.
2108 (class d_language): New class.
2109 (d_language_defn): New static global.
2110 * gdb/f-lang.c (f_language_defn): Convert to...
2111 (f_language_data): ...this.
2112 (class f_language): New class.
2113 (f_language_defn): New static global.
2114 * gdb/go-lang.c (go_language_defn): Convert to...
2115 (go_language_data): ...this.
2116 (class go_language): New class.
2117 (go_language_defn): New static global.
2118 * gdb/language.c (unknown_language_defn): Remove declaration.
2119 (current_language): Initialize to nullptr, real initialization is
2120 moved to _initialize_language.
2121 (languages): Delete global.
2122 (language_defn::languages): Define.
2123 (set_language_command): Use language_defn::languages.
2124 (set_language): Likewise.
2125 (range_error): Likewise.
2126 (language_enum): Likewise.
2127 (language_def): Likewise.
2128 (add_set_language_command): Use language_def::languages for the
2129 language list, and language_def to lookup language pointers.
2130 (skip_language_trampoline): Use language_defn::languages.
2131 (unknown_language_defn): Convert to...
2132 (unknown_language_data): ...this.
2133 (class unknown_language): New class.
2134 (unknown_language_defn): New static global.
2135 (auto_language_defn): Convert to...
2136 (auto_language_data): ...this.
2137 (class auto_language): New class.
2138 (auto_language_defn): New static global.
2139 (language_gdbarch_post_init): Use language_defn::languages.
2140 (_initialize_language): Initialize current_language.
2141 * gdb/language.h (struct language_defn): Rename to...
2142 (struct language_data): ...this.
2143 (struct language_defn): New.
2144 (auto_language_defn): Delete.
2145 (unknown_language_defn): Delete.
2146 (minimal_language_defn): Delete.
2147 (ada_language_defn): Delete.
2148 (asm_language_defn): Delete.
2149 (c_language_defn): Delete.
2150 (cplus_language_defn): Delete.
2151 (d_language_defn): Delete.
2152 (f_language_defn): Delete.
2153 (go_language_defn): Delete.
2154 (m2_language_defn): Delete.
2155 (objc_language_defn): Delete.
2156 (opencl_language_defn): Delete.
2157 (pascal_language_defn): Delete.
2158 (rust_language_defn): Delete.
2159 * gdb/m2-lang.c (m2_language_defn): Convert to...
2160 (m2_language_data): ...this.
2161 (class m2_language): New class.
2162 (m2_language_defn): New static global.
2163 * gdb/objc-lang.c (objc_language_defn): Convert to...
2164 (objc_language_data): ...this.
2165 (class objc_language): New class.
2166 (objc_language_defn): New static global.
2167 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2168 (opencl_language_data): ...this.
2169 (class opencl_language): New class.
2170 (opencl_language_defn): New static global.
2171 * gdb/p-lang.c (pascal_language_defn): Convert to...
2172 (pascal_language_data): ...this.
2173 (class pascal_language): New class.
2174 (pascal_language_defn): New static global.
2175 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2176 language pointer, update comment format.
2177 * gdb/rust-lang.c (rust_language_defn): Convert to...
2178 (rust_language_data): ...this.
2179 (class rust_language): New class.
2180 (rust_language_defn): New static global.
2181
1313c56e
AB
21822020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2185 member variable.
2186 <m_stmt_at_address>: New member variable.
2187 (lnp_state_machine::record_line): Don't record some lines, update
2188 tracking of is_stmt at the same address.
2189 (lnp_state_machine::lnp_state_machine): Initialise new member
2190 variables.
2191
b7ed9f3d
ST
21922020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2193
2194 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2195 "-include gnu-nat-mig.h".
2196 * gnu-nat-mig.h: New file.
2197 * gnu-nat.c: Include "gnu-nat-mig.h".
2198 (exc_server, msg_reply_server, notify_server,
2199 process_reply_server): Remove declarations.
2200
14a8ad62
ST
22012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2202
2203 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2204 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2205 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2206 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2207 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2208 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2209 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2210 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2211 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2212 to gnu_nat_target class.
2213 * gnu-nat.c: Likewise.
2214 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2215 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2216 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2217 object.
2218 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2219 instead of `gnu_target'.
2220
0af5e106
ST
22212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2222
2223 * i386-gnu-tdep.c: Include "gdbcore.h"
2224 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2225 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2226 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2227 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2228 i386_gnu_sigcontext_addr): New functions
2229 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2230 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2231 tdep.
2232
078f2fc9
ST
22332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2234
2235 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2236 before fork_inferior call. Avoid calling it if target_is_pushed returns
2237 true.
2238
53dff92c
ST
22392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2240
2241 * gnu-nat.h (gnu_target): New variable declaration.
2242 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2243 gnu_target.
2244 * gnu-nat.c (gnu_target): New variable.
2245 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2246 add_thread_silent, and add_thread calls.
2247 (gnu_nat_target::create_inferior): Pass gnu_target to
2248 add_thread_silent, thread_change_ptid call.
2249 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2250 call.
2251
5a8b8627
ST
22522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2253
2254 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2255 (gnu_nat_target::find_memory_regions): Remove unused
2256 `old_address' variable.
2257
366f550a
ST
22582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2259
2260 * gnu-nat.c: Include "gdbarch.h".
2261
f14871bf
ST
22622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2263
2264 * reply_mig_hack.awk (Error return): Cast function through
2265 void *, to bypass compiler function call check.
2266
c6887cfb
ST
22672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2268
2269 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2270 $(srcdir)/reply_mig_hack.awk.
2271
6930bffe
ST
22722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2273
2274 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2275
112c22ed
JG
22762020-05-30 Jonny Grant <jg@jguk.org>
2277
2278 * configure.ac (ACX_BUGURL): change bug URL to https.
2279
f68f85b5
PA
22802020-05-30 Pedro Alves <palves@redhat.com>
2281
2282 * cp-support.c (replace_typedefs_template): New.
2283 (replace_typedefs_qualified_name): Handle
2284 DEMANGLE_COMPONENT_TEMPLATE.
2285
976ca316
SM
22862020-05-29 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2289 dwarf2/index-cache.h, dwarf2/index-write.c,
2290 dwarf2/index-write.h, dwarf2/line-header.c,
2291 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2292 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2293 variables and fields from `dwarf2_per_objfile` to just
2294 `per_objfile` throughout.
2295
989ade05
SM
22962020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2297
2298 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2299 <push_dwarf_reg_entry_value>: Add comment.
2300
c47bae85
KB
23012020-05-28 Kevin Buettner <kevinb@redhat.com>
2302 Keith Seitz <keiths@redhat.com>
2303
2304 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2305 instead of PyEval_ReleaseLock.
2306 (class gdbpy_gil): Move to earlier in file.
2307 (finalize_python): Set gdb_python_initialized.
2308 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2309 when not initialized.
2310
44486dcf
SM
23112020-05-28 Simon Marchi <simon.marchi@efficios.com>
2312
2313 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2314 <push_dwarf_reg_entry_value>: Remove assert. Override
2315 per_objfile with caller_per_objfile.
2316
f030440d
TV
23172020-05-28 Tom de Vries <tdevries@suse.de>
2318
2319 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2320 PR gold/15646 workaround to symbol kind "type".
2321
f0fbb768
TT
23222020-05-27 Tom Tromey <tromey@adacore.com>
2323
2324 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2325
af0b2a3e
TT
23262020-05-27 Tom Tromey <tromey@adacore.com>
2327
2328 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2329 Use htab_find_with_hash.
2330 <add_abbrev>: Remove "abbrev_number" parameter.
2331 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2332 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2333 (hash_abbrev): Add comment.
2334 (abbrev_table::lookup_abbrev): Move to header file.
2335 (abbrev_table::read): Update.
2336
7d00ffec
TT
23372020-05-27 Tom Tromey <tromey@adacore.com>
2338
2339 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2340 method.
2341 <canonical_name>: New member.
2342 <raw_name>: Rename from "name".
2343 (partial_die_info): Initialize canonical_name.
2344 (scan_partial_symbols): Check raw_name.
2345 (partial_die_parent_scope, partial_die_full_name)
2346 (add_partial_symbol, add_partial_subprogram)
2347 (add_partial_enumeration, load_partial_dies): Use "name" method.
2348 (partial_die_info::name): New method.
2349 (partial_die_info::read, guess_partial_die_structure_name)
2350 (partial_die_info::fixup): Update.
2351
697bba18
TT
23522020-05-27 Tom Tromey <tromey@adacore.com>
2353
2354 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2355 <get_ref_die_offset>: Inline.
2356 <get_ref_die_offset_complaint>: New method.
2357 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2358 (attribute::get_ref_die_offset_complaint): Rename from
2359 get_ref_die_offset. Just issue complaint.
2360
c17ace43
HD
23612020-05-27 Hannes Domani <ssbssa@yahoo.de>
2362
2363 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2364
96445f0b
HD
23652020-05-27 Hannes Domani <ssbssa@yahoo.de>
2366
2367 * exec.c (exec_file_attach): Use errno value of first openp failure.
2368
ac637ec3
HD
23692020-05-27 Hannes Domani <ssbssa@yahoo.de>
2370
2371 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2372 Don't close thread handle.
2373
17ee85fc
TT
23742020-05-27 Tom Tromey <tom@tromey.com>
2375 Simon Marchi <simon.marchi@efficios.com>
2376
2377 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2378 shared_ptr.
2379 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2380 member.
2381 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2382 dwarf2_per_bfd_objfile_data_key>: New globals.
2383 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2384 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2385 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2386 shared.
2387 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2388 short-circuit when sharing.
2389 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2390 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2391
39b16f87
SM
23922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2395 to...
2396 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2397 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2398
fcf23d5b
SM
23992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2402 build_name_components, find_name_components_bounds>:
2403 Add per_objfile parameter.
2404 (struct mapped_index) <symbol_name_at>: Likewise.
2405 (struct mapped_debug_names): Remove constructor.
2406 <dwarf2_per_objfile>: Remove field.
2407 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2408 (mapped_index_base::find_name_components_bounds,
2409 mapped_index_base::build_name_components,
2410 dw2_expand_symtabs_matching_symbol): Likewise.
2411 (class mock_mapped_index) <symbol_name_at>: Likewise.
2412 (check_match): Likewise.
2413 (check_find_bounds_finds): Likewise.
2414 (test_mapped_index_find_name_component_bounds): Update.
2415 (CHECK_MATCH): Update.
2416 (dw2_expand_symtabs_matching): Update.
2417 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2418 per_objfile parameter.
2419 <find_vec_in_debug_names>: Likewise.
2420 <m_per_objfile>: New field.
2421 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2422 parameter.
2423 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2424 (dw2_debug_names_iterator::next): Update.
2425 (dw2_debug_names_lookup_symbol): Update.
2426 (dw2_debug_names_expand_symtabs_for_function): Update.
2427 (dw2_debug_names_map_matching_symbols): Update.
2428 (dw2_debug_names_expand_symtabs_matching): Update.
2429 (dwarf2_read_debug_names): Update.
2430
7188ed02
SM
24312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2432
2433 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2434 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2435 move to dwarf2_per_objfile.
2436 <read_in_chain>: Remove.
2437 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2438 remove_all_cus, age_comp_units>: New methods.
2439 <m_dwarf2_cus>: New member.
2440 (struct dwarf2_per_cu_data) <cu>: Remove.
2441 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2442 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2443 moved to methods of dwarf2_per_objfile.
2444 (dwarf2_clear_marks): Remove.
2445 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2446 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2447 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2448 (dwarf2_per_objfile::remove_all_cus): New.
2449 (class free_cached_comp_units) <~free_cached_comp_units>:
2450 Update.
2451 (load_cu): Update.
2452 (dw2_do_instantiate_symtab): Adjust.
2453 (fill_in_sig_entry_from_dwo_entry): Adjust.
2454 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2455 (cutu_reader::cutu_reader): Likewise.
2456 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2457 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2458 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2459 and dwarf2_per_objfile::age_comp_units.
2460 (load_partial_comp_unit): Update.
2461 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2462 (process_queue): Likewise.
2463 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2464 backlink.
2465 (dwarf2_read_addr_index): Likewise.
2466 (follow_die_offset): Likewise.
2467 (dwarf2_fetch_die_loc_sect_off): Likewise.
2468 (dwarf2_fetch_constant_bytes): Likewise.
2469 (dwarf2_fetch_die_type_sect_off): Likewise.
2470 (follow_die_sig_1): Likewise.
2471 (load_full_type_unit): Likewise.
2472 (read_signatured_type): Likewise.
2473 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2474 (dwarf2_cu::~dwarf2_cu): Remove.
2475 (dwarf2_per_objfile::get_cu): New.
2476 (dwarf2_per_objfile::set_cu): New.
2477 (age_cached_comp_units): Rename to...
2478 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2479 to std::unordered_map.
2480 (free_one_cached_comp_unit): Rename to...
2481 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2482 to std::unordered_map.
2483 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2484 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2485 a dwarf2_per_objfile in data.
2486 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2487 (dwarf2_clear_marks): Remove.
2488
2e671100
SM
24892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2490
2491 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2492 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2493 (init_tu_and_read_dwo_dies): Likewise.
2494 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2495 (cutu_reader::cutu_reader): Likewise.
2496 (load_partial_comp_unit): Likewise.
2497 (process_psymtab_comp_unit): Update.
2498 (build_type_psymtabs_1): Update.
2499 (process_skeletonless_type_unit): Update.
2500 (load_full_comp_unit): Update.
2501 (find_partial_die): Update.
2502 (dwarf2_read_addr_index): Update.
2503 (read_signatured_type): Update.
2504
2e6a9f79
SM
25052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2506
2507 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2508 m_header_read_in>: New fields.
2509 <get_header>: New method.
2510 * dwarf2/read.c (per_cu_header_read_in): Remove.
2511 (dwarf2_per_cu_data::get_header): New.
2512 (dwarf2_per_cu_data::addr_size): Update.
2513 (dwarf2_per_cu_data::offset_size): Update.
2514 (dwarf2_per_cu_data::ref_addr_size): Update.
2515
1b555f17
SM
25162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2519 (dw2_do_instantiate_symtab): Update.
2520 (queue_and_load_all_dwo_tus): Change parameter from
2521 dwarf2_per_cu_data to dwarf2_cu.
2522 (dwarf2_fetch_die_loc_sect_off): Update.
2523 (dwarf2_fetch_constant_bytes): Update.
2524 (dwarf2_fetch_die_type_sect_off): Update.
2525
8fc0b21d
SM
25262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * dwarf2/read.c (process_full_comp_unit,
2529 process_full_type_unit): Remove per_cu, per_objfile paramters.
2530 Add dwarf2_cu parameter.
2531 (process_queue): Update.
2532
168c9250
SM
25332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2534
2535 * dwarf2/read.c (create_cu_from_index_list): Replace
2536 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2537 (create_cus_from_index_list): Likewise.
2538 (create_cus_from_index): Likewise.
2539 (create_signatured_type_table_from_index): Likewise.
2540 (create_cus_from_debug_names_list): Likewise.
2541 (create_cus_from_debug_names): Likewise.
2542 (dwarf2_read_gdb_index): Update.
2543 (dwarf2_read_debug_names): Update.
2544
e286671b
TT
25452020-05-27 Tom Tromey <tom@tromey.com>
2546 Simon Marchi <simon.marchi@efficios.com>
2547
2548 * dwarf2/read.h (struct dwarf2_per_objfile)
2549 <get_type_for_signatured_type, set_type_for_signatured_type>:
2550 New methods.
2551 <m_type_map>: New member.
2552 (struct signatured_type) <type>: Remove.
2553 * dwarf2/read.c
2554 (dwarf2_per_objfile::get_type_for_signatured_type,
2555 dwarf2_per_objfile::set_type_for_signatured_type): New.
2556 (get_signatured_type): Use new methods.
2557
8adb8487
TT
25582020-05-27 Tom Tromey <tom@tromey.com>
2559 Simon Marchi <simon.marchi@efficios.com>
2560
2561 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2562 (struct dwarf2_per_objfile) <type_units>: New member.
2563 <get_type_unit_group_unshareable>: New method.
2564 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2565 num_symtabs, symtabs>: Remove; move to
2566 type_unit_group_unshareable.
2567 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2568 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2569 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2570
127bbf4b
SM
25712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * dwarf2/read.h (struct dwarf2_per_cu_data):
2574 <dwarf2_per_objfile>: Remove.
2575 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2576 dwarf2_per_objfile.
2577 (create_signatured_type_table_from_index): Likewise.
2578 (create_signatured_type_table_from_debug_names): Likewise.
2579 (create_debug_type_hash_table): Likewise.
2580 (fill_in_sig_entry_from_dwo_entry): Likewise.
2581 (create_type_unit_group): Likewise.
2582 (read_comp_units_from_section): Likewise.
2583 (create_cus_hash_table): Likewise.
2584
f6e649dd
SM
25852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2586
2587 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2588 dwarf2_per_cu_data::dwarf2_per_objfile.
2589 (compute_compunit_symtab_includes): Likewise.
2590 (dwarf2_cu::start_symtab): Likewise.
2591
aa66c379
SM
25922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2593
2594 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2595 parameter.
2596 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2597 (read_namespace_alias): Update.
2598 (lookup_die_type): Update.
2599 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2600 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2601 Update.
2602 (disassemble_dwarf_expression): Update.
2603
120ce1b5
SM
26042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2605
2606 * dwarf2/read.h (struct dwarf2_queue_item): Add
2607 dwarf2_per_objfile parameter, assign new parameter.
2608 <per_objfile>: New field.
2609 * dwarf2/read.c (free_one_cached_comp_unit): Add
2610 dwarf2_per_objfile parameter.
2611 (queue_comp_unit): Likewise.
2612 (dw2_do_instantiate_symtab): Update.
2613 (process_psymtab_comp_unit): Update.
2614 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2615 (process_imported_unit_die): Update.
2616 (queue_and_load_dwo_tu): Update.
2617 (follow_die_offset): Update.
2618 (follow_die_sig_1): Update.
2619
9f47c707
SM
26202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2621
2622 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2623 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2624 (read_call_site_scope): Assign per_objfile.
2625 (dwarf2_per_cu_data::objfile): Remove.
2626 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2627 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2628 dwarf2_per_objfile parameter.
2629 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2630 dwarf2_per_objfile parameter.
2631 (dwarf_expr_reg_to_entry_parameter): Add output
2632 dwarf2_per_objfile parameter.
2633 (locexpr_get_frame_base): Update.
2634 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2635 <push_dwarf_reg_entry_value>: Update.
2636 <call_site_to_target_addr>: Update.
2637 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2638 parameter.
2639 (value_of_dwarf_reg_entry): Update.
2640 (rw_pieced_value): Update.
2641 (indirect_synthetic_pointer): Update.
2642 (dwarf2_evaluate_property): Update.
2643 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2644 parameter.
2645 (locexpr_read_variable): Update.
2646 (locexpr_get_symbol_read_needs): Update.
2647 (loclist_read_variable): Update.
2648
14095eb3
SM
26492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2650
2651 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2652 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2653 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2654 parameter.
2655 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2656 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2657 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2658 parameter.
2659 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2660 sect_variable_value): Add dwarf2_per_objfile parameter.
2661 (class dwarf_evaluate_loc_desc) <dwarf_call,
2662 dwarf_variable_value>: Update.
2663 (fetch_const_value_from_synthetic_pointer): Add
2664 dwarf2_per_objfile parameter.
2665 (fetch_const_value_from_synthetic_pointer): Update.
2666 (coerced_pieced_ref): Update.
2667 (class symbol_needs_eval_context) <dwarf_call,
2668 dwarf_variable_value>: Update.
2669 (dwarf2_compile_expr_to_ax): Update.
2670
3c3cd3d4
SM
26712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2672
2673 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2674 parameter.
2675 (dwarf2_evaluate_loc_desc_full): Update.
2676
82ca3f51
SM
26772020-05-27 Simon Marchi <simon.marchi@efficios.com>
2678
2679 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2680 parameter.
2681 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2682 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2683 dwarf2_per_objfile parameter.
2684 (decode_debug_loc_dwo_addresses): Likewise.
2685 (dwarf2_find_location_expression): Update.
2686 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2687 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2688 parameter.
2689 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2690 parameter.
2691 (locexpr_describe_location_1): Likewise.
2692 (locexpr_describe_location): Update.
2693
4b167ea1
SM
26942020-05-27 Simon Marchi <simon.marchi@efficios.com>
2695
2696 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2697 Remove.
2698 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2699 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2700 (dwarf2_compile_property_to_c): Update.
2701 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2702 use text offset from objfile.
2703 (locexpr_tracepoint_var_ref): Update.
2704 (locexpr_generate_c_location): Update.
2705 (loclist_describe_location): Update.
2706 (loclist_tracepoint_var_ref): Update.
2707 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2708 dwarf2_per_objfile parameter.
2709 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2710 use text offset from objfile.
2711 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2712
89b07335
SM
27132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2714
2715 * dwarf2/expr.h (struct dwarf_expr_context)
2716 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2717 <offset>: Remove.
2718 <per_objfile>: New member.
2719 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2720 dwarf2_per_objfile parameter. Don't set offset, set
2721 per_objfile.
2722 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2723 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2724 a dwarf2_per_objfile object instead of an offset.
2725 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2726 constructor.
2727 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2728 to dwarf2_expr_executor constructor. Don't set offset.
2729 (dwarf2_fetch_cfa_info): Update.
2730 (struct dwarf2_frame_cache) <text_offset>: Remove.
2731 <per_objfile>: New field.
2732 (dwarf2_frame_cache): Update.
2733 (dwarf2_frame_prev_register): Update.
2734 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2735 <dwarf_evaluate_loc_desc>: Add constructor.
2736 (dwarf2_evaluate_loc_desc_full): Update.
2737 (dwarf2_locexpr_baton_eval): Update.
2738 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2739 Add constructor.
2740 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2741
293e7e51
SM
27422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2743
2744 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2745 addr_sized_int_type>: Move to dwarf2_cu.
2746 <int_type>: Move to dwarf2_per_objfile.
2747 (struct dwarf2_per_objfile) <int_type>: Move here.
2748 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2749 addr_sized_int_type>: Move here.
2750 (read_func_scope): Update.
2751 (read_array_type): Update.
2752 (read_tag_string_type): Update.
2753 (attr_to_dynamic_prop): Update.
2754 (dwarf2_per_cu_data::int_type): Rename to...
2755 (dwarf2_per_objfile::int_type): ... this.
2756 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2757 (dwarf2_cu::addr_sized_int_type): ... this.
2758 (read_subrange_type): Update.
2759 (dwarf2_per_cu_data::addr_type): Rename to...
2760 (dwarf2_cu::addr_type): ... this.
2761 (set_die_type): Update.
2762
64874a40
SM
27632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2766 data through per_cu->cu.
2767
4ab09049
SM
27682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2769
2770 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2771 dwarf2_per_cu_data parameter fo dwarf2_cu.
2772 (lookup_dwo_type_unit): Likewise.
2773 (read_cutu_die_from_dwo): Likewise.
2774 (lookup_dwo_unit): Likewise.
2775 (open_and_init_dwo_file): Likewise.
2776 (lookup_dwo_cutu): Likewise.
2777 (lookup_dwo_comp_unit): Likewise.
2778 (lookup_dwo_type_unit): Likewise.
2779 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2780 (cutu_reader::cutu_reader): Update.
2781
47b14e86
SM
27822020-05-27 Simon Marchi <simon.marchi@efficios.com>
2783
2784 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2785 parameter.
2786 (process_full_type_unit): Likewise.
2787 (process_queue): Update.
2788
43182c09
SM
27892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * dwarf2/read.c (recursively_compute_inclusions): Add
2792 dwarf2_per_objfile parameter.
2793 (compute_compunit_symtab_includes): Likewise.
2794 (process_cu_includes): Update.
2795
7aa104c4
SM
27962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2799 parameter.
2800 (create_type_unit_group): Update.
2801 (process_psymtab_comp_unit_reader): Update.
2802 (build_type_psymtabs_reader): Update.
2803
e3beb21d
SM
28042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2807 object through m_this_cu->cu.
2808
d460f660
SM
28092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2810
2811 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2812 the info parameter.
2813 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2814
ab432490
SM
28152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2816
2817 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2818 per_objfile parameter.
2819 (load_full_type_unit): Add per_objfile parameter.
2820 (read_signatured_type): Likewise.
2821 (load_full_comp_unit): Likewise.
2822 (load_cu): Likewise.
2823 (dw2_do_instantiate_symtab): Likewise.
2824 (dw2_get_file_names): Likewise.
2825 (dw2_map_symtabs_matching_filename): Update.
2826 (dw_expand_symtabs_matching_file_matcher): Update.
2827 (dw2_map_symbol_filenames): Update.
2828 (process_psymtab_comp_unit): Add per_objfile parameter.
2829 (build_type_psymtabs_1): Update.
2830 (process_skeletonless_type_unit): Update.
2831 (dwarf2_build_psymtabs_hard): Update.
2832 (load_partial_comp_unit): Add per_objfile parameter.
2833 (scan_partial_symbols): Update.
2834 (load_full_comp_unit): Add per_objfile parameter.
2835 (process_imported_unit_die): Update.
2836 (create_cus_hash_table): Update.
2837 (find_partial_die): Update.
2838 (dwarf2_read_addr_index): Update.
2839 (follow_die_offset): Update.
2840 (dwarf2_fetch_die_loc_sect_off): Update.
2841 (dwarf2_fetch_constant_bytes): Update.
2842 (dwarf2_fetch_die_type_sect_off): Update.
2843 (follow_die_sig_1): Update.
2844 (load_full_type_unit): Add per_objfile parameter.
2845 (read_signatured_type): Likewise.
2846
313bad1b
SM
28472020-05-27 Simon Marchi <simon.marchi@efficios.com>
2848
2849 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2850 of objfile_name.
2851
c3699833
SM
28522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2855 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2856 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2857 field.
2858 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2859 (create_cus_from_index): Update.
2860 (dwarf2_read_gdb_index): Update.
2861 (create_cus_from_debug_names): Update.
2862 (dwarf2_read_debug_names): Update.
2863 (get_abbrev_section_for_cu): Update.
2864 (create_all_comp_units): Update.
2865 (read_attribute_value): Update.
2866 (get_debug_line_section): Update.
2867 * dwarf2/index-cache.c (index_cache::store): Update.
2868 * dwarf2/index-write.c (save_gdb_index_command): Update.
2869 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2870
1859c670
SM
28712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2874 member.
2875 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2876 dwarf2_per_cu_data::per_bfd.
2877 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2878 (create_type_unit_group): Likewise.
2879 (queue_comp_unit): Remove reference to
2880 per_cu->dwarf2_per_objfile.
2881 (maybe_queue_comp_unit): Likewise.
2882 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2883 (create_cus_hash_table): Assign new field.
2884
5e22e966
SM
28852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2886
2887 * dwarf2/read.c: Replace
2888 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2889 dwarf2_cu->per_objfile throughout.
2890
97a1449a
SM
28912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2894 parameter, don't use per_cu->dwarf2_per_objfile.
2895 (dw2_instantiate_symtab): Likewise.
2896 (dw2_find_last_source_symtab): Update.
2897 (dw2_map_expand_apply): Update.
2898 (dw2_lookup_symbol): Update.
2899 (dw2_expand_symtabs_for_function): Update.
2900 (dw2_expand_all_symtabs): Update.
2901 (dw2_expand_symtabs_with_fullname): Update.
2902 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2903 don't use per_cu->dwarf2_per_objfile.
2904 (dw2_expand_marked_cus): Update.
2905 (dw2_find_pc_sect_compunit_symtab): Update.
2906 (dw2_debug_names_lookup_symbol): Update.
2907 (dw2_debug_names_expand_symtabs_for_function): Update.
2908 (dw2_debug_names_map_matching_symbols): Update.
2909 (dwarf2_psymtab::expand_psymtab): Update.
2910
9e021579
SM
29112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2912
2913 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2914 <per_objfile>: New member.
2915 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2916 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2917 call to dwarf2_cu.
2918 (cutu_reader::cutu_reader): Update.
2919 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2920
ae090bdb
SM
29212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2924 struct dwarf2_per_objfile.
2925 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2926 dwarf2_per_bfd.
2927 * dwarf2/read.c (set_die_type): Update.
2928 (get_die_type_at_offset): Update.
2929
af758d11
SM
29302020-05-27 Tom Tromey <tom@tromey.com>
2931 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2934 method.
2935 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2936 get_symtab, set_symtab>: New methods.
2937 <m_symtabs>: New field.
2938 (struct dwarf2_psymtab): Derive from partial_symtab.
2939 <readin_p, get_compunit_symtab>: Declare methods.
2940 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2941 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2942 New methods.
2943 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2944 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2945 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2946 (dw2_symtab_iter_next, dw2_print_stats)
2947 (dw2_expand_symtabs_with_fullname)
2948 (dw2_expand_symtabs_matching_one)
2949 (dw_expand_symtabs_matching_file_matcher)
2950 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2951 (dw2_debug_names_iterator::next)
2952 (dw2_debug_names_map_matching_symbols)
2953 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2954 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2955 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2956 New methods.
2957 (get_compunit_symtab, process_full_comp_unit)
2958 (process_full_type_unit): Update.
2959 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2960
5989a64e
SM
29612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2964 then introduce a new dwarf2_per_objfile type.
2965 <read_line_string>: Move to the new dwarf2_per_objfile type.
2966 <objfile>: Likewise.
2967 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2968 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2969 dwarf2_per_objfile->per_bfd.
2970 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2971 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2972 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2973 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2974 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2975 (dwarf2_per_objfile::locate_sections): Rename to...
2976 (dwarf2_per_bfd::locate_sections): ... this.
2977 (dwarf2_per_objfile::get_cutu): Rename to...
2978 (dwarf2_per_bfd::get_cutu): ... this.
2979 (dwarf2_per_objfile::get_cu): Rename to...
2980 (dwarf2_per_bfd::get_cu): ... this.
2981 (dwarf2_per_objfile::get_tu): Rename to...
2982 (dwarf2_per_bfd::get_tu): ... this.
2983 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2984 (dwarf2_per_bfd::allocate_per_cu): ... this.
2985 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2986 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2987 (get_gdb_index_contents_ftype): Change parameter from
2988 dwarf2_per_objfile to dwarf2_per_bfd.
2989 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2990 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2991
a50264ba
TT
29922020-05-27 Tom Tromey <tom@tromey.com>
2993 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2996 (allocate_piece_closure): Set "per_objfile" member.
2997 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2998 (locexpr_describe_location, loclist_describe_location): Use new
2999 member.
3000 * dwarf2/read.c (read_call_site_scope)
3001 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3002 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3003 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3004 handle_data_member_location): Set per_objfile member.
3005 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3006 member.
3007 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3008
d3473f0c
TT
30092020-05-27 Tom Tromey <tom@tromey.com>
3010
3011 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3012 allocate_signatured_type>: Declare new methods.
3013 <m_num_psymtabs>: New member.
3014 (struct dwarf2_per_cu_data) <index>: New member.
3015 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3016 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3017 (create_cu_from_index_list): Use allocate_per_cu.
3018 (create_signatured_type_table_from_index)
3019 (create_signatured_type_table_from_debug_names)
3020 (create_debug_type_hash_table, add_type_unit)
3021 (read_comp_units_from_section): Use allocate_signatured_type.
3022
5717c425
TT
30232020-05-27 Tom Tromey <tom@tromey.com>
3024
3025 * psymtab.c (partial_map_expand_apply)
3026 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3027 (psym_lookup_global_symbol_language)
3028 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3029 (psym_print_stats, psym_expand_symtabs_for_function)
3030 (psym_map_symbol_filenames, psym_map_matching_symbols)
3031 (psym_expand_symtabs_matching)
3032 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3033 (maintenance_check_psymtabs): Update.
3034 * psympriv.h (struct partial_symtab) <readin_p,
3035 get_compunit_symtab>: Add objfile parameter.
3036 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3037 Likewise.
3038 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3039 get_compunit_symtab>: Likewise.
3040 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3041
45940949
TT
30422020-05-27 Tom Tromey <tom@tromey.com>
3043
3044 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3045 member.
3046 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3047 (create_cu_from_index_list)
3048 (create_signatured_type_table_from_index)
3049 (create_signatured_type_table_from_debug_names)
3050 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3051 (dwarf2_create_include_psymtab)
3052 (create_debug_type_hash_table, add_type_unit)
3053 (create_type_unit_group, read_comp_units_from_section)
3054 (dwarf2_compute_name, create_cus_hash_table)
3055 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3056 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3057 obstack.
3058 (dw2_get_real_path): Likewise. Change argument to
3059 dwarf2_per_objfile.
3060
f8c6d152
LM
30612020-05-27 Luis Machado <luis.machado@linaro.org>
3062
3063 PR tdep/26000
3064 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3065 for ldrd (immediate).
3066
e98d2e6d
PW
30672020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3068
3069 * command.h: Add comment giving the name of class_tui.
3070 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3071 create the fake command for the help for class_tui.
3072
53a47a3e
TT
30732020-05-26 Tom Tromey <tromey@adacore.com>
3074
3075 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3076 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3077 (val_atr): New function.
3078 (value_val_atr): Use it.
3079 * ada-valprint.c (print_optional_low_bound): Change low bound
3080 handling for enums.
3081 (val_print_packed_array_elements): Don't call discrete_position.
3082 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3083 discrete_position for enum types.
3084 * language.c (default_print_array_index): Change type.
3085 * language.h (struct language_defn) <la_print_array_index>: Add
3086 index_type parameter, change type of index_value.
3087 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3088 (default_print_array_index): Update.
3089 * valprint.c (maybe_print_array_index): Don't call
3090 value_from_longest. Update.
3091 (value_print_array_elements): Don't call discrete_position.
3092
0bc2354b
TT
30932020-05-26 Tom Tromey <tromey@adacore.com>
3094
3095 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3096 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3097
1218a4bf
CDA
30982020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3099
3100 PR gdb/13519
3101 * avr-tdep.c (avr_integer_to_address): Return data or code
3102 address accordingly to the second 'type' argument of the
3103 function.
3104
92651b1d
MW
31052020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3106
3107 * infcmd.c, inferior.h: (construct_inferior_arguments):
3108 Moved function from here to gdbsupport/common-inferior.{h,cc}
3109
0a4f5f8c
TT
31102020-05-23 Tom Tromey <tom@tromey.com>
3111
3112 Revert commit eca1f90c:
3113 * NEWS: Remove entry for completion styling.
3114 * completer.c (_rl_completion_prefix_display_length): Move
3115 declaration later.
3116 (gdb_fnprint): Revert.
3117 (gdb_display_match_list_1): Likewise.
3118 * cli/cli-style.c (completion_prefix_style)
3119 (completion_difference_style, completion_suffix_style): Remove.
3120 (_initialize_cli_style): Revert.
3121 * cli/cli-style.h (completion_prefix_style)
3122 (completion_difference_style, completion_suffix_style): Don't
3123 declare.
3124
e08bd6c5
PA
31252020-05-24 Pedro Alves <palves@redhat.com>
3126
3127 * symtab.c (completion_list_add_name): Return boolean indication
3128 of whether the symbol matched.
3129 (completion_list_add_symbol): Don't try to remove C++ aliases if
3130 the symbol didn't match in the first place.
3131 * symtab.h (completion_list_add_name): Return bool.
3132
ceacbf6e
SM
31332020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3134
3135 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3136 type::field.
3137
26f16254
JB
31382020-05-23 Joel Brobecker <brobecker@adacore.com>
3139
3140 GDB 9.2 released.
3141
eca1f90c
TT
31422020-05-23 Tom Tromey <tom@tromey.com>
3143
3144 * NEWS: Add entry for completion styling.
3145 * completer.c (_rl_completion_prefix_display_length): Move
3146 declaration earlier.
3147 (gdb_fnprint): Use completion_style.
3148 (gdb_display_match_list_1): Likewise.
3149 * cli/cli-style.c (completion_prefix_style)
3150 (completion_difference_style, completion_suffix_style): New
3151 globals.
3152 (_initialize_cli_style): Register new globals.
3153 * cli/cli-style.h (completion_prefix_style)
3154 (completion_difference_style, completion_suffix_style): Declare.
3155
51e2cfa2
PA
31562020-05-23 Pedro Alves <palves@redhat.com>
3157
3158 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3159 (parse_escape): Use ISDIGIT instead of isdigit.
3160 (puts_debug): Use gdb_isprint instead of isprint.
3161 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3162 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3163 ISSPACE instead of isspace.
3164 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3165 instead of isspace.
3166 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3167 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3168 instead of isxdigit and ISDIGIT instead of isdigit.
3169
80fc5e77
SM
31702020-05-22 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * gdbtypes.h (struct type) <field>: New method.
3173 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3174 or type::field.
3175
3cabb6b0
SM
31762020-05-22 Simon Marchi <simon.marchi@efficios.com>
3177
3178 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3179 (TYPE_FIELDS): Use type::fields. Change all call sites that
3180 modify the propery to use type::set_fields instead.
3181
1f704f76
SM
31822020-05-22 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3185 type::num_fields instead.
3186
5e33d5f4
SM
31872020-05-22 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3190 methods.
3191 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3192 that modify the number of fields to use type::set_num_fields
3193 instead.
3194
9392ebb3
TT
31952020-05-22 Tom Tromey <tromey@adacore.com>
3196
3197 * compile/compile-object-load.h (munmap_list_free): Don't
3198 declare.
3199
7c13f4e8
AB
32002020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * annotate.c (annotate_source_line): Update return type, add call
3203 to update current symtab and line.
3204 * annotate.h (annotate_source_line): Update return type, and
3205 extend header comment.
3206 * source.c (info_line_command): Check annotation_level before
3207 calling annotate_source_line.
3208 * stack.c (print_frame_info): If calling annotate_source_line
3209 returns true, then don't print any other source line information.
3210
aa370940
SM
32112020-05-21 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3214
84d53fa9
SM
32152020-05-21 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * coffread.c (patch_type): Remove NULL check before xfree.
3218 * corefile.c (set_gnutarget): Likewise.
3219 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3220 * exec.c (build_section_table): Likewise.
3221 * remote.c (remote_target::pass_signals): Likewise.
3222 * utils.c (n_spaces): Likewise.
3223 * cli/cli-script.c (document_command): Likewise.
3224 * i386-windows-tdep.c (core_process_module_section): Likewise.
3225 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3226
9d428aae
SM
32272020-05-20 Simon Marchi <simon.marchi@efficios.com>
3228
3229 * symfile.c (reread_symbols): Clear objfile's section_offsets
3230 vector and section indices, re-compute them by calling
3231 sym_offsets.
3232
250106a7
TT
32332020-05-20 Tom Tromey <tromey@adacore.com>
3234
3235 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3236 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3237
9a0bacfb
TV
32382020-05-20 Tom de Vries <tdevries@suse.de>
3239
3240 PR symtab/25833
3241 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3242
7b958a48
AM
32432020-05-20 Alan Modra <amodra@gmail.com>
3244
3245 PR 25993
3246 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3247 bfd_set_filename.
3248 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3249 passed to bfd_set_filename.
3250 * symfile-mem.c (add_vsyscall_page): Likewise for string
3251 passed to symbol_file_add_from_memory.
3252 (symbol_file_add_from_memory): Make name param a const char* and
3253 don't strdup.
3254
c7e97679
AM
32552020-05-20 Alan Modra <amodra@gmail.com>
3256
3257 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3258 rather than accessing bfd->filename directly.
3259 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3260 and use bfd_section_name.
3261 * dwarf2/frame.c (decode_frame_entry): Likewise.
3262 * exec.c (exec_set_section_address): Likewise.
3263 * solib-aix.c (solib_aix_bfd_open): Likewise.
3264 * stap-probe.c (get_stap_base_address): Likewise.
3265 * symfile.c (reread_symbols): Likewise.
3266
563c591b
TT
32672020-05-19 Tom Tromey <tromey@adacore.com>
3268
3269 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3270
f408d82c
SM
32712020-05-19 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3274
98c59b52
PA
32752020-05-19 Pedro Alves <palves@redhat.com>
3276
3277 * NEWS (set exec-file-mismatch): Adjust entry.
3278 * exec.c: Include "build-id.h".
3279 (validate_exec_file): Try to match build IDs instead of filenames.
3280 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3281 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3282 and pass down 'warn_if_slow'.
3283 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3284 gdb_bfd_open_closure to pass it down.
3285 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3286
4111f652
PA
32872020-05-19 Pedro Alves <palves@redhat.com>
3288
3289 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3290 * target.c (target_fileio_open_1): Rename to target_fileio_open
3291 and make extern. Use bool.
3292 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3293 (target_fileio_read_alloc_1): Adjust.
3294 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3295 (target_fileio_open_warn_if_slow): Delete declaration.
3296
ad80db5b
PA
32972020-05-19 Pedro Alves <palves@redhat.com>
3298
3299 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3300 Adjust all callers.
3301
1d6ce4d3
YS
33022020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3303
3304 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3305 whether disp is negative.
3306
9005fbbb
SM
33072020-05-19 Simon Marchi <simon.marchi@efficios.com>
3308
3309 * symfile.h (struct symfile_segment_data)
3310 <~symfile_segment_data>: Remove.
3311 <segment_info>: Change to std::vector.
3312 * symfile.c (default_symfile_segments): Update.
3313 * elfread.c (elf_symfile_segments): Update.
3314
68b888ff
SM
33152020-05-19 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3318 <segments>: New.
3319 <segment_bases, segment_sizes>: Remove.
3320 * symfile.c (default_symfile_segments): Update.
3321 * elfread.c (elf_symfile_segments): Update.
3322 * remote.c (remote_target::get_offsets): Update.
3323 * solib-target.c (solib_target_relocate_section_addresses):
3324 Update.
3325
62982abd
SM
33262020-05-19 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * symfile.h (struct symfile_segment_data): Initialize fields.
3329 <~symfile_segment_data>: Add.
3330 (symfile_segment_data_up): New.
3331 (struct sym_fns) <sym_segments>: Return a
3332 symfile_segment_data_up.
3333 (default_symfile_segments): Return a symfile_segment_data_up.
3334 (free_symfile_segment_data): Remove.
3335 (get_symfile_segment_data): Return a symfile_segment_data_up.
3336 * symfile.c (default_symfile_segments): Likewise.
3337 (get_symfile_segment_data): Likewise.
3338 (free_symfile_segment_data): Remove.
3339 (symfile_find_segment_sections): Update.
3340 * elfread.c (elf_symfile_segments): Return a
3341 symfile_segment_data_up.
3342 * remote.c (remote_target::get_offsets): Update.
3343 * solib-target.c (solib_target_relocate_section_addresses):
3344 Update.
3345 * symfile-debug.c (debug_sym_segments): Return a
3346 symfile_segment_data_up.
3347
7f204339
RO
33482020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3349
e52a0f1b
RO
3350 PR build/25981
3351 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3352 Hardcode register numbers.
3353
7f204339
RO
3354 PR build/25981
3355 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3356 procfs_find_LDT_entry): Remove.
3357 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3358 procfs_find_LDT_entry): Remove.
3359 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3360 Remove.
3361
7f32a4d5
PA
33622020-05-17 Pedro Alves <palves@redhat.com>
3363 Andrew Burgess <andrew.burgess@embecosm.com>
3364 Keno Fischer <keno@juliacomputing.com>
3365
3366 PR gdb/25741
3367 * breakpoint.c (build_target_condition_list): Update comments.
3368 (build_target_command_list): Update comments and skip matching
3369 locations.
3370 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3371 a separate function. Simplify "set breakpoint auto-hw off"
3372 handling.
3373 (insert_breakpoints): Update comment.
3374 (tracepoint_locations_match): New parameter. For breakpoints,
3375 compare location types too, if the caller wants to.
3376 (handle_automatic_hardware_breakpoints): New functions.
3377 (bp_location_is_less_than): Also sort by location type and
3378 hardware breakpoint length.
3379 (update_global_location_list): Handle "set breakpoint auto-hw on"
3380 here.
3381 (update_breakpoint_locations): Ask breakpoint_locations_match to
3382 ignore location types.
3383
7d93a1e0
SM
33842020-05-16 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3387 type::name instead.
3388
d0e39ea2
SM
33892020-05-16 Simon Marchi <simon.marchi@efficios.com>
3390
3391 * gdbtypes.h (struct type) <name, set_name>: New methods.
3392 (TYPE_CODE): Use type::name. Change all call sites used to set
3393 the name to use type::set_name instead.
3394
2dab0c7b
TT
33952020-05-16 Tom Tromey <tom@tromey.com>
3396
3397 * top.c (quit_force): Update.
3398 * infrun.c (handle_no_resumed): Update.
3399 * top.h (all_uis): New function.
3400 (ALL_UIS): Remove.
3401
59f7bd8d
SM
34022020-05-16 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3405
9bf058f0
PA
34062020-05-16 Pedro Alves <palves@redhat.com>
3407
3408 * ia64-linux-nat.c
3409 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3410 Declare method.
3411 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3412
8f86ae1a
SM
34132020-05-15 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3416 (sparc64_adi_info): Likewise.
3417
d6bc0792
TT
34182020-05-15 Tom Tromey <tom@tromey.com>
3419
3420 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3421 block_objfile.
3422 (lookup_objfile_from_block): Remove.
3423 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3424 (lookup_global_symbol): Use block_objfile.
3425 * symtab.h (lookup_objfile_from_block): Don't declare.
3426 * printcmd.c (clear_dangling_display_expressions): Use
3427 block_objfile.
3428 * parse.c (operator_check_standard): Use block_objfile.
3429
8c14c3a3
TT
34302020-05-15 Tom Tromey <tom@tromey.com>
3431
3432 * language.c (language_alloc_type_symbol): Set
3433 SYMBOL_SECTION.
3434 * symtab.c (initialize_objfile_symbol): Remove.
3435 (allocate_symbol): Remove.
3436 (allocate_template_symbol): Remove.
3437 * dwarf2/read.c (fixup_go_packaging): Use "new".
3438 (new_symbol): Use "new".
3439 (read_variable): Don't call initialize_objfile_symbol. Use
3440 "new".
3441 (read_func_scope): Use "new".
3442 * xcoffread.c (process_xcoff_symbol): Don't call
3443 initialize_objfile_symbol.
3444 (SYMBOL_DUP): Remove.
3445 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3446 "new".
3447 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3448 (allocate_template_symbol): Don't declare.
3449 (struct symbol): Add copy constructor. Change defaults.
3450 * jit.c (finalize_symtab): Use "new".
3451 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3452 Use "new".
3453 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3454 (common_block_end): Use "new".
3455 * mdebugread.c (parse_symbol): Use "new".
3456 (new_symbol): Likewise.
3457
5b4a1a8d
PW
34582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3459
3460 * NEWS: Mention changes to help and apropos.
3461
57b4f16e
PW
34622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3463
3464 * command.h (enum command_class): Improve comments, document
3465 that class_alias is for user-defined aliases, give the class
3466 name for each class, remove unused class_xdb.
3467 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3468 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3469 by a precise class.
3470 * infcmd.c (_initialize_infcmd): Likewise.
3471 * reverse.c (_initialize_reverse): Likewise.
3472 * stack.c (_initialize_stack): Likewise.
3473 * symfile.c (_initialize_symfile): Likewise.
3474 * tracepoint.c (_initialize_tracepoint): Likewise.
3475
7c05caf7
PW
34762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3477
3478 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3479 when their aliased command is traversed.
3480 (help_cmd): Add fput_command_names_styled call to
3481 output command name and aliases when command has an alias.
3482
3b3aaacb
PW
34832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3484
3485 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3486 * cli/cli-decode.c (help_cmd_list): Declare as static,
3487 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3488 a command together with the command.
3489 (fput_command_name_styled, fput_command_names_styled): New functions.
3490 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3491 fput_command_name_styled.
3492 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3493 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3494
7aa1b46f
PW
34952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3496
3497 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3498 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3499 * command.h (cmd_show_list): Likewise.
3500 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3501 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3502
89bcba74
PW
35032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3504
3505 * unittests/command-def-selftests.c (traverse_command_structure):
3506 Verify all commands of a list have the same prefix command and
3507 that only the top cmdlist commands have a null prefix.
3508
3f4d92eb
PW
35092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3510
3511 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3512 as prefix, not one of its aliases.
3513 (set_cmd_prefix): Remove.
3514 (do_add_cmd): Centralize the setting of the prefix of a command, when
3515 command is defined after its full chain of prefix commands.
3516 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3517 (add_setshow_cmd_full): Likewise.
3518 (update_prefix_field_of_prefixed_commands): New function.
3519 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3520 update_prefix_field_of_prefixed_commands.
3521 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3522 addresses of remote_set_cmdlist and remote_show_cmdlist given
3523 as argument, not the address of an argument.
3524 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3525 * gdb/remote.c (_initialize_remote): Likewise.
3526
0605465f
PW
35272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3528
3529 * cli/cli-cmds.c (alias_command): Check for an existing alias
3530 using lookup_cmd_composition, as valid_command_p is too strict
3531 and forbids aliases that are the prefix of an existing alias
3532 or command.
3533 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3534 command is properly recognised as a valid command.
3535
58e6ac70
PW
35362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3537
3538 * unittests/help-doc-selftests.c: Rename to
3539 unittests/command-def-selftests.c
3540 * unittests/command-def-selftests.c (help_doc_tests): Update some
3541 comments.
3542 (command_structure_tests, traverse_command_structure): New namespace
3543 and function.
3544 (command_structure_invariants_tests): New function.
3545 (_initialize_command_def_selftests) Renamed from
3546 _initialize_help_doc_selftests, register command_structure_invariants
3547 selftest.
3548
a7b9ceb8
PW
35492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3550
3551 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3552 an alias of 'show'.
3553
b2188a06
JB
35542020-05-15 Joel Brobecker <brobecker@adacore.com>
3555
3556 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3557 ada_is_fixed_point_type. Update all callers.
3558 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3559 all callers.
3560 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3561 Update all callers.
3562 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3563 print_fixed_point_type. Update all callers.
3564 * ada-valprint.c (ada_value_print_num): Replace call to
3565 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3566
a51951c2
KB
35672020-05-14 Kevin Buettner <kevinb@redhat.com>
3568
3569 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3570 processors.
3571 (cpu_supports_bts): Add CV_AMD case.
3572
29d6859f
LM
35732020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3574 Simon Marchi <simon.marchi@efficios.com>
3575
3576 * infrun.c (stop_all_threads): Collect multiple wait events at
3577 each pass.
3578
78134374
SM
35792020-05-14 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3582 type::code instead.
3583
67607e24
SM
35842020-05-14 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * gdbtypes.h (struct type) <code, set_code>: New methods.
3587 (TYPE_CODE): Use type::code. Change all call sites used to set
3588 the code to use type::set_code instead.
3589
a05575d3
TBA
35902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3591 Tom de Vries <tdevries@suse.de>
3592 Pedro Alves <palves@redhat.com>
3593
3594 PR threads/25478
3595 * infrun.c (stop_all_threads): Do NOT ignore
3596 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3597 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3598 received.
3599 (handle_no_resumed): Remove code handling a live inferior with no
3600 threads.
3601 * remote.c (has_single_non_exited_thread): New.
3602 (remote_target::update_thread_list): Do not delete a thread if is
3603 the last thread of the process.
3604 * thread.c (thread_select): Call delete_exited_threads instead of
3605 prune_threads.
3606
6ad82919
TBA
36072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3608
3609 * infrun.c (stop_all_threads): Enable/disable thread events of all
3610 targets. Move a debug message denoting the end of the function
3611 into the SCOPED_EXIT block.
3612
d890404b
TBA
36132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3614
3615 * process-stratum-target.h: Include <set>.
3616 (all_non_exited_process_targets, switch_to_target_no_thread): New
3617 function declarations.
3618 * process-stratum-target.c (all_non_exited_process_targets)
3619 (switch_to_target_no_thread): New function implementations.
3620
293b3ebc
TBA
36212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3622
3623 * infrun.c (handle_inferior_event): Extract out a piece of code
3624 into...
3625 (mark_non_executing_threads): ...this new function.
3626
7ca9b62a
TBA
36272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3628
3629 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3630 use.
3631
fc75c28b
TBA
36322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3633
3634 * regcache.c (regcache_read_pc_protected): New function
3635 implementation that returns 0 if the PC cannot read via
3636 'regcache_read_pc'.
3637 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3638 instead of 'regcache_read_pc'.
3639 (keep_going_pass_signal): Ditto.
3640
a89febbd
TT
36412020-05-13 Tom Tromey <tromey@adacore.com>
3642
3643 * ada-lang.c (align_value): Remove.
3644 (ada_template_to_fixed_record_type_1): Use align_up.
3645
f7e23710
TBA
36462020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647
3648 * async-event.c: Update the copyright year.
3649 * async-event.h: Update the copyright year.
3650
02ff80c2
SM
36512020-05-12 Simon Marchi <simon.marchi@efficios.com>
3652
3653 * objfiles.h (is_addr_in_objfile,
3654 shared_objfile_contains_address_p): Return bool.
3655 * objfile.c (is_addr_in_objfile,
3656 shared_objfile_contains_address_p): Return bool.
3657
4fd6c7e8
TT
36582020-05-11 Tom Tromey <tromey@adacore.com>
3659
3660 * cli/cli-cmds.c (info_command): Restore.
3661 (_initialize_cli_cmds): Use add_prefix_command for "info".
3662 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3663
5eb68a39
TT
36642020-05-11 Tom Tromey <tromey@adacore.com>
3665
3666 * ada-lang.c (ada_value_primitive_field): Now public.
3667 * ada-lang.h (ada_value_primitive_field): Declare.
3668 * ada-valprint.c (print_field_values): Use
3669 ada_value_primitive_field for wrapper fields.
3670
7666722f
TV
36712020-05-11 Tom de Vries <tdevries@suse.de>
3672
3673 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3674 MODULE_DOMAIN.
3675
3ee6bb11
TV
36762020-05-11 Tom de Vries <tdevries@suse.de>
3677
3678 PR symtab/25941
3679 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3680 with length 0, if not gdb-produced.
3681 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3682
43434996
TV
36832020-05-09 Tom de Vries <tdevries@suse.de>
3684
3685 PR gdb/25955
3686 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3687 calculation.
3688
2f78cffc
TT
36892020-05-09 Tom Tromey <tom@tromey.com>
3690
3691 * top.c (server_command): Now bool.
3692 * top.h (server_command): Now bool.
3693
4f7bc5ed
TT
36942020-05-08 Tom Tromey <tromey@adacore.com>
3695
3696 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3697 already being processed.
3698
8be4b118
TT
36992020-05-08 Tom Tromey <tom@tromey.com>
3700
3701 * printcmd.c (struct display) <next>: Remove.
3702 <display>: New constructor.
3703 <exp_string>: Now a std::string.
3704 <enabled_p>: Now a bool.
3705 (display_number): Move definition earlier.
3706 (displays): Rename from display_chain. Now a std::vector.
3707 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3708 (display_command): Update.
3709 (do_one_display, disable_display)
3710 (enable_disable_display_command, do_enable_disable_display):
3711 Update.
3712 (free_display): Remove.
3713 (clear_displays): Rewrite.
3714 (delete_display): Update.
3715 (map_display_numbers): Use function_view. Remove "data"
3716 parameter. Update.
3717 (do_delete_display): Remove.
3718 (undisplay_command): Update.
3719 (do_one_display, do_displays, disable_display)
3720 (info_display_command): Update.
3721 (do_enable_disable_display): Remove.
3722 (enable_disable_display_command)
3723 (clear_dangling_display_expressions): Update.
3724
94c93c35
TT
37252020-05-08 Tom Tromey <tom@tromey.com>
3726
3727 * symtab.c (set_symbol_cache_size)
3728 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3729 (maintenance_print_symbol_cache_statistics): Update.
3730 * symmisc.c (print_symbol_bcache_statistics)
3731 (print_objfile_statistics, maintenance_print_objfiles)
3732 (maintenance_info_symtabs, maintenance_check_symtabs)
3733 (maintenance_expand_symtabs, maintenance_info_line_tables):
3734 Update.
3735 * symfile-debug.c (set_debug_symfile): Update.
3736 * source.c (forget_cached_source_info): Update.
3737 * python/python.c (gdbpy_progspaces): Update.
3738 * psymtab.c (maintenance_info_psymtabs): Update.
3739 * probe.c (parse_probes): Update.
3740 * linespec.c (iterate_over_all_matching_symtabs)
3741 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3742 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3743 * exec.c (exec_target::close): Update.
3744 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3745 * breakpoint.c (print_one_breakpoint_location)
3746 (create_longjmp_master_breakpoint)
3747 (create_std_terminate_master_breakpoint): Update.
3748 * progspace.c (program_spaces): Now a std::vector.
3749 (maybe_new_address_space): Update.
3750 (add_program_space): Remove.
3751 (program_space::program_space): Update.
3752 (remove_program_space): Update.
3753 (number_of_program_spaces): Remove.
3754 (print_program_space, update_address_spaces): Update.
3755 * progspace.h (program_spaces): Change type.
3756 (ALL_PSPACES): Remove.
3757 (number_of_program_spaces): Don't declare.
3758 (struct program_space) <next>: Remove.
3759
a1fd1ac9
TT
37602020-05-08 Tom Tromey <tom@tromey.com>
3761
3762 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3763 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3764 (enable_break): Update.
3765 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3766 (frv_fdpic_find_canonical_descriptor): Update.
3767 (frv_fetch_objfile_link_map): Update.
3768 * progspace.c (program_space::free_all_objfiles): Update.
3769 (program_space::solibs): New method.
3770 * progspace.h (struct program_space) <solibs>: New method.
3771 * solist.h (master_so_list): Don't declare.
3772 (ALL_SO_LIBS): Remove.
3773 * solib.h (so_list_head): Remove.
3774 (update_solib_list): Update comment.
3775 * solib.c (master_so_list): Remove.
3776 (solib_used, update_solib_list, solib_add)
3777 (info_sharedlibrary_command, clear_solib)
3778 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3779
38eae084
TT
37802020-05-08 Tom Tromey <tom@tromey.com>
3781
3782 * extension.c (extension_languages): Now a std::array.
3783 (ALL_EXTENSION_LANGUAGES): Remove.
3784 (get_ext_lang_defn, get_ext_lang_of_file)
3785 (eval_ext_lang_from_control_command): Update.
3786 (finish_ext_lang_initialization)
3787 (auto_load_ext_lang_scripts_for_objfile)
3788 (ext_lang_type_printers::ext_lang_type_printers)
3789 (apply_ext_lang_type_printers)
3790 (ext_lang_type_printers::~ext_lang_type_printers)
3791 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3792 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3793 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3794 (get_matching_xmethod_workers, ext_lang_colorize)
3795 (ext_lang_before_prompt): Update.
3796 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3797
596dc4ad
TT
37982020-05-08 Tom Tromey <tom@tromey.com>
3799
3800 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3801 overload.
3802 <swap_string, m_string>: Remove.
3803 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3804 Update.
3805 * stabsread.c (define_symbol, read_type): Update.
3806 * linespec.c (find_linespec_symbols): Update.
3807 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3808 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3809 * dbxread.c (read_dbx_symtab): Update.
3810 * cp-support.h (cp_canonicalize_string_full)
3811 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3812 Return unique_xmalloc_ptr.
3813 * cp-support.c (inspect_type): Update.
3814 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3815 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3816 Likewise.
3817 * c-typeprint.c (print_name_maybe_canonical): Update.
3818 * break-catch-throw.c (check_status_exception_catchpoint):
3819 Update.
3820
bf4cb9be
TV
38212020-05-08 Tom de Vries <tdevries@suse.de>
3822
3823 * infrun.c (follow_fork): Copy current_line and current_symtab to
3824 child thread.
3825
a1b68f28
SM
38262020-05-07 Simon Marchi <simon.marchi@efficios.com>
3827
3828 * async-event.c (struct async_signal_handler, struct
3829 async_event_handler): Reformat, remove typedef.
3830
98d48915
SM
38312020-05-07 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3834 access thistype->main_type->dyn_prop_list directly.
3835
7aa91313
SM
38362020-05-07 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3839 (remove_dyn_prop): Remove. Update all users to use
3840 type::remove_dyn_prop.
3841 * gdbtypes.c (remove_dyn_prop): Rename to...
3842 (type::remove_dyn_prop): ... this.
3843
5c54719c
SM
38442020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3845
3846 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3847 (add_dyn_prop): Remove. Update all users to use
3848 type::add_dyn_prop.
3849 * gdbtypes.c (add_dyn_prop): Rename to...
3850 (type::add_dyn_prop): ... this.
3851
24e99c6c
SM
38522020-05-07 Simon Marchi <simon.marchi@efficios.com>
3853
3854 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3855 (get_dyn_prop): Remove. Update all users to use
3856 type::dyn_prop.
3857 * gdbtypes.c (get_dyn_prop): Rename to...
3858 (type::dyn_prop): ... this.
3859
0d4bf016
SM
38602020-05-06 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3863
ac4a4f1c
SM
38642020-05-06 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3867 instruction, skip it if it's there.
3868
a3bbacc1
SM
38692020-05-05 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3872
c3236f84
SM
38732020-05-04 Simon Marchi <simon.marchi@efficios.com>
3874
3875 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3876 * gdbtypes.c (recursive_dump_type): Remove use of
3877 TYPE_INCOMPLETE.
3878
3b6acaee
TT
38792020-05-03 Tom Tromey <tom@tromey.com>
3880
3881 * breakpoint.c (catch_command, tcatch_command): Remove.
3882 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3883 add_show_prefix_cmd.
3884 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3885 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3886 Remove.
3887 (add_internal_problem_command): Use add_basic_prefix_cmd,
3888 add_show_prefix_cmd.
3889 * mips-tdep.c (set_mipsfpu_command): Remove.
3890 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3891 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3892 (_initialize_index_cache): Use add_basic_prefix_cmd.
3893 * memattr.c (dummy_cmd): Remove.
3894 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3895 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3896 (_initialize_tui_win): Use add_basic_prefix_cmd,
3897 add_show_prefix_cmd.
3898 * cli/cli-logging.c (set_logging_command): Remove.
3899 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3900 add_show_prefix_cmd.
3901 (show_logging_command): Remove.
3902 * target.c (target_command): Remove.
3903 (add_target): Use add_basic_prefix_cmd.
3904
a51119cd
HD
39052020-05-02 Hannes Domani <ssbssa@yahoo.de>
3906
3907 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3908
652fc23a 39092020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3910
652fc23a
PW
3911 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3912 info_command.
3913
117539e6
KR
39142020-04-30 Kamil Rytarowski <n54@gmx.com>
3915
3916 * nbsd-nat.c (nbsd_enable_proc_events)
3917 (nbsd_nat_target::post_startup_inferior): Add.
3918 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3919 (nbsd_nat_target::update_thread_list): Rewrite.
3920 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3921 "PTRACE_LWP_CREATE".
3922 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3923
102e38eb 39242020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3925
102e38eb
PW
3926 * stack.c (_initialize_stack): Remove duplicated creation
3927 of "frame" command and "f" alias.
3928
ee9d1e5f
HD
39292020-04-30 Hannes Domani <ssbssa@yahoo.de>
3930
3931 PR gdb/18706
3932 * gdbtypes.c (check_typedef): Calculate size of array of
3933 stubbed type.
3934
627c7fb8
HD
39352020-04-30 Hannes Domani <ssbssa@yahoo.de>
3936
3937 PR gdb/15559
3938 * i386-tdep.c (i386_push_dummy_call): Call
3939 i386_thiscall_push_dummy_call.
3940 (i386_thiscall_push_dummy_call): New function.
3941 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3942 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3943 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3944
ffc2844e
SM
39452020-04-29 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * gdbarch.sh (do_read): Add shellcheck disable directive for
3948 warning SC2162.
3949
1207375d
SM
39502020-04-29 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3953 "referenced but not assigned" warning.
3954
9fdb2916
SM
39552020-04-29 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * gdbarch.sh: Remove code that sets fallbackdefault.
3958
759cea5e
SM
39592020-04-29 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * gdbarch.sh: Use shell operators && and || instead of
3962 -a and -o.
3963
cb02ab24
SM
39642020-04-29 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * gdbarch.sh: Use $(...) instead of `...`.
3967
a6fc5ffc
SM
39682020-04-29 Simon Marchi <simon.marchi@efficios.com>
3969
3970 * gdbarch.sh: Use double quotes around variables.
3971
8d113d13
SM
39722020-04-29 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * gdbarch.sh: Use %s with printf, instead of variables in the
3975 format string.
3976
ed6acedd
TT
39772020-04-29 Tom Tromey <tromey@adacore.com>
3978
3979 PR ada/25875:
3980 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3981 type fields here.
3982 (read_enumeration_type): Call
3983 update_enumeration_type_from_children later. Update comments.
3984 (process_enumeration_scope): Don't create type fields.
3985
b68b1b58
KR
39862020-04-29 Kamil Rytarowski <n54@gmx.com>
3987
3988 * nbsd-tdep.c: Include "xml-syscall.h".
3989 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3990
f94b2e03
KR
39912020-04-29 Kamil Rytarowski <n54@gmx.com>
3992
3993 * nbsd-nat.c: Include "sys/wait.h".
3994 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3995 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3996 (nbsd_nat_target::remove_exec_catchpoint)
3997 (nbsd_nat_target::set_syscall_catchpoint): Add.
3998 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3999 (nbsd_nat_target::insert_exec_catchpoint)
4000 (nbsd_nat_target::remove_exec_catchpoint)
4001 (nbsd_nat_target::set_syscall_catchpoint): Add.
4002 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4003 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4004 `nbsd_get_syscall_number'.
4005
fc49bc72
TT
40062020-04-29 Tom Tromey <tom@tromey.com>
4007
4008 * stack.c (print_block_frame_labels): Remove.
4009
d642b692
HD
40102020-04-29 Hannes Domani <ssbssa@yahoo.de>
4011
4012 PR gdb/17320
4013 * ada-valprint.c (val_print_packed_array_elements): Move array
4014 end bracket to new line.
4015 (ada_val_print_string): Remove extra spaces before first array
4016 element.
4017 * c-valprint.c (c_value_print_array): Likewise.
4018 * m2-valprint.c (m2_print_array_contents): Likewise.
4019 (m2_value_print_inner): Likewise.
4020 * p-valprint.c (pascal_value_print_inner): Likewise.
4021 * valprint.c (generic_val_print_array): Likewise.
4022 (value_print_array_elements): Move first array element and array
4023 end bracket to new line.
4024
ea90f227
TV
40252020-04-29 Tom de Vries <tdevries@suse.de>
4026
4027 PR symtab/25889
4028 * linespec.c (find_method): Fix ix calculation.
4029
4498ef4f
KR
40302020-04-28 Kamil Rytarowski <n54@gmx.com>
4031
4032 * syscalls/update-netbsd.sh: New file.
4033 * syscalls/netbsd.xml: Regenerate.
4034 * data-directory/Makefile.in: Register `netbsd.xml' in
4035 `SYSCALLS_FILES'.
4036
a55e30b5
SM
40372020-04-28 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * syscalls/update-freebsd.sh: Add double quotes.
4040
2b2fbab8
TT
40412020-04-28 Tom Tromey <tom@tromey.com>
4042
4043 * NEWS: Update.
4044 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4045 (cmdpy_init): Allow class_tui.
4046
a65189c9
TV
40472020-04-28 Mark Williams <mark@myosotissp.com>
4048
4049 PR gdb/24480
4050 * dwarf2read.c: Add missing assingments to list_in_scope when
4051 start_symtab was already called.
4052
1b95cdb7
SM
40532020-04-28 Simon Marchi <simon.marchi@efficios.com>
4054
4055 PR gdb/25881
4056 * dwarf2/read.c (offset_map_type): Use
4057 gdb:hash_enum<sect_offset> as hash function.
4058
15cd93d0
TV
40592020-04-28 Tom de Vries <tdevries@suse.de>
4060
4061 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4062 with DW_AT_signature.
4063
1eb39914
SM
40642020-04-27 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * configure.ac: Remove check for fs_base/gs_base in
4067 user_regs_struct.
4068 * configure: Re-generate.
4069 * config.in: Re-generate.
4070 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4071 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4072 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4073
991a3e2e
LM
40742020-04-27 Luis Machado <luis.machado@linaro.org>
4075
4076 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4077 problematic inline frame unwinding situation.
4078 * frame.c (frame_id_computed_p): New function.
4079 * frame.h (frame_id_computed_p): New prototype.
4080
361ba0e8
TT
40812020-04-26 Tom Tromey <tom@tromey.com>
4082
4083 * command.h (enum command_class) <class_pseudo>: Remove.
4084
bc3609fd
PW
40852020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4086
4087 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4088 and whitespace.
4089
b9771db7
KR
40902020-04-25 Kamil Rytarowski <n54@gmx.com>
4091
ec16513e
SM
4092 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4093 `PT_GET_PROCESS_STATE' block.
b9771db7 4094
7151c1af
TT
40952020-04-24 Tom Tromey <tom@tromey.com>
4096
4097 * symtab.h (symbol_get_demangled_name): Don't declare.
4098 * symtab.c (symbol_get_demangled_name): Remove.
4099 (general_symbol_info::natural_name)
4100 (general_symbol_info::demangled_name): Update.
4101
906bb4c5
TT
41022020-04-24 Tom Tromey <tom@tromey.com>
4103
4104 PR rust/25025:
4105 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4106
bcfe6157
TT
41072020-04-24 Tom Tromey <tom@tromey.com>
4108
4109 PR symtab/12707:
4110 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4111 exists.
4112 (new_symbol): Likewise.
4113 * compile/compile-object-load.c (get_out_value_type): Use
4114 symbol_matches_search_name.
4115
f049a313
TT
41162020-04-24 Tom Tromey <tom@tromey.com>
4117
4118 * dwarf2/read.c (add_partial_symbol): Do not call
4119 compute_and_set_names.
4120
76e288d1
TT
41212020-04-24 Tom Tromey <tom@tromey.com>
4122
4123 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4124 overload.
4125
2467f4f6
TT
41262020-04-24 Tom Tromey <tom@tromey.com>
4127
4128 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4129 (add_psymbol_to_list): New overload. Make old overload call new
4130 one.
4131 * psympriv.h (add_psymbol_to_list): New overload.
4132
e61108c9
TT
41332020-04-24 Tom Tromey <tom@tromey.com>
4134
4135 * dwarf2/read.c (partial_die_info::read) <case
4136 DW_AT_linkage_name>: Use value_as_string.
4137 (dwarf2_string_attr): Use value_as_string.
4138 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4139 method.
4140 * dwarf2/attribute.c (attribute::value_as_string): New method.
4141
8c87a452
TT
41422020-04-24 Tom Tromey <tom@tromey.com>
4143
4144 * symtab.c (general_symbol_info::natural_name)
4145 (general_symbol_info::demangled_name): Check for language_rust.
4146
787de330
TT
41472020-04-24 Tom Tromey <tom@tromey.com>
4148
4149 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4150 (dwarf2_physname): ... from here.
4151 (partial_die_info::read): Add Rust "{" hack.
4152
ff985671
TT
41532020-04-24 Tom Tromey <tom@tromey.com>
4154
4155 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4156 method.
4157 (symbol_set_demangled_name): Don't declare.
4158 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4159 symbol_set_demangled_name.
4160 (general_symbol_info::set_language)
4161 (general_symbol_info::compute_and_set_names): Update.
4162 * minsyms.c (minimal_symbol_reader::install): Update.
4163 * dwarf2/read.c (new_symbol): Update.
4164
1acda803
TT
41652020-04-24 Tom Tromey <tromey@adacore.com>
4166
4167 PR python/23662:
4168 * python/py-type.c (convert_field): Handle
4169 FIELD_LOC_KIND_DWARF_BLOCK.
4170 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4171 (typy_get_dynamic): Nw function.
4172 (type_object_getset): Add "dynamic".
4173 * NEWS: Add entry.
4174
d656f129
TT
41752020-04-24 Tom Tromey <tromey@adacore.com>
4176
4177 * ada-typeprint.c (print_choices, print_variant_part)
4178 (print_record_field_types_dynamic): New functions.
4179 (print_record_field_types): Use print_record_field_types_dynamic.
4180
7d79de9a
TT
41812020-04-24 Tom Tromey <tromey@adacore.com>
4182
4183 * dwarf2/read.c (handle_data_member_location): New overload.
4184 (dwarf2_add_field): Use it.
4185 (decode_locdesc): Add "computed" parameter. Update comment.
4186 * gdbtypes.c (is_dynamic_type_internal): Also look for
4187 FIELD_LOC_KIND_DWARF_BLOCK.
4188 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4189 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4190 virtual base classes.
4191 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4192 FIELD_LOC_KIND_DWARF_BLOCK.
4193
f8e89861
TT
41942020-04-24 Tom Tromey <tromey@adacore.com>
4195
4196 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4197 * gdbtypes.c (is_dynamic_type_internal): Check
4198 TYPE_HAS_DYNAMIC_LENGTH.
4199 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4200 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4201 New macros.
4202 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4203 constant.
4204
9c6a1327
TT
42052020-04-24 Tom Tromey <tromey@adacore.com>
4206
4207 * dwarf2/read.c (struct variant_field): Rewrite.
4208 (struct variant_part_builder): New.
4209 (struct nextfield): Remove "variant" field. Add "offset".
4210 (struct field_info): Add "current_variant_part" and
4211 "variant_parts".
4212 (alloc_discriminant_info): Remove.
4213 (alloc_rust_variant): New function.
4214 (quirk_rust_enum): Update.
4215 (dwarf2_add_field): Set "offset" member. Don't handle
4216 DW_TAG_variant_part.
4217 (offset_map_type): New typedef.
4218 (convert_variant_range, create_one_variant)
4219 (create_one_variant_part, create_variant_parts)
4220 (add_variant_property): New functions.
4221 (dwarf2_attach_fields_to_type): Call add_variant_property.
4222 (read_structure_type): Don't handle DW_TAG_variant_part.
4223 (handle_variant_part, handle_variant): New functions.
4224 (handle_struct_member_die): Use them.
4225 (process_structure_scope): Don't handle variant parts.
4226 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4227 (struct discriminant_info): Remove.
4228 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4229 (struct main_type) <flag_discriminated_union>: Remove.
4230 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4231 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4232 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4233 Update.
4234 * valops.c (value_union_variant): Remove.
4235 * value.h (value_union_variant): Don't declare.
4236
b249d2c2
TT
42372020-04-24 Tom Tromey <tromey@adacore.com>
4238
4239 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4240 (ada_value_primitive_packed_val): Update.
4241 * ada-valprint.c (ada_value_print_1): Update.
4242 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4243 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4244 just an address. Use evaluate_for_locexpr_baton.
4245 (dwarf2_evaluate_property): Update.
4246 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4247 array_view.
4248 * findvar.c (default_read_var_value): Update.
4249 * gdbtypes.c (compute_variant_fields_inner)
4250 (resolve_dynamic_type_internal): Update.
4251 (resolve_dynamic_type): Change type of valaddr parameter.
4252 * gdbtypes.h (resolve_dynamic_type): Update.
4253 * valarith.c (value_subscripted_rvalue): Update.
4254 * value.c (value_from_contents_and_address): Update.
4255
61122aa9
TT
42562020-04-24 Tom Tromey <tromey@adacore.com>
4257
4258 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4259 "push_initial_value" parameter.
4260 (dwarf2_evaluate_property): Likewise.
4261 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4262
ef83a141
TT
42632020-04-24 Tom Tromey <tromey@adacore.com>
4264
4265 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4266 (variant::matches, compute_variant_fields_recurse)
4267 (compute_variant_fields_inner, compute_variant_fields): New
4268 functions.
4269 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4270 Use resolved_type after type is made.
4271 (operator==): Add new cases.
4272 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4273 (struct discriminant_range, struct variant, struct variant_part):
4274 New.
4275 (union dynamic_prop_data) <variant_parts, original_type>: New
4276 members.
4277 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4278 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4279 constants.
4280 * value.c (unpack_bits_as_long): Now public.
4281 * value.h (unpack_bits_as_long): Declare.
4282
675127ec
TT
42832020-04-24 Tom Tromey <tromey@adacore.com>
4284
4285 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4286 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4287
9852ceef
HD
42882020-04-24 Hannes Domani <ssbssa@yahoo.de>
4289
4290 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4291
7632c6ce
KR
42922020-04-24 Kamil Rytarowski <n54@gmx.com>
4293
4294 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4295 (remove_fork_catchpoint, post_startup_inferior)
4296 (post_attach): Move...
4297 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4298 (remove_fork_catchpoint, post_startup_inferior)
4299 (post_attach): ...here.
4300 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4301 (remove_fork_catchpoint, post_startup_inferior)
4302 (post_attach): Move...
4303 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4304 (remove_fork_catchpoint, post_startup_inferior)
4305 (post_attach): ...here.
4306
7be2bb4f
TT
43072020-04-24 Tom Tromey <tromey@adacore.com>
4308
4309 * nat/windows-nat.h (struct windows_thread_info)
4310 <pc_adjusted>: New member.
4311 * windows-nat.c (windows_fetch_one_register): Check
4312 pc_adjusted.
4313 (windows_nat_target::get_windows_debug_event)
4314 (windows_nat_target::wait): Set pc_adjusted.
4315
f80cb3b4
TV
43162020-04-24 Tom de Vries <tdevries@suse.de>
4317
4318 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4319 Run gdb-add-index inside temp dir.
4320
29514b87
TT
43212020-04-23 Tom Tromey <tromey@adacore.com>
4322
4323 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4324 in loop.
4325
5939967b
LM
43262020-04-23 Luis Machado <luis.machado@linaro.org>
4327
4328 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4329 get_frame_register instead of gdbarch_unwind_pc.
4330
70bc38f5
TV
43312020-04-23 Tom de Vries <tdevries@suse.de>
4332
4333 * symtab.c (lookup_global_symbol): Prefer def over decl.
4334
de82891c
TV
43352020-04-23 Tom de Vries <tdevries@suse.de>
4336
4337 PR symtab/25807
4338 * block.c (best_symbol, better_symbol): Promote to external.
4339 * block.h (best_symbol, better_symbol): Declare.
4340 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4341 decl.
4342
ecc6c606
TT
43432020-04-23 Tom Tromey <tromey@adacore.com>
4344
4345 PR ada/25837:
4346 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4347 "const char *", not a "const std::string &".
4348 <name_and_matcher::operator==>: Update.
4349 * unittests/lookup_name_info-selftests.c: Change type of
4350 "result".
4351
740480b8
TT
43522020-04-23 Tom Tromey <tom@tromey.com>
4353
4354 * inferior.h (iterate_over_inferiors): Don't declare.
4355 * inferior.c (iterate_over_inferiors): Remove.
4356 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4357 Remove.
4358 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4359 use iterate_over_inferiors.
4360 (darwin_resume_inferior_it)
4361 (struct resume_inferior_threads_param)
4362 (darwin_resume_inferior_threads_it): Remove.
4363 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4364
ae3ab1f0
TV
43652020-04-23 Tom de Vries <tdevries@suse.de>
4366
4367 * blockframe.c (find_pc_partial_function): Use
4368 find_pc_sect_compunit_symtab rather than
4369 objfile->sf->qf->find_pc_sect_compunit_symtab.
4370
317d2668
TV
43712020-04-22 Tom de Vries <tdevries@suse.de>
4372
4373 PR symtab/25764
4374 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4375 in psymtabs.
4376
eea9e357
TV
43772020-04-22 Tom de Vries <tdevries@suse.de>
4378
4379 PR symtab/25801
4380 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4381 symtabs.
4382
3d5afab3
TV
43832020-04-22 Tom de Vries <tdevries@suse.de>
4384
4385 PR symtab/25700
4386 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4387 CU if already created.
4388
d43b7a2d
TBA
43892020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4390
4391 * infrun.c (displaced_step_fixup): Switch to the event_thread
4392 before calling displaced_step_restore, not after.
4393
d89edf9b
MM
43942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4395
4396 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4397 its inferior is not recorded by us.
4398 (record_btrace_target_open): Replace call to
4399 all_non_exited_threads () with call to current_inferior
4400 ()->non_exited_threads ().
4401 (record_btrace_target::stop_recording): Likewise.
4402 (record_btrace_target::close): Likewise.
4403 (record_btrace_target::wait): Likewise.
4404 (record_btrace_target::record_stop_replaying): Likewise.
4405
5897fd49
MM
44062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4407
4408 * btrace.c (btrace_enable): Throw an error on double enables and
4409 when enabling recording fails.
4410 (btrace_disable): Throw an error if the thread is not recorded.
4411
1a476b6d
MM
44122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4413
4414 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4415 request if we do not have a thread_info.
4416
4778a5f8
TV
44172020-04-21 Tom de Vries <tdevries@suse.de>
4418
4419 PR gdb/25471
4420 * thread.c
4421 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4422 exception in get_frame_id.
4423
0fa7617d
TT
44242020-04-20 Tom Tromey <tromey@adacore.com>
4425
4426 * python/python.c (struct gdbpy_event): Mark move constructor as
4427 noexcept.
4428 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4429 constructor as noexcept.
4430 * completer.h (struct completion_result): Mark move constructor as
4431 noexcept.
4432 * completer.c (completion_result::completion_result): Use
4433 initialization style. Don't call reset_match_list.
4434
ad23bda0
MS
44352020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4436
4437 * MAINTAINERS (Write After Approval): Add myself.
4438
45e1f031
TT
44392020-04-18 Tom Tromey <tom@tromey.com>
4440
4441 * windows-tdep.c (init_w32_command_list)
4442 (w32_prefix_command_valid): Restore.
4443 (_initialize_windows_tdep): Call init_w32_command_list.
4444
08feed99
TT
44452020-04-18 Tom Tromey <tom@tromey.com>
4446
4447 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4448 * value.c (value_fn_field): Update.
4449 * valops.c (find_function_in_inferior)
4450 (value_allocate_space_in_inferior): Update.
4451 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4452 Update.
4453 * tui/tui-source.c (tui_source_window::set_contents): Update.
4454 * symtab.c (lookup_global_or_static_symbol)
4455 (find_function_start_sal_1, skip_prologue_sal)
4456 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4457 * symmisc.c (dump_msymbols, dump_symtab_1)
4458 (maintenance_print_one_line_table): Update.
4459 * symfile.c (init_entry_point_info, section_is_mapped)
4460 (list_overlays_command, simple_read_overlay_table)
4461 (simple_overlay_update_1): Update.
4462 * stap-probe.c (handle_stap_probe): Update.
4463 * stabsread.c (dbx_init_float_type, define_symbol)
4464 (read_one_struct_field, read_enum_type, read_range_type): Update.
4465 * source.c (info_line_command): Update.
4466 * python/python.c (gdbpy_source_objfile_script)
4467 (gdbpy_execute_objfile_script): Update.
4468 * python/py-type.c (save_objfile_types): Update.
4469 * python/py-objfile.c (py_free_objfile): Update.
4470 * python/py-inferior.c (python_new_objfile): Update.
4471 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4472 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4473 (maintenance_check_psymtabs): Update.
4474 * printcmd.c (info_address_command): Update.
4475 * objfiles.h (struct objfile) <arch>: New method, from
4476 get_objfile_arch.
4477 (get_objfile_arch): Don't declare.
4478 * objfiles.c (get_objfile_arch): Remove.
4479 (filter_overlapping_sections): Update.
4480 * minsyms.c (msymbol_is_function): Update.
4481 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4482 (output_nondebug_symbol): Update.
4483 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4484 (mdebug_expand_psymtab): Update.
4485 * machoread.c (macho_add_oso_symfile): Update.
4486 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4487 Update.
4488 * linux-fork.c (checkpoint_command): Update.
4489 * linespec.c (convert_linespec_to_sals): Update.
4490 * jit.c (finalize_symtab): Update.
4491 * infrun.c (insert_exception_resume_from_probe): Update.
4492 * ia64-tdep.c (ia64_find_unwind_table): Update.
4493 * hppa-tdep.c (internalize_unwinds): Update.
4494 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4495 Update.
4496 * gcore.c (call_target_sbrk): Update.
4497 * elfread.c (record_minimal_symbol, elf_symtab_read)
4498 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4499 (elf_gnu_ifunc_resolve_by_got): Update.
4500 * dwarf2/read.c (create_addrmap_from_index)
4501 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4502 (read_debug_names_from_section)
4503 (process_psymtab_comp_unit_reader, add_partial_symbol)
4504 (add_partial_subprogram, process_full_comp_unit)
4505 (read_file_scope, read_func_scope, read_lexical_block_scope)
4506 (read_call_site_scope, dwarf2_ranges_read)
4507 (dwarf2_record_block_ranges, dwarf2_add_field)
4508 (mark_common_block_symbol_computed, read_tag_pointer_type)
4509 (read_tag_string_type, dwarf2_init_float_type)
4510 (dwarf2_init_complex_target_type, read_base_type)
4511 (partial_die_info::read, partial_die_info::read)
4512 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4513 (dwarf2_fetch_die_loc_sect_off): Update.
4514 * dwarf2/loc.c (dwarf2_find_location_expression)
4515 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4516 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4517 (dwarf2_loc_desc_get_symbol_read_needs)
4518 (locexpr_describe_location_piece, locexpr_describe_location_1)
4519 (loclist_describe_location): Update.
4520 * dwarf2/index-write.c (write_debug_names): Update.
4521 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4522 * dtrace-probe.c (dtrace_process_dof): Update.
4523 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4524 (process_one_symbol): Update.
4525 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4526 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4527 (coff_read_enum_type): Update.
4528 * cli/cli-cmds.c (edit_command, list_command): Update.
4529 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4530 * breakpoint.c (create_overlay_event_breakpoint)
4531 (create_longjmp_master_breakpoint)
4532 (create_std_terminate_master_breakpoint)
4533 (create_exception_master_breakpoint, get_sal_arch): Update.
4534 * block.c (block_gdbarch): Update.
4535 * annotate.c (annotate_source_line): Update.
4536
0743fc83
TT
45372020-04-17 Tom Tromey <tromey@adacore.com>
4538
4539 * auto-load.c (show_auto_load_cmd): Remove.
4540 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4541 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4542 (maintenance_print_arc_command): Remove.
4543 * tui/tui-win.c (tui_command): Remove.
4544 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4545 * tui/tui-layout.c (tui_layout_command): Remove.
4546 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4547 * python/python.c (user_set_python, user_show_python): Remove.
4548 (_initialize_python): Use add_basic_prefix_cmd,
4549 add_show_prefix_cmd.
4550 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4551 (install_gdb_commands): Use add_basic_prefix_cmd,
4552 add_show_prefix_cmd.
4553 (info_guile_command): Remove.
4554 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4555 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4556 add_show_prefix_cmd.
4557 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4558 Remove do_set and do_show parameters.
4559 * cli/cli-style.c (set_style, show_style): Remove.
4560 (_initialize_cli_style): Use add_basic_prefix_cmd,
4561 add_show_prefix_cmd.
4562 (cli_style_option::add_setshow_commands): Remove do_set and
4563 do_show parameters.
4564 (cli_style_option::add_setshow_commands): Use
4565 add_basic_prefix_cmd, add_show_prefix_cmd.
4566 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4567 (set_style_name): Remove.
4568 * cli/cli-dump.c (dump_command, append_command): Remove.
4569 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4570 (tekhex_dump_command, binary_dump_command)
4571 (binary_append_command): Remove.
4572 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4573 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4574 (init_w32_command_list): Remove; move into ...
4575 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4576 * valprint.c (set_print, show_print, set_print_raw)
4577 (show_print_raw): Remove.
4578 (_initialize_valprint): Use add_basic_prefix_cmd,
4579 add_show_prefix_cmd.
4580 * typeprint.c (set_print_type, show_print_type): Remove.
4581 (_initialize_typeprint): Use add_basic_prefix_cmd,
4582 add_show_prefix_cmd.
4583 * record.c (set_record_command, show_record_command): Remove.
4584 (_initialize_record): Use add_basic_prefix_cmd,
4585 add_show_prefix_cmd.
4586 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4587 add_show_prefix_cmd.
4588 (info_command, show_command, set_debug, show_debug): Remove.
4589 * top.h (set_history, show_history): Don't declare.
4590 * top.c (set_history, show_history): Remove.
4591 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4592 (unset_tdesc_cmd): Remove.
4593 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4594 add_show_prefix_cmd.
4595 * symtab.c (info_module_command): Remove.
4596 (_initialize_symtab): Use add_basic_prefix_cmd.
4597 * symfile.c (overlay_command): Remove.
4598 (_initialize_symfile): Use add_basic_prefix_cmd.
4599 * sparc64-tdep.c (info_adi_command): Remove.
4600 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4601 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4602 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4603 add_show_prefix_cmd.
4604 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4605 (_initialize_serial): Use add_basic_prefix_cmd,
4606 add_show_prefix_cmd.
4607 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4608 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4609 add_show_prefix_cmd.
4610 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4611 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4612 add_show_prefix_cmd.
4613 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4614 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4615 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4616 add_show_prefix_cmd.
4617 * remote.c (remote_command, set_remote_cmd): Remove.
4618 (_initialize_remote): Use add_basic_prefix_cmd.
4619 * record-full.c (set_record_full_command)
4620 (show_record_full_command): Remove.
4621 (_initialize_record_full): Use add_basic_prefix_cmd,
4622 add_show_prefix_cmd.
4623 * record-btrace.c (cmd_set_record_btrace)
4624 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4625 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4626 (cmd_show_record_btrace_pt): Remove.
4627 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4628 add_show_prefix_cmd.
4629 * ravenscar-thread.c (set_ravenscar_command)
4630 (show_ravenscar_command): Remove.
4631 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4632 add_show_prefix_cmd.
4633 * mips-tdep.c (show_mips_command, set_mips_command)
4634 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4635 add_show_prefix_cmd.
4636 * maint.c (maintenance_command, maintenance_info_command)
4637 (maintenance_check_command, maintenance_print_command)
4638 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4639 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4640 add_show_prefix_cmd.
4641 (show_per_command_cmd): Remove.
4642 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4643 Remove.
4644 (maintenance_show_test_settings_cmd): Remove.
4645 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4646 add_show_prefix_cmd.
4647 * maint-test-options.c (maintenance_test_options_command):
4648 Remove.
4649 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4650 * macrocmd.c (macro_command): Remove
4651 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4652 * language.c (set_check, show_check): Remove.
4653 (_initialize_language): Use add_basic_prefix_cmd,
4654 add_show_prefix_cmd.
4655 * infcmd.c (unset_command): Remove.
4656 (_initialize_infcmd): Use add_basic_prefix_cmd.
4657 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4658 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4659 add_show_prefix_cmd.
4660 * go32-nat.c (go32_info_dos_command): Remove.
4661 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4662 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4663 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4664 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4665 (_initialize_frame): Use add_basic_prefix_cmd,
4666 add_show_prefix_cmd.
4667 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4668 (_initialize_dcache): Use add_basic_prefix_cmd,
4669 add_show_prefix_cmd.
4670 * cp-support.c (maint_cplus_command): Remove.
4671 (_initialize_cp_support): Use add_basic_prefix_cmd.
4672 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4673 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4674 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4675 add_basic_prefix_cmd, add_show_prefix_cmd.
4676 * breakpoint.c (save_command): Remove.
4677 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4678 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4679 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4680 add_show_prefix_cmd.
4681 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4682 (set_ada_command, show_ada_command): Remove.
4683 (_initialize_ada_language): Use add_basic_prefix_cmd,
4684 add_show_prefix_cmd.
4685 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4686
3557f442
KR
46872020-04-16 Kamil Rytarowski <n54@gmx.com>
4688
4689 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4690 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4691
16197208
SM
46922020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4693
4694 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4695 warning messages.
4696
00ac85d3
SM
46972020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4698
4699 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4700 import table is not at beginning of .idata section.
4701
381ce63f
PA
47022020-04-16 Pedro Alves <palves@redhat.com>
4703
4704 * inferior.c (delete_inferior): Use delete operator directly
4705 instead of delete_program_space.
4706 * progspace.c (add_program_space): New, factored out from
4707 program_space::program_space.
4708 (remove_program_space): New, factored out from
4709 delete_program_space.
4710 (program_space::program_space): Remove intro comment. Rewrite.
4711 (program_space::~program_space): Remove intro comment. Call
4712 remove_program_space.
4713 (delete_program_space): Delete.
4714 * progspace.h (program_space::program_space): Make explicit. Move
4715 intro comment here, adjusted.
4716 (program_space::~program_space): Move intro comment here,
4717 adjusted.
4718 (delete_program_space): Remove.
4719
a010605f
TT
47202020-04-16 Tom Tromey <tromey@adacore.com>
4721
4722 * windows-nat.c (windows_nat::handle_access_violation): New
4723 function.
4724 * nat/windows-nat.h (handle_access_violation): Declare.
4725 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4726 windows-nat.c. Call handle_access_violation.
4727
efba5c23
TV
47282020-04-16 Tom de Vries <tdevries@suse.de>
4729
4730 PR symtab/25791
4731 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4732 CUs without psymtab.
4733
97ed802d
KB
47342020-04-16 Kevin Buettner <kevinb@redhat.com>
4735
4736 * python/python.c (do_start_initialization): Don't call
4737 PyEval_InitThreads for Python 3.9 and beyond.
4738
c7d64809
KR
47392020-04-15 Kamil Rytarowski <n54@gmx.com>
4740
4741 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4742 thread functions.
4743 (obsd_nat_target::wait): Likewise.
4744
ce127a96
TT
47452020-04-15 Tom Tromey <tromey@adacore.com>
4746
4747 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4748 (DEBUG_EXCEPT): Use debug_printf.
4749
99f1bc6a
AB
47502020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4751
4752 * completer.c (class completion_tracker::completion_hash_entry)
4753 <hash_name>: New member function.
4754 (completion_tracker::discard_completions): New callback to hash a
4755 completion_hash_entry, pass this to htab_create_alloc.
4756
a0e9b532
JT
47572016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4758
4759 * windows-nat.c (windows_make_so): Warn rather than stopping with
4760 an error if realpath() fails.
4761
06ca5dd4
KR
47622020-04-14 Kamil Rytarowski <n54@gmx.com>
4763
4764 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4765 (nbsd_nat_target::info_proc): Add do_status.
4766
194d088f
TV
47672020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4768 Tom de Vries <tdevries@suse.de>
4769
4770 PR symtab/25718
4771 * psympriv.h (struct partial_symtab::read_symtab)
4772 (struct partial_symtab::expand_psymtab)
4773 (struct partial_symtab::read_dependencies): Update comments.
4774 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4775 read_symtab for includer.
4776 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4777 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4778 (struct dwarf2_include_psymtab::m_readin): Remove.
4779 (struct dwarf2_include_psymtab::includer): New member function.
4780 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4781
c1a66c06
TV
47822020-04-14 Tom de Vries <tdevries@suse.de>
4783
4784 PR symtab/25720
4785 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4786 with NULL symbol_matcher and lookup_name.
4787 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4788 and lookup_name.
4789 * dwarf2/read.c (dw2_expand_symtabs_matching)
4790 (dw2_debug_names_expand_symtabs_matching): Same.
4791 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4792 Make lookup_name a pointer. Update comment.
4793 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4794 lookup_name being a pointer.
4795 * symfile.c (expand_symtabs_matching): Same.
4796 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4797 * linespec.c (iterate_over_all_matching_symtabs): Same.
4798
400b5eca
TT
47992020-04-13 Tom Tromey <tom@tromey.com>
4800
4801 * run-on-main-thread.c: Update include.
4802 * unittests/main-thread-selftests.c: Update include.
4803 * tui/tui-win.c: Update include.
4804 * tui/tui-io.c: Update include.
4805 * tui/tui-interp.c: Update include.
4806 * tui/tui-hooks.c: Update include.
4807 * top.h: Update include.
4808 * top.c: Update include.
4809 * ser-base.c: Update include.
4810 * remote.c: Update include.
4811 * remote-notif.c: Update include.
4812 * remote-fileio.c: Update include.
4813 * record-full.c: Update include.
4814 * record-btrace.c: Update include.
4815 * python/python.c: Update include.
4816 * posix-hdep.c: Update include.
4817 * mingw-hdep.c: Update include.
4818 * mi/mi-main.c: Update include.
4819 * mi/mi-interp.c: Update include.
4820 * main.c: Update include.
4821 * linux-nat.c: Update include.
4822 * interps.c: Update include.
4823 * infrun.c: Update include.
4824 * inf-loop.c: Update include.
4825 * event-top.c: Update include.
4826 * event-loop.c: Move to ../gdbsupport/.
4827 * event-loop.h: Move to ../gdbsupport/.
4828 * async-event.h: Update include.
4829 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4830
93b54c8e
TT
48312020-04-13 Tom Tromey <tom@tromey.com>
4832
4833 * tui/tui-win.c: Include async-event.h.
4834 * remote.c: Include async-event.h.
4835 * remote-notif.c: Include async-event.h.
4836 * record-full.c: Include async-event.h.
4837 * record-btrace.c: Include async-event.h.
4838 * infrun.c: Include async-event.h.
4839 * event-top.c: Include async-event.h.
4840 * event-loop.h: Move some declarations to async-event.h.
4841 * event-loop.c: Don't include ser-event.h or top.h. Move some
4842 code to async-event.c.
4843 * async-event.h: New file.
4844 * async-event.c: New file.
4845 * Makefile.in (COMMON_SFILES): Add async-event.c.
4846 (HFILES_NO_SRCDIR): Add async-event.h.
4847
c1cd3163
TT
48482020-04-13 Tom Tromey <tom@tromey.com>
4849
4850 * utils.c (flush_streams): New function.
4851 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4852
29f2bf4f
TT
48532020-04-13 Tom Tromey <tom@tromey.com>
4854
4855 * event-loop.c (handle_file_event): Use warning, not
4856 printf_unfiltered.
4857
98029d02
TT
48582020-04-13 Tom Tromey <tom@tromey.com>
4859
4860 * event-loop.c: Include <chrono>.
4861
06cc9596
TT
48622020-04-13 Tom Tromey <tom@tromey.com>
4863
4864 * gdb_select.h: Move to ../gdbsupport/.
4865 * event-loop.c: Update include path.
4866 * top.c: Update include path.
4867 * ser-base.c: Update include path.
4868 * ui-file.c: Update include path.
4869 * ser-tcp.c: Update include path.
4870 * guile/scm-ports.c: Update include path.
4871 * posix-hdep.c: Update include path.
4872 * ser-unix.c: Update include path.
4873 * gdb_usleep.c: Update include path.
4874 * mingw-hdep.c: Update include path.
4875 * inflow.c: Update include path.
4876 * infrun.c: Update include path.
4877 * event-top.c: Update include path.
4878
8ae8e197
TT
48792020-04-13 Tom Tromey <tom@tromey.com>
4880
4881 * configure: Rebuild.
4882 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4883
58cf28e8
TT
48842020-04-13 Tom Tromey <tom@tromey.com>
4885
4886 * event-loop.h (start_event_loop): Don't declare.
4887 * event-loop.c (start_event_loop): Move...
4888 * main.c (start_event_loop): ...here. Now static.
4889
b7f999ae
SDJ
48902020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4891
4892 * MAINTAINERS: Update my email address.
4893
1085dfd4
KR
48942020-04-12 Kamil Rytarowski <n54@gmx.com>
4895
4896 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4897 IP_ALL.
4898
49d1d1f5
KR
48992020-04-12 Kamil Rytarowski <n54@gmx.com>
4900
4901 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4902 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4903
b4848d2a
KR
49042020-04-12 Kamil Rytarowski <n54@gmx.com>
4905
4906 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4907 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4908
51c133d5
KR
49092020-04-12 Kamil Rytarowski <n54@gmx.com>
4910
4911 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4912
54b8cbd0
KR
49132020-04-11 Kamil Rytarowski <n54@gmx.com>
4914
4915 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4916 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4917 (nbsd_nat_target::info_proc): New functions.
4918 * nbsd-nat.c (kinfo_get_vmmap): New function.
4919 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4920 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4921 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4922 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4923 functions.
4924 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4925 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4926 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4927 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4928 (KINFO_VME_FLAG_GROWS_DOWN): New.
4929
cf83625d
AS
49302020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4931
4932 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4933 bit shift.
4934
0c4311ab
TT
49352020-04-10 Tom Tromey <tromey@adacore.com>
4936
4937 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4938
3e65b3e9
TT
49392020-04-10 Tom Tromey <tromey@adacore.com>
4940
4941 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4942 separate debug files.
4943
13302e95
HD
49442020-04-10 Hannes Domani <ssbssa@yahoo.de>
4945
4946 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4947 Move to...
4948 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4949 ... here.
4950 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4951 Check for STATUS_WX86_BREAKPOINT.
4952 (windows_nat_target::wait): Same.
4953
bdfc1e8a
TV
49542020-04-10 Tom de Vries <tdevries@suse.de>
4955
4956 PR cli/25808
4957 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4958
f4460aec
SM
49592020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4960
4961 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4962 (Write After Approval): Remove Tom de Vries.
4963
a25198bb
BE
49642020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4965
4966 revert partially:
4967 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4968
aac66a4c
SM
4969 * buildsym.c (record_line): Fix undefined behavior and preserve
4970 lines at eof.
a25198bb 4971
206c98a6
KR
49722020-04-09 Kamil Rytarowski <n54@gmx.com>
4973
4974 * auxv.h (svr4_auxv_parse): New.
4975 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4976 and generic_auxv_parse.
4977 (svr4_auxv_parse): Add.
4978 * obsd-tdep.c: Include "auxv.h".
4979 (obsd_auxv_parse): Remove.
4980 (obsd_init_abi): Remove comment.
4981 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4982 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4983 * nbsd-tdep.c: Include "auxv.h".
4984 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4985
71fbdbaf
TT
49862020-04-08 Tom Tromey <tromey@adacore.com>
4987
4988 * nat/windows-nat.h (last_wait_event): Don't declare.
4989 (wait_for_debug_event): Update comment.
4990 * nat/windows-nat.c (last_wait_event): Now static.
4991
2c1d95e8
TT
49922020-04-08 Tom Tromey <tromey@adacore.com>
4993
4994 * windows-nat.c (wait_for_debug_event): Move to
4995 nat/windows-nat.c.
4996 * nat/windows-nat.h (wait_for_debug_event): Declare.
4997 * nat/windows-nat.c (wait_for_debug_event): Move from
4998 windows-nat.c. No longer static.
4999
d2977bc4
TT
50002020-04-08 Tom Tromey <tromey@adacore.com>
5001
5002 * windows-nat.c (get_windows_debug_event): Use
5003 fetch_pending_stop.
5004 * nat/windows-nat.h (fetch_pending_stop): Declare.
5005 * nat/windows-nat.c (fetch_pending_stop): New function.
5006
e758e19c
TT
50072020-04-08 Tom Tromey <tromey@adacore.com>
5008
5009 * windows-nat.c (windows_continue): Use matching_pending_stop and
5010 continue_last_debug_event.
5011 * nat/windows-nat.h (matching_pending_stop)
5012 (continue_last_debug_event): Declare.
5013 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5014 (matching_pending_stop, continue_last_debug_event): New
5015 functions.
5016
8d30e395
TT
50172020-04-08 Tom Tromey <tromey@adacore.com>
5018
5019 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5020 (handle_exception_result): Move to nat/windows-nat.h.
5021 (DEBUG_EXCEPTION_SIMPLE): Remove.
5022 (windows_nat::handle_ms_vc_exception): New function.
5023 (handle_exception): Move to nat/windows-nat.c.
5024 (get_windows_debug_event): Update.
5025 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5026 nat/windows-nat.c.
5027 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5028 (handle_exception_result): Move from windows-nat.c.
5029 (handle_exception): Declare.
5030 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5031 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5032 windows-nat.c.
5033
29de418d
TT
50342020-04-08 Tom Tromey <tromey@adacore.com>
5035
5036 * windows-nat.c (exception_count, event_count): Remove.
5037 (handle_exception, get_windows_debug_event)
5038 (do_initial_windows_stuff): Update.
5039
a816ba18
TT
50402020-04-08 Tom Tromey <tromey@adacore.com>
5041
5042 * windows-nat.c (windows_nat::handle_load_dll)
5043 (windows_nat::handle_unload_dll): Rename. No longer static.
5044 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5045 Declare.
5046
a00caa12
TT
50472020-04-08 Tom Tromey <tromey@adacore.com>
5048
5049 * complaints.h (stop_whining): Declare at top-level.
5050 (complaint): Don't declare stop_whining.
5051
d41b524f
TT
50522020-04-08 Tom Tromey <tromey@adacore.com>
5053
5054 * windows-nat.c (windows_nat::handle_output_debug_string):
5055 Rename. No longer static.
5056 * nat/windows-nat.h (handle_output_debug_string): Declare.
5057
3c76026d
TT
50582020-04-08 Tom Tromey <tromey@adacore.com>
5059
5060 * windows-nat.c (current_process_handle, current_process_id)
5061 (main_thread_id, last_sig, current_event, last_wait_event)
5062 (current_windows_thread, desired_stop_thread_id, pending_stops)
5063 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5064 (display_selectors, fake_create_process)
5065 (get_windows_debug_event): Update.
5066 * nat/windows-nat.h (current_process_handle, current_process_id)
5067 (main_thread_id, last_sig, current_event, last_wait_event)
5068 (current_windows_thread, desired_stop_thread_id, pending_stops)
5069 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5070 * nat/windows-nat.c (current_process_handle, current_process_id)
5071 (main_thread_id, last_sig, current_event, last_wait_event)
5072 (current_windows_thread, desired_stop_thread_id, pending_stops)
5073 (siginfo_er): New globals. Move from windows-nat.c.
5074
9d8679cc
TT
50752020-04-08 Tom Tromey <tromey@adacore.com>
5076
5077 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5078 (handle_load_dll): Update.
5079 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5080
28688adf
TT
50812020-04-08 Tom Tromey <tromey@adacore.com>
5082
5083 * windows-nat.c (enum thread_disposition_type): Move to
5084 nat/windows-nat.h.
5085 (windows_nat::thread_rec): Rename from thread_rec. No longer
5086 static.
5087 (windows_add_thread, windows_nat_target::fetch_registers)
5088 (windows_nat_target::store_registers, handle_exception)
5089 (windows_nat_target::resume, get_windows_debug_event)
5090 (windows_nat_target::get_tib_address)
5091 (windows_nat_target::thread_name)
5092 (windows_nat_target::thread_alive): Update.
5093 * nat/windows-nat.h (enum thread_disposition_type): Move from
5094 windows-nat.c.
5095 (thread_rec): Declare.
5096
4834dad0
TT
50972020-04-08 Tom Tromey <tromey@adacore.com>
5098
5099 * windows-nat.c: Add "using namespace".
5100 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5101 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5102
65bafd5b
TT
51032020-04-08 Tom Tromey <tromey@adacore.com>
5104
5105 * nat/windows-nat.h (struct windows_thread_info): Declare
5106 destructor.
5107 * nat/windows-nat.c (~windows_thread_info): New.
5108
0a4afda3
TT
51092020-04-08 Tom Tromey <tromey@adacore.com>
5110
5111 PR gdb/22992
5112 * windows-nat.c (current_event): Update comment.
5113 (last_wait_event, desired_stop_thread_id): New globals.
5114 (struct pending_stop): New.
5115 (pending_stops): New global.
5116 (windows_nat_target) <stopped_by_sw_breakpoint>
5117 <supports_stopped_by_sw_breakpoint>: New methods.
5118 (windows_fetch_one_register): Add assertions. Adjust PC.
5119 (windows_continue): Handle pending stops. Suspend other threads
5120 when stepping. Use last_wait_event
5121 (wait_for_debug_event): New function.
5122 (get_windows_debug_event): Use wait_for_debug_event. Handle
5123 pending stops. Queue spurious stops.
5124 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5125 (windows_nat_target::kill): Use wait_for_debug_event.
5126 * nat/windows-nat.h (struct windows_thread_info)
5127 <stopped_at_software_breakpoint>: New field.
5128 * nat/windows-nat.c (windows_thread_info::resume): Clear
5129 stopped_at_software_breakpoint.
5130
8e61ebec
TT
51312020-04-08 Tom Tromey <tromey@adacore.com>
5132
5133 * windows-nat.c (enum thread_disposition_type): New.
5134 (thread_rec): Replace "get_context" parameter with "disposition";
5135 change type.
5136 (windows_add_thread, windows_nat_target::fetch_registers)
5137 (windows_nat_target::store_registers, handle_exception)
5138 (windows_nat_target::resume, get_windows_debug_event)
5139 (windows_nat_target::get_tib_address)
5140 (windows_nat_target::thread_name)
5141 (windows_nat_target::thread_alive): Update.
5142
98a03287
TT
51432020-04-08 Tom Tromey <tromey@adacore.com>
5144
5145 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5146 (windows_continue): Use windows_continue::resume.
5147 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5148 resume>: Declare new methods.
5149 * nat/windows-nat.c: New file.
5150 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5151
7c7411bc
TT
51522020-04-08 Tom Tromey <tromey@adacore.com>
5153
5154 * windows-nat.c (windows_add_thread, windows_delete_thread)
5155 (windows_nat_target::fetch_registers)
5156 (windows_nat_target::store_registers, fake_create_process)
5157 (windows_nat_target::resume, windows_nat_target::resume)
5158 (get_windows_debug_event, windows_nat_target::wait)
5159 (windows_nat_target::pid_to_str)
5160 (windows_nat_target::get_tib_address)
5161 (windows_nat_target::get_ada_task_ptid)
5162 (windows_nat_target::thread_name)
5163 (windows_nat_target::thread_alive): Use lwp, not tid.
5164
2950fdf7
TT
51652020-04-08 Tom Tromey <tromey@adacore.com>
5166
5167 * windows-nat.c (handle_exception)
5168 (windows_nat_target::thread_name): Update.
5169 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5170 <name>: Now unique_xmalloc_ptr.
5171
62fe396b
TT
51722020-04-08 Tom Tromey <tromey@adacore.com>
5173
5174 * windows-nat.c (thread_rec)
5175 (windows_nat_target::fetch_registers): Update.
5176 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5177 Update comment.
5178 <debug_registers_changed, reload_context>: Now bool.
5179
e9534bd2
TT
51802020-04-08 Tom Tromey <tromey@adacore.com>
5181
5182 * windows-nat.c (windows_add_thread): Use new.
5183 (windows_init_thread_list, windows_delete_thread): Use delete.
5184 (get_windows_debug_event): Update.
5185 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5186 destructor, and initializers.
5187
ae1f8880
TT
51882020-04-08 Tom Tromey <tromey@adacore.com>
5189
5190 * windows-nat.c (struct windows_thread_info): Remove.
5191 * nat/windows-nat.h: New file.
5192
55a1e039
TT
51932020-04-08 Tom Tromey <tromey@adacore.com>
5194
5195 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5196 (thread_rec, windows_add_thread, windows_delete_thread)
5197 (windows_continue): Update.
5198
93366324
TT
51992020-04-08 Tom Tromey <tromey@adacore.com>
5200
5201 * windows-nat.c (struct windows_thread_info): Remove typedef.
5202 (thread_head): Remove.
5203 (thread_list): New global.
5204 (thread_rec, windows_add_thread, windows_init_thread_list)
5205 (windows_delete_thread, windows_continue): Update.
5206
0f2265e2
SM
52072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5208
5209 * windows-tdep.h (windows_init_abi): Add comment.
5210 (cygwin_init_abi): New declaration.
5211 * windows-tdep.c: Split signal enumeration in two, one for
5212 Windows and one for Cygwin.
5213 (windows_gdb_signal_to_target): Only deal with signal of the
5214 Windows OS ABI.
5215 (cygwin_gdb_signal_to_target): New function.
5216 (windows_init_abi): Rename to windows_init_abi_common, don't set
5217 gdb_signal_to_target gdbarch method. Add new new function with
5218 this name.
5219 (cygwin_init_abi): New function.
5220 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5221 comment. Don't call windows_init_abi.
5222 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5223 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5224 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5225 i386_windows_init_abi_common, don't call windows_init_abi. Add
5226 a new function of this name.
5227 (i386_cygwin_init_abi): New function.
5228 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5229 OS ABI Cygwin.
5230
3810f182
SM
52312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5232
5233 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5234 parameter.c.
5235 (dwarf2_read_gdb_index): Update.
5236
063f8e80
KR
52372020-04-07 Kamil Rytarowski <n54@gmx.com>
5238
5239 * nbsd-tdep.c: Include "objfiles.h".
5240 (nbsd_skip_solib_resolver): New.
5241 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5242
85a9510c 52432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5244
5245 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5246 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5247 with DW_LLE_base_addressx are being emitted in DWARFv5.
5248 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5249 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5250 unsigned integer.
5251
9fc3eaae 52522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5253
5254 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5255 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5256 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5257 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5258 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5259 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5260 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5261
5262
41144253 52632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5264
5265 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5266 (read_loclist_index): New function definition.
5267 (lookup_loclist_base): New function definition.
5268 (read_loclist_header): New function definition.
5269 (dwarf2_cu): Add loclist_base and loclist_header field.
5270 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5271 (read_full_die_1): Read the value of DW_AT_loclists_base.
5272 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5273 (read_attribute_value): Handle DW_FORM_loclistx.
5274 (skip_one_die): Handle DW_FORM_loclistx.
5275 (loclist_header): New structure declaration.
5276 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5277
9f4e76a4
SM
52782020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5281 constructor. Remove `addr` parameter from other constructor and
5282 add `per_cu` parameter.
5283 * dwarf2/read.c (create_partial_symtab): Update.
5284
25c11aca
TV
52852020-04-07 Tom de Vries <tdevries@suse.de>
5286
5287 PR symtab/25796
5288 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5289 (partial_die_info::fixup): Inherit has_const_value.
5290
5707e24b
TV
52912020-04-07 Tom de Vries <tdevries@suse.de>
5292
5293 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5294 symbols without address.
5295
05f00e22
KR
52962020-04-06 Kamil Rytarowski <n54@gmx.com>
5297
5298 * nbsd-nat.h (struct thread_info): Add forward declaration.
5299 (nbsd_nat_target::thread_alive): Add.
5300 (nbsd_nat_target::thread_name): Likewise.
5301 (nbsd_nat_target::update_thread_list): Likewise.
5302 (update_thread_list::post_attach): Likewise.
5303 (post_attach::pid_to_str): Likewise.
5304 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5305 (nbsd_thread_lister): Add.
5306 (nbsd_nat_target::thread_alive): Likewise.
5307 (nbsd_nat_target::thread_name): Likewise.
5308 (nbsd_add_threads): Likewise.
5309 (update_thread_list::post_attach): Likewise.
5310 (nbsd_nat_target::update_thread_list): Likewise.
5311 (post_attach::pid_to_str): Likewise.
5312
6ee448cc
TT
53132020-04-06 Tom Tromey <tromey@adacore.com>
5314
5315 * ada-valprint.c (print_variant_part): Extract the variant field.
5316 (print_field_values): Use the field as the outer value when
5317 recursing.
5318
dea34e8c
TT
53192020-04-06 Tom Tromey <tromey@adacore.com>
5320
5321 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5322 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5323 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5324 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5325 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5326
93689ce9
TT
53272020-04-06 Tom Tromey <tromey@adacore.com>
5328
5329 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5330 TYPE_CODE_ERROR.
5331
79743962
KR
53322020-04-06 Kamil Rytarowski <n54@gmx.com>
5333
5334 * nbsd-tdep.c: Include "gdbarch.h".
5335 Define enum with NetBSD signal numbers.
5336 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5337 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5338 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5339 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5340 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5341 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5342 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5343 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5344 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5345 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5346 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5347 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5348
9e7c9a03
HD
53492020-04-03 Hannes Domani <ssbssa@yahoo.de>
5350
5351 PR gdb/25325
5352 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5353
d9e49b61
TT
53542020-04-03 Tom Tromey <tromey@adacore.com>
5355
5356 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5357 Read constant block.
5358
e0fc5c3f
SM
53592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5360
5361 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5362 (gdb_bfd_get_full_section_contents): New declaration.
5363 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5364 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5365 gdb_bfd_get_full_section_contents.
5366
e2ff18a0
SM
53672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5368
5369 * exec.c (build_section_table): Replace internal_error with
5370 gdb_assert.
5371 (section_table_xfer_memory_partial): Likewise.
5372 * mdebugread.c (parse_partial_symbols): Likewise.
5373 * psymtab.c (lookup_partial_symbol): Likewise.
5374 * utils.c (wrap_here): Likewise.
5375
0830d301
TT
53762020-04-02 Tom Tromey <tromey@adacore.com>
5377
5378 * f-lang.c (build_fortran_types): Use arch_type to initialize
5379 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5380
e7da7f8f
TT
53812020-04-02 Tom Tromey <tromey@adacore.com>
5382
5383 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5384 of attributes.
5385
c90d28ac
AB
53862020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5387 Bernd Edlinger <bernd.edlinger@hotmail.de>
5388 Tom Tromey <tromey@adacore.com>
5389
5390 * buildsym.c (buildsym_compunit::record_line): Remove
5391 deduplication code.
5392
1aa98955
TV
53932020-04-02 Tom de Vries <tdevries@suse.de>
5394
5395 PR ada/24671
5396 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5397
d3214198
TV
53982020-04-02 Tom de Vries <tdevries@suse.de>
5399
5400 * dwarf2/read.c (dwarf2_gdb_index_functions,
5401 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5402 NULL.
5403 * psymtab.c (psym_lookup_global_symbol_language): New function.
5404 (psym_functions): Init psym_lookup_global_symbol_language with
5405 psym_lookup_global_symbol_language.
5406 * symfile-debug.c (debug_sym_quick_functions): Init
5407 lookup_global_symbol_language with NULL.
5408 * symfile.c (set_initial_language): Remove fixme comment.
5409 * symfile.h (struct quick_symbol_functions): Add
5410 lookup_global_symbol_language.
5411 * symtab.c (find_quick_global_symbol_language): New function.
5412 (find_main_name): Use find_quick_global_symbol_language.
5413
2836752f
SM
54142020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5417
64dc2d4b
BE
54182020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5419
5420 * buildsym.c (record_line): Fix undefined behavior and preserve
5421 lines at eof.
5422
bbe3dc41
BE
54232020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5424
5425 * buildsym.c (record_line): Fix the resizing condition.
5426
6b4a335b
TT
54272020-04-01 Tom Tromey <tom@tromey.com>
5428
5429 * value.h (value_literal_complex): Add comment.
5430 * valops.c (value_literal_complex): Refer to value.h.
5431
3638a098
TT
54322020-04-01 Tom Tromey <tom@tromey.com>
5433
5434 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5435 (scalar_type): New rule, from typebase.
5436 (typebase): Use scalar_type. Recognize complex types.
5437 (field_name): Handle FLOAT_KEYWORD.
5438 (ident_tokens): Add _Complex and __complex__.
5439
c34e8714
TT
54402020-04-01 Tom Tromey <tom@tromey.com>
5441
5442 PR exp/25299:
5443 * valarith.c (promotion_type, complex_binop): New functions.
5444 (scalar_binop): Handle complex numbers. Use promotion_type.
5445 (value_pos, value_neg, value_complement): Handle complex numbers.
5446
fa649bb7
TT
54472020-04-01 Tom Tromey <tom@tromey.com>
5448
5449 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5450 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5451 (parse_number): Handle complex numbers.
5452
981c08ce
TT
54532020-04-01 Tom Tromey <tom@tromey.com>
5454
5455 * c-valprint.c (c_decorations): Change complex suffix to "i".
5456
4c99290d
TT
54572020-04-01 Tom Tromey <tom@tromey.com>
5458
5459 * valprint.c (generic_value_print_complex): Use accessors.
5460 * value.h (value_real_part, value_imaginary_part): Declare.
5461 * valops.c (value_real_part, value_imaginary_part): New
5462 functions.
5463 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5464
5b930b45
TT
54652020-04-01 Tom Tromey <tom@tromey.com>
5466
5467 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5468 (read_range_type): Update.
5469 * mdebugread.c (basic_type): Update.
5470 * go-lang.c (build_go_types): Use init_complex_type.
5471 * gdbtypes.h (struct main_type) <complex_type>: New member.
5472 (init_complex_type): Update.
5473 (arch_complex_type): Don't declare.
5474 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5475 Make name if none given. Use alloc_type_copy. Look for cached
5476 complex type.
5477 (arch_complex_type): Remove.
5478 (gdbtypes_post_init): Use init_complex_type.
5479 * f-lang.c (build_fortran_types): Use init_complex_type.
5480 * dwarf2/read.c (read_base_type): Update.
5481 * d-lang.c (build_d_types): Use init_complex_type.
5482 * ctfread.c (read_base_type): Update.
5483
53cccef1
TBA
54842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5485
5486 * infrun.c (stop_all_threads): Update assertion, plus when
5487 stopping threads, take into account that we might be trying
5488 to stop an all-stop target.
5489 (stop_waiting): Call 'stop_all_threads' if there exists a
5490 non-stop target.
5491
a0714d30
TBA
54922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5493
5494 * target.h (exists_non_stop_target): New function declaration.
5495 * target.c (exists_non_stop_target): New function.
5496
60e22c1e
HD
54972020-04-01 Hannes Domani <ssbssa@yahoo.de>
5498
5499 PR gdb/24789
5500 * eval.c (is_integral_or_integral_reference): New function.
5501 (evaluate_subexp_standard): Allow integer references in
5502 pointer arithmetic.
5503
e139a727
TBA
55042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5505
5506 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5507 check for no ptid in the stop reply when the target is non-stop.
5508
e0802d59
TT
55092020-04-01 Tom Tromey <tromey@adacore.com>
5510
5511 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5512 "name" parameter to rvalue reference. Initialize m_name_holder.
5513 <lookup_name_info>: New overloads.
5514 <name>: Return gdb::string_view.
5515 <c_str>: New method.
5516 <make_ignore_params>: Update.
5517 <search_name_hash>: Update.
5518 <language_lookup_name>: Return const char *.
5519 <m_name>: Change type.
5520 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5521 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5522 (lookup_name_info::match_any): Update.
5523 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5524 Update.
5525 * minsyms.c (linkage_name_str): Update.
5526 * language.c (default_symbol_name_matcher): Update.
5527 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5528 Update.
5529 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5530 (ada_lookup_name_info::ada_lookup_name_info): Update.
5531 (literal_symbol_name_matcher): Update.
5532
8c072cb6
TT
55332020-04-01 Tom Tromey <tromey@adacore.com>
5534
5535 * psymtab.c (psymtab_search_name): Remove function.
5536 (psym_lookup_symbol): Create search name and lookup name here.
5537 (lookup_partial_symbol): Remove "name" parameter; add
5538 lookup_name.
5539 (psym_expand_symtabs_for_function): Update.
5540
6f29a534
TT
55412020-03-31 Joel Jones <joelkevinjones@gmail.com>
5542
5543 PR tui/25597:
5544 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5545
af62665e
TT
55462020-03-31 Tom Tromey <tromey@adacore.com>
5547
5548 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5549 memcpy.
5550
d1a89da5
NC
55512020-03-30 Nelson Chu <nelson.chu@sifive.com>
5552
5553 * features/riscv/32bit-csr.xml: Regenerated.
5554 * features/riscv/64bit-csr.xml: Regenerated.
5555
d8af9068
TT
55562020-03-30 Tom Tromey <tromey@adacore.com>
5557
5558 * ada-valprint.c (print_variant_part): Update.
5559 * ada-lang.h (ada_which_variant_applies): Update.
5560 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5561 outer_valaddr parameters; replace with "outer" value parameter.
5562 (to_fixed_variant_branch_type): Update.
5563
227c0bf4
PFC
55642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5565
5566 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5567 <list>. Remove inclusion of observable.h.
5568 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5569 (struct arch_lwp_info): New struct.
5570 (class ppc_linux_dreg_interface): New class.
5571 (struct ppc_linux_process_info): New struct.
5572 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5573 <low_new_clone, low_forget_process, low_prepare_to_resume>
5574 <copy_thread_dreg_state, mark_thread_stale>
5575 <mark_debug_registers_changed, register_hw_breakpoint>
5576 <clear_hw_breakpoint, register_wp, clear_wp>
5577 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5578 <num_memory_accesses, get_trigger_type>
5579 <create_watchpoint_request, hwdebug_point_cmp>
5580 <init_arch_lwp_info, get_arch_lwp_info>
5581 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5582 methods.
5583 <struct ptid_hash>: New inner struct.
5584 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5585 members.
5586 (saved_dabr_value, hwdebug_info, max_slots_number)
5587 (struct hw_break_tuple, struct thread_points, ppc_threads)
5588 (have_ptrace_hwdebug_interface)
5589 (hwdebug_find_thread_points_by_tid)
5590 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5591 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5592 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5593 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5594 use m_dreg_interface.
5595 (hwdebug_point_cmp): Change to...
5596 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5597 reference arguments instead of pointers.
5598 (ppc_linux_nat_target::ranged_break_num_registers): Use
5599 m_dreg_interface.
5600 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5601 m_dreg_interface. Call register_hw_breakpoint.
5602 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5603 m_dreg_interface. Call clear_hw_breakpoint.
5604 (get_trigger_type): Change to...
5605 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5606 comment.
5607 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5608 use m_dreg_interface. Call register_hw_breakpoint.
5609 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5610 use m_dreg_interface. Call clear_hw_breakpoint.
5611 (can_use_watchpoint_cond_accel): Change to...
5612 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5613 method. Update comment, use m_dreg_interface and
5614 m_process_info.
5615 (calculate_dvc): Change to...
5616 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5617 m_dreg_interface.
5618 (num_memory_accesses): Change to...
5619 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5620 (check_condition): Change to...
5621 (ppc_linux_nat_target::check_condition): ...this method.
5622 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5623 comment, use m_dreg_interface.
5624 (create_watchpoint_request): Change to...
5625 (ppc_linux_nat_target::create_watchpoint_request): ...this
5626 method. Use m_dreg_interface.
5627 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5628 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5629 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5630 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5631 (ppc_linux_nat_target::low_forget_process)
5632 (ppc_linux_nat_target::low_new_fork)
5633 (ppc_linux_nat_target::low_new_clone)
5634 (ppc_linux_nat_target::low_delete_thread)
5635 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5636 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5637 only call mark_thread_stale.
5638 (ppc_linux_thread_exit): Remove.
5639 (ppc_linux_nat_target::stopped_data_address): Change to...
5640 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5641 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5642 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5643 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5644 comment. Call low_stopped_data_address.
5645 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5646 m_dreg_interface.
5647 (ppc_linux_nat_target::masked_watch_num_registers): Use
5648 m_dreg_interface.
5649 (ppc_linux_nat_target::copy_thread_dreg_state)
5650 (ppc_linux_nat_target::mark_thread_stale)
5651 (ppc_linux_nat_target::mark_debug_registers_changed)
5652 (ppc_linux_nat_target::register_hw_breakpoint)
5653 (ppc_linux_nat_target::clear_hw_breakpoint)
5654 (ppc_linux_nat_target::register_wp)
5655 (ppc_linux_nat_target::clear_wp)
5656 (ppc_linux_nat_target::init_arch_lwp_info)
5657 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5658 (_initialize_ppc_linux_nat): Remove observer callback.
5659
4db10d8f
PFC
56602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5661
5662 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5663 (ppc_linux_nat_target::auxv_parse)
5664 (ppc_linux_nat_target::read_description)
5665 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5666 Move up.
5667
1310c1b0
PFC
56682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5669
5670 * linux-nat.h (low_new_clone): New method.
5671 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5672
69b037c3
SM
56732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5674
5675 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5676 (dbx_expand_psymtab): ... this.
5677 (start_psymtab): Update.
5678 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5679 (mdebug_expand_psymtab): ... this.
5680 (parse_partial_symbols): Update.
5681 (new_psymtab): Update.
5682 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5683 (xcoff_expand_psymtab): ... this.
5684 (xcoff_start_psymtab): Update.
5685
48993951
SM
56862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5689 <expand_dependencies>: ... this.
5690 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5691 (partial_symtab::expand_dependencies): ... this.
5692 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5693 Update.
5694 (dwarf2_psymtab::expand_psymtab): Update.
5695 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5696 * mdebugread.c (psymtab_to_symtab_1): Update.
5697 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5698
3ad83046
SM
56992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5700
5701 * psympriv.h (discard_psymtab): Remove.
5702 * dbxread.c (dbx_end_psymtab): Update.
5703 * xcoffread.c (xcoff_end_psymtab): Update.
5704
4d1b9ab6
TT
57052020-03-28 Tom Tromey <tom@tromey.com>
5706
5707 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5708 comment.
5709
f1749218
TT
57102020-03-28 Tom Tromey <tom@tromey.com>
5711
5712 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5713
ebea7626
HD
57142020-03-27 Hannes Domani <ssbssa@yahoo.de>
5715
5716 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5717
a879b4d5
JB
57182020-03-26 John Baldwin <jhb@FreeBSD.org>
5719
5720 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5721
0826b30a
TT
57222020-03-26 Tom Tromey <tom@tromey.com>
5723
5724 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5725 (mark_common_block_symbol_computed, read_tag_string_type)
5726 (attr_to_dynamic_prop, read_subrange_type): Update.
5727 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5728 to be methods on struct attribute.
5729 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5730 (read_call_site_scope, partial_die_info::read)
5731 (partial_die_info::read, lookup_die_type, follow_die_ref):
5732 Update.
5733 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5734 from dwarf2_get_ref_die_offset.
5735 (attribute::constant_value): New method, from
5736 dwarf2_get_attr_constant_value.
5737 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5738 Declare method.
5739 <constant_value>: New method.
5740
2b2558bf
TT
57412020-03-26 Tom Tromey <tom@tromey.com>
5742
5743 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5744 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5745 (dwarf_type_encoding_name): Move to stringify.c.
5746 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5747 * dwarf2/stringify.c: New file.
5748 * dwarf2/stringify.h: New file.
5749
eeb64781
TT
57502020-03-26 Tom Tromey <tom@tromey.com>
5751
5752 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5753 Rewrite.
5754
a39fdb41
TT
57552020-03-26 Tom Tromey <tom@tromey.com>
5756
5757 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5758 methods.
5759 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5760 (lookup_ranges_base): Likewise.
5761 (read_cutu_die_from_dwo, read_full_die_1): Update.
5762
436c571c
TT
57632020-03-26 Tom Tromey <tom@tromey.com>
5764
5765 * dwarf2/read.c (read_import_statement, read_file_scope)
5766 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5767 (read_lexical_block_scope, read_call_site_scope)
5768 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5769 (handle_struct_member_die, process_structure_scope)
5770 (update_enumeration_type_from_children)
5771 (process_enumeration_scope, read_array_type, read_common_block)
5772 (read_namespace, read_module, read_subroutine_type): Update.
5773 (sibling_die): Remove.
5774
052c8bb8
TT
57752020-03-26 Tom Tromey <tom@tromey.com>
5776
5777 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5778 (build_type_psymtabs_reader, read_structure_type)
5779 (read_enumeration_type, read_full_die_1): Update.
5780 (dwarf2_attr_no_follow): Move to die.h.
5781 * dwarf2/die.h (struct die_info) <attr>: New method.
5782
2b24b6e4
TT
57832020-03-26 Tom Tromey <tom@tromey.com>
5784
5785 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5786 <base_address>: Now an optional.
5787 (dwarf2_find_base_address, dwarf2_rnglists_process)
5788 (dwarf2_ranges_process, fill_in_loclist_baton)
5789 (dwarf2_symbol_mark_computed): Update.
5790
c2d50fd0
TT
57912020-03-26 Tom Tromey <tom@tromey.com>
5792
5793 * dwarf2/read.c (struct die_info): Move to die.h.
5794 * dwarf2/die.h: New file.
5795
0df7ad3a
TT
57962020-03-26 Tom Tromey <tom@tromey.com>
5797
5798 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5799 * dwarf2/read.c
5800 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5801 Move to line-header.c.
5802 (read_checked_initial_length_and_offset, read_formatted_entries):
5803 Likewise.
5804 (dwarf_decode_line_header): Split into two.
5805 * dwarf2/line-header.c
5806 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5807 Move from read.c.
5808 (read_checked_initial_length_and_offset, read_formatted_entries):
5809 Likewise.
5810 (dwarf_decode_line_header): New function, split from read.c.
5811
86c0bb4c
TT
58122020-03-26 Tom Tromey <tom@tromey.com>
5813
5814 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5815 Declare method.
5816 * dwarf2/read.c (read_attribute_value): Update.
5817 (dwarf2_per_objfile::read_line_string): Rename from
5818 read_indirect_line_string.
5819 (read_formatted_entries): Update.
5820
2ef46c2f
TT
58212020-03-26 Tom Tromey <tom@tromey.com>
5822
5823 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5824 variable.
5825
4f9c1eda
TT
58262020-03-26 Tom Tromey <tom@tromey.com>
5827
5828 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5829 const.
5830 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5831 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5832 parameter const.
5833
5a0e026f
TT
58342020-03-26 Tom Tromey <tom@tromey.com>
5835
5836 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5837 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5838 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5839 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5840
8844c11b
TT
58412020-03-26 Tom Tromey <tom@tromey.com>
5842
5843 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5844 file_names_size, file_full_name, file_file_name>: Use const.
5845 <file_name_at, file_names>: Add const overload.
5846 * dwarf2/line-header.c (line_header::file_file_name)
5847 (line_header::file_full_name): Update.
5848
c90ec28a
TT
58492020-03-26 Tom Tromey <tom@tromey.com>
5850
5851 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5852 (macro_start_file, consume_improper_spaces)
5853 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5854 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5855 (dwarf_decode_macros): Move to macro.c.
5856 * dwarf2/macro.c: New file.
5857 * dwarf2/macro.h: New file.
5858 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5859
4f44ae6c
TT
58602020-03-26 Tom Tromey <tom@tromey.com>
5861
5862 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5863 method.
5864 * dwarf2/section.c: New method. From
5865 read_indirect_string_at_offset_from.
5866 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5867 (read_indirect_string_at_offset_from): Move to section.c.
5868 (read_indirect_string_at_offset): Rewrite.
5869 (read_indirect_line_string_at_offset): Remove.
5870 (read_indirect_string, read_indirect_line_string)
5871 (dwarf_decode_macro_bytes): Update.
5872
a0194fa8
TT
58732020-03-26 Tom Tromey <tom@tromey.com>
5874
5875 * dwarf2/section.h (struct dwarf2_section_info)
5876 <overload_complaint>: Declare.
5877 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5878 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5879 Rename from dwarf2_section_buffer_overflow_complaint.
5880 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5881 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5882
3d27bbdb
TT
58832020-03-26 Tom Tromey <tom@tromey.com>
5884
5885 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5886 Declare.
5887 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5888 Move from read.c.
5889 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5890 to section.c.
5891
9eac9650
TT
58922020-03-26 Tom Tromey <tom@tromey.com>
5893
5894 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5895
bf80d710
TT
58962020-03-26 Tom Tromey <tom@tromey.com>
5897
5898 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5899 "builder".
5900 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5901 parameter.
5902 (dwarf_decode_macros): Update.
5903
0314b390
TT
59042020-03-26 Tom Tromey <tom@tromey.com>
5905
5906 * dwarf2/read.c (read_attribute_value): Update.
5907 (read_indirect_string_from_dwz): Move to dwz.c; change into
5908 method.
5909 (dwarf_decode_macro_bytes): Update.
5910 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5911 * dwarf2/dwz.c: New file.
5912 * Makefile.in (COMMON_SFILES): Add dwz.c.
5913
9fda78b6
TT
59142020-03-26 Tom Tromey <tom@tromey.com>
5915
5916 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5917 * dwarf2/read.c: Add include.
5918 * dwarf2/index-write.c: Add include.
5919 * dwarf2/index-cache.c: Add include.
5920 * dwarf2/dwz.h: New file.
5921
33aa3c10
TT
59222020-03-25 Tom Tromey <tom@tromey.com>
5923
5924 * compile/compile-object-load.c (get_out_value_type): Mention
5925 correct symbol name in error message.
5926
d503b685
HD
59272020-03-25 Hannes Domani <ssbssa@yahoo.de>
5928
5929 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5930
7b1eff95
TV
59312020-03-25 Tom de Vries <tdevries@suse.de>
5932
5933 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5934 * symmisc.c (dump_symtab_1): Print user and includes fields.
5935 (maintenance_info_symtabs): Same.
5936
dd895392
AB
59372020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 PR gdb/25534
5940 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5941 (riscv_regcache_cooked_write): New function.
5942 (riscv_push_dummy_call): Use new function.
5943 (riscv_return_value): Likewise.
5944
5ab2fbf1
SM
59452020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5946
5947 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5948 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5949 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5950 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5951 * infrun.c (follow_fork): Likewise.
5952 (follow_fork_inferior): Likewise.
5953 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5954 * linux-nat.h (class linux_nat_target): Likewise.
5955 * remote.c (class remote_target) <follow_fork>: Likewise.
5956 (remote_target::follow_fork): Likewise.
5957 * target-delegates.c: Re-generate.
5958 * target.c (default_follow_fork): Likewise.
5959 (target_follow_fork): Likewise.
5960 * target.h (struct target_ops) <follow_fork>: Likewise.
5961 (target_follow_fork): Likewise.
5962
a64fafb5
TV
59632020-03-24 Tom de Vries <tdevries@suse.de>
5964
5965 * psymtab.c (maintenance_info_psymtabs): Print user field.
5966
fe26d3a3
TT
59672020-03-20 Tom Tromey <tromey@adacore.com>
5968
5969 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5970 const.
5971 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5972 const.
5973
c884cc46
SM
59742020-03-20 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * ptrace.m4: Don't check for ptrace declaration.
5977 * config.in: Re-generate.
5978 * configure: Re-generate.
5979 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5980 not defined.
5981
1ff700c2
KR
59822020-03-20 Kamil Rytarowski <n54@gmx.com>
5983
5984 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5985 `PTRACE_TYPE_RET'.
5986 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5987 * sparc-nat.c (gdb_ptrace): Likewise.
5988 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5989
f7d4f0b1
TT
59902020-03-20 Tom Tromey <tromey@adacore.com>
5991
5992 * c-exp.y (lex_one_token): Fix assert.
5993
f67210ff
TT
59942020-03-20 Tom Tromey <tromey@adacore.com>
5995
5996 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5997 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5998 strncpy call.
5999
1773be9e
TT
60002020-03-20 Tom Tromey <tromey@adacore.com>
6001
6002 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6003
70304be9
TT
60042020-03-20 Tom Tromey <tromey@adacore.com>
6005
6006 * ada-valprint.c (print_variant_part): Remove parameters; switch
6007 to value-based API.
6008 (print_field_values): Likewise.
6009 (ada_val_print_struct_union): Likewise.
6010 (ada_value_print_1): Update.
6011
9faa006d
KR
60122020-03-20 Kamil Rytarowski <n54@gmx.com>
6013
6014 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6015 nbsd_nat_target instead of inf_ptrace_target.
6016 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6017 nbsd_nat_target.
6018
4a90f062
KR
60192020-03-20 Kamil Rytarowski <n54@gmx.com>
6020
6021 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6022 it to the ptrace call.
6023 * (store_registers): Likewise.
6024
60252020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6026
6027 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6028 it to the ptrace call.
6029 * (store_registers): Likewise.
6030
2d07da27
LM
60312020-03-19 Luis Machado <luis.machado@linaro.org>
6032
6033 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6034 valid, fetch vg value from ptrace.
6035
f09db380
KR
60362020-03-19 Kamil Rytarowski <n54@gmx.com>
6037 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6038 * inf-ptrace.c: Likewise.
6039 * (gdb_ptrace): Add.
6040 * (inf_ptrace_target::resume): Update.
6041 * (inf_ptrace_target::xfer_partial): Likewise.
6042 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6043 * (inf_ptrace_peek_poke): Update.
6044
fcc7376e
KR
60452020-03-19 Kamil Rytarowski <n54@gmx.com>
6046
6047 * x86-bsd-nat.c (gdb_ptrace): New.
6048 * (x86bsd_dr_set): Add new argument `ptid'.
6049 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6050 x86bsd_dr_set_addr): Update.
6051
cada5fc9
AB
60522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * remote.c (remote_target::process_stop_reply): Handle events for
6055 all threads differently.
6056
19a2740f
AB
60572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6058
6059 * completer.c (completion_tracker::remove_completion): Define new
6060 function.
6061 * completer.h (completion_tracker::remove_completion): Declare new
6062 function.
6063 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6064 when adding a C++ function symbol.
6065
724fd9ba
AB
60662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6067
6068 * completer.c (completion_tracker::completion_hash_entry): Define
6069 new class.
6070 (advance_to_filename_complete_word_point): Call
6071 recompute_lowest_common_denominator.
6072 (completion_tracker::completion_tracker): Call discard_completions
6073 to setup the hash table.
6074 (completion_tracker::discard_completions): Allow for being called
6075 from the constructor, pass new equal function, and element deleter
6076 when constructing the hash table. Initialise new class member
6077 variables.
6078 (completion_tracker::maybe_add_completion): Remove use of
6079 m_entries_vec, and store more information into m_entries_hash.
6080 (completion_tracker::recompute_lcd_visitor): New function, most
6081 content taken from...
6082 (completion_tracker::recompute_lowest_common_denominator):
6083 ...here, this now just visits each item in the hash calling the
6084 above visitor.
6085 (completion_tracker::build_completion_result): Remove use of
6086 m_entries_vec, call recompute_lowest_common_denominator.
6087 * completer.h (completion_tracker::have_completions): Remove use
6088 of m_entries_vec.
6089 (completion_tracker::completion_hash_entry): Declare new class.
6090 (completion_tracker::recompute_lowest_common_denominator): Change
6091 function signature.
6092 (completion_tracker::recompute_lcd_visitor): Declare new function.
6093 (completion_tracker::m_entries_vec): Delete.
6094 (completion_tracker::m_entries_hash): Initialize to NULL.
6095 (completion_tracker::m_lowest_common_denominator_valid): New
6096 member variable.
6097 (completion_tracker::m_lowest_common_denominator_max_length): New
6098 member variable.
6099
5a82b8a1
KR
61002020-03-17 Kamil Rytarowski <n54@gmx.com>
6101
6102 * regformats/regdef.h: Put reg in gdb namespace.
6103
fb516a69
KR
61042020-03-17 Kamil Rytarowski <n54@gmx.com>
6105
6106 * i386-bsd-nat.c (gdb_ptrace): New.
6107 * (i386bsd_fetch_inferior_registers,
6108 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6109 * (i386bsd_fetch_inferior_registers,
6110 i386bsd_store_inferior_registers) Use gdb_ptrace.
6111
1c0aa1fb
KR
61122020-03-17 Kamil Rytarowski <n54@gmx.com>
6113
6114 * amd64-bsd-nat.c (gdb_ptrace): New.
6115 * (amd64bsd_fetch_inferior_registers,
6116 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6117 * (amd64bsd_fetch_inferior_registers,
6118 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6119
5ccd2fb7
KR
61202020-03-17 Kamil Rytarowski <n54@gmx.com>
6121
6122 * user-regs.c (user_reg::read): Rename to...
6123 (user_reg::xread): ...this.
6124 * (append_user_reg): Rename argument `read' to `xread'.
6125 * (user_reg_add_builtin): Likewise.
6126 * (user_reg_add): Likewise.
6127 * (value_of_user_reg): Likewise.
6128
2108a63a
KR
61292020-03-17 Kamil Rytarowski <n54@gmx.com>
6130
6131 * sparc-nat.c (gdb_ptrace): New.
6132 * sparc-nat.c (sparc_fetch_inferior_registers)
6133 (sparc_store_inferior_registers) Remove obsolete comment.
6134 * sparc-nat.c (sparc_fetch_inferior_registers)
6135 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6136 * sparc-nat.c (sparc_fetch_inferior_registers)
6137 (sparc_store_inferior_registers) Use gdb_ptrace.
6138
a225c9a8
KR
61392020-03-17 Kamil Rytarowski <n54@gmx.com>
6140
6141 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6142 it to the ptrace call.
6143 * sh-nbsd-nat.c (store_registers): Likewise.
6144
98097623
KR
61452020-03-17 Kamil Rytarowski <n54@gmx.com>
6146
6147 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6148 nbsd_nat_target instead of inf_ptrace_target.
6149 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6150 nbsd_nat_target.
6151
9e38d619
KR
61522020-03-17 Kamil Rytarowski <n54@gmx.com>
6153
6154 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6155
a2ecbe9f
KR
61562020-03-17 Kamil Rytarowski <n54@gmx.com>
6157
6158 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6159 <sys/sysctl.h>.
6160 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6161
58990295
TV
61622020-03-17 Tom de Vries <tdevries@suse.de>
6163
6164 PR gdb/23710
6165 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6166 fields.
6167 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6168 fields.
6169 (process_imported_unit_die): Skip import of c++ CUs.
6170
771dd3a8
TT
61712020-03-16 Tom Tromey <tom@tromey.com>
6172
6173 * p-valprint.c (pascal_object_print_value): Initialize
6174 base_value.
6175
817a7585
AK
61762020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6177 Shahab Vahedi <shahab@synopsys.com>
6178
6179 * Makefile.in: Add arch/arc.o
6180 * configure.tgt: Likewise.
6181 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6182 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6183 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6184 * arc-tdep.h (arc_read_description): Add proto type.
6185 * arch/arc.c: New file.
6186 * arch/arc.h: Likewise.
6187 * features/Makefile: Replace old target descriptions with new.
6188 * features/arc-arcompact.c: Remove.
6189 * features/arc-arcompact.xml: Likewise.
6190 * features/arc-v2.c: Likewise
6191 * features/arc-v2.xml: Likewise
6192 * features/arc/aux-arcompact.xml: New file.
6193 * features/arc/aux-v2.xml: Likewise.
6194 * features/arc/core-arcompact.xml: Likewise.
6195 * features/arc/core-v2.xml: Likewise.
6196 * features/arc/aux-arcompact.c: Generate.
6197 * features/arc/aux-v2.c: Likewise.
6198 * features/arc/core-arcompact.c: Likewise.
6199 * features/arc/core-v2.c: Likewise.
6200 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6201
67430cd0
TT
62022020-03-16 Tom Tromey <tromey@adacore.com>
6203
6204 PR gdb/25663:
6205 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6206 putting value into bcache.
6207
30efb6c7
SM
62082020-03-16 Simon Marchi <simon.marchi@efficios.com>
6209
6210 PR gdb/21500
6211 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6212 to...
6213 (amd64_windows_init_abi_common): ... this. Don't set size of
6214 long type.
6215 (amd64_windows_init_abi): New function.
6216 (amd64_cygwin_init_abi): New function.
6217 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6218 the Cygwin OS ABI.
6219 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6220 comment.
6221
8db52437
SM
62222020-03-16 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6225 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6226 (pe_import_directory_entry): New struct type.
6227 (is_linked_with_cygwin_dll): New function.
6228 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6229 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6230 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6231
5982a56a
SM
62322020-03-16 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6235 i386_cygwin_core_osabi_sniffer.
6236
7a1998df
SM
62372020-03-16 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * i386-cygwin-tdep.c: Rename to...
6240 * i386-windows-tdep.c: ... this.
6241 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6242 i386-windows-tdep.c.
6243 * configure.tgt: Likewise.
6244
053205cc
SM
62452020-03-16 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6248 * osabi.c (gdb_osabi_names): Add "Windows".
6249 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6250 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6251 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6252 i386_cygwin_osabi_sniffer.
6253 (_initialize_i386_cygwin_tdep): Register OS ABI
6254 GDB_OSABI_WINDOWS for i386.
6255 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6256 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6257 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6258 for x86-64.
6259 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6260 when the target matches '*-*-mingw*'.
6261
fe4b2ee6
SM
62622020-03-16 Simon Marchi <simon.marchi@efficios.com>
6263
6264 * defs.h (enum gdb_osabi): Move to...
6265 * osabi.h (enum gdb_osabi): ... here.
6266 * gdbarch.sh: Include osabi.h in gdbarch.h.
6267 * gdbarch.h: Re-generate.
6268
cb9b645d
SM
62692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6272 function.
6273 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6274
3293bbaf
TT
62752020-03-14 Tom Tromey <tom@tromey.com>
6276
6277 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6278 for C++.
6279 (c_type_print_modifier): Likewise. Add "language" parameter.
6280 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6281 (c_type_print_base_1): Update.
6282 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6283 constants.
6284 * type-stack.c (type_stack::insert): Handle tp_atomic and
6285 tp_restrict.
6286 (type_stack::follow_type_instance_flags): Likewise.
6287 (type_stack::follow_types): Likewise. Merge type-following code.
6288 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6289 (space_identifier, cv_with_space_id)
6290 (const_or_volatile_or_space_identifier_noopt)
6291 (const_or_volatile_or_space_identifier): Remove.
6292 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6293 rules.
6294 (ptr_operator, typebase): Update.
6295 (enum token_flag) <FLAG_C>: New constant.
6296 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6297 "_Atomic".
6298 (lex_one_token): Handle FLAG_C.
6299
154151a6
KR
63002020-03-14 Kamil Rytarowski <n54@gmx.com>
6301
6302 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6303 it to the ptrace call.
6304 * m68k-bsd-nat.c (store_registers): Likewise.
6305
bc107784
KR
63062020-03-14 Kamil Rytarowski <n54@gmx.com>
6307
6308 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6309 gdb_byte *.
6310 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6311 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6312 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6313
01a80117
KR
63142020-03-14 Kamil Rytarowski <n54@gmx.com>
6315
6316 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6317 nbsd_nat_target instead of inf_ptrace_target.
6318 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6319 nbsd_nat_target.
6320
f90280ca
KR
63212020-03-14 Kamil Rytarowski <n54@gmx.com>
6322
6323 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6324 register_t.
6325
6def66f1
KR
63262020-03-14 Kamil Rytarowski <n54@gmx.com>
6327
6328 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6329 it to the ptrace call.
6330 * alpha-bsd-nat.c (store_registers): Likewise.
6331
66eaca97
KR
63322020-03-14 Kamil Rytarowski <n54@gmx.com>
6333
6334 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6335 includes.
6336 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6337 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6338 fill_fpregset): Likewise.
6339
4fed520b
KR
63402020-03-14 Kamil Rytarowski <n54@gmx.com>
6341
6342 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6343 nbsd_nat_target instead of inf_ptrace_target.
6344 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6345 nbsd_nat_target.
6346
2190cf06
KR
63472020-03-14 Kamil Rytarowski <n54@gmx.com>
6348
6349 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6350 register_t.
6351
75c56d3d
KR
63522020-03-14 Kamil Rytarowski <n54@gmx.com>
6353
6354 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6355 it to the ptrace call.
6356 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6357 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6358 * arm-nbsd-nat.c (store_register): Likewise.
6359 * arm-nbsd-nat.c (store_regs): Likewise.
6360 * arm-nbsd-nat.c (store_fp_register): Likewise.
6361 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6362
6018d381
KR
63632020-03-14 Kamil Rytarowski <n54@gmx.com>
6364
6365 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6366 nbsd_nat_target instead of inf_ptrace_target.
6367 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6368 nbsd_nat_target.
6369
013f99f0
KR
63702020-03-14 Kamil Rytarowski <n54@gmx.com>
6371
6372 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6373 it to the ptrace call.
6374 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6375
12753073
KR
63762020-03-14 Kamil Rytarowski <n54@gmx.com>
6377
6227b330
KR
6378 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6379 it to the ptrace call.
6380 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6381
63822020-03-14 Kamil Rytarowski <n54@gmx.com>
6383
6384 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6385 gdb_byte *.
12753073
KR
6386 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6387
d5be5fa4
KR
63882020-03-14 Kamil Rytarowski <n54@gmx.com>
6389
6390 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6391 instead of inf_ptrace_target.
6392 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6393 nbsd_nat_target.
6394
8110f842
KR
63952020-03-14 Kamil Rytarowski <n54@gmx.com>
6396
6397 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6398 register_t.
6399
52feded7
KR
64002020-03-14 Kamil Rytarowski <n54@gmx.com>
6401
6402 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6403 register_t.
6404
25567eee
KR
64052020-03-14 Kamil Rytarowski <n54@gmx.com>
6406
6407 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6408 register_t.
6409
426a9c18
TT
64102020-03-13 Tom Tromey <tom@tromey.com>
6411
6412 * value.h (val_print): Don't declare.
6413 * valprint.h (val_print_array_elements)
6414 (val_print_scalar_formatted, generic_val_print): Don't declare.
6415 * valprint.c (generic_val_print_array): Take a struct value.
6416 (generic_val_print_ptr, generic_val_print_memberptr)
6417 (generic_val_print_bool, generic_val_print_int)
6418 (generic_val_print_char, generic_val_print_complex)
6419 (generic_val_print): Remove.
6420 (generic_value_print): Update.
6421 (do_val_print): Remove unused parameters. Don't call
6422 la_val_print.
6423 (val_print): Remove.
6424 (common_val_print): Update. Don't call value_check_printable.
6425 (val_print_scalar_formatted, val_print_array_elements): Remove.
6426 * rust-lang.c (rust_val_print): Remove.
6427 (rust_language_defn): Update.
6428 * p-valprint.c (pascal_val_print): Remove.
6429 (pascal_value_print_inner): Update.
6430 (pascal_object_print_val_fields, pascal_object_print_val):
6431 Remove.
6432 (pascal_object_print_static_field): Update.
6433 * p-lang.h (pascal_val_print): Don't declare.
6434 * p-lang.c (pascal_language_defn): Update.
6435 * opencl-lang.c (opencl_language_defn): Update.
6436 * objc-lang.c (objc_language_defn): Update.
6437 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6438 * m2-lang.h (m2_val_print): Don't declare.
6439 * m2-lang.c (m2_language_defn): Update.
6440 * language.h (struct language_defn) <la_val_print>: Remove.
6441 * language.c (unk_lang_value_print_inner): Rename. Change
6442 argument types.
6443 (unknown_language_defn, auto_language_defn): Update.
6444 * go-valprint.c (go_val_print): Remove.
6445 * go-lang.h (go_val_print): Don't declare.
6446 * go-lang.c (go_language_defn): Update.
6447 * f-valprint.c (f_val_print): Remove.
6448 * f-lang.h (f_value_print): Don't declare.
6449 * f-lang.c (f_language_defn): Update.
6450 * d-valprint.c (d_val_print): Remove.
6451 * d-lang.h (d_value_print): Don't declare.
6452 * d-lang.c (d_language_defn): Update.
6453 * cp-valprint.c (cp_print_value_fields)
6454 (cp_print_value_fields_rtti, cp_print_value): Remove.
6455 (cp_print_static_field): Update.
6456 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6457 (c_val_print_struct, c_val_print_union, c_val_print_int)
6458 (c_val_print_memberptr, c_val_print): Remove.
6459 * c-lang.h (c_val_print_array, cp_print_value_fields)
6460 (cp_print_value_fields_rtti): Don't declare.
6461 * c-lang.c (c_language_defn, cplus_language_defn)
6462 (asm_language_defn, minimal_language_defn): Update.
6463 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6464 (ada_val_print_enum): Take a struct value.
6465 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6466 (ada_val_print): Remove.
6467 (ada_value_print_1): Update.
6468 (printable_val_type): Remove.
6469 * ada-lang.h (ada_val_print): Don't declare.
6470 * ada-lang.c (ada_language_defn): Update.
6471
42331a1e
TT
64722020-03-13 Tom Tromey <tom@tromey.com>
6473
6474 * valprint.c (do_val_print): Update.
6475 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6476 a struct value.
6477 (value_to_value_object_no_release): Declare.
6478 * python/py-value.c (value_to_value_object_no_release): New
6479 function.
6480 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6481 struct value.
6482 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6483 function.
6484 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6485 a struct value.
6486 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6487 Declare.
6488 (gdbscm_apply_val_pretty_printer): Take a struct value.
6489 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6490 value.
6491 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6492 value.
6493 * extension-priv.h (struct extension_language_ops)
6494 <apply_val_pretty_printer>: Take a struct value.
6495 * cp-valprint.c (cp_print_value): Create a struct value.
6496 (cp_print_value): Update.
6497
3a916a97
TT
64982020-03-13 Tom Tromey <tom@tromey.com>
6499
6500 * ada-valprint.c (print_field_values): Call common_val_print.
6501
b59eac37
TT
65022020-03-13 Tom Tromey <tom@tromey.com>
6503
6504 * ada-valprint.c (val_print_packed_array_elements): Remove
6505 bitoffset and val parameters. Call common_val_print.
6506 (ada_val_print_string): Remove offset, address, and original_value
6507 parameters.
6508 (ada_val_print_array): Update.
6509 (ada_value_print_array): New function.
6510 (ada_value_print_1): Call it.
6511
03371129
TT
65122020-03-13 Tom Tromey <tom@tromey.com>
6513
6514 * ada-valprint.c (ada_value_print): Use common_val_print.
6515
2e088f8b
TT
65162020-03-13 Tom Tromey <tom@tromey.com>
6517
6518 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6519
39ef85a8
TT
65202020-03-13 Tom Tromey <tom@tromey.com>
6521
6522 * ada-valprint.c (ada_value_print_num): New function.
6523 (ada_value_print_1): Use it.
6524
b9fa6e07
TT
65252020-03-13 Tom Tromey <tom@tromey.com>
6526
6527 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6528
416595d6
TT
65292020-03-13 Tom Tromey <tom@tromey.com>
6530
6531 * ada-valprint.c (ada_value_print_ptr): New function.
6532 (ada_value_print_1): Use it.
6533
5b5e15ec
TT
65342020-03-13 Tom Tromey <tom@tromey.com>
6535
6536 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6537 call common_val_print.
6538 (ada_val_print_1): Update.
6539 (ada_value_print_1): New function.
6540 (ada_value_print_inner): Rewrite.
6541
fbf54e75
TT
65422020-03-13 Tom Tromey <tom@tromey.com>
6543
6544 * cp-valprint.c (cp_print_value_fields): Update.
6545 (cp_print_value): New function.
6546
64b653ca
TT
65472020-03-13 Tom Tromey <tom@tromey.com>
6548
6549 * m2-valprint.c (m2_value_print_inner): Use
6550 cp_print_value_fields.
6551 * cp-valprint.c (cp_print_value_fields): New function.
6552 * c-valprint.c (c_value_print_struct): New function.
6553 (c_value_print_inner): Use c_value_print_struct.
6554 * c-lang.h (cp_print_value_fields): Declare.
6555
6999f067
TT
65562020-03-13 Tom Tromey <tom@tromey.com>
6557
6558 * c-valprint.c (c_value_print_array): New function.
6559 (c_value_print_inner): Use it.
6560
ce80b8bd
TT
65612020-03-13 Tom Tromey <tom@tromey.com>
6562
6563 * c-valprint.c (c_value_print_memberptr): New function.
6564 (c_value_print_inner): Use it.
6565
2faac269
TT
65662020-03-13 Tom Tromey <tom@tromey.com>
6567
6568 * c-valprint.c (c_value_print_int): New function.
6569 (c_value_print_inner): Use it.
6570
da3e2c29
TT
65712020-03-13 Tom Tromey <tom@tromey.com>
6572
6573 * c-valprint.c (c_value_print_ptr): New function.
6574 (c_value_print_inner): Use it.
6575
50836231
TT
65762020-03-13 Tom Tromey <tom@tromey.com>
6577
6578 * c-valprint.c (c_value_print_inner): Rewrite.
6579
4f412b6e
TT
65802020-03-13 Tom Tromey <tom@tromey.com>
6581
6582 * valprint.c (generic_value_print_complex): New function.
6583 (generic_value_print): Use it.
6584
f5354008
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * valprint.c (generic_val_print_float): Don't call
6588 val_print_scalar_formatted.
6589 (generic_val_print, generic_value_print): Update.
6590
3eec3b05
TT
65912020-03-13 Tom Tromey <tom@tromey.com>
6592
6593 * valprint.c (generic_value_print_char): New function
6594 (generic_value_print): Use it.
6595
fdddfccb
TT
65962020-03-13 Tom Tromey <tom@tromey.com>
6597
6598 * valprint.c (generic_value_print_int): New function.
6599 (generic_value_print): Use it.
6600
6dde7521
TT
66012020-03-13 Tom Tromey <tom@tromey.com>
6602
6603 * valprint.c (generic_value_print_bool): New function.
6604 (generic_value_print): Use it.
6605
4112d2e6
TT
66062020-03-13 Tom Tromey <tom@tromey.com>
6607
6608 * valprint.c (generic_val_print_func): Simplify.
6609 (generic_val_print, generic_value_print): Update.
6610
65786af6
TT
66112020-03-13 Tom Tromey <tom@tromey.com>
6612
6613 * valprint.c (generic_val_print_flags): Remove.
6614 (generic_val_print, generic_value_print): Update.
6615 (val_print_type_code_flags): Add original_value parameter.
6616
40f3ce18
TT
66172020-03-13 Tom Tromey <tom@tromey.com>
6618
6619 * valprint.c (generic_val_print): Update.
6620 (generic_value_print): Update.
6621 * valprint.c (generic_val_print_enum): Don't call
6622 val_print_scalar_formatted.
6623
2a5b130b
TT
66242020-03-13 Tom Tromey <tom@tromey.com>
6625
6626 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6627 * valprint.c (generic_value_print_ptr): New function.
6628
abc66ce9
TT
66292020-03-13 Tom Tromey <tom@tromey.com>
6630
6631 * valprint.c (generic_value_print): Rewrite.
6632
07a32858
TT
66332020-03-13 Tom Tromey <tom@tromey.com>
6634
6635 * p-valprint.c (pascal_object_print_value_fields)
6636 (pascal_object_print_value): New functions.
6637
64d64d3a
TT
66382020-03-13 Tom Tromey <tom@tromey.com>
6639
6640 * p-valprint.c (pascal_value_print_inner): Rewrite.
6641
6a95a1f5
TT
66422020-03-13 Tom Tromey <tom@tromey.com>
6643
6644 * f-valprint.c (f_value_print_innner): Rewrite.
6645
59fcdac6
TT
66462020-03-13 Tom Tromey <tom@tromey.com>
6647
6648 * m2-valprint.c (m2_print_unbounded_array): New overload.
6649 (m2_print_unbounded_array): Update.
6650 (m2_print_array_contents): Take a struct value.
6651 (m2_value_print_inner): Rewrite.
6652
d133c3e1
TT
66532020-03-13 Tom Tromey <tom@tromey.com>
6654
6655 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6656 (d_value_print_inner): New function.
6657 * d-lang.h (d_value_print_inner): Declare.
6658 * d-lang.c (d_language_defn): Use d_value_print_inner.
6659
23b0f06b
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * go-valprint.c (go_value_print_inner): New function.
6663 * go-lang.h (go_value_print_inner): Declare.
6664 * go-lang.c (go_language_defn): Use go_value_print_inner.
6665
5f56f7cb
TT
66662020-03-13 Tom Tromey <tom@tromey.com>
6667
6668 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6669 API.
6670 (rust_val_print): Rewrite.
6671 (rust_value_print_inner): New function, from rust_val_print.
6672 (rust_language_defn): Use rust_value_print_inner.
6673
26792ee0
TT
66742020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * ada-valprint.c (ada_value_print_inner): New function.
6677 * ada-lang.h (ada_value_print_inner): Declare.
6678 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6679
24051bbe
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * f-valprint.c (f_value_print_innner): New function.
6683 * f-lang.h (f_value_print_innner): Declare.
6684 * f-lang.c (f_language_defn): Use f_value_print_innner.
6685
c0941be6
TT
66862020-03-13 Tom Tromey <tom@tromey.com>
6687
6688 * p-valprint.c (pascal_value_print_inner): New function.
6689 * p-lang.h (pascal_value_print_inner): Declare.
6690 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6691
62c4663d
TT
66922020-03-13 Tom Tromey <tom@tromey.com>
6693
6694 * m2-valprint.c (m2_value_print_inner): New function.
6695 * m2-lang.h (m2_value_print_inner): Declare.
6696 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6697
62182190
TT
66982020-03-13 Tom Tromey <tom@tromey.com>
6699
6700 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6701 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6702 * c-valprint.c (c_value_print_inner): New function.
6703 * c-lang.h (c_value_print_inner): Declare.
6704 * c-lang.c (c_language_defn, cplus_language_defn)
6705 (asm_language_defn, minimal_language_defn): Use
6706 c_value_print_inner.
6707
1e592a8a
TT
67082020-03-13 Tom Tromey <tom@tromey.com>
6709
6710 * p-valprint.c (pascal_object_print_value_fields): Now static.
6711 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6712
7fe471e9
TT
67132020-03-13 Tom Tromey <tom@tromey.com>
6714
6715 * c-valprint.c (c_val_print_array): Simplify.
6716
d121c6ce
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * valprint.c (value_print_array_elements): New function.
6720 * valprint.h (value_print_array_elements): Declare.
6721
4dba70ee
TT
67222020-03-13 Tom Tromey <tom@tromey.com>
6723
6724 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6725 * mips-tdep.c (mips_print_register): Use
6726 value_print_scalar_formatted.
6727
4f9ae810
TT
67282020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * valprint.h (value_print_scalar_formatted): Declare.
6731 * valprint.c (value_print_scalar_formatted): New function.
6732
156bfec9
TT
67332020-03-13 Tom Tromey <tom@tromey.com>
6734
6735 * valprint.h (generic_value_print): Declare.
6736 * valprint.c (generic_value_print): New function.
6737
2b4e573d
TT
67382020-03-13 Tom Tromey <tom@tromey.com>
6739
6740 * valprint.c (do_val_print): Call la_value_print_inner, if
6741 available.
6742 * rust-lang.c (rust_language_defn): Update.
6743 * p-lang.c (pascal_language_defn): Update.
6744 * opencl-lang.c (opencl_language_defn): Update.
6745 * objc-lang.c (objc_language_defn): Update.
6746 * m2-lang.c (m2_language_defn): Update.
6747 * language.h (struct language_defn) <la_value_print_inner>: New
6748 member.
6749 * language.c (unknown_language_defn, auto_language_defn): Update.
6750 * go-lang.c (go_language_defn): Update.
6751 * f-lang.c (f_language_defn): Update.
6752 * d-lang.c (d_language_defn): Update.
6753 * c-lang.c (c_language_defn, cplus_language_defn)
6754 (asm_language_defn, minimal_language_defn): Update.
6755 * ada-lang.c (ada_language_defn): Update.
6756
a1f6a07c
TT
67572020-03-13 Tom Tromey <tom@tromey.com>
6758
6759 * c-valprint.c (c_value_print): Use common_val_print.
6760
410cf315
TT
67612020-03-13 Tom Tromey <tom@tromey.com>
6762
6763 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6764
72a45c93
TT
67652020-03-13 Tom Tromey <tom@tromey.com>
6766
6767 * f-valprint.c (f77_print_array_1, f_val_print): Use
6768 common_val_print.
6769
040f66bd
TT
67702020-03-13 Tom Tromey <tom@tromey.com>
6771
6772 * riscv-tdep.c (riscv_print_one_register_info): Use
6773 common_val_print.
6774
a6e05a6c
TT
67752020-03-13 Tom Tromey <tom@tromey.com>
6776
6777 * mi/mi-main.c (output_register): Use common_val_print.
6778
3444c526
TT
67792020-03-13 Tom Tromey <tom@tromey.com>
6780
6781 * infcmd.c (default_print_one_register_info): Use
6782 common_val_print.
6783
c2a44efe
TT
67842020-03-13 Tom Tromey <tom@tromey.com>
6785
6786 * valprint.h (common_val_print_checked): Declare.
6787 * valprint.c (common_val_print_checked): New function.
6788 * stack.c (print_frame_arg): Use common_val_print_checked.
6789
b0c26e99
TT
67902020-03-13 Tom Tromey <tom@tromey.com>
6791
6792 * valprint.c (do_val_print): New function, from val_print.
6793 (val_print): Use do_val_print.
6794 (common_val_print): Use do_val_print.
6795
ce3acbe9
TT
67962020-03-13 Tom Tromey <tom@tromey.com>
6797
6798 * valprint.c (value_print): Use scoped_value_mark.
6799
96c7f873
TV
68002020-03-13 Tom de Vries <tdevries@suse.de>
6801
6802 PR symtab/25646
6803 * psymtab.c (partial_symtab::partial_symtab): Don't set
6804 globals_offset and statics_offset. Push element onto
6805 current_global_psymbols and current_static_psymbols stacks.
6806 (concat): New function.
6807 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6808 element from current_global_psymbols and current_static_psymbols
6809 stacks. Concat popped elements to global_psymbols and
6810 static_symbols.
6811 (add_psymbol_to_list): Use current_global_psymbols and
6812 current_static_psymbols stacks.
6813 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6814 current_static_psymbols fields.
6815
6ba0a321
CB
68162020-03-12 Christian Biesinger <cbiesinger@google.com>
6817
6818 * corelow.c (sniff_core_bfd): Remove.
6819 (class core_target) <m_core_vec>: Remove.
6820 (core_target::core_target): Update.
6821 (core_file_fns): Remove.
6822 (deprecated_add_core_fns): Remove.
6823 (default_core_sniffer): Remove.
6824 (sniff_core_bfd): Remove.
6825 (default_check_format): Remove.
6826 (gdb_check_format): Remove.
6827 (core_target_open): Update.
6828 (core_target::get_core_register_section): Update.
6829 (get_core_registers_cb): Update.
6830 (core_target::fetch_registers): Update.
6831 * gdbcore.h (struct core_fns): Remove.
6832 (deprecated_add_core_fns): Remove.
6833 (default_core_sniffer): Remove.
6834 (default_check_format): Remove.
6835
227031b2
TT
68362020-03-12 Tom Tromey <tom@tromey.com>
6837
6838 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6839 CORE_ADDR.
6840 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6841
53807e9f
TT
68422020-03-12 Tom Tromey <tom@tromey.com>
6843
6844 * remote.c (remote_target::download_tracepoint)
6845 (remote_target::enable_tracepoint)
6846 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6847 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6848 sprintf_vma.
6849
64f25102
TT
68502020-03-12 Tom Tromey <tom@tromey.com>
6851
6852 * symfile-mem.c: Update CORE_ADDR size assert.
6853
272cd5a3
SM
68542020-03-12 Simon Marchi <simon.marchi@efficios.com>
6855
6856 * selftest.m4: Move to gdbsupport/.
6857 * acinclude.m4: Update path to selftest.m4.
6858
74cd3f9d
SM
68592020-03-12 Simon Marchi <simon.marchi@efficios.com>
6860
6861 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6862 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6863 gdbarch-selfselftests.c and selftest-arch.c.
6864 (SUBDIR_UNITTESTS_OBS): Rename to...
6865 (SELFTESTS_OBS): ... this.
6866 (COMMON_SFILES): Remove disasm-selftests.c and
6867 gdbarch-selftests.c.
6868 * configure.ac: Don't add selftest-arch.{c,o} to
6869 CONFIG_{SRCS,OBS}.
6870 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6871 preprocessor conditions.
6872
db6878ac
SM
68732020-03-12 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * configure.ac: Don't source bfd/development.sh.
6876 * selftest.m4: Modify comment.
6877 * configure: Re-generate.
6878
4d696a5c
SM
68792020-03-12 Simon Marchi <simon.marchi@efficios.com>
6880
6881 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6882 not "true" or "false".
6883 * configure: Re-generate.
6884
8dd8e1c7
CB
68852020-03-12 Christian Biesinger <cbiesinger@google.com>
6886
6887 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6888 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6889 renamed to arm_nbsd_supply_gregset.
6890 (fetch_register): Update to call arm_nbsd_supply_gregset.
6891 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6892 (arm_netbsd_nat_target::fetch_registers): Update.
6893 (fetch_elfcore_registers): Removed.
6894 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6895 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6896 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6897 not require NetBSD system headers.
6898 (arm_nbsd_regset): New struct.
6899 (arm_nbsd_iterate_over_regset_sections): New function.
6900 (arm_netbsd_init_abi_common): Updated to call
6901 set_gdbarch_iterate_over_regset_sections.
6902 * arm-nbsd-tdep.h: New file.
6903
dd69bf7a
KB
69042020-03-11 Kevin Buettner <kevinb@redhat.com>
6905
6906 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6907 recursion.
6908
a0761e34
SM
69092020-03-11 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * configure: Re-generate.
6912
e7a82140
TT
69132020-03-11 Tom Tromey <tromey@adacore.com>
6914
6915 * ada-typeprint.c (print_choices): Fix comment.
6916
dcc050c8
AB
69172020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6918
6919 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6920 previous item in the list, when the list has no items.
6921
1c33af77
TV
69222020-03-11 Tom de Vries <tdevries@suse.de>
6923
6924 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6925 PROP_LOCLIST handling code.
6926
8c95582d
AB
69272020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6928
6929 * buildsym-legacy.c (record_line): Pass extra parameter to
6930 record_line.
6931 * buildsym.c (buildsym_compunit::record_line): Take an extra
6932 parameter, reduce duplication in the line table, and record the
6933 is_stmt flag in the line table.
6934 * buildsym.h (buildsym_compunit::record_line): Add extra
6935 parameter.
6936 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6937 non-statement lines.
6938 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6939 this to the symtab builder.
6940 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6941 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6942 through to dwarf_record_line_1.
6943 * infrun.c (process_event_stop_test): When stepping, don't stop at
6944 a non-statement instruction, and only refresh the step info when
6945 we land in the middle of a line's range. Also add an extra
6946 comment.
6947 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6948 field.
6949 * record-btrace.c (btrace_find_line_range): Only record lines
6950 marked as is-statement.
6951 * stack.c (frame_show_address): Show the frame address if we are
6952 in a non-statement sal.
6953 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6954 (maintenance_print_one_line_table): Print a header for the is_stmt
6955 column, and include is_stmt information in the output.
6956 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6957 preference to non-statements.
6958 (find_pcs_for_symtab_line): Prefer is-statement entries.
6959 (find_line_common): Likewise.
6960 * symtab.h (struct linetable_entry): Add is_stmt field.
6961 (struct symtab_and_line): Likewise.
6962 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6963 arranging the line table.
6964
e4003a34
TV
69652020-03-07 Tom de Vries <tdevries@suse.de>
6966
6967 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6968 DIE.
6969
e8932576
TT
69702020-03-07 Tom Tromey <tom@tromey.com>
6971
6972 * valops.c (value_literal_complex): Remove obsolete comment.
6973 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6974 comment.
6975
29734269
SM
69762020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6977
6978 * infrun.h: Forward-declare thread_info.
6979 (set_step_info): Add thread_info parameter, add doc.
6980 * infrun.c (set_step_info): Add thread_info parameter, move doc
6981 to header.
6982 * infrun.c (process_event_stop_test): Pass thread to
6983 set_step_info call.
6984 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6985 set_step_info.
6986 (prepare_one_step): Add thread_info parameter, pass it to
6987 set_step_frame and prepare_one_step (recursive) call.
6988 (step_1): Pass thread to prepare_one_step call.
6989 (step_command_fsm::should_stop): Pass thread to
6990 prepare_one_step.
6991 (until_next_fsm): Pass thread to set_step_frame call.
6992 (finish_command): Pass thread to set_step_info call.
6993
b7d64b29
HD
69942020-03-06 Hannes Domani <ssbssa@yahoo.de>
6995
6996 * windows-tdep.c (windows_solib_create_inferior_hook):
6997 Check if inferior is running.
6998
09f2921c
TV
69992020-03-06 Tom de Vries <tdevries@suse.de>
7000
7001 * NEWS: Fix "the the".
7002 * ctfread.c: Same.
7003
fd760e79
TV
70042020-03-06 Tom de Vries <tdevries@suse.de>
7005
7006 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7007
20ea4a60
AB
70082020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * .dir-locals.el: Add a comment referencing the other copies of
7011 this file.
7012
0afbabf0
JB
70132020-03-05 John Baldwin <jhb@FreeBSD.org>
7014
7015 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7016 psargs.
7017
842806cb
TBA
70182020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7019
7020 * .gitattributes: New file.
7021
be1e3d3e
TT
70222020-03-04 Tom Tromey <tom@tromey.com>
7023
7024 * symmisc.c (print_symbol_bcache_statistics)
7025 (print_objfile_statistics): Update.
7026 * symfile.c (allocate_symtab): Use intern.
7027 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7028 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7029 macro_cache>: Remove.
7030 <string_cache>: New member.
7031 (struct objfile) <intern>: New methods.
7032 * elfread.c (elf_symtab_read): Use intern.
7033 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7034 (dwarf2_compute_name, dwarf2_physname)
7035 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7036 names.
7037 (guess_partial_die_structure_name): Update.
7038 (partial_die_info::fixup): Intern name.
7039 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7040 name.
7041 (dwarf2_name): Intern name. Update.
7042 * buildsym.c (buildsym_compunit::get_macro_table): Use
7043 string_cache.
7044
4e7625fd
TT
70452020-03-04 Tom Tromey <tom@tromey.com>
7046
7047 * jit.c (bfd_open_from_target_memory): Make "target" const.
7048 * corefile.c (gnutarget): Now const.
7049 * gdbcore.h (gnutarget): Now const.
7050
46f9f931
HD
70512020-03-04 Hannes Domani <ssbssa@yahoo.de>
7052
7053 * NEWS: Mention support for WOW64 processes.
7054 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7055 (amd64_windows_segment_register_p): Remove static.
7056 (_initialize_amd64_windows_nat): Update.
7057 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7058 * i386-windows-nat.c (context_offset): Update.
7059 (i386_mappings): Rename and remove static.
7060 (i386_windows_segment_register_p): Remove static.
7061 (_initialize_i386_windows_nat): Update.
7062 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7063 (STATUS_WX86_SINGLE_STEP): New macro.
7064 (EnumProcessModulesEx): New macro.
7065 (Wow64SuspendThread): New macro.
7066 (Wow64GetThreadContext): New macro.
7067 (Wow64SetThreadContext): New macro.
7068 (Wow64GetThreadSelectorEntry): New macro.
7069 (windows_set_context_register_offsets): Add static.
7070 (windows_set_segment_register_p): Likewise.
7071 (windows_add_thread): Adapt for WOW64 processes.
7072 (windows_fetch_one_register): Likewise.
7073 (windows_nat_target::fetch_registers): Likewise.
7074 (windows_store_one_register): Likewise.
7075 (display_selector): Likewise.
7076 (display_selectors): Likewise.
7077 (handle_exception): Likewise.
7078 (windows_continue): Likewise.
7079 (windows_nat_target::resume): Likewise.
7080 (windows_add_all_dlls): Likewise.
7081 (do_initial_windows_stuff): Likewise.
7082 (windows_nat_target::attach): Likewise.
7083 (windows_get_exec_module_filename): Likewise.
7084 (windows_nat_target::create_inferior): Likewise.
7085 (windows_xfer_siginfo): Likewise.
7086 (_initialize_loadable): Initialize Wow64SuspendThread,
7087 Wow64GetThreadContext, Wow64SetThreadContext,
7088 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7089 * windows-nat.h (windows_set_context_register_offsets):
7090 Remove declaration.
7091 (windows_set_segment_register_p): Likewise.
7092 (i386_windows_segment_register_p): Add declaration.
7093 (amd64_windows_segment_register_p): Likewise.
7094
440cf44e
LM
70952020-03-04 Luis Machado <luis.machado@linaro.org>
7096
7097 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7098 in "info registers" for AArch64/ARM.
7099
7100 The change caused "info registers" to not print GPR's.
7101
7102 gdb/ChangeLog:
7103
7104 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7105
7106 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7107 when reg->group is empty and reggroup is not.
7108
1009d92f
TT
71092020-03-03 Tom Tromey <tromey@adacore.com>
7110
7111 * dwarf2/frame.c (struct dwarf2_frame_cache)
7112 <checked_tailcall_bottom, entry_cfa_sp_offset,
7113 entry_cfa_sp_offset_p>: Remove members.
7114 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7115 (dwarf2_frame_prev_register): Don't call
7116 dwarf2_tailcall_sniffer_first.
7117 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7118 * frame-unwind.c (add_unwinder): New fuction.
7119 (frame_unwind_init): Use it. Add tailcall unwinder.
7120
5e5d66b6
AB
71212020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7122 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7123
7124 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7125 value should be printed as true.
7126
584cf46d
HD
71272020-03-03 Hannes Domani <ssbssa@yahoo.de>
7128
7129 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7130 (windows_init_abi): Set and use windows_so_ops.
7131
7b973adc
SDJ
71322020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7133
7134 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7135 when verifying if dealing with a convenience variable.
7136
bb7b70ab
LM
71372020-03-03 Luis Machado <luis.machado@linaro.org>
7138
7139 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7140
9822cb57
SM
71412020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * infrun.c (gdbarch_supports_displaced_stepping): New.
7144 (use_displaced_stepping): Break up conditions in smaller pieces.
7145 Use gdbarch_supports_displaced_stepping.
7146 (displaced_step_prepare_throw): Use
7147 gdbarch_supports_displaced_stepping.
7148
63e163f2
AB
71492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7150
7151 * NEWS: Mention new behaviour of the history filename.
7152 * top.c (write_history_p): Add comment.
7153 (show_write_history_p): Add header comment, give a different
7154 message when history writing is on, but the history filename is
7155 empty.
7156 (history_filename): Add comment.
7157 (history_filename_empty): New function.
7158 (show_history_filename): Add header comment, give a different
7159 message when the filename is empty.
7160 (init_history): Compare history_filename against nullptr, and only
7161 read history if the filename is not empty.
7162 (set_history_filename): Add header comment, and only make
7163 non-empty filenames absolute.
7164 (init_main): Make the filename argument to 'set history filename'
7165 optional.
7166
81b86b97
CB
71672020-03-02 Christian Biesinger <cbiesinger@google.com>
7168
7169 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7170 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7171 (fetch_fp_register): Update.
7172 (fetch_fp_regs): Update.
7173 (store_fp_register): Update.
7174 (store_fp_regs): Update.
7175 (arm_netbsd_nat_target::read_description): New function.
7176 (fetch_elfcore_registers): Update.
7177
24ed6739
AB
71782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7179
7180 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7181 general_thread if the stop reply is missing a thread-id.
7182 (remote_target::process_stop_reply): Use the first non-exited
7183 thread if the target didn't pass a thread-id.
7184 * infrun.c (do_target_wait): Move call to
7185 switch_to_inferior_no_thread to ....
7186 (do_target_wait_1): ... here.
7187
a84bb2a0
JT
71882020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7189
7190 * debuginfod-support.c: Include defs.h first.
7191
658dadf0
TV
71922020-02-28 Tom de Vries <tdevries@suse.de>
7193
7194 * symfile.c (set_initial_language): Use default language for lookup.
7195
4ebe4877
SM
71962020-02-28 Simon Marchi <simon.marchi@efficios.com>
7197
7198 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7199 reader variable, pass `this` to read_cutu_die_from_dwo.
7200
e5da1139
AM
72012020-02-27 Aaron Merey <amerey@redhat.com>
7202
7203 * source.c (open_source_file): Check for nullptr when computing
7204 srcpath.
7205
317f7127
TT
72062020-02-27 Tom Tromey <tromey@adacore.com>
7207
7208 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7209 member.
7210 (dwarf2_add_field): Don't update nfields.
7211 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7212
3104d9ee
AB
72132020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7216 abs.
7217
b83470bf
TT
72182020-02-26 Tom Tromey <tom@tromey.com>
7219
7220 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7221 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7222 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7223 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7224 per_cu_data.
7225
edfe0a0c
TT
72262020-02-26 Tom Tromey <tom@tromey.com>
7227
7228 * dwarf2/index-write.c (psym_index_map): Change type.
7229 (add_address_entry_worker, write_one_signatured_type)
7230 (recursively_count_psymbols, recursively_write_psymbols)
7231 (class debug_names, psyms_seen_size, write_gdbindex)
7232 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7233
0d79cdc4
AM
72342020-02-26 Aaron Merey <amerey@redhat.com>
7235
7236 * Makefile.in: Handle optional debuginfod support.
7237 * NEWS: Update.
7238 * README: Add --with-debuginfod summary.
7239 * config.in: Regenerate.
7240 * configure: Regenerate.
7241 * configure.ac: Handle optional debuginfod support.
7242 * debuginfod-support.c: debuginfod helper functions.
7243 * debuginfod-support.h: Ditto.
7244 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7245 summary.
7246 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7247 when a dwz file cannot be found.
7248 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7249 debuginfo file cannot be found.
7250 * source.c (open_source_file): Query debuginfod servers when a
7251 source file cannot be found.
7252 * top.c (print_gdb_configuration): Include
7253 --{with,without}-debuginfod in the output.
7254
b65ce565
JG
72552020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7256
7257 * thread.c (thr_try_catch_cmd): Print thread name.
7258
d4c9a4f8
SM
72592020-02-26 Simon Marchi <simon.marchi@efficios.com>
7260
7261 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7262 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7263 dwarf2_fetch_die_type_sect_off): Move to...
7264 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7265 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7266 dwarf2_fetch_die_type_sect_off): ... here.
7267 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7268 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7269 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7270
0dce4280
TV
72712020-02-26 Tom de Vries <tdevries@suse.de>
7272
7273 PR gdb/25603
7274 * symfile.c (set_initial_language): Exit-early if
7275 language_mode == language_mode_manual.
7276
450a1bfc
SM
72772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7278
7279 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7280 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7281 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7282
9e80cfa1
AB
72832020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * gdbtypes.c (create_array_type_with_stride): Handle negative
7286 array strides.
7287 * valarith.c (value_subscripted_rvalue): Likewise.
7288
09624f1f
LM
72892020-02-25 Luis Machado <luis.machado@linaro.org>
7290
7291 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7292
8cb5117c
SM
72932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7294
7295 * loc.h (dwarf2_get_die_type): Move to...
7296 * read.h (dwarf2_get_die_type): ... here.
7297 * read.c (dwarf2_get_die_type): Move doc to header.
7298
c325c44e
JB
72992020-02-25 Joel Brobecker <brobecker@adacore.com>
7300
7301 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7302 'gnulib/Makefile.in' to the list.
7303
4ac93832
TT
73042020-02-24 Tom Tromey <tom@tromey.com>
7305
7306 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7307 Remove.
7308 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7309 XOBNEWVEC.
7310
197400e8
TT
73112020-02-24 Tom Tromey <tom@tromey.com>
7312
7313 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7314 New method.
7315 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7316 (dw2_do_instantiate_symtab, dw2_get_file_names)
7317 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7318
76935768
TT
73192020-02-24 Tom Tromey <tom@tromey.com>
7320
7321 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7322 make_scoped_restore.
7323 (dwarf2_psymtab::read_symtab): Don't clear
7324 reading_partial_symbols.
7325
a88ef40d
TV
73262020-02-24 Tom de Vries <tdevries@suse.de>
7327
7328 PR gdb/25592
7329 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7330
c9af6521
TV
73312020-02-24 Tom de Vries <tdevries@suse.de>
7332
7333 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7334 commands layout next/prev/regs.
7335
5707a07a
TT
73362020-02-22 Tom Tromey <tom@tromey.com>
7337
7338 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7339 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7340
3b0fb49e
TT
73412020-02-22 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7344
283be8bf
TT
73452020-02-22 Tom Tromey <tom@tromey.com>
7346
7347 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7348 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7349 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7350 * tui/tui.c (_initialize_tui): Add usage text.
7351
ca793b96
TT
73522020-02-22 Tom Tromey <tom@tromey.com>
7353
7354 * tui/tui-win.c (tui_set_focus_command)
7355 (tui_set_win_height_command): Use error_no_arg.
7356 (_initialize_tui_win): Update help text.
7357 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7358
432b5c40
TT
73592020-02-22 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7362 * tui/tui-disasm.h (struct tui_disasm_window)
7363 <display_start_addr>: Declare.
7364 * tui/tui-source.h (struct tui_source_window)
7365 <display_start_addr>: Declare.
7366 * tui/tui-winsource.h (struct tui_source_window_base)
7367 <show_source_line, display_start_addr>: New methods.
7368 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7369 Rename and move to protected section.
7370 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7371 (tui_source_window_base::do_erase_source_content): Update.
7372 (tui_source_window_base::show_source_line): Now a method.
7373 (tui_source_window_base::show_source_content)
7374 (tui_source_window_base::tui_source_window_base)
7375 (tui_source_window_base::rerender)
7376 (tui_source_window_base::refill)
7377 (tui_source_window_base::do_scroll_horizontal)
7378 (tui_source_window_base::set_is_exec_point_at)
7379 (tui_source_window_base::update_breakpoint_info)
7380 (tui_source_window_base::update_exec_info): Update.
7381 * tui/tui-source.c (tui_source_window::set_contents)
7382 (tui_source_window::showing_source_p)
7383 (tui_source_window::do_scroll_vertical)
7384 (tui_source_window::location_matches_p)
7385 (tui_source_window::line_is_displayed): Update.
7386 (tui_source_window::display_start_addr): New method.
7387 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7388 (tui_disasm_window::do_scroll_vertical)
7389 (tui_disasm_window::location_matches_p): Update.
7390 (tui_disasm_window::display_start_addr): New method.
7391
01b1af32
TT
73922020-02-22 Tom Tromey <tom@tromey.com>
7393
7394 * NEWS: Add entry for gdb.register_window_type.
7395 * tui/tui-layout.h (window_factory): New typedef.
7396 (tui_register_window): Declare.
7397 * tui/tui-layout.c (saved_tui_windows): New global.
7398 (tui_apply_current_layout): Use it.
7399 (tui_register_window): New function.
7400 * python/python.c (do_start_initialization): Call
7401 gdbpy_initialize_tui.
7402 (python_GdbMethods): Add "register_window_type" function.
7403 * python/python-internal.h (gdbpy_register_tui_window)
7404 (gdbpy_initialize_tui): Declare.
7405 * python/py-tui.c: New file.
7406 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7407
fc96d20b
TT
74082020-02-22 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7411
935c78c0
TT
74122020-02-22 Tom Tromey <tom@tromey.com>
7413
7414 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7415 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7416 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7417 (tui_set_win_focus_to): Move from tui-win.c.
7418
0240c8f1
TT
74192020-02-22 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7422 functions.
7423 (known_window_types): New global.
7424 (tui_get_window_by_name): Reimplement.
7425 (initialize_known_windows): New function.
7426 (validate_window_name): Rewrite.
7427 (_initialize_tui_layout): Call initialize_known_windows.
7428
fdb01f0c
TT
74292020-02-22 Tom Tromey <tom@tromey.com>
7430
7431 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7432 Remove constants.
7433 * tui/tui-winsource.h (struct tui_source_window_base)
7434 <tui_source_window_base>: Remove parameter.
7435 * tui/tui-winsource.c
7436 (tui_source_window_base::tui_source_window_base): Remove
7437 parameter.
7438 (tui_source_window_base::refill): Update.
7439 * tui/tui-stack.h (struct tui_locator_window)
7440 <tui_locator_window>: Update.
7441 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7442 Default the constructor.
7443 * tui/tui-regs.h (struct tui_data_item_window)
7444 <tui_data_item_window>: Default the constructor.
7445 (struct tui_data_window) <tui_data_window>: Likewise.
7446 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7447 Default the constructor.
7448 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7449 Default the constructor.
7450 <type>: Remove.
7451 (struct tui_win_info) <tui_win_info>: Default the constructor.
7452 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7453 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7454 Default the constructor.
7455
865a5aec
TT
74562020-02-22 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7459 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7460 * tui/tui-win.c (tui_resize_all): Don't call
7461 tui_delete_invisible_windows.
7462 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7463 done.
7464 (tui_set_layout): Update.
7465 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7466 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7467 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7468
e098d18c
TT
74692020-02-22 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7472 correctly.
7473
eb9c8874
TT
74742020-02-22 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7477
7eed1a8e
TT
74782020-02-22 Tom Tromey <tom@tromey.com>
7479
7480 * tui/tui-winsource.h (struct tui_source_window_iterator)
7481 <inner_iterator>: New etytypedef.
7482 <tui_source_window_iterator>: Take "end" parameter.
7483 <tui_source_window_iterator>: Take iterator.
7484 <operator*, advance>: Update.
7485 <m_iter>: Change type.
7486 <m_end>: New field.
7487 (struct tui_source_windows) <begin, end>: Update.
7488 * tui/tui-layout.c (tui_windows): New global.
7489 (tui_apply_current_layout): Clear tui_windows.
7490 (tui_layout_window::apply): Update tui_windows.
7491 * tui/tui-data.h (tui_windows): Declare.
7492 (all_tui_windows): Now inline function.
7493 (class tui_window_iterator, struct all_tui_windows): Remove.
7494
7c043ba6
TT
74952020-02-22 Tom Tromey <tom@tromey.com>
7496
7497 PR tui/17850:
7498 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7499 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7500 "height" argument.
7501 (class tui_layout_window) <get_sizes>: Likewise.
7502 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7503 argument.
7504 <get_sizes>: Add "height" argument.
7505 <m_vertical>: New field.
7506 * tui/tui-layout.c (tui_layout_split::clone): Update.
7507 (tui_layout_split::get_sizes): Add "height" argument.
7508 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7509 (tui_new_layout_command): Parse "-horizontal".
7510 (_initialize_tui_layout): Update help string.
7511 (tui_layout_split::specification): Add "-horizontal" when needed.
7512 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7513 argument.
7514 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7515 New methods.
7516
6bc56648
TT
75172020-02-22 Tom Tromey <tom@tromey.com>
7518
7519 * tui/tui-layout.h (enum tui_adjust_result): New.
7520 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7521 (class tui_layout_window) <adjust_size>: Return
7522 tui_adjust_result. Rewrite.
7523 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7524 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7525
c22fef7e
TT
75262020-02-22 Tom Tromey <tom@tromey.com>
7527
7528 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7529 parameter and return types.
7530 (class tui_layout_base) <specification>: Add "depth".
7531 (class tui_layout_window) <specification>: Add "depth".
7532 (class tui_layout_split) <specification>: Add "depth".
7533 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7534 and return types.
7535 (tui_new_layout_command): Parse sub-layouts.
7536 (_initialize_tui_layout): Update help string.
7537 (tui_layout_window::specification): Add "depth".
7538 (add_layout_command): Update.
7539
ee325b61
TT
75402020-02-22 Tom Tromey <tom@tromey.com>
7541
7542 * NEWS: Add "tui new-layout" item.
7543 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7544 Add new-layout command to help text.
7545 (validate_window_name): New function.
7546 (tui_new_layout_command): New function.
7547 (_initialize_tui_layout): Register "new-layout".
7548 (tui_layout_window::specification): New method.
7549 (tui_layout_window::specification): New method.
7550 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7551 method.
7552 (class tui_layout_window) <specification>: New method.
7553 (class tui_layout_split) <specification>: New method.
7554
416eb92d
TT
75552020-02-22 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7558 * tui/tui-win.c (window_name_completer): Update comment.
7559 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7560 Declare method.
7561 (class tui_layout_window) <replace_window>: Likewise.
7562 (class tui_layout_split) <replace_window>: Likewise.
7563 (tui_set_layout): Don't declare.
7564 (tui_set_initial_layout): Declare function.
7565 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7566 (asm_regs_layout): New globals.
7567 (tui_current_layout, show_layout): Remove.
7568 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7569 (find_layout, tui_apply_layout): New function.
7570 (layout_completer): Remove.
7571 (tui_next_layout): Reimplement.
7572 (tui_next_layout_command): New function.
7573 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7574 (tui_regs_layout): Reimplement.
7575 (tui_regs_layout_command): New function.
7576 (extract_display_start_addr): Rewrite.
7577 (next_layout, prev_layout): Remove.
7578 (tui_layout_window::replace_window): New method.
7579 (tui_layout_split::replace_window): New method.
7580 (destroy_layout): New function.
7581 (layout_list): New global.
7582 (add_layout_command): New function.
7583 (initialize_layouts): Update.
7584 (tui_layout_command): New function.
7585 (_initialize_tui_layout): Install "layout" commands.
7586 * tui/tui-data.h (enum tui_layout_type): Remove.
7587 (tui_current_layout): Don't declare.
7588
0dbc2fc7
TT
75892020-02-22 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-regs.c (tui_reg_layout): Remove.
7592 (tui_reg_command): Use tui_regs_layout.
7593 * tui/tui-layout.h (tui_reg_command): Declare.
7594 * tui/tui-layout.c (tui_reg_command): New function.
7595
5afe342e
TT
75962020-02-22 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui.c (tui_rl_delete_other_windows): Call
7599 tui_remove_some_windows.
7600 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7601 Declare method.
7602 (class tui_layout_window) <remove_windows>: New method.
7603 (class tui_layout_split) <remove_windows>: Declare.
7604 (tui_remove_some_windows): Declare.
7605 * tui/tui-layout.c (tui_remove_some_windows): New function.
7606 (tui_layout_split::remove_windows): New method.
7607
427326a8
TT
76082020-02-22 Tom Tromey <tom@tromey.com>
7609
7610 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7611 * tui/tui-layout.h (tui_next_layout): Declare.
7612 * tui/tui-layout.c (tui_next_layout): New function.
7613
3fe12b6d
TT
76142020-02-22 Tom Tromey <tom@tromey.com>
7615
7616 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7617 correct coordinates.
7618
59b8b5d2
TT
76192020-02-22 Tom Tromey <tom@tromey.com>
7620
7621 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7622 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7623 DATA_WIN case.
7624
2a3d458b
TT
76252020-02-22 Tom Tromey <tom@tromey.com>
7626
7627 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7628 TUI_DISASM_WIN, not tui_win_list.
7629
3f0cbb04
TT
76302020-02-22 Tom Tromey <tom@tromey.com>
7631
7632 * valprint.c (generic_val_print_enum_1)
7633 (val_print_type_code_flags): Style member names.
7634 * rust-lang.c (val_print_struct, rust_print_enum)
7635 (rust_print_struct_def, rust_internal_print_type): Style member
7636 names.
7637 * p-valprint.c (pascal_object_print_value_fields): Style member
7638 names. Only call fprintf_symbol_filtered for static members.
7639 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7640 * f-valprint.c (f_val_print): Style member names.
7641 * f-typeprint.c (f_type_print_base): Style member names.
7642 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7643 call fprintf_symbol_filtered for static members.
7644 (cp_print_class_member): Style member names.
7645 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7646 member names.
7647 * ada-valprint.c (ada_print_scalar): Style enum names.
7648 (ada_val_print_enum): Likewise.
7649 * ada-typeprint.c (print_enum_type): Style enum names.
7650
d4d947ae
TT
76512020-02-21 Tom Tromey <tom@tromey.com>
7652
7653 * psympriv.h (struct partial_symtab): Update comment.
7654
e94e944b
TT
76552020-02-21 Tom Tromey <tromey@adacore.com>
7656
7657 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7658 type is CORE_ADDR.
7659
1eb73179
TV
76602020-02-21 Tom de Vries <tdevries@suse.de>
7661
7662 PR gdb/25534
7663 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7664 if dependencies[i]->user != NULL.
7665
4f180d53
AT
76662020-02-21 Ali Tamur <tamur@google.com>
7667
7668 * dwarf2/read.c (dwarf2_name): Add null check.
7669
22b6cd70
TT
76702020-02-20 Tom Tromey <tom@tromey.com>
7671
7672 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7673 ">=", in binary search.
7674 (dwarf2_find_containing_comp_unit): New overload.
7675 (run_test): New self-test.
7676 (_initialize_dwarf2_read): Register new test.
7677
bd0cf5a6
NC
76782020-02-20 Nelson Chu <nelson.chu@sifive.com>
7679
7680 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7681 * riscv-tdep.h: Likewise.
7682 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7683 rv32-only CSR.
7684 * features/riscv/64bit-csr.xml: Regenerated.
7685
3f702acd
SDJ
76862020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7687 Tom Tromey <tom@tromey.com>
7688
7689 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7690 of 'fputc_unfiltered'.
7691 (putchar_unfiltered): Call 'fputc_unfiltered'.
7692 (fputc_unfiltered): Call 'fputs_unfiltered'.
7693
d13c7322
AB
76942020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7695
7696 * config.in: Regenerate.
7697 * configure: Regenerate.
7698 * configure.ac: Add --with-python-libdir option.
7699 * main.c: Use WITH_PYTHON_LIBDIR.
7700
869d8950
TT
77012020-02-19 Tom Tromey <tom@tromey.com>
7702
7703 * symtab.c (general_symbol_info::compute_and_set_names): Use
7704 obstack_strndup. Simplify call to symbol_set_demangled_name.
7705
298e9637
SM
77062020-02-19 Simon Marchi <simon.marchi@efficios.com>
7707
7708 * dwarf2/read.c (allocate_signatured_type_table,
7709 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7710 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7711 Remove objfile parameter, update all callers.
7712
08410482
DE
77132020-02-19 Doug Evans <dje@google.com>
7714
7715 PR rust/25535
7716 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7717 rust_enum_variant calculation.
7718
dfdeeca1
TT
77192020-02-19 Tom Tromey <tromey@adacore.com>
7720
7721 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7722
2ef5453b
TT
77232020-02-19 Tom Tromey <tromey@adacore.com>
7724
7725 * ada-lang.c (cache_symbol): Use obstack_strdup.
7726
9f1528a1
AB
77272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7728
7729 * configure: Regenerate.
7730
d3c22fa8
TT
77312020-02-19 Tom Tromey <tromey@adacore.com>
7732
7733 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7734 NULL check.
7735
bf84f706
MR
77362020-02-19 Maciej W. Rozycki <macro@wdc.com>
7737
7738 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7739
d1c9b20f
AB
77402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7741
7742 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7743 if GDBSERVER is not defined.
7744 (riscv_tdesc_cache): Likewise, also store const target_desc.
7745 (STATIC_IN_GDB): Define.
7746 (riscv_create_target_description): Update declaration with
7747 STATIC_IN_GDB.
7748 (riscv_lookup_target_description): New function, only define if
7749 GDBSERVER is not defined.
7750 * arch/riscv.h (riscv_create_target_description): Declare only
7751 when GDBSERVER is defined.
7752 (riscv_lookup_target_description): New declaration when GDBSERVER
7753 is not defined.
7754 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7755 (riscv_linux_read_features): ...this, and return
7756 riscv_gdbarch_features instead of target_desc.
7757 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7758 (riscv_linux_read_description): Rename to...
7759 (riscv_linux_read_features): ...this.
7760 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7761 Update to use riscv_gdbarch_features and
7762 riscv_lookup_target_description.
7763 * riscv-tdep.c (riscv_find_default_target_description): Use
7764 riscv_lookup_target_description instead of
7765 riscv_create_target_description.
7766
373d7ac0
SM
77672020-02-18 Simon Marchi <simon.marchi@efficios.com>
7768
7769 * valprint.c (generic_val_print_enum_1): When printing a flag
7770 enum with value 0 and there is no enumerator with value 0, print
7771 just "0" instead of "(unknown: 0x0)".
7772
b29a2df0
SM
77732020-02-18 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * valprint.c (generic_val_print_enum_1): Print unknown part of
7776 flag enum in hex.
7777
6740f0cc
SM
77782020-02-18 Simon Marchi <simon.marchi@efficios.com>
7779
7780 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7781 flag enums to contain duplicate enumerators.
7782 * valprint.c (generic_val_print_enum_1): Update comment.
7783
edd45eb0
SM
77842020-02-18 Simon Marchi <simon.marchi@efficios.com>
7785
7786 * dwarf2/read.c: Include "count-one-bits.h".
7787 (update_enumeration_type_from_children): If an enumerator has
7788 multiple bits set, don't treat the enumeration as a "flag enum".
7789 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7790 of flag enums have 0 or 1 bit set.
7791
6d0cf446
BE
77922020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7793
7794 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7795 conversion.
7796 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7797 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7798 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7799 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7800 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7801
7001c1b7
SM
78022020-02-18 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7805
fdb61c6c
SM
78062020-02-14 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7809 displaced_step_closure_up.
7810 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7811 (struct displaced_step_closure_up):
7812 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7813 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7814 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7815 Likewise.
7816 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7817 * gdbarch.c, gdbarch.h: Re-generate.
7818 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7819 displaced_step_closure_up.
7820 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7821 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7822 * infrun.h (displaced_step_closure_up): New type alias.
7823 (struct displaced_step_inferior_state) <step_closure>: Change
7824 type to displaced_step_closure_up.
7825 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7826 displaced_step_closure_up.
7827 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7828
a4a38eb4
TT
78292020-02-14 Tom Tromey <tom@tromey.com>
7830
7831 * minidebug.c (gnu_debug_key): New global.
7832 (find_separate_debug_file_in_section): Use it.
7833
e8217e61
SM
78342020-02-14 Simon Marchi <simon.marchi@efficios.com>
7835
7836 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7837 std::unique_ptr.
7838 * gdbarch.c: Re-generate.
7839 * gdbarch.h: Re-generate.
7840 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7841 change.
7842 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7843 type to std::unique_ptr.
7844 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7845 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7846 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7847 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7848 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7849 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7850 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7851 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7852 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7853
d8d83535
SM
78542020-02-14 Simon Marchi <simon.marchi@efficios.com>
7855
7856 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7857 std::unique_ptr.
7858 (displaced_step_clear): Rename to...
7859 (displaced_step_reset): ... this. Just call displaced->reset ().
7860 (displaced_step_clear_cleanup): Rename to...
7861 (displaced_step_reset_cleanup): ... this.
7862 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7863 (displaced_step_fixup): Likewise.
7864 (resume_1): Likewise.
7865 (handle_inferior_event): Restore child's memory before calling
7866 displaced_step_fixup on the parent.
7867 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7868 to std::unique_ptr.
7869 <step_closure>: Change type to std::unique_ptr.
7870
5f661e03
SM
78712020-02-14 Simon Marchi <simon.marchi@efficios.com>
7872
7873 * arm-tdep.c: Include count-one-bits.h.
7874 (cleanup_block_store_pc): Use count_one_bits.
7875 (cleanup_block_load_pc): Use count_one_bits.
7876 (arm_copy_block_xfer): Use count_one_bits.
7877 (thumb2_copy_block_xfer): Use count_one_bits.
7878 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7879 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7880 (thumb_get_next_pcs_raw): Use count_one_bits.
7881 (arm_get_next_pcs_raw): Use count_one_bits_l.
7882 * arch/arm.c (bitcount): Remove.
7883 * arch/arm.h (bitcount): Remove.
7884
8084e579
TT
78852020-02-14 Tom Tromey <tromey@adacore.com>
7886
7887 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7888 Update.
7889 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7890 * dwarf2/loc.c (call_site_find_chain_1): Return
7891 unique_xmalloc_ptr.
7892 (call_site_find_chain): Likewise.
7893
258bf0ee
RB
78942020-02-14 Richard Biener <rguenther@suse.de>
7895
7896 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7897 on expression with division operators.
7898
f98a8458
AKS
78992020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7900
7901 * MAINTAINERS (Write After Approval): Adding myself.
7902
d1437c0e
TT
79032020-02-12 Tom Tromey <tom@tromey.com>
7904
7905 * event-loop.c (event_data, gdb_event, event_handler_func):
7906 Remove.
7907
3d4560f7
TT
79082020-02-12 Tom Tromey <tom@tromey.com>
7909
7910 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7911 (dwarf2_frame_objfile_data): Add comment.
7912 (find_comp_unit, set_comp_unit): New functions.
7913 (dwarf2_frame_find_fde): Use find_comp_unit.
7914 (dwarf2_build_frame_info): Use set_comp_unit.
7915
21982304
TT
79162020-02-12 Tom Tromey <tom@tromey.com>
7917
7918 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7919 (comp_unit): Don't initialize objfile.
7920 (execute_cfa_program): Add text_offset parameter.
7921 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7922 (dwarf2_frame_cache): Update.
7923 (dwarf2_build_frame_info): Don't set "objfile" member.
7924
4debb237
TT
79252020-02-12 Tom Tromey <tom@tromey.com>
7926
7927 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7928 (decode_frame_entry): Likewise.
7929 (dwarf2_build_frame_info): Update.
7930
0d404d44
TT
79312020-02-12 Tom Tromey <tom@tromey.com>
7932
7933 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7934 (decode_frame_entry_1): Use the comp_unit obstack.
7935
a7a3ae5c
TT
79362020-02-12 Tom Tromey <tom@tromey.com>
7937
7938 * dwarf2/frame.c (struct comp_unit): Add initializers and
7939 constructor.
7940 (dwarf2_frame_objfile_data): Store a comp_unit.
7941 (dwarf2_frame_find_fde): Update.
7942 (dwarf2_build_frame_info): Use "new".
7943
a9d65418
TT
79442020-02-12 Tom Tromey <tom@tromey.com>
7945
7946 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7947 (dwarf2_fde_table): Typedef for std::vector.
7948 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7949 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7950 (decode_frame_entry): Update.
7951 (dwarf2_build_frame_info): Use "new".
7952
7559c217
CB
79532020-02-12 Christian Biesinger <cbiesinger@google.com>
7954
7955 * arm-tdep.c (arm_gdbarch_init): Update.
7956 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7957 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7958 have_neon, is_m>: Change to bool.
7959
aeefc73c
CB
79602020-02-12 Christian Biesinger <cbiesinger@google.com>
7961
7962 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7963
d27b8e5f
TT
79642020-02-12 Tom Tromey <tom@tromey.com>
7965
7966 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7967
cd5900f3
HD
79682020-02-12 Hannes Domani <ssbssa@yahoo.de>
7969
7970 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7971 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7972
f056b22b
TT
79732020-02-11 Tom Tromey <tom@tromey.com>
7974
7975 * psymtab.h: Update comment.
7976
f92ff6b5
TT
79772020-02-11 Tom Tromey <tom@tromey.com>
7978
7979 * gdb_obstack.h (struct auto_obstack): Use
7980 DISABLE_COPY_AND_ASSIGN.
7981
3fd6912b
TT
79822020-02-11 Tom Tromey <tom@tromey.com>
7983
7984 * dwarf2/frame.h (struct objfile): Don't forward declare.
7985
69ed9b74
CB
79862020-02-11 Christian Biesinger <cbiesinger@google.com>
7987
7988 * cris-tdep.c (cris_supply_gregset): Change signature to match
7989 what struct regset expects.
7990 (cris_regset): New struct.
7991 (fetch_core_registers): Remove.
7992 (cris_iterate_over_regset_sections): New function.
7993 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7994 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7995
bda874f6
CB
79962020-02-11 Christian Biesinger <cbiesinger@google.com>
7997
7998 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7999 registers.
8000
754e1564
CB
80012020-02-11 Christian Biesinger <cbiesinger@google.com>
8002
8003 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8004
8ddd8e0e
SM
80052020-02-11 Simon Marchi <simon.marchi@efficios.com>
8006
8007 * configure: Re-generate.
8008
898e7f60
SM
80092020-02-11 Simon Marchi <simon.marchi@efficios.com>
8010
8011 * configure: Re-generate.
8012
58df732b
SM
80132020-02-11 Simon Marchi <simon.marchi@efficios.com>
8014
8015 * acinclude: Update warning.m4 path.
8016 * warning.m4: Move to gdbsupport.
8017
da5bd37e
TT
80182020-02-11 Tom Tromey <tromey@adacore.com>
8019
8020 * remote.c (remote_console_output): Update.
8021 * printcmd.c (printf_command): Update.
8022 * event-loop.c (gdb_wait_for_event): Update.
8023 * linux-nat.c (sigchld_handler): Update.
8024 * remote-sim.c (gdb_os_write_stdout): Update.
8025 (gdb_os_flush_stdout): Update.
8026 (gdb_os_flush_stderr): Update.
8027 (gdb_os_write_stderr): Update.
8028 * exceptions.c (print_exception): Update.
8029 * remote-fileio.c (remote_fileio_func_read): Update.
8030 (remote_fileio_func_write): Update.
8031 * tui/tui.c (tui_enable): Update.
8032 * tui/tui-interp.c (tui_interp::init): Update.
8033 * utils.c (init_page_info): Update.
8034 (putchar_unfiltered, fputc_unfiltered): Update.
8035 (gdb_flush): Update.
8036 (emit_style_escape): Update.
8037 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8038 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8039 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8040 (stderr_file::write): Update.
8041 (stderr_file::puts): Update.
8042 * ui-file.h (ui_file_isatty, ui_file_write)
8043 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8044 (ui_file_puts): Don't declare.
8045
85f0dd3c
TV
80462020-02-10 Tom de Vries <tdevries@suse.de>
8047
8048 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8049 sentinel to char *.
8050
2e927613
TV
80512020-02-09 Tom de Vries <tdevries@suse.de>
8052
8053 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8054 filename if it matches "<artificial>".
8055
6bafc845
HD
80562020-02-09 Hannes Domani <ssbssa@yahoo.de>
8057
8058 * windows-tdep.c (struct enum_value_name): New struct.
8059 (create_enum): New function.
8060 (windows_get_siginfo_type): Create and use enum types.
8061
7928d571
HD
80622020-02-09 Hannes Domani <ssbssa@yahoo.de>
8063
8064 * NEWS: Mention $_siginfo support for Windows.
8065 * windows-nat.c (handle_exception): Set siginfo_er.
8066 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8067 (windows_xfer_siginfo): New function.
8068 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8069 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8070 (init_windows_gdbarch_data): New function.
8071 (get_windows_gdbarch_data): New function.
8072 (windows_get_siginfo_type): New function.
8073 (windows_init_abi): Register windows_get_siginfo_type.
8074 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8075
6751ebae
TT
80762020-02-08 Tom Tromey <tom@tromey.com>
8077
8078 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8079 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8080 <keep>: Declare method.
8081 <m_keep>: Remove member.
8082 <~cutu_reader>: Remove.
8083 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8084 (cutu_reader::cutu_reader): Update.
8085 (cutu_reader::keep): Rename from ~cutu_reader.
8086 (process_psymtab_comp_unit, build_type_psymtabs_1)
8087 (process_skeletonless_type_unit, load_partial_comp_unit)
8088 (load_full_comp_unit, dwarf2_read_addr_index)
8089 (read_signatured_type): Update.
8090
135f5437
TT
80912020-02-08 Tom Tromey <tom@tromey.com>
8092
8093 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8094 "want_partial_unit" parameter.
8095 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8096 Inline check for DW_TAG_partial_unit.
8097 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8098
9f66ff1c
TT
80992020-02-08 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8102 read.c.
8103 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8104 read.c.
8105
c8a7a66f
TT
81062020-02-08 Tom Tromey <tom@tromey.com>
8107
8108 * dwarf2/read.c (read_address): Move to comp-unit.c.
8109 (dwarf2_rnglists_process, dwarf2_ranges_process)
8110 (read_attribute_value, dwarf_decode_lines_1)
8111 (var_decode_location, decode_locdesc): Update.
8112 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8113 read.c. Remove "cu" parameter.
8114 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8115 method.
8116
8266302d
TT
81172020-02-08 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8120 (read_indirect_line_string): Update.
8121 * dwarf2/comp-unit.c (read_offset): Remove.
8122 (read_comp_unit_head): Update.
8123 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8124 method.
8125 (read_offset): Don't declare.
8126
4057dfde
TT
81272020-02-08 Tom Tromey <tom@tromey.com>
8128
8129 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8130 * dwarf2/read.c (struct comp_unit_head): Move to
8131 dwarf2/comp-unit.h.
8132 (enum class rcuh_kind): Move to comp-unit.h.
8133 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8134 (read_comp_unit_head, error_check_comp_unit_head)
8135 (read_and_check_comp_unit_head): Move to comp-unit.c.
8136 (read_offset, dwarf_unit_type_name): Likewise.
8137 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8138 (cutu_reader::cutu_reader, read_call_site_scope)
8139 (find_partial_die, follow_die_offset): Update.
8140 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8141
24aa364d
TT
81422020-02-08 Tom Tromey <tom@tromey.com>
8143
8144 * dwarf2/read.c (read_offset_1): Move to leb.c.
8145 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8146 (dwarf_decode_macro_bytes): Update.
8147 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8148 * dwarf2/leb.h (read_offset): Declare.
8149
2c7d5afc
TT
81502020-02-08 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/read.c (dwarf2_section_size): Remove.
8153 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8154 Update.
8155 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8156
4075cb26
TT
81572020-02-08 Tom Tromey <tom@tromey.com>
8158
8159 * dwarf2/read.c (read_initial_length): Move to leb.c.
8160 * dwarf2/leb.h (read_initial_length): Declare.
8161 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8162 handle_nonstd parameter.
8163 * dwarf2/frame.c (read_initial_length): Remove.
8164 (decode_frame_entry_1): Update.
8165
09ba997f
TT
81662020-02-08 Tom Tromey <tom@tromey.com>
8167
8168 * dwarf2/loc.c (dwarf2_find_location_expression)
8169 (dwarf_evaluate_loc_desc::get_tls_address)
8170 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8171 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8172 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8173 (dwarf2_compile_property_to_c)
8174 (dwarf2_loc_desc_get_symbol_read_needs)
8175 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8176 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8177 (loclist_describe_location, loclist_tracepoint_var_ref)
8178 (loclist_generate_c_location): Update.
8179 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8180 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8181 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8182 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8183 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8184 (dwarf2_per_cu_data::addr_size)
8185 (dwarf2_per_cu_data::ref_addr_size)
8186 (dwarf2_per_cu_data::text_offset)
8187 (dwarf2_per_cu_data::addr_type): Now methods.
8188 (per_cu_header_read_in): Make per_cu "const".
8189 (dwarf2_version): Remove.
8190 (dwarf2_per_cu_data::int_type): Now a method.
8191 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8192 (set_die_type, read_array_type, read_subrange_index_type)
8193 (read_tag_string_type, read_subrange_type): Update.
8194 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8195 offset_size, ref_addr_size, text_offset, addr_type, version,
8196 objfile, int_type, addr_sized_int_type>: Declare methods.
8197
96c738c0
TT
81982020-02-08 Tom Tromey <tom@tromey.com>
8199
8200 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8201 Move earlier.
8202
8fdd972c
TT
82032020-02-08 Tom Tromey <tom@tromey.com>
8204
8205 * dwarf2/read.h (dwarf_line_debug): Declare.
8206 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8207 * dwarf2/read.c: Move line_header code to new files.
8208 (dwarf_line_debug): No longer static.
8209 * dwarf2/line-header.c: New file.
8210 * dwarf2/line-header.h: New file.
8211
03075812
TT
82122020-02-08 Tom Tromey <tom@tromey.com>
8213
8214 * dwarf2/read.c (struct line_header) <file_full_name,
8215 file_file_name>: Return unique_xmalloc_ptr.
8216 (line_header::file_file_name): Update.
8217 (line_header::file_full_name): Update.
8218 (dw2_get_file_names_reader): Update.
8219 (macro_start_file): Update.
8220
bb822404
TT
82212020-02-08 Tom Tromey <tom@tromey.com>
8222
8223 * dwarf2/read.c (struct line_header) <file_full_name,
8224 file_file_name>: Declare methods.
8225 (dw2_get_file_names_reader): Update.
8226 (file_file_name): Now a method.
8227 (file_full_name): Likewise.
8228 (macro_start_file): Update.
8229
009b64fc
TT
82302020-02-08 Tom Tromey <tom@tromey.com>
8231
8232 * dwarf2/read.c (dwarf_always_disassemble)
8233 (show_dwarf_always_disassemble): Move to loc.c.
8234 (_initialize_dwarf2_read): Move "always-disassemble" registration
8235 to loc.c.
8236 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8237 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8238 static.
8239 (show_dwarf_always_disassemble): Move from read.c.
8240 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8241
5895093f
TT
82422020-02-08 Tom Tromey <tom@tromey.com>
8243
8244 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8245 (create_quick_file_names_table): Return htab_up.
8246 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8247 Update.
8248 * dwarf2/read.h (struct dwarf2_per_objfile)
8249 <quick_file_names_table>: Now htab_up.
8250
b3b32279
TT
82512020-02-08 Tom Tromey <tom@tromey.com>
8252
8253 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8254
1d33d811
TT
82552020-02-08 Tom Tromey <tom@tromey.com>
8256
8257 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8258 Rewrite.
8259 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8260 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8261 (abbrev_table::abbrev_table): No longer inline.
8262 (ABBREV_HASH_SIZE): Remove.
8263 (abbrev_table::m_abbrevs): Now an htab_up.
8264
86de1d91
TT
82652020-02-08 Tom Tromey <tom@tromey.com>
8266
8267 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8268 (cutu_reader): Update.
8269 (build_type_psymtabs_1): Update.
8270 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8271 (abbrev_table::alloc_abbrev): Update.
8272 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8273 (abbrev_table::read): New static method, renamed from
8274 abbrev_table_read_table.
8275 (abbrev_table::alloc_abbrev)
8276 (abbrev_table::add_abbrev): Now private.
8277 (abbrev_table::abbrev_table): Now private.
8278 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8279
0335378b
TT
82802020-02-08 Tom Tromey <tom@tromey.com>
8281
8282 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8283 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8284 htab_up.
8285
48b490f2
TT
82862020-02-08 Tom Tromey <tom@tromey.com>
8287
8288 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8289 htab_up.
8290 (lookup_dwo_unit_in_dwp): Update.
8291 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8292 on obstack.
8293
bc68fb19
TT
82942020-02-08 Tom Tromey <tom@tromey.com>
8295
8296 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8297 obstack.
8298
d15acc42
TT
82992020-02-08 Tom Tromey <tom@tromey.com>
8300
8301 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8302 line_header_hash.
8303 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8304 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8305 Change type to htab_up.
8306
eaa5fa8b
TT
83072020-02-08 Tom Tromey <tom@tromey.com>
8308
8309 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8310 htab_up. Don't allocate on obstack.
8311 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8312 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8313 Change type to htab_up.
8314
b0b6a987
TT
83152020-02-08 Tom Tromey <tom@tromey.com>
8316
8317 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8318 Change type to htab_up.
8319 * dwarf2/read.c (create_signatured_type_table_from_index)
8320 (create_signatured_type_table_from_debug_names)
8321 (create_all_type_units, add_type_unit)
8322 (lookup_dwo_signatured_type, lookup_signatured_type)
8323 (process_skeletonless_type_unit): Update.
8324 (create_debug_type_hash_table, create_debug_types_hash_table):
8325 Change type of types_htab.
8326 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8327 htab_up. Don't allocate on obstack.
8328 (create_cus_hash_table): Change type of cus_htab parameter.
8329 (struct dwo_file) <cus, tus>: Now htab_up.
8330 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8331 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8332 (queue_and_load_all_dwo_tus): Update.
8333 * dwarf2/index-write.c (write_gdbindex): Update.
8334 (write_debug_names): Update.
8335
39856def
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8339 dwarf2/read.c. Remove "next" member. Add constructor ntad
8340 destructor.
8341 (struct dwarf2_per_objfile) <queue>: New member.
8342 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8343 dwarf2/read.h.
8344 (dwarf2_queue, dwarf2_queue_tail): Remove.
8345 (class dwarf2_queue_guard): Add parameter to constructor. Use
8346 DISABLE_COPY_AND_ASSIGN.
8347 <m_per_objfile>: New member.
8348 <~dwarf2_queue_guard>: Rewrite.
8349 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8350 Update.
8351 (~dwarf2_queue_item): New.
8352
3e225074
TT
83532020-02-08 Tom Tromey <tom@tromey.com>
8354
8355 * dwarf2/read.c (struct die_info) <has_children>: New member.
8356 (dw2_get_file_names_reader): Remove has_children.
8357 (dw2_get_file_names): Update.
8358 (read_cutu_die_from_dwo): Remove has_children.
8359 (cutu_reader::init_tu_and_read_dwo_dies)
8360 (cutu_reader::cutu_reader): Update.
8361 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8362 Remove has_children.
8363 (build_type_psymtabs_1, process_skeletonless_type_unit)
8364 (load_partial_comp_unit, load_full_comp_unit): Update.
8365 (create_dwo_cu_reader): Remove has_children.
8366 (create_cus_hash_table, read_die_and_children): Update.
8367 (read_full_die_1,read_full_die): Remove has_children.
8368 (read_signatured_type): Update.
8369 (class cutu_reader) <has_children>: Remove.
8370
82ca8957
TT
83712020-02-08 Tom Tromey <tom@tromey.com>
8372
8373 * dwarf2/expr.c: Rename from dwarf2expr.c.
8374 * dwarf2/expr.h: Rename from dwarf2expr.h.
8375 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8376 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8377 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8378 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8379 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8380 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8381 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8382 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8383 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8384 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8385 * dwarf2/loc.c: Rename from dwarf2loc.c.
8386 * dwarf2/loc.h: Rename from dwarf2loc.h.
8387 * dwarf2/read.c: Rename from dwarf2read.c.
8388 * dwarf2/read.h: Rename from dwarf2read.h.
8389 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8390 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8391 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8392 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8393 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8394 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8395 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8396 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8397 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8398 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8399 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8400 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8401 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8402 Update.
8403 * Makefile.in (COMMON_SFILES): Update.
8404 (HFILES_NO_SRCDIR): Update.
8405
9e35d499
TT
84062020-02-08 Tom Tromey <tom@tromey.com>
8407
8408 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8409 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8410
1eba2311
TT
84112020-02-08 Tom Tromey <tom@tromey.com>
8412
8413 * dwarf2read.h (struct die_info): Don't declare.
8414
e41c2da2
TT
84152020-02-08 Tom Tromey <tom@tromey.com>
8416
8417 * dwarf2read.h (die_info_ptr): Remove typedef.
8418
4fc6c0d5
TT
84192020-02-08 Tom Tromey <tom@tromey.com>
8420
8421 * dwarf2read.c (read_call_site_scope)
8422 (handle_data_member_location, dwarf2_add_member_fn)
8423 (mark_common_block_symbol_computed, read_common_block)
8424 (attr_to_dynamic_prop, partial_die_info::read)
8425 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8426 (dwarf2_symbol_mark_computed, set_die_type): Update.
8427 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8428 method.
8429 (attr_form_is_block): Don't declare.
8430 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8431
cd6c91b4
TT
84322020-02-08 Tom Tromey <tom@tromey.com>
8433
8434 * dwarf2read.c (dwarf2_find_base_address, )
8435 (read_call_site_scope, rust_containing_type)
8436 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8437 (handle_data_member_location, dwarf2_add_member_fn)
8438 (get_alignment, read_structure_type, process_structure_scope)
8439 (mark_common_block_symbol_computed, read_common_block)
8440 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8441 (partial_die_info::read, read_attribute_value, new_symbol)
8442 (lookup_die_type, dwarf2_get_ref_die_offset)
8443 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8444 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8445 (dwarf2_symbol_mark_computed): Update.
8446 * dwarf2/attribute.h (struct attribute) <value_as_address,
8447 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8448 methods.
8449 (value_as_address, attr_form_is_section_offset)
8450 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8451 * dwarf2/attribute.c (attribute::value_as_address)
8452 (attribute::form_is_section_offset, attribute::form_is_constant)
8453 (attribute::form_is_ref): Now methods.
8454
162dce55
TT
84552020-02-08 Tom Tromey <tom@tromey.com>
8456
8457 * dwarf2read.c (struct attribute, DW_STRING)
8458 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8459 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8460 (attr_form_is_block, attr_form_is_section_offset)
8461 (attr_form_is_constant, attr_form_is_ref): Move.
8462 * dwarf2/attribute.h: New file.
8463 * dwarf2/attribute.c: New file, from dwarf2read.c.
8464 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8465
3054dd54
TT
84662020-02-08 Tom Tromey <tom@tromey.com>
8467
8468 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8469 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8470 Move.
8471 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8472 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8473 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8474 abbrev.c.
8475 * dwarf2/abbrev.h: New file.
8476 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8477 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8478
96b79293
TT
84792020-02-08 Tom Tromey <tom@tromey.com>
8480
8481 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8482 (dwarf2_section_size, dwarf2_get_section_info)
8483 (create_signatured_type_table_from_debug_names)
8484 (create_addrmap_from_aranges, read_debug_names_from_section)
8485 (get_gdb_index_contents_from_section, read_comp_unit_head)
8486 (error_check_comp_unit_head, read_abbrev_offset)
8487 (create_debug_type_hash_table, init_cu_die_reader)
8488 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8489 (read_comp_units_from_section, create_cus_hash_table)
8490 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8491 (create_dwp_v2_section, dwarf2_rnglists_process)
8492 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8493 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8494 (read_indirect_string_from_dwz, read_addr_index_1)
8495 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8496 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8497 (fill_in_loclist_baton): Update.
8498 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8499 get_containing_section, get_bfd_owner, get_bfd_section,
8500 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8501 (dwarf2_read_section, get_section_name, get_section_file_name)
8502 (get_containing_section, get_section_bfd_owner)
8503 (get_section_bfd_section, get_section_name, get_section_file_name)
8504 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8505 declare.
8506 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8507 (dwarf2_section_info::get_bfd_owner)
8508 (dwarf2_section_info::get_bfd_section)
8509 (dwarf2_section_info::get_name)
8510 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8511 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8512 (dwarf2_section_info::read): Now methods.
8513 * dwarf-index-write.c (class debug_names): Update.
8514
2c86cff9
TT
85152020-02-08 Tom Tromey <tom@tromey.com>
8516
8517 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8518 Move to dwarf2/section.h.
8519 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8520 (get_section_bfd_section, get_section_name)
8521 (get_section_file_name, get_section_id, get_section_flags)
8522 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8523 dwarf2/section.c.
8524 * dwarf2/section.h: New file.
8525 * dwarf2/section.c: New file, from dwarf2read.c.
8526 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8527
f4382c45
TT
85282020-02-08 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8531 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8532 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8533 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8534 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8535 * dwarf2/leb.h: New file, from dwarf2read.c.
8536 * dwarf2/leb.c: New file, from dwarf2read.c.
8537 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8538 Remove.
8539 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8540 (COMMON_SFILES): Add dwarf2/leb.c.
8541
01840b7a
JB
85422020-02-08 Joel Brobecker <brobecker@adacore.com>
8543
8544 GDB 9.1 released.
8545
dfcb27e4
IB
85462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8547
8548 PR gdb/25190:
aac66a4c
SM
8549 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8550 * gdb/remote.c (remote_console_output): Update.
8551 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8552 (ui_file_puts): ...this.
8553 * gdb/ui-file.h (ui_file_puts): Add declaration.
8554 * gdb/utils.c (emit_style_escape): Update.
8555 (flush_wrap_buffer): Update.
8556 (fputs_maybe_filtered): Update.
8557 (fputs_unfiltered): Add function.
dfcb27e4 8558
faa17681
IB
85592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8560
aac66a4c
SM
8561 * gdb/event-loop.c (gdb_wait_for_event): Update.
8562 * gdb/printcmd.c (printf_command): Update.
8563 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8564 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8565 (gdb_os_flush_stderr): Update.
8566 * gdb/remote.c (remote_console_output): Update.
8567 * gdb/ui-file.c (gdb_flush): Rename to...
8568 (ui_file_flush): ...this.
8569 (stderr_file::write): Update.
8570 (stderr_file::puts): Update.
8571 * gdb/ui-file.h (gdb_flush): Rename to...
8572 (ui_file_flush): ...this.
8573 * gdb/utils.c (gdb_flush): Add function.
8574 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8575
5abbbe1d
TT
85762020-02-07 Tom Tromey <tromey@adacore.com>
8577
8578 PR breakpoints/24915:
8579 * source.c (find_and_open_source): Do not check basenames_may_differ.
8580
919adfe8
TT
85812020-02-07 Tom Tromey <tom@tromey.com>
8582
8583 * README: Update gdbserver documentation.
8584 * gdbserver: Move to top level.
8585 * configure.tgt (build_gdbserver): Remove.
8586 * configure.ac: Remove --enable-gdbserver.
8587 * configure: Rebuild.
8588 * Makefile.in (distclean): Don't mention gdbserver.
8589
1d5d29e7
SV
85902020-02-06 Shahab Vahedi <shahab@synopsys.com>
8591
8592 * source-cache.c (source_cache::ensure): Surround
8593 get_plain_source_lines with a try/catch.
8594 (source_cache::get_line_charpos): Get rid of try/catch
8595 and only check for the return value of "ensure".
8596 * tui/tui-source.c (tui_source_window::set_contents):
8597 Simplify "nlines" calculation.
8598
6eb1129c
SV
85992020-02-06 Shahab Vahedi <shahab@synopsys.com>
8600
8601 * MAINTAINERS (Write After Approval): Add myself.
8602
c6a42d11
CB
86032020-02-05 Christian Biesinger <cbiesinger@google.com>
8604
8605 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8606 function call.
8607
c8ecdda6
CB
86082020-02-05 Christian Biesinger <cbiesinger@google.com>
8609
8610 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8611
f6480e70
MR
86122020-02-05 Maciej W. Rozycki <macro@wdc.com>
8613
8614 * nat/riscv-linux-tdesc.h: New file.
8615 * nat/riscv-linux-tdesc.c: New file, taking code from...
8616 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8617 ... here.
8618 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8619 NATDEPFILES.
8620
dcc9fbc6
AB
86212020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8624 we don't set the fake simulator ptid to the null_ptid.
8625
719546c4
SM
86262020-02-03 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8629 * gdbthread.h (class thread_info) <resumed>: Likewise.
8630 * infrun.c (resume_1): Likewise.
8631 (proceed): Likewise.
8632 (infrun_thread_stop_requested): Likewise.
8633 (stop_all_threads): Likewise.
8634 (handle_inferior_event): Likewise.
8635 (restart_threads): Likewise.
8636 (finish_step_over): Likewise.
8637 (keep_going_stepped_thread): Likewise.
8638 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8639 (linux_handle_extended_wait): Likewise.
8640 * record-btrace.c (get_thread_current_frame_id): Likewise.
8641 * record-full.c (record_full_wait_1): Likewise.
8642 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8643 * target.c (target_resume): Likewise.
8644 * thread.c (set_running_thread): Likewise.
8645
e409c542
AKS
86462020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8647
8648 * f-valprint.c (f77_print_array_1): Changed datatype of index
8649 variable to LONGEST from int to enable it to contain bound
8650 values correctly.
8651
ee98c0da
MR
86522020-02-03 Maciej W. Rozycki <macro@wdc.com>
8653
8654 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8655 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8656 offsets according to FLEN determined.
8657 (riscv_linux_nat_target::read_description): Determine FLEN
8658 dynamically.
8659 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8660 according to FLEN determined.
8661 (riscv_linux_nat_target::store_registers): Likewise.
8662
aa66aac4
SV
86632020-02-01 Shahab Vahedi <shahab@synopsys.com>
8664
8665 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8666 when reg->group is empty and reggroup is not.
8667
fd9faca8
TT
86682020-01-31 Tom Tromey <tromey@adacore.com>
8669
8670 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8671 Call beneath target's mourn_inferior after unpushing.
8672
42330a68
AB
86732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8674
8675 PR tui/9765
8676 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8677 have enough lines to fill the screen, still return the lowest
8678 address we found.
8679
7a27a45b
AB
86802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8681
8682 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8683 '-', '<', and '>' commands.
8684
c47f70e2
PA
86852020-01-29 Pedro Alves <palves@redhat.com>
8686 Sergio Durigan Junior <sergiodj@redhat.com>
8687
8688 * infcmd.c (construct_inferior_arguments): Assert that
8689 'argc' is greater than 0.
8690
5133a315
LM
86912020-01-29 Luis Machado <luis.machado@linaro.org>
8692
8693 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8694 (BRK_INSN_MASK): Define to 0xd4200000.
8695 (aarch64_program_breakpoint_here_p): New function.
8696 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8697 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8698 breakpoint.c.
8699 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8700 breakpoint.h
8701 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8702 call gdbarch_program_breakpoint_here_p.
8703 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8704 default_program_breakpoint_here_p, changed return type to bool and
8705 simplified.
8706 * breakpoint.h (program_breakpoint_here): Moved prototype to
8707 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8708 return type to bool.
8709 * gdbarch.c: Regenerate.
8710 * gdbarch.h: Regenerate.
8711 * gdbarch.sh (program_breakpoint_here_p): New method.
8712 * infrun.c (handle_signal_stop): Call
8713 gdbarch_program_breakpoint_here_p.
8714
168f8c6b
TT
87152020-01-26 Tom Tromey <tom@tromey.com>
8716
8717 * ctfread.c (struct ctf_fp_info): Reindent.
8718 (_initialize_ctfread): Remove.
8719
128a391f
TT
87202020-01-26 Tom Tromey <tom@tromey.com>
8721
8722 * psymtab.c (partial_map_expand_apply)
8723 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8724 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8725 (psym_print_stats, psym_expand_symtabs_for_function)
8726 (psym_map_symbol_filenames, psym_map_matching_symbols)
8727 (psym_expand_symtabs_matching)
8728 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8729 (maintenance_check_psymtabs): Use new methods.
8730 * psympriv.h (struct partial_symtab) <readin_p,
8731 get_compunit_symtab>: New methods.
8732 <readin, compunit_symtab>: Remove members.
8733 (struct standard_psymtab): New.
8734 (struct legacy_psymtab): Derive from standard_psymtab.
8735 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8736 standard_psymtab.
8737 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8738
0494dbec
TT
87392020-01-26 Tom Tromey <tom@tromey.com>
8740
8741 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8742 read_dependencies. Add assert.
8743 * psymtab.c (partial_symtab::read_dependencies): New method.
8744 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8745 method.
8746 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8747 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8748 read_dependencies.
8749 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8750 Add assert.
8751
8566b89b
TT
87522020-01-26 Tom Tromey <tom@tromey.com>
8753
8754 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8755 Call expand_psymtab.
8756 (xcoff_read_symtab): Call expand_psymtab.
8757 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8758 legacy_expand_psymtab.
8759 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8760 method.
8761 (struct legacy_psymtab) <expand_psymtab>: Implement.
8762 <legacy_expand_psymtab>: New member.
8763 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8764 (parse_partial_symbols): Set legacy_expand_psymtab.
8765 (psymtab_to_symtab_1): Change argument order. Call
8766 expand_psymtab.
8767 (new_psymtab): Set legacy_expand_psymtab.
8768 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8769 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8770 expand_psymtab.
8771 (dwarf2_psymtab::expand_psymtab): Rename from
8772 psymtab_to_symtab_1. Call expand_psymtab.
8773 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8774 (dbx_end_psymtab): Likewise.
8775 (dbx_psymtab_to_symtab_1): Change argument order. Call
8776 expand_psymtab.
8777 (dbx_read_symtab): Call expand_psymtab.
8778 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8779 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8780 (ctf_psymtab::read_symtab): Call expand_psymtab.
8781
077cbab2
TT
87822020-01-26 Tom Tromey <tom@tromey.com>
8783
8784 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8785 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8786 messages.
8787 * mdebugread.c (mdebug_read_symtab): Remove prints.
8788 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8789 assert.
8790 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8791
891813be
TT
87922020-01-26 Tom Tromey <tom@tromey.com>
8793
8794 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8795 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8796 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8797 legacy_symtab.
8798 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8799 * psymtab.c (psymtab_to_symtab): Call method.
8800 (dump_psymtab): Update.
8801 * psympriv.h (struct partial_symtab): Add virtual destructor.
8802 <read_symtab>: New method.
8803 (struct legacy_symtab): New.
8804 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8805 (struct pst_map) <pst>: Now a legacy_psymtab.
8806 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8807 (new_psymtab): Use legacy_psymtab.
8808 * dwarf2read.h (struct dwarf2_psymtab): New.
8809 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8810 * dwarf2read.c (dwarf2_create_include_psymtab)
8811 (dwarf2_build_include_psymtabs, create_type_unit_group)
8812 (create_partial_symtab, process_psymtab_comp_unit_reader)
8813 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8814 (set_partial_user): Use dwarf2_psymtab.
8815 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8816 (psymtab_to_symtab_1, process_full_comp_unit)
8817 (process_full_type_unit, dwarf2_ranges_read)
8818 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8819 (dwarf_decode_lines): Use dwarf2_psymtab.
8820 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8821 (add_address_entry_worker, write_one_signatured_type)
8822 (recursively_count_psymbols, recursively_write_psymbols)
8823 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8824 (write_debug_names): Likewise.
8825 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8826 <pst>: Now a legacy_psymtab.
8827 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8828 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8829 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8830 * ctfread.c (struct ctf_psymtab): New.
8831 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8832 ctf_psymtab.
8833 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8834 (create_partial_symtab): Return a ctf_psymtab.
8835 (scan_partial_symbols): Update.
8836
c3693a1d
TT
88372020-01-26 Tom Tromey <tom@tromey.com>
8838
8839 * xcoffread.c (xcoff_start_psymtab): Use new.
8840 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8841 renamed from start_psymtab_common.
8842 * psympriv.h (struct partial_symtab): Add new constructor.
8843 (start_psymtab_common): Don't declare.
8844 * mdebugread.c (parse_partial_symbols): Use new.
8845 * dwarf2read.c (create_partial_symtab): Use new.
8846 * dbxread.c (start_psymtab): Use new.
8847 * ctfread.c (create_partial_symtab): Use new.
8848
32caafd0
TT
88492020-01-26 Tom Tromey <tom@tromey.com>
8850
8851 * xcoffread.c (xcoff_end_psymtab): Use new.
8852 * psymtab.c (start_psymtab_common): Use new.
8853 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8854 Update.
8855 * psympriv.h (struct partial_symtab): Add parameters to
8856 constructor. Don't inline.
8857 (allocate_psymtab): Don't declare.
8858 * mdebugread.c (new_psymtab): Use new.
8859 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8860 * dbxread.c (dbx_end_psymtab): Use new.
8861
abaa2f23
TT
88622020-01-26 Tom Tromey <tom@tromey.com>
8863
8864 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8865 allocate_psymtab. Update documentation.
8866 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8867 allocate_psymtab. Do not use new.
8868 (allocate_psymtab): Use new. Update.
8869
6d94535f
TT
88702020-01-26 Tom Tromey <tom@tromey.com>
8871
8872 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8873 * psymtab.c (psym_print_stats): Update.
8874 * psympriv.h (struct partial_symtab) <readin,
8875 psymtabs_addrmap_supported, anonymous>: Now bool.
8876 * mdebugread.c (psymtab_to_symtab_1): Update.
8877 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8878 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8879 (process_full_comp_unit, process_full_type_unit): Update.
8880 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8881 * ctfread.c (psymtab_to_symtab): Update.
8882
6f17252b
TT
88832020-01-26 Tom Tromey <tom@tromey.com>
8884
8885 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8886 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8887 * psymtab.c (psymtab_storage): Delete psymtabs.
8888 (psymtab_storage::allocate_psymtab): Use new.
8889 (psymtab_storage::discard_psymtab): Use delete.
8890 * psympriv.h (struct partial_symtab): Add constructor and
8891 initializers.
8892
f6f1cebc
TT
88932020-01-26 Tom Tromey <tom@tromey.com>
8894
8895 * machoread.c: Do not include psympriv.h.
8896
e47e48f6
PW
88972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8898
8899 * NEWS: Mention the new option and the set/show commands.
8900
a2fedca9
PW
89012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8902
8903 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8904 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8905 (validate_exec_file): New variables, enums, functions.
8906 (exec_file_locate_attach, print_section_info): Style the filenames.
8907 (_initialize_exec): Install show_exec_file_mismatch_command and
8908 set_exec_file_mismatch_command.
8909 * gdbcore.h (validate_exec_file): Declare.
8910 * infcmd.c (attach_command): Call validate_exec_file.
8911 * remote.c ( remote_target::remote_add_inferior): Likewise.
8912
7ffa82e1
AB
89132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8914
8915 * frame.c (find_frame_sal): Move call to get_next_frame into more
8916 inner scope.
8917 * inline-frame.c (inilne_state) <inline_state>: Update argument
8918 types.
8919 (inilne_state) <skipped_symbol>: Rename to...
8920 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8921 (skip_inline_frames): Build vector of skipped symbols and use this
8922 to reate the inline_state.
8923 (inline_skipped_symbol): Add a comment and some assertions, fetch
8924 skipped symbol from the list.
8925
3d92a3e3
AB
89262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8927
8928 * buildsym.c (lte_is_less_than): Delete.
8929 (buildsym_compunit::end_symtab_with_blockvector): Create local
8930 lambda function to sort line table entries, and use
8931 std::stable_sort instead of std::sort.
8932 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8933 markers when looking for a previous line.
8934
94a72be7
AB
89352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8936
8937 * dwarf2read.c (lnp_state_machine::record_line): Include
8938 end_sequence parameter in debug print out. Record the line if we
8939 are at an end_sequence marker even if it's not the start of a
8940 statement.
8941 * symmisc.c (maintenance_print_one_line_table): Print end of
8942 sequence markers with 'END' not '0'.
8943
53af73bf
PA
89442020-01-24 Pedro Alves <palves@redhat.com>
8945
8946 PR gdb/25410
8947 * thread.c (scoped_restore_current_thread::restore): Use
8948 switch_to_inferior_no_thread.
8949 * exec.c: Include "progspace-and-thread.h".
8950 (add_target_sections, remove_target_sections):
8951 scoped_restore_current_pspace_and_thread instead of
8952 scoped_restore_current_thread.
8953 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8954 and aspace to the inferior before calling clone_program_space.
8955 Remove stale comment.
8956
3050c6f4
CB
89572020-01-24 Christian Biesinger <cbiesinger@google.com>
8958
8959 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8960 (arm_netbsd_nat_target::fetch_registers): ...this.
8961 (arm_nbsd_nat_target::store_registers): Rename to...
8962 (arm_netbsd_nat_target::store_registers): ...this.
8963
73685c7e
CB
89642020-01-24 Christian Biesinger <cbiesinger@google.com>
8965
8966 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8967 register_t.
8968
89203d40
CB
89692020-01-24 Christian Biesinger <cbiesinger@google.com>
8970
8971 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8972 Update comment.
8973 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8974 Likewise.
8975 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8976 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8977 the correct replacement (iterate_over_regset_sections).
8978 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8979 Update comment.
8980
1ba1ac88
AB
89812020-01-24 Graham Markall <graham.markall@embecosm.com>
8982
8983 PR gdb/23718
8984 * gdb/python/python.c (execute_gdb_command): Call
8985 async_enable_stdin in catch block.
8986
f3364a6d
AB
89872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8988
8989 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8990 SWITCH_THRU_ALL_UIS.
8991
733d0a67
AB
89922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8993
8994 PR tui/9765
8995 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8996 comment, add extra parameter, and update to store previous symbol
8997 when appropriate.
8998 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8999 add extra parameter.
9000 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9001 remove unneeded parameter, add try/catch around gdb_print_insn,
9002 rewrite to add items to asm_lines vector.
9003 (tui_find_backward_disassembly_start_address): New function.
9004 (tui_find_disassembly_address): Updated throughout.
9005 (tui_disasm_window::set_contents): Update for changes to
9006 tui_disassemble.
9007 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9008 number of lines to scroll.
9009
b3b3bada
SM
90102020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9011
9012 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9013 (SECT_OFF_DATA): Likewise.
9014 (SECT_OFF_RODATA): Likewise.
9015 (SECT_OFF_TEXT): Likewise.
9016 (SECT_OFF_BSS): Likewise.
9017 (struct objfile) <text_section_offset, data_section_offset>: New
9018 methods.
9019 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9020 objfile::text_section_offset.
9021 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9022 * coffread.c (coff_symtab_read): Likewise.
9023 (enter_linenos): Likewise.
9024 (process_coff_symbol): Likewise.
9025 * ctfread.c (get_objfile_text_range): Likewise.
9026 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9027 Use objfile::data_section_offset.
9028 * dwarf2-frame.c (execute_cfa_program): Use
9029 objfile::text_section_offset.
9030 (dwarf2_frame_find_fde): Likewise.
9031 * dwarf2read.c (create_addrmap_from_index): Likewise.
9032 (create_addrmap_from_aranges): Likewise.
9033 (dw2_find_pc_sect_compunit_symtab): Likewise.
9034 (process_psymtab_comp_unit_reader): Likewise.
9035 (add_partial_symbol): Likewise.
9036 (add_partial_subprogram): Likewise.
9037 (process_full_comp_unit): Likewise.
9038 (read_file_scope): Likewise.
9039 (read_func_scope): Likewise.
9040 (read_lexical_block_scope): Likewise.
9041 (read_call_site_scope): Likewise.
9042 (dwarf2_rnglists_process): Likewise.
9043 (dwarf2_ranges_process): Likewise.
9044 (dwarf2_ranges_read): Likewise.
9045 (dwarf_decode_lines_1): Likewise.
9046 (new_symbol): Likewise.
9047 (dwarf2_fetch_die_loc_sect_off): Likewise.
9048 (dwarf2_per_cu_text_offset): Likewise.
9049 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9050 * hppa-tdep.c (read_unwind_info): Likewise.
9051 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9052 * psympriv.h (struct partial_symtab): Likewise.
9053 * psymtab.c (find_pc_sect_psymtab): Likewise.
9054 * solib-svr4.c (enable_break): Likewise.
9055 * stap-probe.c (relocate_address): Use
9056 objfile::data_section_offset.
9057 * xcoffread.c (enter_line_range): Use
9058 objfile::text_section_offset.
9059 (read_xcoff_symtab): Likewise.
9060
ab53f382
SM
90612020-01-23 Simon Marchi <simon.marchi@efficios.com>
9062
9063 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9064 declaration to narrower scopes.
9065
e7eee665
SM
90662020-01-23 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * darwin-nat.h (struct darwin_exception_msg, enum
9069 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9070 Move up.
9071 (class darwin_nat_target) <wait_1, check_new_threads,
9072 decode_exception_message, decode_message, stop_inferior,
9073 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9074 * darwin-nat.c (darwin_check_new_threads): Rename to...
9075 (darwin_nat_target::check_new_threads): ... this.
9076 (darwin_suspend_inferior_it): Remove.
9077 (darwin_decode_exception_message): Rename to...
9078 (darwin_nat_target::decode_exception_message): ... this.
9079 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9080 (darwin_decode_message): Rename to...
9081 (darwin_nat_target::decode_message): ... this.
9082 (cancel_breakpoint): Rename to...
9083 (darwin_nat_target::cancel_breakpoint): ... this.
9084 (darwin_wait): Rename to...
9085 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9086 instead of iterate_over_inferiors.
9087 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9088 (darwin_stop_inferior): Rename to...
9089 (darwin_nat_target::stop_inferior): ... this.
9090 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9091 (darwin_init_thread_list): Rename to...
9092 (darwin_nat_target::init_thread_list): ... this.
9093 (darwin_ptrace_him): Rename to...
9094 (darwin_nat_target::ptrace_him): ... this.
9095 (darwin_nat_target::create_inferior): Pass lambda function to
9096 fork_inferior.
9097 (darwin_nat_target::detach): Call stop_inferior instead of
9098 darwin_stop_inferior.
9099 * fork-inferior.h (fork_inferior): Change init_trace_fun
9100 parameter to gdb::function_view.
9101 * fork-inferior.c (fork_inferior): Likewise.
9102
c162ed3e
HD
91032020-01-23 Hannes Domani <ssbssa@yahoo.de>
9104
9105 * i386-cygwin-tdep.c (core_process_module_section): Update.
9106 * windows-nat.c (struct lm_info_windows): Add text_offset.
9107 (windows_xfer_shared_libraries): Update.
9108 * windows-tdep.c (windows_xfer_shared_library):
9109 Add text_offset_cached argument.
9110 * windows-tdep.h (windows_xfer_shared_library): Update.
9111
a1237872
SM
91122020-01-21 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9115
b3ee6dd9
SM
91162020-01-21 Simon Marchi <simon.marchi@efficios.com>
9117
9118 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9119 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9120 replace with range-based for.
9121 (gdbsim_interrupt_inferior): Remove.
9122 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9123 with a range-based for. Inline code from
9124 gdbsim_interrupt_inferior.
9125
f9fac3c8
SM
91262020-01-21 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * infrun.c (proceed): Fix indentation.
9129
f6474de9
TT
91302020-01-21 Tom Tromey <tromey@adacore.com>
9131
9132 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9133 * python/python.c (python_extension_ops): Update.
9134 (gdbpy_colorize): New function.
9135 * python/lib/gdb/__init__.py (colorize): New function.
9136 * extension.h (ext_lang_colorize): Declare.
9137 * extension.c (ext_lang_colorize): New function.
9138 * extension-priv.h (struct extension_language_ops) <colorize>: New
9139 member.
9140 * cli/cli-style.c (_initialize_cli_style): Update help text.
9141
f0c702d4
LM
91422020-01-21 Luis Machado <luis.machado@linaro.org>
9143
9144 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9145 <cond>: Change type to bool.
9146 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9147 (aarch64_displaced_step_cb): Likewise.
9148 (aarch64_displaced_step_tb): Likewise.
9149
1ab139e5
LM
91502020-01-21 Luis Machado <luis.machado@linaro.org>
9151
9152 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9153 output.
9154
0c271889
LM
91552020-01-21 Luis Machado <luis.machado@linaro.org>
9156
9157 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9158 <pc_adjust>: Adjust the documentation.
9159 (aarch64_displaced_step_fixup): Check if PC really moved before
9160 adjusting it.
9161
4d89c1c7
TT
91622020-01-19 Tom Tromey <tom@tromey.com>
9163
9164 * disasm.c (~gdb_disassembler): New destructor.
9165 (gdb_buffered_insn_length): Call disassemble_free_target.
9166 * disasm.h (class gdb_disassembler): Declare destructor. Use
9167 DISABLE_COPY_AND_ASSIGN.
9168
c0ab21c2
TT
91692020-01-19 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9172 (die_reader_func_ftype): Remove.
9173 (cutu_reader): New class.
9174 (dw2_get_file_names_reader): Remove "data" parameter.
9175 (dw2_get_file_names): Use cutu_reader.
9176 (create_debug_type_hash_table): Update.
9177 (read_cutu_die_from_dwo): Update comment.
9178 (lookup_dwo_unit): Add dwo_name parameter.
9179 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9180 die_reader_func_ftype and data parameters.
9181 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9182 Remove die_reader_func_ftype and data parameters.
9183 (~cutu_reader): New; from init_cutu_and_read_dies.
9184 (cutu_reader::cutu_reader): Rename from
9185 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9186 and data parameters.
9187 (init_cutu_and_read_dies_simple): Remove.
9188 (struct process_psymtab_comp_unit_data): Remove.
9189 (process_psymtab_comp_unit_reader): Remove data parameter; add
9190 want_partial_unit and pretend_language parameters.
9191 (process_psymtab_comp_unit): Use cutu_reader.
9192 (build_type_psymtabs_reader): Remove data parameter.
9193 (build_type_psymtabs_1): Use cutu_reader.
9194 (process_skeletonless_type_unit): Likewise.
9195 (load_partial_comp_unit_reader): Remove.
9196 (load_partial_comp_unit): Use cutu_reader.
9197 (load_full_comp_unit_reader): Remove.
9198 (load_full_comp_unit): Use cutu_reader.
9199 (struct create_dwo_cu_data): Remove.
9200 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9201 dwo_unit parameters.
9202 (create_cus_hash_table): Use cutu_reader.
9203 (struct dwarf2_read_addr_index_data): Remove.
9204 (dwarf2_read_addr_index_reader): Remove.
9205 (dwarf2_read_addr_index): Use cutu_reader.
9206 (read_signatured_type_reader): Remove.
9207 (read_signatured_type): Use cutu_reader.
9208
45bbae5c
TT
92092020-01-19 Tom Tromey <tom@tromey.com>
9210
9211 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9212 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9213 (tui_wrefresh): Declare.
9214 * tui/tui-wingeneral.c (suppress_output): New global.
9215 (tui_suppress_output, ~tui_suppress_output): New constructor and
9216 destructor.
9217 (tui_wrefresh): New function.
9218 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9219 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9220 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9221 method.
9222 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9223 tui_wrefresh.
9224 (tui_data_window::no_refresh): New method.
9225 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9226 (tui_reg_command): Use tui_suppress_output
9227 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9228 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9229 method.
9230 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9231
4f13c1c0
TT
92322020-01-19 Tom Tromey <tom@tromey.com>
9233
9234 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9235 Handle case where symtab is null.
9236
fa47e446
SM
92372020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9238
9239 * linux-fork.c (one_fork_p): Simplify.
9240
26f42329
SM
92412020-01-17 Simon Marchi <simon.marchi@efficios.com>
9242
9243 * top.c (struct qt_args): Remove.
9244 (kill_or_detach): Change return type to void, replace `void *`
9245 parameter with a proper one.
9246 (print_inferior_quit_action): Likewise.
9247 (quit_confirm): Use range-based for loop to iterate over inferiors.
9248 (quit_force): Likewise.
9249
a9ac81b1
SM
92502020-01-17 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9253 `void *` parameter with proper parameters.
9254 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9255 (print_one_inferior): Change return type to void, replace `void *`
9256 parameter with proper parameters.
9257 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9258 inferiors.
9259 (get_other_inferior): Remove.
9260 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9261 inferiors.
9262
788eca49
SM
92632020-01-17 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * mi/mi-interp.c (report_initial_inferior): Remove.
9266 (mi_interp::init): Use range-based for to iterate over inferiors.
9267
d9bc85b6
SM
92682020-01-17 Simon Marchi <simon.marchi@efficios.com>
9269
9270 * python/py-inferior.c (build_inferior_list): Remove.
9271 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9272
40c94099
CB
92732020-01-16 Christian Biesinger <cbiesinger@google.com>
9274
9275 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9276 (btrace_stitch_trace): Likewise.
9277 * charset.c (intermediate_encoding): Likewise (vaild).
9278 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9279 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9280 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9281
e0cdfe3c
HD
92822020-01-16 Hannes Domani <ssbssa@yahoo.de>
9283
9284 * windows-tdep.c (windows_get_tlb_type):
9285 Add rtl_user_process_parameters type.
9286
790f1718 92872020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9288 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9289
9290 PR build/24805
9291 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9292 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9293 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9294 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9295 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9296 (ps_plog): Redeclare exported functions with default visibility.
9297
3112ed97
NA
92982020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9299
9300 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9301 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9302
8dc3273e
SM
93032020-01-15 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * infcmd.c (post_create_inferior): Use get_thread_regcache
9306 instead of get_current_regcache.
9307
ff47f4f0
TT
93082020-01-14 Tom Tromey <tom@tromey.com>
9309
9310 PR symtab/12535:
9311 * python/python.c (gdbpy_decode_line): Treat empty string the same
9312 as no argument.
9313
975f45b7
TT
93142020-01-14 Tom Tromey <tom@tromey.com>
9315
9316 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9317
25e57356
TT
93182020-01-14 Tom Tromey <tom@tromey.com>
9319
9320 * nat/linux-btrace.c: Don't include <config.h>.
9321 * nat/linux-ptrace.c: Don't include <config.h>.
9322 * nat/x86-linux-dregs.c: Don't include <config.h>.
9323
05ea2a05
TT
93242020-01-14 Tom Tromey <tom@tromey.com>
9325
9326 * configure: Rebuild.
9327 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9328
01027315
TT
93292020-01-14 Tom Tromey <tom@tromey.com>
9330
9331 * nat/x86-linux-dregs.c: Include configh.h.
9332 * nat/linux-ptrace.c: Include configh.h.
9333 * nat/linux-btrace.c: Include configh.h.
9334 * defs.h: Include config.h, bfd.h.
9335 * configure.ac: Don't source common.host.
9336 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9337 * configure: Rebuild.
9338 * acinclude.m4: Update path.
9339 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9340 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9341 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9342 (CLIBS): Add LIBSUPPORT.
9343 (CDEPS): Likewise.
9344 (COMMON_SFILES): Remove gdbsupport files.
9345 (HFILES_NO_SRCDIR): Likewise.
9346 (stamp-version): Update path to create-version.sh.
9347 (ALLDEPFILES): Remove gdbsupport files.
9348
b2ceabe8
TT
93492020-01-14 Tom Tromey <tom@tromey.com>
9350
9351 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9352 USE_WIN32API when needed.
9353 * configure.ac (USE_WIN32API): Don't define.
9354 (WIN32LIBS): Use WIN32APILIBS.
9355 * configure: Rebuild.
9356
25c51f71
TT
93572020-01-14 Tom Tromey <tom@tromey.com>
9358
9359 * configure: Rebuild.
9360 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9361
717c684d
BE
93622020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9363
9364 * skip.c (skip_function_command): Make skip w/o arguments use the
9365 name of the inlined function if pc is inside any inlined function.
9366
7da6a5b9
LM
93672020-01-14 Luis Machado <luis.machado@linaro.org>
9368
9369 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9370 * infrun.c (resume_1): Likewise.
9371 (handle_inferior_event): Remove stale comment.
9372 * linux-nat.c (linux_nat_target::resume): Update comments.
9373 (save_stop_reason): Likewise.
9374 (linux_nat_filter_event): Likewise.
9375 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9376
44e4c775
AB
93772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9378
9379 * elfread.c (record_minimal_symbol): Set section index to 0 for
9380 non-allocatable sections.
9381
18a8505e
AT
9382
93832020-01-13 Ali Tamur <tamur@google.com>
9384
9385 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9386 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9387 to gdb::optional. Update comments.
9388 (dwo_file): Update comments.
9389 (read_attribute): Update API to take an additional out parameter,
9390 need_reprocess. This is used to mark attributes that need other
9391 attributes (e.g. str_offsets_base) for correct computation which may not
9392 have been read yet.
9393 (read_attribute_reprocess): New function declaration.
9394 (read_addr_index): Likewise.
9395 (read_dwo_str_index): Likewise.
9396 (read_stub_str_index): Likewise.
9397 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9398 (lookup_addr_base): New function definition.
9399 (lookup_ranges_base): Likewise.
9400 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9401 lookup_ranges_base.
9402 (init_cutu_and_read_dies): Update comments.
9403 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9404 unit. This is used to inherit parent's str_offsets_base and addr_base.
9405 Update comments.
9406 (init_cutu_and_read_dies_simple): Reflect API changes.
9407 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9408 (create_cus_hash_table): Change API to take parent compile unit.
9409 Reflect API changes.
9410 (open_and_init_dwo_file): Reflect API changes.
9411 (dwarf2_get_pc_bounds): Update comments.
9412 (dwarf2_record_block_ranges): Likewise.
9413 (read_full_die_1): Change implementation to reprocess attributes that
9414 need str_offsets_base and addr_base.
9415 (partial_die_info::read): Likewise.
9416 (read_attribute_reprocess): New function definition.
9417 (read_attribute_value): Change API to take an additional out parameter,
9418 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9419 when a non-dwo compile unit has index based attributes.
9420 (read_attribute): Reflect API changes.
9421 (read_addr_index_1): Reflect API changes. Update comments.
9422 (dwarf2_read_addr_index_data): Reflect API changes.
9423 (dwarf2_read_addr_index): Likewise.
9424 (read_str_index): Change API and implementation. This becomes a helper
9425 to be used by the new string index related methods. Update error
9426 message and comments.
9427 (read_dwo_str_index): New function definition.
9428 (read_stub_str_index): Likewise.
9429 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9430 * symfile.h (dwarf2_debug_sections): Likewise.
9431 * xcoffread.c (dwarf2_debug_sections): Likewise.
9432
0cac9354
SM
94332020-01-13 Simon Marchi <simon.marchi@efficios.com>
9434
9435 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9436 core_reg_sect type to gdb_byte *.
9437 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9438 * cris-tdep.c (fetch_core_registers): Likewise.
9439 * corelow.c (core_target::get_core_register_section): Change
9440 type of `contents` to gdb::byte_vector.
9441
9a6d629c
AB
94422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9443
9444 * tui/tui-wingeneral.c (box_win): Position the title in the center
9445 of the border.
9446
d8b2f9e3
SM
94472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9448
9449 * corelow.c (core_target::get_core_register_section): Use
9450 std::vector instead of alloca.
9451
bb564c58
SM
94522020-01-13 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * warning.m4: Add -Wmissing-declarations to build_warnings.
9455 * configure: Re-generate.
9456
6b366111
SM
94572020-01-13 Simon Marchi <simon.marchi@efficios.com>
9458
9459 * python/python.c (init__gdb_module): Add declaration.
9460
6c265988
SM
94612020-01-13 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9464 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9465 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9466 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9467 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9468 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9469 * ada-exp.y (_initialize_ada_exp): Add declaration.
9470 * ada-lang.c (_initialize_ada_language): Add declaration.
9471 * ada-tasks.c (_initialize_tasks): Add declaration.
9472 * agent.c (_initialize_agent): Add declaration.
9473 * aix-thread.c (_initialize_aix_thread): Add declaration.
9474 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9475 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9476 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9477 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9478 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9479 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9480 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9481 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9482 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9483 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9484 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9485 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9486 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9487 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9488 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9489 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9490 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9491 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9492 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9493 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9494 * annotate.c (_initialize_annotate): Add declaration.
9495 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9496 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9497 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9498 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9499 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9500 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9501 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9502 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9503 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9504 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9505 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9506 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9507 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9508 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9509 * auto-load.c (_initialize_auto_load): Add declaration.
9510 * auxv.c (_initialize_auxv): Add declaration.
9511 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9512 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9513 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9514 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9515 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9516 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9517 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9518 * breakpoint.c (_initialize_breakpoint): Add declaration.
9519 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9520 * btrace.c (_initialize_btrace): Add declaration.
9521 * charset.c (_initialize_charset): Add declaration.
9522 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9523 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9524 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9525 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9526 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9527 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9528 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9529 * coffread.c (_initialize_coffread): Add declaration.
9530 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9531 * compile/compile.c (_initialize_compile): Add declaration.
9532 * complaints.c (_initialize_complaints): Add declaration.
9533 * completer.c (_initialize_completer): Add declaration.
9534 * copying.c (_initialize_copying): Add declaration.
9535 * corefile.c (_initialize_core): Add declaration.
9536 * corelow.c (_initialize_corelow): Add declaration.
9537 * cp-abi.c (_initialize_cp_abi): Add declaration.
9538 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9539 * cp-support.c (_initialize_cp_support): Add declaration.
9540 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9541 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9542 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9543 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9544 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9545 * ctfread.c (_initialize_ctfread): Add declaration.
9546 * d-lang.c (_initialize_d_language): Add declaration.
9547 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9548 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9549 * dbxread.c (_initialize_dbxread): Add declaration.
9550 * dcache.c (_initialize_dcache): Add declaration.
9551 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9552 * disasm.c (_initialize_disasm): Add declaration.
9553 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9554 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9555 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9556 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9557 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9558 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9559 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9560 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9561 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9562 * elfread.c (_initialize_elfread): Add declaration.
9563 * exec.c (_initialize_exec): Add declaration.
9564 * extension.c (_initialize_extension): Add declaration.
9565 * f-lang.c (_initialize_f_language): Add declaration.
9566 * f-valprint.c (_initialize_f_valprint): Add declaration.
9567 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9568 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9569 * filesystem.c (_initialize_filesystem): Add declaration.
9570 * findcmd.c (_initialize_mem_search): Add declaration.
9571 * findvar.c (_initialize_findvar): Add declaration.
9572 * fork-child.c (_initialize_fork_child): Add declaration.
9573 * frame-base.c (_initialize_frame_base): Add declaration.
9574 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9575 * frame.c (_initialize_frame): Add declaration.
9576 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9577 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9578 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9579 * gcore.c (_initialize_gcore): Add declaration.
9580 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9581 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9582 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9583 * gdbarch.c (_initialize_gdbarch): Add declaration.
9584 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9585 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9586 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9587 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9588 * go-lang.c (_initialize_go_language): Add declaration.
9589 * go32-nat.c (_initialize_go32_nat): Add declaration.
9590 * guile/guile.c (_initialize_guile): Add declaration.
9591 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9592 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9593 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9594 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9595 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9596 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9597 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9598 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9599 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9600 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9601 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9602 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9603 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9604 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9605 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9606 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9607 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9608 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9609 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9610 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9611 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9612 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9613 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9614 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9615 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9616 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9617 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9618 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9619 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9620 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9621 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9622 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9623 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9624 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9625 * infcall.c (_initialize_infcall): Add declaration.
9626 * infcmd.c (_initialize_infcmd): Add declaration.
9627 * inflow.c (_initialize_inflow): Add declaration.
9628 * infrun.c (_initialize_infrun): Add declaration.
9629 * interps.c (_initialize_interpreter): Add declaration.
9630 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9631 * jit.c (_initialize_jit): Add declaration.
9632 * language.c (_initialize_language): Add declaration.
9633 * linux-fork.c (_initialize_linux_fork): Add declaration.
9634 * linux-nat.c (_initialize_linux_nat): Add declaration.
9635 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9636 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9637 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9638 * m2-lang.c (_initialize_m2_language): Add declaration.
9639 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9640 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9641 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9642 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9643 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9644 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9645 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9646 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9647 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9648 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9649 * machoread.c (_initialize_machoread): Add declaration.
9650 * macrocmd.c (_initialize_macrocmd): Add declaration.
9651 * macroscope.c (_initialize_macroscope): Add declaration.
9652 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9653 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9654 * maint.c (_initialize_maint_cmds): Add declaration.
9655 * mdebugread.c (_initialize_mdebugread): Add declaration.
9656 * memattr.c (_initialize_mem): Add declaration.
9657 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9658 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9659 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9660 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9661 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9662 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9663 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9664 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9665 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9666 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9667 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9668 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9669 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9670 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9671 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9672 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9673 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9674 * mipsread.c (_initialize_mipsread): Add declaration.
9675 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9676 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9677 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9678 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9679 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9680 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9681 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9682 * nto-procfs.c (_initialize_procfs): Add declaration.
9683 * objc-lang.c (_initialize_objc_language): Add declaration.
9684 * observable.c (_initialize_observer): Add declaration.
9685 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9686 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9687 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9688 * osabi.c (_initialize_gdb_osabi): Add declaration.
9689 * osdata.c (_initialize_osdata): Add declaration.
9690 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9691 * parse.c (_initialize_parse): Add declaration.
9692 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9693 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9694 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9695 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9696 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9697 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9698 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9699 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9700 * printcmd.c (_initialize_printcmd): Add declaration.
9701 * probe.c (_initialize_probe): Add declaration.
9702 * proc-api.c (_initialize_proc_api): Add declaration.
9703 * proc-events.c (_initialize_proc_events): Add declaration.
9704 * proc-service.c (_initialize_proc_service): Add declaration.
9705 * procfs.c (_initialize_procfs): Add declaration.
9706 * producer.c (_initialize_producer): Add declaration.
9707 * psymtab.c (_initialize_psymtab): Add declaration.
9708 * python/python.c (_initialize_python): Add declaration.
9709 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9710 * record-btrace.c (_initialize_record_btrace): Add declaration.
9711 * record-full.c (_initialize_record_full): Add declaration.
9712 * record.c (_initialize_record): Add declaration.
9713 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9714 * regcache.c (_initialize_regcache): Add declaration.
9715 * reggroups.c (_initialize_reggroup): Add declaration.
9716 * remote-notif.c (_initialize_notif): Add declaration.
9717 * remote-sim.c (_initialize_remote_sim): Add declaration.
9718 * remote.c (_initialize_remote): Add declaration.
9719 * reverse.c (_initialize_reverse): Add declaration.
9720 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9721 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9722 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9723 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9724 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9725 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9726 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9727 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9728 Add declaration.
9729 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9730 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9731 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9732 * rust-exp.y (_initialize_rust_exp): Add declaration.
9733 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9734 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9735 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9736 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9737 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9738 * score-tdep.c (_initialize_score_tdep): Add declaration.
9739 * ser-go32.c (_initialize_ser_dos): Add declaration.
9740 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9741 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9742 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9743 * ser-uds.c (_initialize_ser_socket): Add declaration.
9744 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9745 * serial.c (_initialize_serial): Add declaration.
9746 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9747 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9748 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9749 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9750 * skip.c (_initialize_step_skip): Add declaration.
9751 * sol-thread.c (_initialize_sol_thread): Add declaration.
9752 * solib-aix.c (_initialize_solib_aix): Add declaration.
9753 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9754 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9755 * solib-frv.c (_initialize_frv_solib): Add declaration.
9756 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9757 * solib-target.c (_initialize_solib_target): Add declaration.
9758 * solib.c (_initialize_solib): Add declaration.
9759 * source-cache.c (_initialize_source_cache): Add declaration.
9760 * source.c (_initialize_source): Add declaration.
9761 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9762 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9763 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9764 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9765 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9766 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9767 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9768 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9769 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9770 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9771 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9772 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9773 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9774 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9775 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9776 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9777 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9778 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9779 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9780 * stabsread.c (_initialize_stabsread): Add declaration.
9781 * stack.c (_initialize_stack): Add declaration.
9782 * stap-probe.c (_initialize_stap_probe): Add declaration.
9783 * std-regs.c (_initialize_frame_reg): Add declaration.
9784 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9785 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9786 * symfile.c (_initialize_symfile): Add declaration.
9787 * symmisc.c (_initialize_symmisc): Add declaration.
9788 * symtab.c (_initialize_symtab): Add declaration.
9789 * target.c (_initialize_target): Add declaration.
9790 * target-connection.c (_initialize_target_connection): Add
9791 declaration.
9792 * target-dcache.c (_initialize_target_dcache): Add declaration.
9793 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9794 * thread.c (_initialize_thread): Add declaration.
9795 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9796 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9797 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9798 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9799 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9800 * tracectf.c (_initialize_ctf): Add declaration.
9801 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9802 * tracefile.c (_initialize_tracefile): Add declaration.
9803 * tracepoint.c (_initialize_tracepoint): Add declaration.
9804 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9805 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9806 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9807 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9808 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9809 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9810 * tui/tui.c (_initialize_tui): Add declaration.
9811 * typeprint.c (_initialize_typeprint): Add declaration.
9812 * ui-style.c (_initialize_ui_style): Add declaration.
9813 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9814 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9815 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9816 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9817 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9818 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9819 * unittests/filtered_iterator-selftests.c
9820 (_initialize_filtered_iterator_selftests): Add declaration.
9821 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9822 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9823 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9824 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9825 * unittests/main-thread-selftests.c
9826 (_initialize_main_thread_selftests): Add declaration.
9827 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9828 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9829 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9830 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9831 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9832 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9833 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9834 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9835 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9836 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9837 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9838 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9839 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9840 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9841 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9842 declaration.
9843 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9844 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9845 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9846 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9847 * user-regs.c (_initialize_user_regs): Add declaration.
9848 * utils.c (_initialize_utils): Add declaration.
9849 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9850 * valops.c (_initialize_valops): Add declaration.
9851 * valprint.c (_initialize_valprint): Add declaration.
9852 * value.c (_initialize_values): Add declaration.
9853 * varobj.c (_initialize_varobj): Add declaration.
9854 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9855 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9856 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9857 * windows-nat.c (_initialize_windows_nat): Add declaration.
9858 (_initialize_check_for_gdb_ini): Add declaration.
9859 (_initialize_loadable): Add declaration.
9860 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9861 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9862 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9863 * xcoffread.c (_initialize_xcoffread): Add declaration.
9864 * xml-support.c (_initialize_xml_support): Add declaration.
9865 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9866 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9867 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9868 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9869
e2de1eec
SM
98702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9871
9872 * regformats/regdat.sh: Generate declaration for init function.
9873
e0037b4c
SM
98742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9875
9876 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9877 up.
9878 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9879 close_one_inferior>: New methods.
9880 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9881 pass down target to find_inferior_pid.
9882 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9883 Pass down target to find_inferior_ptid.
9884 (gdbsim_target::create_inferior): Pass down target to
9885 add_thread_silent.
9886 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9887 target down to find_inferior_ptid and switch_to_thread.
9888 (gdbsim_target::close): Update to call close_one_inferior.
9889 (struct resume_data): Remove.
9890 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9891 directly, rather than through a void pointer.
9892 (gdbsim_target::resume): Update to call resume_one_inferior.
9893
58920b5b
SM
98942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9897
4ec89149
PA
98982020-01-12 Pedro Alves <palves@redhat.com>
9899
9900 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9901 directly for the current inferior instead of
9902 discard_all_inferiors.
9903 (discard_all_inferiors): Delete.
9904
7c392d1d
TT
99052020-01-11 Tom Tromey <tom@tromey.com>
9906
9907 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9908 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9909 deprecated_safe_get_selected_frame.
9910
d9ebdab7
TBA
99112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9912
9913 * inferior.c (print_inferior): Switch inferior before printing it.
9914
f3c469b9
PA
99152020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9916 Pedro Alves <palves@redhat.com>
9917
9918 * progspace-and-thread.c (switch_to_program_space_and_thread):
9919 Assert there's an inferior for PSPACE. Use
9920 switch_to_inferior_no_thread to switch the inferior too.
9921 * progspace.c (program_space::~program_space): Call
9922 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9923 (program_space::free_all_objfiles): Don't call clear_symtab_users
9924 here.
9925 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9926
65c574f6
PA
99272020-01-10 Pedro Alves <palves@redhat.com>
9928
9929 * NEWS: Mention multi-target debugging, "info connections", and
9930 "add-inferior -no-connection".
9931
2f4fcf00
PA
99322020-01-10 Pedro Alves <palves@redhat.com>
9933
9934 * infrun.c: Include "target-connection.h".
9935 (check_multi_target_resumption): New.
9936 (proceed): Call it.
9937 * target-connection.c (make_target_connection_string): Make
9938 extern.
9939 * target-connection.h (make_target_connection_string): Declare.
9940
121b3efd
PA
99412020-01-10 Pedro Alves <palves@redhat.com>
9942
9943 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9944 * inferior.c (uiout_field_connection): New function.
9945 (print_inferior): Add new "connection-id" column.
9946 (add_inferior_command): Show connection number/string of added
9947 inferior.
9948 * process-stratum-target.h
9949 (process_stratum_target::connection_string): New virtual method.
9950 (process_stratum_target::connection_number): New field.
9951 * remote.c (remote_target::connection_string): New override.
9952 * target-connection.c: New file.
9953 * target-connection.h: New file.
9954 * target.c (decref_target): Remove process_stratum targets from
9955 the connection list.
9956 (target_stack::push): Add process_stratum targets to the
9957 connection list.
9958
4f837581
PA
99592020-01-10 Pedro Alves <palves@redhat.com>
9960
9961 Revert:
9962 2016-04-12 Pedro Alves <palves@redhat.com>
9963 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9964 Remove references to name.
9965 * serial.h (struct serial) <name>: Delete.
9966
f4ec508e
PA
99672020-01-10 Pedro Alves <palves@redhat.com>
9968
9969 * gdbarch-selftests.c (register_to_value_test): Remove "target
9970 already pushed" check.
9971
5b6d1e4f
PA
99722020-01-10 Pedro Alves <palves@redhat.com>
9973 John Baldwin <jhb@FreeBSD.org>
9974
9975 * aarch64-linux-nat.c
9976 (aarch64_linux_nat_target::thread_architecture): Adjust.
9977 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9978 (task_command_1): Likewise.
9979 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9980 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9981 (aix_thread_target::store_registers)
9982 (aix_thread_target::thread_alive): Adjust.
9983 * amd64-fbsd-tdep.c: Include "inferior.h".
9984 (amd64fbsd_get_thread_local_address): Pass down target.
9985 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9986 thread's gdbarch instead of target_gdbarch.
9987 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9988 get_last_target_status.
9989 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9990 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9991 inferiors.
9992 (update_inserted_breakpoint_locations): Skip if inferiors with no
9993 execution.
9994 (update_global_location_list): When handling moribund locations,
9995 find representative inferior for location's pspace, and use thread
9996 count of its process_stratum target.
9997 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9998 * bsd-uthread.c (bsd_uthread_target::wait): Use
9999 as_process_stratum_target and adjust thread_change_ptid and
10000 add_thread calls.
10001 (bsd_uthread_target::update_thread_list): Use
10002 as_process_stratum_target and adjust find_thread_ptid,
10003 thread_change_ptid and add_thread calls.
10004 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10005 find_thread_ptid call.
10006 * corelow.c (add_to_thread_list): Adjust add_thread call.
10007 (core_target_open): Adjust add_thread_silent and thread_count
10008 calls.
10009 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10010 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10011 * event-top.c (async_disconnect): Pop targets from all inferiors.
10012 * exec.c (add_target_sections): Push exec target on all inferiors
10013 sharing the program space.
10014 (remove_target_sections): Remove the exec target from all
10015 inferiors sharing the program space.
10016 (exec_on_vfork): New.
10017 * exec.h (exec_on_vfork): Declare.
10018 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10019 Pass it down.
10020 (fbsd_nat_target::update_thread_list): Adjust.
10021 (fbsd_nat_target::resume): Adjust.
10022 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10023 down.
10024 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10025 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10026 get_thread_arch_regcache call.
10027 * fork-child.c (gdb_startup_inferior): Pass target down to
10028 startup_inferior and set_executing.
10029 * gdbthread.h (struct process_stratum_target): Forward declare.
10030 (add_thread, add_thread_silent, add_thread_with_info)
10031 (in_thread_list): Add process_stratum_target parameter.
10032 (find_thread_ptid(inferior*, ptid_t)): New overload.
10033 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10034 parameter.
10035 (all_threads()): Delete overload.
10036 (all_threads, all_non_exited_threads): Add process_stratum_target
10037 parameter.
10038 (all_threads_safe): Use brace initialization.
10039 (thread_count): Add process_stratum_target parameter.
10040 (set_resumed, set_running, set_stop_requested, set_executing)
10041 (threads_are_executing, finish_thread_state): Add
10042 process_stratum_target parameter.
10043 (switch_to_thread): Use is_current_thread.
10044 * i386-fbsd-tdep.c: Include "inferior.h".
10045 (i386fbsd_get_thread_local_address): Pass down target.
10046 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10047 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10048 have_inferiors check.
10049 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10050 (inf_ptrace_target::attach): Adjust.
10051 * infcall.c (run_inferior_call): Adjust.
10052 * infcmd.c (run_command_1): Pass target to
10053 scoped_finish_thread_state.
10054 (proceed_thread_callback): Skip inferiors with no execution.
10055 (continue_command): Rename 'all_threads' local to avoid hiding
10056 'all_threads' function. Adjust get_last_target_status call.
10057 (prepare_one_step): Adjust set_running call.
10058 (signal_command): Use user_visible_resume_target. Compare thread
10059 pointers instead of inferior_ptid.
10060 (info_program_command): Adjust to pass down target.
10061 (attach_command): Mark target's 'thread_executing' flag.
10062 (stop_current_target_threads_ns): New, factored out from ...
10063 (interrupt_target_1): ... this. Switch inferior before making
10064 target calls.
10065 * inferior-iter.h
10066 (struct all_inferiors_iterator, struct all_inferiors_range)
10067 (struct all_inferiors_safe_range)
10068 (struct all_non_exited_inferiors_range): Filter on
10069 process_stratum_target too. Remove explicit.
10070 * inferior.c (inferior::inferior): Push dummy target on target
10071 stack.
10072 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10073 Add process_stratum_target parameter, and pass it down.
10074 (have_live_inferiors): Adjust.
10075 (switch_to_inferior_and_push_target): New.
10076 (add_inferior_command, clone_inferior_command): Handle
10077 "-no-connection" parameter. Use
10078 switch_to_inferior_and_push_target.
10079 (_initialize_inferior): Mention "-no-connection" option in
10080 the help of "add-inferior" and "clone-inferior" commands.
10081 * inferior.h: Include "process-stratum-target.h".
10082 (interrupt_target_1): Use bool.
10083 (struct inferior) <push_target, unpush_target, target_is_pushed,
10084 find_target_beneath, top_target, process_target, target_at,
10085 m_stack>: New.
10086 (discard_all_inferiors): Delete.
10087 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10088 (all_inferiors, all_non_exited_inferiors): Add
10089 process_stratum_target parameter.
10090 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10091 (target_last_proc_target): New global.
10092 (follow_fork_inferior): Push target on new inferior. Pass target
10093 to add_thread_silent. Call exec_on_vfork. Handle target's
10094 reference count.
10095 (follow_fork): Adjust get_last_target_status call. Also consider
10096 target.
10097 (follow_exec): Push target on new inferior.
10098 (struct execution_control_state) <target>: New field.
10099 (user_visible_resume_target): New.
10100 (do_target_resume): Call target_async.
10101 (resume_1): Set target's threads_executing flag. Consider resume
10102 target.
10103 (commit_resume_all_targets): New.
10104 (proceed): Also consider resume target. Skip threads of inferiors
10105 with no execution. Commit resumtion in all targets.
10106 (start_remote): Pass current inferior to wait_for_inferior.
10107 (infrun_thread_stop_requested): Consider target as well. Pass
10108 thread_info pointer to clear_inline_frame_state instead of ptid.
10109 (infrun_thread_thread_exit): Consider target as well.
10110 (random_pending_event_thread): New inferior parameter. Use it.
10111 (do_target_wait): Rename to ...
10112 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10113 down.
10114 (threads_are_resumed_pending_p, do_target_wait): New.
10115 (prepare_for_detach): Adjust calls.
10116 (wait_for_inferior): New inferior parameter. Handle it. Use
10117 do_target_wait_1 instead of do_target_wait.
10118 (fetch_inferior_event): Adjust. Switch to representative
10119 inferior. Pass target down.
10120 (set_last_target_status): Add process_stratum_target parameter.
10121 Save target in global.
10122 (get_last_target_status): Add process_stratum_target parameter and
10123 handle it.
10124 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10125 (context_switch): Check inferior_ptid == null_ptid before calling
10126 inferior_thread().
10127 (get_inferior_stop_soon): Pass down target.
10128 (wait_one): Rename to ...
10129 (poll_one_curr_target): ... this.
10130 (struct wait_one_event): New.
10131 (wait_one): New.
10132 (stop_all_threads): Adjust.
10133 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10134 event's target.
10135 (switch_back_to_stepped_thread): Also consider target.
10136 (print_stop_event): Update.
10137 (normal_stop): Update. Also consider the resume target.
10138 * infrun.h (wait_for_inferior): Remove declaration.
10139 (user_visible_resume_target): New declaration.
10140 (get_last_target_status, set_last_target_status): New
10141 process_stratum_target parameter.
10142 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10143 process_stratum_target parameter, and use it.
10144 (clear_inline_frame_state (thread_info*)): New.
10145 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10146 process_stratum_target parameter.
10147 (clear_inline_frame_state (thread_info*)): Declare.
10148 * linux-fork.c (delete_checkpoint_command): Pass target down to
10149 find_thread_ptid.
10150 (checkpoint_command): Adjust.
10151 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10152 instead of just tweaking inferior_ptid.
10153 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10154 (exit_lwp): Pass target down to find_thread_ptid.
10155 (attach_proc_task_lwp_callback): Pass target down to
10156 add_thread/set_running/set_executing.
10157 (linux_nat_target::attach): Pass target down to
10158 thread_change_ptid.
10159 (get_detach_signal): Pass target down to find_thread_ptid.
10160 Consider last target status's target.
10161 (linux_resume_one_lwp_throw, resume_lwp)
10162 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10163 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10164 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10165 (linux_nat_target::async_wait_fd): New.
10166 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10167 target down.
10168 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10169 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10170 * linux-thread-db.c (struct thread_db_info::process_target): New
10171 field.
10172 (add_thread_db_info): Save target.
10173 (get_thread_db_info): New process_stratum_target parameter. Also
10174 match target.
10175 (delete_thread_db_info): New process_stratum_target parameter.
10176 Also match target.
10177 (thread_from_lwp): Adjust to pass down target.
10178 (thread_db_notice_clone): Pass down target.
10179 (check_thread_db_callback): Pass down target.
10180 (try_thread_db_load_1): Always push the thread_db target.
10181 (try_thread_db_load, record_thread): Pass target down.
10182 (thread_db_target::detach): Pass target down. Always unpush the
10183 thread_db target.
10184 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10185 target down. Always unpush the thread_db target.
10186 (find_new_threads_callback, thread_db_find_new_threads_2)
10187 (thread_db_target::update_thread_list): Pass target down.
10188 (thread_db_target::pid_to_str): Pass current inferior down.
10189 (thread_db_target::get_thread_local_address): Pass target down.
10190 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10191 target down.
10192 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10193 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10194 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10195 (procfs_init_inferior): Rename to ...
10196 (procfs_target::procfs_init_inferior): ... this and adjust.
10197 (procfs_target::create_inferior, procfs_notice_thread)
10198 (procfs_do_thread_registers): Adjust.
10199 * ppc-fbsd-tdep.c: Include "inferior.h".
10200 (ppcfbsd_get_thread_local_address): Pass down target.
10201 * proc-service.c (ps_xfer_memory): Switch current inferior and
10202 program space as well.
10203 (get_ps_regcache): Pass target down.
10204 * process-stratum-target.c
10205 (process_stratum_target::thread_address_space)
10206 (process_stratum_target::thread_architecture): Pass target down.
10207 * process-stratum-target.h
10208 (process_stratum_target::threads_executing): New field.
10209 (as_process_stratum_target): New.
10210 * ravenscar-thread.c
10211 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10212 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10213 down.
10214 * record-btrace.c (record_btrace_target::info_record): Adjust.
10215 (record_btrace_target::record_method)
10216 (record_btrace_target::record_is_replaying)
10217 (record_btrace_target::fetch_registers)
10218 (get_thread_current_frame_id, record_btrace_target::resume)
10219 (record_btrace_target::wait, record_btrace_target::stop): Pass
10220 target down.
10221 * record-full.c (record_full_wait_1): Switch to event thread.
10222 Pass target down.
10223 * regcache.c (regcache::regcache)
10224 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10225 process_stratum_target parameter and handle it.
10226 (current_thread_target): New global.
10227 (get_thread_regcache): Add process_stratum_target parameter and
10228 handle it. Switch inferior before calling target method.
10229 (get_thread_regcache): Pass target down.
10230 (get_thread_regcache_for_ptid): Pass target down.
10231 (registers_changed_ptid): Add process_stratum_target parameter and
10232 handle it.
10233 (registers_changed_thread, registers_changed): Pass target down.
10234 (test_get_thread_arch_aspace_regcache): New.
10235 (current_regcache_test): Define a couple local test_target_ops
10236 instances and use them for testing.
10237 (readwrite_regcache): Pass process_stratum_target parameter.
10238 (cooked_read_test, cooked_write_test): Pass mock_target down.
10239 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10240 (get_thread_arch_aspace_regcache): Add process_stratum_target
10241 parameter.
10242 (regcache::target): New method.
10243 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10244 (regcache::registers_changed_ptid): Add process_stratum_target
10245 parameter.
10246 (regcache::m_target): New field.
10247 (registers_changed_ptid): Add process_stratum_target parameter.
10248 * remote.c (remote_state::supports_vCont_probed): New field.
10249 (remote_target::async_wait_fd): New method.
10250 (remote_unpush_and_throw): Add remote_target parameter.
10251 (get_current_remote_target): Adjust.
10252 (remote_target::remote_add_inferior): Push target.
10253 (remote_target::remote_add_thread)
10254 (remote_target::remote_notice_new_inferior)
10255 (get_remote_thread_info): Pass target down.
10256 (remote_target::update_thread_list): Skip threads of inferiors
10257 bound to other targets. (remote_target::close): Don't discard
10258 inferiors. (remote_target::add_current_inferior_and_thread)
10259 (remote_target::process_initial_stop_replies)
10260 (remote_target::start_remote)
10261 (remote_target::remote_serial_quit_handler): Pass down target.
10262 (remote_target::remote_unpush_target): New remote_target
10263 parameter. Unpush the target from all inferiors.
10264 (remote_target::remote_unpush_and_throw): New remote_target
10265 parameter. Pass it down.
10266 (remote_target::open_1): Check whether the current inferior has
10267 execution instead of checking whether any inferior is live. Pass
10268 target down.
10269 (remote_target::remote_detach_1): Pass down target. Use
10270 remote_unpush_target.
10271 (extended_remote_target::attach): Pass down target.
10272 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10273 (remote_target::append_resumption): Pass down target.
10274 (remote_target::append_pending_thread_resumptions)
10275 (remote_target::remote_resume_with_hc, remote_target::resume)
10276 (remote_target::commit_resume): Pass down target.
10277 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10278 (remote_target::interrupt_query)
10279 (remote_target::remove_new_fork_children)
10280 (remote_target::check_pending_events_prevent_wildcard_vcont)
10281 (remote_target::remote_parse_stop_reply)
10282 (remote_target::process_stop_reply): Pass down target.
10283 (first_remote_resumed_thread): New remote_target parameter. Pass
10284 it down.
10285 (remote_target::wait_as): Pass down target.
10286 (unpush_and_perror): New remote_target parameter. Pass it down.
10287 (remote_target::readchar, remote_target::remote_serial_write)
10288 (remote_target::getpkt_or_notif_sane_1)
10289 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10290 down target.
10291 (remote_target::mourn_inferior): Pass down target. Use
10292 remote_unpush_target.
10293 (remote_target::core_of_thread)
10294 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10295 (remote_target::pid_to_exec_file)
10296 (remote_target::thread_handle_to_thread_info): Pass down target.
10297 (remote_target::async_wait_fd): New.
10298 * riscv-fbsd-tdep.c: Include "inferior.h".
10299 (riscv_fbsd_get_thread_local_address): Pass down target.
10300 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10301 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10302 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10303 Adjust.
10304 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10305 * solib-svr4.c (enable_break): Pass down target.
10306 * spu-multiarch.c (parse_spufs_run): Pass down target.
10307 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10308 * target-delegates.c: Regenerate.
10309 * target.c (g_target_stack): Delete.
10310 (current_top_target): Return the current inferior's top target.
10311 (target_has_execution_1): Refer to the passed-in inferior's top
10312 target.
10313 (target_supports_terminal_ours): Check whether the initial
10314 inferior was already created.
10315 (decref_target): New.
10316 (target_stack::push): Incref/decref the target.
10317 (push_target, push_target, unpush_target): Adjust.
10318 (target_stack::unpush): Defref target.
10319 (target_is_pushed): Return bool. Adjust to refer to the current
10320 inferior's target stack.
10321 (dispose_inferior): Delete, and inline parts ...
10322 (target_preopen): ... here. Only dispose of the current inferior.
10323 (target_detach): Hold strong target reference while detaching.
10324 Pass target down.
10325 (target_thread_name): Add assertion.
10326 (target_resume): Pass down target.
10327 (target_ops::beneath, find_target_at): Adjust to refer to the
10328 current inferior's target stack.
10329 (get_dummy_target): New.
10330 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10331 has a thread running.
10332 (initialize_targets): Rename to ...
10333 (_initialize_target): ... this.
10334 * target.h: Include "gdbsupport/refcounted-object.h".
10335 (struct target_ops): Inherit refcounted_object.
10336 (target_ops::shortname, target_ops::longname): Make const.
10337 (target_ops::async_wait_fd): New method.
10338 (decref_target): Declare.
10339 (struct target_ops_ref_policy): New.
10340 (target_ops_ref): New typedef.
10341 (get_dummy_target): Declare function.
10342 (target_is_pushed): Return bool.
10343 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10344 (all_matching_threads_iterator::all_matching_threads_iterator):
10345 Handle filter target.
10346 * thread-iter.h (struct all_matching_threads_iterator, struct
10347 all_matching_threads_range, class all_non_exited_threads_range):
10348 Filter by target too. Remove explicit.
10349 * thread.c (threads_executing): Delete.
10350 (inferior_thread): Pass down current inferior.
10351 (clear_thread_inferior_resources): Pass down thread pointer
10352 instead of ptid_t.
10353 (add_thread_silent, add_thread_with_info, add_thread): Add
10354 process_stratum_target parameter. Use it for thread and inferior
10355 searches.
10356 (is_current_thread): New.
10357 (thread_info::deletable): Use it.
10358 (find_thread_ptid, thread_count, in_thread_list)
10359 (thread_change_ptid, set_resumed, set_running): New
10360 process_stratum_target parameter. Pass it down.
10361 (set_executing): New process_stratum_target parameter. Pass it
10362 down. Adjust reference to 'threads_executing'.
10363 (threads_are_executing): New process_stratum_target parameter.
10364 Adjust reference to 'threads_executing'.
10365 (set_stop_requested, finish_thread_state): New
10366 process_stratum_target parameter. Pass it down.
10367 (switch_to_thread): Also match inferior.
10368 (switch_to_thread): New process_stratum_target parameter. Pass it
10369 down.
10370 (update_threads_executing): Reimplement.
10371 * top.c (quit_force): Pop targets from all inferior.
10372 (gdb_init): Don't call initialize_targets.
10373 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10374 Declare.
10375 (windows_add_thread, windows_delete_thread): Adjust.
10376 (get_windows_debug_event): Rename to ...
10377 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10378 * tracefile-tfile.c (tfile_target_open): Pass down target.
10379 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10380 Forward declare.
10381 (switch_to_thread): Add process_stratum_target parameter.
10382 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10383 parameter. Use it.
10384 (mi_on_resume): Pass target down.
10385 * nat/fork-inferior.c (startup_inferior): Add
10386 process_stratum_target parameter. Pass it down.
10387 * nat/fork-inferior.h (startup_inferior): Add
10388 process_stratum_target parameter.
10389 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10390
75c6c844
PA
103912020-01-10 Pedro Alves <palves@redhat.com>
10392
10393 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10394 directly. Instead find the first thread in the thread list and
10395 use switch_to_thread.
10396
78f2c40a
PA
103972020-01-10 Pedro Alves <palves@redhat.com>
10398
10399 * remote.c (remote_target::remote_add_inferior): Don't bind a
10400 process to the current inferior if the current inferior is already
10401 bound to a process.
10402
e7af6c70
TBA
104032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10404 Pedro Alves <palves@redhat.com>
10405
10406 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10407 If no process is specified, return null_ptid instead of
10408 inferior_ptid.
10409 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10410 TARGET_WAITKIND_SIGNALLED with no pid.
10411
31ba933e
PA
104122020-01-10 Pedro Alves <palves@redhat.com>
10413
10414 * remote.c (first_remote_resumed_thread): New.
10415 (remote_target::wait_as): Use it as default event_ptid instead of
10416 inferior_ptid.
10417
735fc2ca
PA
104182020-01-10 Pedro Alves <palves@redhat.com>
10419
10420 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10421
c17e02e1
PA
104222020-01-10 Pedro Alves <palves@redhat.com>
10423
10424 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10425 not -1.
10426
ab1ddbcf
PA
104272020-01-10 Pedro Alves <palves@redhat.com>
10428
10429 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10430 ptid to get_last_target_status.
10431 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10432 ptid to get_last_target_status.
10433 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10434 get_last_target_status.
10435 (info_program_command): Don't pass a target_waitstatus to
10436 get_last_target_status.
10437 * infrun.c (init_wait_for_inferior): Use
10438 nullify_last_target_wait_ptid.
10439 (get_last_target_status): Handle nullptr arguments.
10440 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10441 (print_stop_event): Don't pass a ptid to get_last_target_status.
10442 (normal_stop): Don't pass a ptid to get_last_target_status.
10443 * infrun.h (get_last_target_status, set_last_target_status): Move
10444 comments here and update.
10445 (nullify_last_target_wait_ptid): Declare.
10446 * linux-fork.c (fork_load_infrun_state): Remove local extern
10447 declaration of nullify_last_target_wait_ptid.
10448 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10449 to get_last_target_status.
10450
f3f8ece4
PA
104512020-01-10 Pedro Alves <palves@redhat.com>
10452
10453 * gdbthread.h (scoped_restore_current_thread)
10454 <dont_restore, restore, m_dont_restore>: Declare.
10455 * thread.c (thread_alive): Add assertion. Return bool.
10456 (switch_to_thread_if_alive): New.
10457 (prune_threads): Switch inferior/thread.
10458 (print_thread_info_1): Switch thread before calling target methods.
10459 (scoped_restore_current_thread::restore): New, factored out from
10460 ...
10461 (scoped_restore_current_thread::~scoped_restore_current_thread):
10462 ... this.
10463 (scoped_restore_current_thread::scoped_restore_current_thread):
10464 Add assertion.
10465 (thread_apply_all_command, thread_select): Use
10466 switch_to_thread_if_alive.
10467 * infrun.c (proceed, restart_threads, handle_signal_stop)
10468 (switch_back_to_stepped_thread): Switch current thread before
10469 calling target methods.
10470
db2d40f7
PA
104712020-01-10 Pedro Alves <palves@redhat.com>
10472
10473 * inferior.c (switch_to_inferior_no_thread): New function,
10474 factored out from ...
10475 (inferior_command): ... here.
10476 * inferior.h (switch_to_inferior_no_thread): Declare.
10477 * mi/mi-main.c (run_one_inferior): Use
10478 switch_to_inferior_no_thread.
10479
bd420a2d
PA
104802020-01-10 Pedro Alves <palves@redhat.com>
10481
10482 * infcmd.c (kill_command): Remove dead code.
10483
ddf5db90
PA
104842020-01-10 Pedro Alves <palves@redhat.com>
10485
10486 * remote.c (remote_target::mourn_inferior): No longer check
10487 whether the target is running.
10488
5018ce90
PA
104892020-01-10 Pedro Alves <palves@redhat.com>
10490
10491 * corelow.c (core_target::has_execution): Change parameter type to
10492 inferior pointer.
10493 * inferior.c (number_of_live_inferiors): Use
10494 inferior::has_execution instead of target_has_execution_1.
10495 * inferior.h (inferior::has_execution): New.
10496 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10497 inferior::has_execution instead of target_has_execution_1.
10498 * process-stratum-target.c
10499 (process_stratum_target::has_execution): Change parameter type to
10500 inferior pointer. Check the inferior's PID instead of
10501 inferior_ptid.
10502 * process-stratum-target.h
10503 (process_stratum_target::has_execution): Change parameter type to
10504 inferior pointer.
10505 * record-full.c (record_full_core_target::has_execution): Change
10506 parameter type to inferior pointer.
10507 * target.c (target_has_execution_1): Change parameter type to
10508 inferior pointer.
10509 (target_has_execution_current): Adjust.
10510 * target.h (target_ops::has_execution): Change parameter type to
10511 inferior pointer.
10512 (target_has_execution_1): Change parameter type to inferior
10513 pointer. Change return type to bool.
10514 * tracefile.h (tracefile_target::has_execution): Change parameter
10515 type to inferior pointer.
10516
74375d18
PA
105172020-01-10 Pedro Alves <palves@redhat.com>
10518
10519 * exceptions.c (print_flush): Remove current_top_target() check.
10520
acdf84a6
PA
105212020-01-10 Pedro Alves <palves@redhat.com>
10522
10523 * remote.c (show_remote_exec_file): Show the current inferior's
10524 exec-file instead of the command variable's value.
10525
ec506636
PA
105262020-01-10 Pedro Alves <palves@redhat.com>
10527
10528 * record-full.c (record_full_resume_ptid): New global.
10529 (record_full_target::resume): Set it.
10530 (record_full_wait_1): Use record_full_resume_ptid instead of
10531 inferior_ptid.
10532
873657b9
PA
105332020-01-10 Pedro Alves <palves@redhat.com>
10534
10535 * gdbthread.h (scoped_restore_current_thread)
10536 <dont_restore, restore, m_dont_restore>: Declare.
10537 * thread.c (thread_alive): Add assertion. Return bool.
10538 (switch_to_thread_if_alive): New.
10539 (prune_threads): Switch inferior/thread.
10540 (print_thread_info_1): Switch thread before calling target methods.
10541 (scoped_restore_current_thread::restore): New, factored out from
10542 ...
10543 (scoped_restore_current_thread::~scoped_restore_current_thread):
10544 ... this.
10545 (scoped_restore_current_thread::scoped_restore_current_thread):
10546 Add assertion.
10547 (thread_apply_all_command, thread_select): Use
10548 switch_to_thread_if_alive.
10549
7f0ae84c
GB
105502020-01-10 George Barrett <bob@bob131.so>
10551
10552 * stap-probe.c (stap_modify_semaphore): Don't check for null
10553 semaphores.
10554 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10555 for null semaphores.
10556
f5a7c406
AB
105572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10558
10559 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10560 all source windows, and maintain horizontal scroll status while
10561 doing so.
10562
9ae6bf64
TT
105632020-01-09 Tom Tromey <tom@tromey.com>
10564
10565 PR tui/18932:
10566 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10567 update_source_window, not print_source_lines.
10568
b2efe70c
AB
105692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10570
10571 * tui/tui.c (tui_enable): Register tui hooks after calling
10572 tui_display_main.
10573
5f23a082
CB
105742020-01-09 Christian Biesinger <cbiesinger@google.com>
10575
10576 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10577
3061113b
SM
105782020-01-08 Simon Marchi <simon.marchi@efficios.com>
10579
10580 * thread.c (print_thread_info_1): Fix indentation.
10581
57d75002
CB
105822020-01-09 Christian Biesinger <cbiesinger@google.com>
10583
10584 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10585 unique_xmalloc_ptr outside the if to always free the demangled name.
10586
6a053cb1
TT
105872020-01-08 Tom Tromey <tromey@adacore.com>
10588
10589 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10590 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10591 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10592 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10593 Remove.
10594 (section_offsets): New typedef.
10595 * symtab.c (fixup_section, get_msymbol_address): Update.
10596 * symmisc.c (dump_msymbols): Update.
10597 * symfile.h (relative_addr_info_to_section_offsets)
10598 (symfile_map_offsets_to_segments): Update.
10599 * symfile.c (build_section_addr_info_from_objfile)
10600 (init_objfile_sect_indices): Update.
10601 (struct place_section_arg): Change type of "offsets".
10602 (place_section): Update.
10603 (relative_addr_info_to_section_offsets): Change type of
10604 "section_offsets". Remove "num_sections" parameter.
10605 (default_symfile_offsets, syms_from_objfile_1)
10606 (set_objfile_default_section_offset): Update.
10607 (reread_symbols): No need to preserve section offsets by hand.
10608 (symfile_map_offsets_to_segments): Change type of "offsets".
10609 * stap-probe.c (relocate_address): Update.
10610 * stabsread.h (process_one_symbol): Update.
10611 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10612 (solib_target_relocate_section_addresses): Update.
10613 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10614 Update.
10615 * solib-frv.c (frv_relocate_main_executable): Update.
10616 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10617 * solib-aix.c (solib_aix_get_section_offsets): Change return
10618 type.
10619 (solib_aix_solib_create_inferior_hook): Update.
10620 * remote.c (remote_target::get_offsets): Update.
10621 * psymtab.c (find_pc_sect_psymtab): Update.
10622 * psympriv.h (struct partial_symbol) <address, text_low,
10623 text_high>: Update.
10624 * objfiles.h (obj_section_offset): Update.
10625 (struct objfile) <section_offsets>: Change type.
10626 <num_sections>: Remove.
10627 (objfile_relocate): Update.
10628 * objfiles.c (entry_point_address_query): Update
10629 (relocate_one_symbol): Change type of "section_offsets".
10630 (objfile_relocate1, objfile_relocate1): Change type of
10631 "new_offsets".
10632 (objfile_rebase1): Update.
10633 * mipsread.c (mipscoff_symfile_read): Update.
10634 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10635 parameter.
10636 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10637 (parse_external, psymtab_to_symtab_1): Update.
10638 * machoread.c (macho_symfile_offsets): Update.
10639 * ia64-tdep.c (ia64_find_unwind_table): Update.
10640 * hppa-tdep.c (read_unwind_info): Update.
10641 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10642 * dwarf2read.c (create_addrmap_from_index)
10643 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10644 (process_psymtab_comp_unit_reader, add_partial_symbol)
10645 (add_partial_subprogram, process_full_comp_unit)
10646 (read_file_scope, read_func_scope, read_lexical_block_scope)
10647 (read_call_site_scope, dwarf2_rnglists_process)
10648 (dwarf2_ranges_process, dwarf2_ranges_read)
10649 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10650 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10651 Update.
10652 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10653 Update.
10654 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10655 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10656 (process_one_symbol): Change type of "section_offsets".
10657 * ctfread.c (get_objfile_text_range): Update.
10658 * coffread.c (coff_symtab_read, enter_linenos)
10659 (process_coff_symbol): Update.
10660 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10661 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10662
456e800a
TT
106632020-01-08 Tom Tromey <tromey@adacore.com>
10664
10665 * dwarf2read.c (parse_macro_definition): Use std::string.
10666 (parse_macro_definition): Likewise.
10667
6dfa2fc2
TT
106682020-01-08 Tom Tromey <tromey@adacore.com>
10669
10670 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10671 (ATTR_ALLOC_CHUNK): Remove.
10672
421d1616
TT
106732020-01-08 Tom Tromey <tromey@adacore.com>
10674
10675 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10676
43816ebc
TT
106772020-01-08 Tom Tromey <tromey@adacore.com>
10678
10679 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10680 (dwarf2_compute_name, open_dwo_file): Likewise.
10681 (process_enumeration_scope): Use std::vector.
10682 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10683 (partial_die_info::fixup, dwarf2_start_subfile)
10684 (guess_full_die_structure_name, dwarf2_name): Likewise.
10685 (determine_prefix): Update.
10686 (guess_full_die_structure_name): Make return type const.
10687 (partial_die_full_name): Return unique_xmalloc_ptr.
10688 (DW_FIELD_ALLOC_CHUNK): Remove.
10689
4212d509
TT
106902020-01-07 Tom Tromey <tromey@adacore.com>
10691
10692 PR build/24937:
10693 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10694
06a6207a
JT
106952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10696
10697 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10698
153d79c4
AB
106992020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * stack.c (print_frame_info): Move disassemble_next_line code
10702 inside source_print block.
10703
66182876
EZ
107042020-01-06 Eli Zaretskii <eliz@gnu.org>
10705
10706 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10707 gdb/signals.h, as we are now using native signal symbols.
10708
cbfa8581
SV
107092020-01-06 Shahab Vahedi <shahab@synopsys.com>
10710
10711 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10712 overflow by an early check of content vs threshold.
aac66a4c 10713 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10714 Likewise.
10715
3f602821
EZ
107162020-01-06 Eli Zaretskii <eliz@gnu.org>
10717
10718 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10719
a08c904d
JT
107202020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10721
10722 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10723 export table if no section contains it's RVA.
10724
89a65580
EZ
107252020-01-06 Eli Zaretskii <eliz@gnu.org>
10726
10727 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10728
8b7fcda2
HD
107292020-01-06 Hannes Domani <ssbssa@yahoo.de>
10730
10731 * source.c (print_source_lines_base): Set last_line_listed.
10732
a61b4f69
SV
107332020-01-06 Shahab Vahedi <shahab@synopsys.com>
10734
10735 * tui/tui-disasm.c: Remove trailing spaces.
10736
559e7e50
EZ
107372020-01-06 Eli Zaretskii <eliz@gnu.org>
10738 Pedro Alves <palves@redhat.com>
10739
10740 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10741 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10742 (windows_gdb_signal_to_target): New function, uses the above
10743 enumeration to convert GDB internal signal codes to equivalent
10744 Windows codes.
10745 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10746 * windows-nat.c: Include "gdb_wait.h".
10747 (get_windows_debug_event): Extract the fatal exception from the
10748 exit status and convert to the equivalent Posix signal number.
10749 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10750 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10751 * gdbsupport/gdb_wait.c: New file, implements
10752 windows_status_to_termsig.
10753 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10754 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10755
f2302a34
AB
107562020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10757
10758 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10759 show_layout.
10760
6a5206eb
LM
107612020-01-05 Luis Machado <luis.machado@linaro.org>
10762
10763 * aarch64-linux-nat.c
10764 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10765 and bfd_mach_aarch64.
10766
6ec1d75e
PW
107672020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10768
10769 * ui-file.c (stdio_file::can_emit_style_escape)
10770 (tee_file::can_emit_style_escape): Ensure style is used also on
10771 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10772 to gdb_stdout.
10773 * main.c (set_gdb_data_directory): Use file style to output the
10774 warning that the given pathname is not a directory.
10775 * top.c (show_history_filename, gdb_safe_append_history)
10776 (show_gdb_datadir): Use file style.
10777
44f81a76
HD
107782020-01-03 Hannes Domani <ssbssa@yahoo.de>
10779
10780 * solib-target.c (struct lm_info_target):
10781 Change offsets to be a unique_xmalloc_ptr.
10782 (solib_target_relocate_section_addresses): Update.
10783
25057eb0
HD
107842020-01-03 Hannes Domani <ssbssa@yahoo.de>
10785
10786 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10787
6e2118f5
BE
107882020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10789
10790 * MAINTAINERS (Write After Approval): Add myself.
10791
8133c7dc
LM
107922020-01-02 Luis Machado <luis.machado@linaro.org>
10793
10794 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10795 Cell BE architecture.
10796 * target.h (struct target_ops) <thread_architecture>: Likewise.
10797
48189bec
HD
107982020-01-01 Hannes Domani <ssbssa@yahoo.de>
10799
10800 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10801
ead1063b
HD
108022020-01-01 Hannes Domani <ssbssa@yahoo.de>
10803
10804 * MAINTAINERS (Write After Approval): Add myself.
10805
e5d78223
JB
108062020-01-01 Joel Brobecker <brobecker@adacore.com>
10807
10808 * gdbarch.sh: Update copyright year range of generated files.
10809
b811d2c2
JB
108102020-01-01 Joel Brobecker <brobecker@adacore.com>
10811
10812 Update copyright year range in all GDB files.
10813
5f4def5c
JB
108142020-01-01 Joel Brobecker <brobecker@adacore.com>
10815
10816 * copyright.py: Convert to Python 3.
10817
51fd4002
JB
108182020-01-01 Joel Brobecker <brobecker@adacore.com>
10819
10820 * copyright.py: Adapt after move of gnulib directory from gdb
10821 directory to toplevel directory.
10822
5fb651f2
JB
108232020-01-01 Joel Brobecker <brobecker@adacore.com>
10824
10825 * copyright.py (main): Exit if run from the wrong directory.
10826
5dd8bf88
JB
108272020-01-01 Joel Brobecker <brobecker@adacore.com>
10828
10829 * top.c (print_gdb_version): Change copyright year to 2020.
10830
9f71dacb 108312020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10832
9f71dacb 10833 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10834
9f71dacb 10835For older changes see ChangeLog-2019.
c906108c
SS
10836\f
10837Local Variables:
10838mode: change-log
10839left-margin: 8
10840fill-column: 74
10841version-control: never
57da7796 10842coding: utf-8
c906108c 10843End: